CVS commit: [netbsd-7] src/sys/arch/hpcsh/dev
Module Name:src Committed By: snj Date: Wed Aug 9 06:56:02 UTC 2017 Modified Files: src/sys/arch/hpcsh/dev [netbsd-7]: pfckbd.c Log Message: Pull up following revision(s) (requested by uwe in ticket #1466): sys/arch/hpcsh/dev/pfckbd.c: revision 1.30 Don't reschedule the callout in the scanning function itself, as that conflicts with using the same function for polled console. Makes early ddb work with wscons console again on my Jornada 690. To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.29.22.1 src/sys/arch/hpcsh/dev/pfckbd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/sys/dev/hpc
Module Name:src Committed By: snj Date: Wed Aug 9 06:48:57 UTC 2017 Modified Files: src/sys/dev/hpc [netbsd-7]: hpckbd.c Log Message: Pull up following revision(s) (requested by uwe in ticket #1465): sys/dev/hpc/hpckbd.c: revision 1.32 XXX: On hpcsh only - bring back old incorrect hpckbd_keymap_setup() fixed in 1.31. The old one with UNCONST does work on hpcsh b/c the kernel is directly mapped. The new one does not work on hpcsh b/c it calls consinit() very early when malloc() is not yet available. The real fix for this is to fix the constness of wscons keymap structures that is self-contradictory. To generate a diff of this commit: cvs rdiff -u -r1.30.12.1 -r1.30.12.2 src/sys/dev/hpc/hpckbd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/sys/arch/evbarm/rpi
Module Name:src Committed By: snj Date: Wed Aug 9 06:40:25 UTC 2017 Modified Files: src/sys/arch/evbarm/rpi [netbsd-7]: rpi_machdep.c Log Message: Pull up following revision(s) (requested by jmcneill in ticket #1464): sys/arch/evbarm/rpi/rpi_machdep.c: 1.71 via patch Disable BSC0 on Raspberry Pi 3 and Zero W boards. To generate a diff of this commit: cvs rdiff -u -r1.43.2.7 -r1.43.2.8 src/sys/arch/evbarm/rpi/rpi_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7-0] src/sys/dev/usb
Module Name:src Committed By: snj Date: Wed Aug 9 06:35:37 UTC 2017 Modified Files: src/sys/dev/usb [netbsd-7-0]: if_ural.c Log Message: Pull up following revision(s) (requested by skrll in ticket #1462): sys/dev/usb/if_ural.c: revision 1.52 Free the RX list if ural_alloc_rx_list fails part way through. Reported by Ilja Van Sprundel. To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.44.16.1 src/sys/dev/usb/if_ural.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7-1] src/sys/dev/usb
Module Name:src Committed By: snj Date: Wed Aug 9 06:35:16 UTC 2017 Modified Files: src/sys/dev/usb [netbsd-7-1]: if_ural.c Log Message: Pull up following revision(s) (requested by skrll in ticket #1462): sys/dev/usb/if_ural.c: revision 1.52 Free the RX list if ural_alloc_rx_list fails part way through. Reported by Ilja Van Sprundel. To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.44.20.1 src/sys/dev/usb/if_ural.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/sys/dev/usb
Module Name:src Committed By: snj Date: Wed Aug 9 06:34:53 UTC 2017 Modified Files: src/sys/dev/usb [netbsd-7]: if_ural.c Log Message: Pull up following revision(s) (requested by skrll in ticket #1462): sys/dev/usb/if_ural.c: revision 1.52 Free the RX list if ural_alloc_rx_list fails part way through. Reported by Ilja Van Sprundel. To generate a diff of this commit: cvs rdiff -u -r1.44.12.1 -r1.44.12.2 src/sys/dev/usb/if_ural.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/sys/kern
Module Name:src Committed By: snj Date: Wed Aug 9 06:32:49 UTC 2017 Modified Files: src/sys/kern [netbsd-7]: kern_malloc.c Log Message: Pull up following revision(s) (requested by martin in ticket #1461): sys/kern/kern_malloc.c: revision 1.146 Avoid integer overflow in kern_malloc(). Reported by Ilja Van Sprundel. To generate a diff of this commit: cvs rdiff -u -r1.143.2.1 -r1.143.2.2 src/sys/kern/kern_malloc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7-0] src/sys/kern
Module Name:src Committed By: snj Date: Wed Aug 9 06:31:33 UTC 2017 Modified Files: src/sys/kern [netbsd-7-0]: kern_malloc.c Log Message: Pull up following revision(s) (requested by martin in ticket #1461): sys/kern/kern_malloc.c: revision 1.146 Avoid integer overflow in kern_malloc(). Reported by Ilja Van Sprundel. To generate a diff of this commit: cvs rdiff -u -r1.143.2.1 -r1.143.2.1.2.1 src/sys/kern/kern_malloc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7-1] src/sys/kern
Module Name:src Committed By: snj Date: Wed Aug 9 06:32:22 UTC 2017 Modified Files: src/sys/kern [netbsd-7-1]: kern_malloc.c Log Message: Pull up following revision(s) (requested by martin in ticket #1461): sys/kern/kern_malloc.c: revision 1.146 Avoid integer overflow in kern_malloc(). Reported by Ilja Van Sprundel. To generate a diff of this commit: cvs rdiff -u -r1.143.2.1 -r1.143.2.1.6.1 src/sys/kern/kern_malloc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/sys/dev
Module Name:src Committed By: snj Date: Wed Aug 9 06:22:07 UTC 2017 Modified Files: src/sys/dev [netbsd-7]: auconv.c src/sys/dev/ic [netbsd-7]: ac97.c src/sys/dev/pci [netbsd-7]: azalia_codec.c Log Message: Pull up following revision(s) (requested by nat in ticket #1460): sys/dev/auconv.c: revision 1.30 via patch sys/dev/ic/ac97.c: revision 1.97 via patch sys/dev/pci/azalia_codec.c: revision 1.81 via patch Mixer device bounds checking. Analysis by Ilja van Sprundel. To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.25.24.1 src/sys/dev/auconv.c cvs rdiff -u -r1.95.12.1 -r1.95.12.2 src/sys/dev/ic/ac97.c cvs rdiff -u -r1.79 -r1.79.24.1 src/sys/dev/pci/azalia_codec.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7-1] src/sys/dev
Module Name:src Committed By: snj Date: Wed Aug 9 06:21:18 UTC 2017 Modified Files: src/sys/dev [netbsd-7-1]: auconv.c src/sys/dev/ic [netbsd-7-1]: ac97.c src/sys/dev/pci [netbsd-7-1]: azalia_codec.c Log Message: Pull up following revision(s) (requested by nat in ticket #1460): sys/dev/auconv.c: revision 1.30 via patch sys/dev/ic/ac97.c: revision 1.97 via patch sys/dev/pci/azalia_codec.c: revision 1.81 via patch Mixer device bounds checking. Analysis by Ilja van Sprundel. To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.25.36.1 src/sys/dev/auconv.c cvs rdiff -u -r1.95.12.1 -r1.95.12.1.6.1 src/sys/dev/ic/ac97.c cvs rdiff -u -r1.79 -r1.79.36.1 src/sys/dev/pci/azalia_codec.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7-0] src/sys/dev
Module Name:src Committed By: snj Date: Wed Aug 9 06:20:10 UTC 2017 Modified Files: src/sys/dev [netbsd-7-0]: auconv.c src/sys/dev/ic [netbsd-7-0]: ac97.c src/sys/dev/pci [netbsd-7-0]: azalia_codec.c Log Message: Pull up following revision(s) (requested by nat in ticket #1460): sys/dev/auconv.c: revision 1.30 via patch sys/dev/ic/ac97.c: revision 1.97 via patch sys/dev/pci/azalia_codec.c: revision 1.81 via patch Mixer device bounds checking. Analysis by Ilja van Sprundel. To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.25.28.1 src/sys/dev/auconv.c cvs rdiff -u -r1.95.12.1 -r1.95.12.1.2.1 src/sys/dev/ic/ac97.c cvs rdiff -u -r1.79 -r1.79.28.1 src/sys/dev/pci/azalia_codec.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tests/net/if_vlan
Module Name:src Committed By: knakahara Date: Wed Aug 9 06:19:56 UTC 2017 Modified Files: src/tests/net/if_vlan: t_vlan.sh Log Message: Add counter check to vlan(4) ATF. Implemented by s-yamaguchi@IIJ, thanks. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/net/if_vlan/t_vlan.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/net
Module Name:src Committed By: knakahara Date: Wed Aug 9 06:17:23 UTC 2017 Modified Files: src/sys/net: if_vlan.c Log Message: Fix vlan(4) obytes counter. Implemented by s-yamaguchi@IIJ, thanks. To generate a diff of this commit: cvs rdiff -u -r1.98 -r1.99 src/sys/net/if_vlan.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/doc
Module Name:src Committed By: snj Date: Wed Aug 9 06:10:08 UTC 2017 Modified Files: src/doc [netbsd-8]: CHANGES-8.0 Log Message: tickets 192-204 To generate a diff of this commit: cvs rdiff -u -r1.1.2.36 -r1.1.2.37 src/doc/CHANGES-8.0 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/netipsec
Module Name:src Committed By: ozaki-r Date: Wed Aug 9 06:04:41 UTC 2017 Modified Files: src/sys/netipsec: key.c Log Message: Fix that prev isn't cleared on retry To generate a diff of this commit: cvs rdiff -u -r1.220 -r1.221 src/sys/netipsec/key.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/lib/libc
Module Name:src Committed By: snj Date: Wed Aug 9 06:03:47 UTC 2017 Modified Files: src/lib/libc [netbsd-8]: Makefile.inc Log Message: Apply patch (requested by mrg in ticket #204): Don't define _DIAGNOSTIC in libc. When this was introduced in revision 1.9, it was intended to be turned off for release branches. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.18.8.1 src/lib/libc/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/arch/hpcsh/dev
Module Name:src Committed By: snj Date: Wed Aug 9 06:00:11 UTC 2017 Modified Files: src/sys/arch/hpcsh/dev [netbsd-8]: pfckbd.c Log Message: Pull up following revision(s) (requested by uwe in ticket #203): sys/arch/hpcsh/dev/pfckbd.c: revision 1.30 Don't reschedule the callout in the scanning function itself, as that conflicts with using the same function for polled console. Makes early ddb work with wscons console again on my Jornada 690. To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.29.40.1 src/sys/arch/hpcsh/dev/pfckbd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/hpc
Module Name:src Committed By: snj Date: Wed Aug 9 05:57:32 UTC 2017 Modified Files: src/sys/dev/hpc [netbsd-8]: hpckbd.c Log Message: Pull up following revision(s) (requested by uwe in ticket #202): sys/dev/hpc/hpckbd.c: revision 1.32 XXX: On hpcsh only - bring back old incorrect hpckbd_keymap_setup() fixed in 1.31. The old one with UNCONST does work on hpcsh b/c the kernel is directly mapped. The new one does not work on hpcsh b/c it calls consinit() very early when malloc() is not yet available. The real fix for this is to fix the constness of wscons keymap structures that is self-contradictory. To generate a diff of this commit: cvs rdiff -u -r1.30.30.1 -r1.30.30.2 src/sys/dev/hpc/hpckbd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/net
Module Name:src Committed By: snj Date: Wed Aug 9 05:51:50 UTC 2017 Modified Files: src/sys/net [netbsd-8]: if_gif.c Log Message: Pull up following revision(s) (requested by knakahara in ticket #201): sys/net/if_gif.c: revision 1.128 fix leak when encap_attach() fails twice. To generate a diff of this commit: cvs rdiff -u -r1.126.2.1 -r1.126.2.2 src/sys/net/if_gif.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/arch
Module Name:src Committed By: snj Date: Wed Aug 9 05:49:50 UTC 2017 Modified Files: src/sys/arch/arm/sunxi [netbsd-8]: files.sunxi sun8i_h3_ccu.c sunxi_ccu.h sunxi_ccu_nkmp.c src/sys/arch/evbarm/conf [netbsd-8]: SUNXI Added Files: src/sys/arch/arm/sunxi [netbsd-8]: sun6i_dma.c sun8i_h3_codec.c sunxi_codec.c sunxi_codec.h Log Message: Pull up following revision(s) (requested by jmcneill in ticket #200): sys/arch/arm/sunxi/files.sunxi: 1.15-1.16 sys/arch/arm/sunxi/sun6i_dma.c: 1.1-1.2 sys/arch/arm/sunxi/sun8i_h3_ccu.c: 1.9-1.10 sys/arch/arm/sunxi/sun8i_h3_codec.c: 1.1-1.2 sys/arch/arm/sunxi/sunxi_ccu.h: 1.8 sys/arch/arm/sunxi/sunxi_ccu_nkmp.c: 1.5 sys/arch/arm/sunxi/sunxi_codec.c: 1.1 sys/arch/arm/sunxi/sunxi_codec.h: 1.1 sys/arch/evbarm/conf/SUNXI: 1.20-1.21 Add DMA controller driver for sun6i and later family SoCs. -- Enable sun6idma -- add DMA gate -- Fix burst field encoding, and add a helper function to dump registers from ddb. -- Add support for H3 audio PLL and digital audio part. -- Add support for Allwinner H3 audio codec. -- Enable H3 audio support -- h3_codec_pr_write: clear write mode bit after setting it; fixes an issue with output being mutex when skipping tracks in mpg123 To generate a diff of this commit: cvs rdiff -u -r1.12.4.4 -r1.12.4.5 src/sys/arch/arm/sunxi/files.sunxi cvs rdiff -u -r0 -r1.2.2.2 src/sys/arch/arm/sunxi/sun6i_dma.c \ src/sys/arch/arm/sunxi/sun8i_h3_codec.c cvs rdiff -u -r1.8.4.3 -r1.8.4.4 src/sys/arch/arm/sunxi/sun8i_h3_ccu.c cvs rdiff -u -r1.7.4.3 -r1.7.4.4 src/sys/arch/arm/sunxi/sunxi_ccu.h cvs rdiff -u -r1.4.4.2 -r1.4.4.3 src/sys/arch/arm/sunxi/sunxi_ccu_nkmp.c cvs rdiff -u -r0 -r1.1.2.2 src/sys/arch/arm/sunxi/sunxi_codec.c \ src/sys/arch/arm/sunxi/sunxi_codec.h cvs rdiff -u -r1.17.4.4 -r1.17.4.5 src/sys/arch/evbarm/conf/SUNXI Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/bin/sh
Module Name:src Committed By: snj Date: Wed Aug 9 05:35:19 UTC 2017 Modified Files: src/bin/sh [netbsd-8]: input.c parser.c Log Message: Pull up following revision(s) (requested by kre in ticket #199): bin/sh/input.c: revision 1.61 bin/sh/parser.c: revision 1.143 PR bin/52458 Avoid mangling history when editing is enabled, and the prompt contains a \n Also, allow empty input lines into history when they are being appended to a previous (partial) command (but not when they would just make an empty entry) . For all the gory details, see the PR. Note nothing here actually makes prompts containing \n work correctly when editing is enabled, that's a libedit issue, which will be addressed some other time. To generate a diff of this commit: cvs rdiff -u -r1.56.2.1 -r1.56.2.2 src/bin/sh/input.c cvs rdiff -u -r1.132.2.1 -r1.132.2.2 src/bin/sh/parser.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/altq
Module Name:src Committed By: snj Date: Wed Aug 9 05:31:03 UTC 2017 Modified Files: src/sys/altq [netbsd-8]: altq_cbq.c altq_hfsc.c altq_jobs.c altq_priq.c altq_wfq.c Log Message: Pull up following revision(s) (requested by spz in ticket #198): sys/altq/altq_cbq.c: revision 1.31 sys/altq/altq_hfsc.c: revision 1.27 sys/altq/altq_jobs.c: revision 1.11 sys/altq/altq_priq.c: revision 1.24 sys/altq/altq_wfq.c: revision 1.22 Zero buffers copied to userland to avoid stack disclosure. >From Ilja Van Sprundel. -- Reject negative indices. (Would be nice to change the types too, and it's *probably* safe to replace int by u_int, but I'm reluctant to touch the ioctl definitions without at least a modicum more thought. Also one of them is a u_long, because why not?) >From Ilja Van Sprundel. To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.30.10.1 src/sys/altq/altq_cbq.c cvs rdiff -u -r1.26 -r1.26.10.1 src/sys/altq/altq_hfsc.c cvs rdiff -u -r1.10 -r1.10.8.1 src/sys/altq/altq_jobs.c cvs rdiff -u -r1.23 -r1.23.10.1 src/sys/altq/altq_priq.c cvs rdiff -u -r1.21 -r1.21.10.1 src/sys/altq/altq_wfq.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/netsmb
Module Name:src Committed By: snj Date: Wed Aug 9 05:27:14 UTC 2017 Modified Files: src/sys/netsmb [netbsd-8]: smb_dev.c smb_subr.c smb_subr.h smb_usr.c Log Message: Pull up following revision(s) (requested by spz in ticket #197): sys/netsmb/smb_dev.c: revision 1.50 sys/netsmb/smb_subr.c: revision 1.38 sys/netsmb/smb_subr.h: revision 1.22 sys/netsmb/smb_usr.c: revision 1.17-1.19 Reject allocations for too-small buffers from userland. >From Ilja Van Sprundel. -- Plug another overflow: refuse bogus sa_len from user. -- Reject negative ioc_setupcnt. -- Reject negative offset/count for smb read/write. Not clear that this is actually a problem for the kernel -- might overwrite user's buffers or return garbage to user, but that's their own damn fault. But it's hard to imagine that negative offset/count ever makes sense, and I haven't ruled out a problem for the kernel. To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.49.8.1 src/sys/netsmb/smb_dev.c cvs rdiff -u -r1.37 -r1.37.12.1 src/sys/netsmb/smb_subr.c cvs rdiff -u -r1.21 -r1.21.32.1 src/sys/netsmb/smb_subr.h cvs rdiff -u -r1.16 -r1.16.56.1 src/sys/netsmb/smb_usr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/ic
Module Name:src Committed By: snj Date: Wed Aug 9 05:18:26 UTC 2017 Modified Files: src/sys/dev/ic [netbsd-8]: ciss.c Log Message: Pull up following revision(s) (requested by spz in ticket #196): sys/dev/ic/ciss.c: revision 1.37 Reject negative indices from userland. To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.36.10.1 src/sys/dev/ic/ciss.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev/ic
Module Name:src Committed By: snj Date: Wed Aug 9 05:17:03 UTC 2017 Modified Files: src/sys/dev/ic [netbsd-8]: isp_netbsd.c Log Message: Pull up following revision(s) (requested by spz in ticket #195): sys/dev/ic/isp_netbsd.c: revision 1.89 Reject out-of-bounds channel index. >From Ilja Van Sprundel. To generate a diff of this commit: cvs rdiff -u -r1.88 -r1.88.10.1 src/sys/dev/ic/isp_netbsd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/kern
Module Name:src Committed By: snj Date: Wed Aug 9 05:14:20 UTC 2017 Modified Files: src/sys/kern [netbsd-8]: kern_ktrace.c Log Message: Pull up following revision(s) (requested by spz in ticket #194): sys/kern/kern_ktrace.c: revision 1.171 Clamp the length we use, not the length we don't. Avoids uninitialized memory disclosure to userland. >From Ilja Van Sprundel. To generate a diff of this commit: cvs rdiff -u -r1.170 -r1.170.2.1 src/sys/kern/kern_ktrace.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys
Module Name:src Committed By: snj Date: Wed Aug 9 05:12:19 UTC 2017 Modified Files: src/sys/compat/common [netbsd-8]: vfs_syscalls_12.c vfs_syscalls_43.c src/sys/compat/ibcs2 [netbsd-8]: ibcs2_misc.c src/sys/compat/linux/common [netbsd-8]: linux_file64.c linux_misc.c src/sys/compat/linux32/common [netbsd-8]: linux32_dirent.c src/sys/compat/osf1 [netbsd-8]: osf1_file.c src/sys/compat/sunos [netbsd-8]: sunos_misc.c src/sys/compat/sunos32 [netbsd-8]: sunos32_misc.c src/sys/compat/svr4 [netbsd-8]: svr4_misc.c src/sys/compat/svr4_32 [netbsd-8]: svr4_32_misc.c src/sys/rump/kern/lib/libsys_sunos [netbsd-8]: rump_sunos_compat.c Log Message: Pull up following revision(s) (requested by spz in ticket #193): sys/compat/common/vfs_syscalls_12.c: revision 1.34 sys/rump/kern/lib/libsys_sunos/rump_sunos_compat.c: revision 1.2 sys/compat/svr4_32/svr4_32_misc.c: revision 1.78 sys/compat/sunos32/sunos32_misc.c: revision 1.78 sys/compat/linux/common/linux_misc.c: revision 1.239 sys/compat/osf1/osf1_file.c: revision 1.44 sys/compat/common/vfs_syscalls_43.c: revision 1.60 sys/compat/svr4/svr4_misc.c: revision 1.158 sys/compat/ibcs2/ibcs2_misc.c: revision 1.114 sys/compat/linux/common/linux_file64.c: revision 1.59 sys/compat/linux32/common/linux32_dirent.c: revision 1.18 sys/compat/sunos/sunos_misc.c: revision 1.171 Fail, don't panic, on bad dirents from file system. Controllable via puffs from userland. >From Ilja Van Sprundel. To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.33.8.1 src/sys/compat/common/vfs_syscalls_12.c cvs rdiff -u -r1.59 -r1.59.8.1 src/sys/compat/common/vfs_syscalls_43.c cvs rdiff -u -r1.113 -r1.113.12.1 src/sys/compat/ibcs2/ibcs2_misc.c cvs rdiff -u -r1.58 -r1.58.6.1 src/sys/compat/linux/common/linux_file64.c cvs rdiff -u -r1.238 -r1.238.2.1 src/sys/compat/linux/common/linux_misc.c cvs rdiff -u -r1.17 -r1.17.6.1 src/sys/compat/linux32/common/linux32_dirent.c cvs rdiff -u -r1.43 -r1.43.12.1 src/sys/compat/osf1/osf1_file.c cvs rdiff -u -r1.170 -r1.170.10.1 src/sys/compat/sunos/sunos_misc.c cvs rdiff -u -r1.77 -r1.77.10.1 src/sys/compat/sunos32/sunos32_misc.c cvs rdiff -u -r1.157 -r1.157.8.1 src/sys/compat/svr4/svr4_misc.c cvs rdiff -u -r1.77 -r1.77.8.1 src/sys/compat/svr4_32/svr4_32_misc.c cvs rdiff -u -r1.1 -r1.1.32.1 \ src/sys/rump/kern/lib/libsys_sunos/rump_sunos_compat.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/kern
Module Name:src Committed By: snj Date: Wed Aug 9 05:09:47 UTC 2017 Modified Files: src/sys/kern [netbsd-8]: vfs_getcwd.c Log Message: Pull up following revision(s) (requested by spz in ticket #192): sys/kern/vfs_getcwd.c: revision 1.52 Don't walk off the end of the dirent buffer. >From Ilja Van Sprundel. To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.51.2.1 src/sys/kern/vfs_getcwd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev
Module Name:src Committed By: msaitoh Date: Wed Aug 9 04:45:39 UTC 2017 Modified Files: src/sys/dev/ic: nslm7x.c nslm7xvar.h src/sys/dev/isa: wbsio.c Log Message: - Sprinkle static and const. No functional change. - Print chip ID in hexadecimal instead of octal in def_match(). To generate a diff of this commit: cvs rdiff -u -r1.67 -r1.68 src/sys/dev/ic/nslm7x.c cvs rdiff -u -r1.30 -r1.31 src/sys/dev/ic/nslm7xvar.h cvs rdiff -u -r1.12 -r1.13 src/sys/dev/isa/wbsio.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/netipsec
Module Name:src Committed By: ozaki-r Date: Wed Aug 9 04:29:36 UTC 2017 Modified Files: src/sys/netipsec: key.c Log Message: Fix deadlock between key_sendup_mbuf called from key_acquire and localcount_drain If we call key_sendup_mbuf from key_acquire that is called on packet processing, a deadlock can happen like this: - At key_acquire, a reference to an SP (and an SA) is held - key_sendup_mbuf will try to take key_so_mtx - Some other thread may try to localcount_drain to the SP with holding key_so_mtx in say key_api_spdflush - In this case localcount_drain never return because key_sendup_mbuf that has stuck on key_so_mtx never release a reference to the SP Fix the deadlock by deferring key_sendup_mbuf to the timer (key_timehandler). To generate a diff of this commit: cvs rdiff -u -r1.219 -r1.220 src/sys/netipsec/key.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/netipsec
Module Name:src Committed By: ozaki-r Date: Wed Aug 9 03:41:11 UTC 2017 Modified Files: src/sys/netipsec: key.c Log Message: Fix locking notes of SAD To generate a diff of this commit: cvs rdiff -u -r1.218 -r1.219 src/sys/netipsec/key.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.sbin/ypbind
Module Name:src Committed By: ginsbach Date: Wed Aug 9 01:56:42 UTC 2017 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: Make use of the defined YP errors when ypbind encounters one rather than just returning an empty (successful) RPC result. Don't exit when allocating memory for a new bound domain received via a RPC. To generate a diff of this commit: cvs rdiff -u -r1.98 -r1.99 src/usr.sbin/ypbind/ypbind.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev
Module Name:src Committed By: nat Date: Tue Aug 8 22:21:35 UTC 2017 Modified Files: src/sys/dev: audio.c Log Message: If the harware ring is starved of data...Insert silence into the mix ring so mix_write can function properly. To generate a diff of this commit: cvs rdiff -u -r1.391 -r1.392 src/sys/dev/audio.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/amd64/amd64
Module Name:src Committed By: maxv Date: Tue Aug 8 17:27:34 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: process_machdep.c Log Message: Mmh, don't overwrite tf_err and tf_trapno. Looks like it can be used to exploit the intel sysret vulnerability once again. To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33 src/sys/arch/amd64/amd64/process_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/amd64/amd64
Module Name:src Committed By: maxv Date: Tue Aug 8 17:00:42 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: Remove dumb debug code and outdated comment. To generate a diff of this commit: cvs rdiff -u -r1.124 -r1.125 src/sys/arch/amd64/amd64/locore.S Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/kern
Module Name:src Committed By: maxv Date: Tue Aug 8 16:57:32 UTC 2017 Modified Files: src/sys/kern: kern_exec.c Log Message: Remove compat_svr4, compat_svr4_32 and compat_ibcs2 from the list of autoloaded modules. These options are disabled everywhere (except ibcs2 on Vax, but Vax does not support kernel modules, so doesn't matter), therefore there is no issue in removing them from the list. Interested users will now have to do a 'modload' first, or uncomment the entries in GENERIC. To generate a diff of this commit: cvs rdiff -u -r1.443 -r1.444 src/sys/kern/kern_exec.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/doc
Module Name:src Committed By: martin Date: Tue Aug 8 16:24:03 UTC 2017 Modified Files: src/doc [netbsd-8]: CHANGES-8.0 Log Message: Tickets #188 - #191 To generate a diff of this commit: cvs rdiff -u -r1.1.2.35 -r1.1.2.36 src/doc/CHANGES-8.0 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/compat/ibcs2
Module Name:src Committed By: martin Date: Tue Aug 8 16:21:35 UTC 2017 Modified Files: src/sys/compat/ibcs2 [netbsd-8]: ibcs2_exec_coff.c ibcs2_ioctl.c ibcs2_stat.c Log Message: Pull up following revision(s) (requested by spz in ticket #191): sys/compat/ibcs2/ibcs2_ioctl.c: revision 1.46 sys/compat/ibcs2/ibcs2_stat.c: revision 1.50 sys/compat/ibcs2/ibcs2_exec_coff.c: revision 1.27 sys/compat/ibcs2/ibcs2_exec_coff.c: revision 1.28 sys/compat/ibcs2/ibcs2_exec_coff.c: revision 1.29 sys/compat/ibcs2/ibcs2_stat.c: revision 1.49 Check for NUL termination within the buffer we have. >From Ilja Van Sprundel. Make sure we have enough space in the buffer before reading it. >From Ilja Van Sprundel. Make sure we move forward over the buffer. >From Ilja Van Sprundel. Zero buffers in ibcs2 ioctl to avoid disclosing stack to userland. >From Ilja Van Sprundel. Don't drop vnode ref until we're done with mount in ibcs2_stat(v)fs. Nothing else guarantees the mount will stick around. >From Ilja Van Sprundel. Little happy on the commit trigger. Actually use the out label. To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.26.22.1 src/sys/compat/ibcs2/ibcs2_exec_coff.c cvs rdiff -u -r1.45 -r1.45.76.1 src/sys/compat/ibcs2/ibcs2_ioctl.c cvs rdiff -u -r1.48 -r1.48.12.1 src/sys/compat/ibcs2/ibcs2_stat.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/dev
Module Name:src Committed By: martin Date: Tue Aug 8 16:12:57 UTC 2017 Modified Files: src/sys/dev [netbsd-8]: vnd.c Log Message: Pull up following revision(s) (requested by spz in ticket #190): sys/dev/vnd.c: revision 1.260 sys/dev/vnd.c: revision 1.262 Put in a litany of judicious bounds checks around vnd headers. Thought I was done with this crap after I rewrote vndcompress(1)! >From Ilja Van Sprundel. Appease toxic bullshit warning from gcc. If you have a better way to write a useful bounds check that happens to always pass on LP64 but doesn't always on LP32, without making it fail to compile on LP64 or making it an #ifdef conditional on LP32, please put it in here instead. To generate a diff of this commit: cvs rdiff -u -r1.259 -r1.259.6.1 src/sys/dev/vnd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/compat
Module Name:src Committed By: martin Date: Tue Aug 8 16:05:37 UTC 2017 Modified Files: src/sys/compat/svr4 [netbsd-8]: svr4_lwp.c svr4_signal.c svr4_stream.c src/sys/compat/svr4_32 [netbsd-8]: svr4_32_signal.c Log Message: Pull up following revision(s) (requested by spz in ticket #189): sys/compat/svr4/svr4_stream.c: revision 1.89 sys/compat/svr4/svr4_signal.c: revision 1.67 sys/compat/svr4/svr4_stream.c: revision 1.90 sys/compat/svr4/svr4_stream.c: revision 1.91 sys/compat/svr4_32/svr4_32_signal.c: revision 1.29 sys/compat/svr4/svr4_lwp.c: revision 1.20 Fix some of the multitudinous holes in svr4 streams. We should never have enabled this by default; it is a minefield. >From Ilja Van Sprundel. Zero stack data before copyout. >From Ilja Van Sprundel. Fix indexing of svr4 signals. >From Ilja Van Sprundel. Feebly attempt to get this reference counting less bad. This svr4 streams code is bad and it should feel bad. >From Ilja Van Sprundel. Check bounds in svr4_sys_putmsg. Check more svr4_strmcmd bounds. svr4 streams code is still a disaster. >From Ilja Van Sprundel. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.19.56.1 src/sys/compat/svr4/svr4_lwp.c cvs rdiff -u -r1.66 -r1.66.12.1 src/sys/compat/svr4/svr4_signal.c cvs rdiff -u -r1.88 -r1.88.4.1 src/sys/compat/svr4/svr4_stream.c cvs rdiff -u -r1.28 -r1.28.10.1 src/sys/compat/svr4_32/svr4_32_signal.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-8] src/sys/compat/linux/common
Module Name:src Committed By: martin Date: Tue Aug 8 15:59:04 UTC 2017 Modified Files: src/sys/compat/linux/common [netbsd-8]: linux_time.c Log Message: Pull up following revision(s) (requested by spz in ticket #188): sys/compat/linux/common/linux_time.c: revision 1.38 sys/compat/linux/common/linux_time.c: revision 1.39 Only let the superuser set the compat_linux timezone. Not really keen to invent a new kauth cookie for this useless purpose. >From Ilja Van Sprundel. Put suser check in the right function: settimeofday, not gettimeofday. While here, remove wrong comment. Noted by kre@. To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.37.22.1 src/sys/compat/linux/common/linux_time.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/evbmips/conf
Module Name:src Committed By: maya Date: Tue Aug 8 12:22:21 UTC 2017 Modified Files: src/sys/arch/evbmips/conf: std.loongson Log Message: Build the loongson kernels with all the binutils loongson2f errata workarounds >From Zhang Fuxin via https://sourceware.org/ml/binutils/2009-11/msg00387.html - The NOP issue "The nature of the erratum is deeply related to the microarchitecture of Loongson-2. It uses roughly a 4-way superscalar dynamically scheduled core, instructions are excuted as much as possible in parallel with technics like branch prediction etc. We use a 8-entry internal branch prediction queue to keep track of each predicted branches, if some branches are proved to be wrongly predicted, all the instructions following it will be cancelled,together with the resources used by them, including the registers used for renaming, and the queue entry will be freeed. There is a bug that might cause a hang when the queue is full(some resources might been leaked due to conflict branch entries), the workaround is to reduce the possiblity of branch queue full by using renaming registers(they are also limited, can prevent too many simutaneos branches). In theory this is still not enough to fully eliminate possible hangs, but the possiblity is extremely low now and hard to be hit in real code." - The JUMP instructions issue "The Loongson-2 series processors have quite complex micro-architecture, it will try to execute instructions from the predicated branch of coming instruction stream before they are confirmed to be run, if the predication of branch direction is proved wrong later, the instructions will be cancelled, but if the instructions is a read from memory, the read action might not be cancelled(but the changes to register will) to enable some prefetch. This will lead to some problems when compining with some chipsets. E.g. the AMD CS5536 used in Yeeloong/Fuloong will hang if it gets an address in the physical address range of 0x10-0x20(might be more other ranges). Speculative reads can perform read at any address in theory(due to wrong prediction of branch directions and the use of branch target buffer), thus in very few occasions they might cause a hard lock of the machine. To prevent this, we need to prevent some addresses from entering branch target buffers. A way to do this is that to modify all jump targets, e.g., calulations of t9 ... jalr t9 => calculations of t9 or t9, t9, 0x8000; // to make sure t9 is in kseg0 jalr t9 Of course, we have to consider 64/32bit, and modules addresses etc. This only need to be performed on kernel code, because only there we can have accesses not translated/limited by TLB. For user code, it is impossible to generate accesses to unwanted physical address. So it is safe. Also, to prevent addresses generated by user mode code to be used by the kernel, we add a few empty jumps to flush the BTB upon entrance to kernel." To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/evbmips/conf/std.loongson Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-6] src/doc
Module Name:src Committed By: martin Date: Tue Aug 8 12:01:20 UTC 2017 Modified Files: src/doc [netbsd-6]: CHANGES-6.2 Log Message: Ticket #1464 To generate a diff of this commit: cvs rdiff -u -r1.1.2.293 -r1.1.2.294 src/doc/CHANGES-6.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-6] src/sys/arch
Module Name:src Committed By: martin Date: Tue Aug 8 12:00:35 UTC 2017 Modified Files: src/sys/arch/amd64/amd64 [netbsd-6]: locore.S machdep.c trap.c src/sys/arch/i386/i386 [netbsd-6]: locore.S machdep.c trap.c Log Message: Pull up following revision(s) (requested by maxv in ticket #1464): sys/arch/i386/i386/trap.c: revision 1.288 (patch) sys/arch/i386/i386/machdep.c: revision 1.783 (patch) sys/arch/i386/i386/locore.S: revision 1.146 (patch) sys/arch/amd64/amd64/locore.S: revision 1.122,1.124 (patch) sys/arch/amd64/amd64/machdep.c revision 1.254 (patch) sys/arch/amd64/amd64/trap.c: revision 1.95-1.96 (patch) Remove the osyscall call gate and emulate it. There is a one-instruction race in it that could panic the kernel. Restore the ability to run netbsd 1.0 32-bit executables by checking for the relevant lcall instruction in the trap handler and treating it as a syscall. To generate a diff of this commit: cvs rdiff -u -r1.66.2.1 -r1.66.2.2 src/sys/arch/amd64/amd64/locore.S cvs rdiff -u -r1.175.2.8 -r1.175.2.9 src/sys/arch/amd64/amd64/machdep.c cvs rdiff -u -r1.69.2.2 -r1.69.2.3 src/sys/arch/amd64/amd64/trap.c cvs rdiff -u -r1.95.10.3 -r1.95.10.4 src/sys/arch/i386/i386/locore.S cvs rdiff -u -r1.717.2.7 -r1.717.2.8 src/sys/arch/i386/i386/machdep.c cvs rdiff -u -r1.262.8.1 -r1.262.8.2 src/sys/arch/i386/i386/trap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-6-1] src/doc
Module Name:src Committed By: martin Date: Tue Aug 8 11:59:59 UTC 2017 Modified Files: src/doc [netbsd-6-1]: CHANGES-6.1.6 Log Message: Ticket #1464 To generate a diff of this commit: cvs rdiff -u -r1.1.2.99 -r1.1.2.100 src/doc/CHANGES-6.1.6 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-6-1] src/sys/arch
Module Name:src Committed By: martin Date: Tue Aug 8 11:59:16 UTC 2017 Modified Files: src/sys/arch/amd64/amd64 [netbsd-6-1]: locore.S machdep.c trap.c src/sys/arch/i386/i386 [netbsd-6-1]: locore.S machdep.c trap.c Log Message: Pull up following revision(s) (requested by maxv in ticket #1464): sys/arch/i386/i386/trap.c: revision 1.288 (patch) sys/arch/i386/i386/machdep.c: revision 1.783 (patch) sys/arch/i386/i386/locore.S: revision 1.146 (patch) sys/arch/amd64/amd64/locore.S: revision 1.122,1.124 (patch) sys/arch/amd64/amd64/machdep.c revision 1.254 (patch) sys/arch/amd64/amd64/trap.c: revision 1.95-1.96 (patch) Remove the osyscall call gate and emulate it. There is a one-instruction race in it that could panic the kernel. Restore the ability to run netbsd 1.0 32-bit executables by checking for the relevant lcall instruction in the trap handler and treating it as a syscall. To generate a diff of this commit: cvs rdiff -u -r1.66.2.1 -r1.66.2.1.6.1 src/sys/arch/amd64/amd64/locore.S cvs rdiff -u -r1.175.2.8 -r1.175.2.8.2.1 src/sys/arch/amd64/amd64/machdep.c cvs rdiff -u -r1.69.2.1.6.1 -r1.69.2.1.6.2 src/sys/arch/amd64/amd64/trap.c cvs rdiff -u -r1.95.10.3 -r1.95.10.3.2.1 src/sys/arch/i386/i386/locore.S cvs rdiff -u -r1.717.2.7 -r1.717.2.7.6.1 src/sys/arch/i386/i386/machdep.c cvs rdiff -u -r1.262.14.1 -r1.262.14.2 src/sys/arch/i386/i386/trap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-6-0] src/doc
Module Name:src Committed By: martin Date: Tue Aug 8 11:58:43 UTC 2017 Modified Files: src/doc [netbsd-6-0]: CHANGES-6.0.7 Log Message: Ticket #1464 To generate a diff of this commit: cvs rdiff -u -r1.1.2.101 -r1.1.2.102 src/doc/CHANGES-6.0.7 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-6-0] src/sys/arch
Module Name:src Committed By: martin Date: Tue Aug 8 11:55:20 UTC 2017 Modified Files: src/sys/arch/amd64/amd64 [netbsd-6-0]: locore.S machdep.c trap.c src/sys/arch/i386/i386 [netbsd-6-0]: locore.S machdep.c trap.c Log Message: Pull up following revision(s) (requested by maxv in ticket #1464): sys/arch/i386/i386/trap.c: revision 1.288 (patch) sys/arch/i386/i386/machdep.c: revision 1.783 (patch) sys/arch/i386/i386/locore.S: revision 1.146 (patch) sys/arch/amd64/amd64/locore.S: revision 1.122,1.124 (patch) sys/arch/amd64/amd64/machdep.c revision 1.254 (patch) sys/arch/amd64/amd64/trap.c: revision 1.95-1.96 (patch) Remove the osyscall call gate and emulate it. There is a one-instruction race in it that could panic the kernel. Restore the ability to run netbsd 1.0 32-bit executables by checking for the relevant lcall instruction in the trap handler and treating it as a syscall. To generate a diff of this commit: cvs rdiff -u -r1.66.2.1 -r1.66.2.1.4.1 src/sys/arch/amd64/amd64/locore.S cvs rdiff -u -r1.175.2.7.2.1 -r1.175.2.7.2.2 \ src/sys/arch/amd64/amd64/machdep.c cvs rdiff -u -r1.69.2.1.4.1 -r1.69.2.1.4.2 src/sys/arch/amd64/amd64/trap.c cvs rdiff -u -r1.95.10.2 -r1.95.10.2.4.1 src/sys/arch/i386/i386/locore.S cvs rdiff -u -r1.717.2.7 -r1.717.2.7.4.1 src/sys/arch/i386/i386/machdep.c cvs rdiff -u -r1.262.12.1 -r1.262.12.2 src/sys/arch/i386/i386/trap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/netipsec
Module Name:src Committed By: ozaki-r Date: Tue Aug 8 10:41:33 UTC 2017 Modified Files: src/sys/netipsec: keysock.c Log Message: Fix KASSERT(solocked(sb->sb_so)) failure in sbappendaddr that is called eventually from key_sendup_mbuf If key_sendup_mbuf isn't passed a socket, the assertion fails. Originally in this case sb->sb_so was softnet_lock and callers held softnet_lock so the assertion was magically satisfied. Now sb->sb_so is key_so_mtx and also softnet_lock isn't always held by callers so the assertion can fail. Fix it by holding key_so_mtx if key_sendup_mbuf isn't passed a socket. Reported by knakahara@ Tested by knakahara@ and ozaki-r@ To generate a diff of this commit: cvs rdiff -u -r1.59 -r1.60 src/sys/netipsec/keysock.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/mips/mips
Module Name:src Committed By: maya Date: Tue Aug 8 09:34:59 UTC 2017 Modified Files: src/sys/arch/mips/mips: mipsX_subr.S Log Message: Remove whitespace I just introduced To generate a diff of this commit: cvs rdiff -u -r1.101 -r1.102 src/sys/arch/mips/mips/mipsX_subr.S Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/mips/mips
Module Name:src Committed By: maya Date: Tue Aug 8 09:33:41 UTC 2017 Modified Files: src/sys/arch/mips/mips: mipsX_subr.S Log Message: In working around loongson errata clear BTB and RAS, same as other operating systems. 15 Errata: Issue of Out-of-order in loongson (translated) In loongson 2F, because of the branch prediction, sometimes the CPU may fetch the instructions from some unexpected area (for example I/O space). It is an invalid operation. There are two ways for the CPU to choose the branch target. The first one is predicting the branch target according to the branch target history. The second one is calculating the branch target by the ALU. There are most 8 instructions in the instruction window at the same time in loongson2f (Remember the loongson 2f is superscalar, right?). Hence, the branch target of an indirect branch(such as jr) could be got(may be predicted by the branch target history) earlier and the instrctions of the branch target could be prefetched even if there are branch instructions before it. As a result, it is possible to fetch the instructions from I/O region( say out-of the physical address range of [0- 0x10]) in kernel model because of the instruction prefetch of the branch target. There are some suggestions to prevent prefetching instructions from the I/O region in kernel mode. (1) When switching from user model to kernel model, you should flush the branch target history such as BTB and RAS. (2) Doing some tricks to the indirect branch target to make sure that the indirect branch target can not be in the I/O region. To generate a diff of this commit: cvs rdiff -u -r1.100 -r1.101 src/sys/arch/mips/mips/mipsX_subr.S Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/netipsec
Module Name:src Committed By: ozaki-r Date: Tue Aug 8 08:24:34 UTC 2017 Modified Files: src/sys/netipsec: key.c Log Message: Destroy sav only in the loop for DEAD sav To generate a diff of this commit: cvs rdiff -u -r1.217 -r1.218 src/sys/netipsec/key.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/netipsec
Module Name:src Committed By: ozaki-r Date: Tue Aug 8 08:23:10 UTC 2017 Modified Files: src/sys/netipsec: key.c key.h key_debug.c Log Message: Introduce key_sa_refcnt and replace sav->refcnt with it (NFC) To generate a diff of this commit: cvs rdiff -u -r1.216 -r1.217 src/sys/netipsec/key.c cvs rdiff -u -r1.27 -r1.28 src/sys/netipsec/key.h cvs rdiff -u -r1.19 -r1.20 src/sys/netipsec/key_debug.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/kern
Module Name:src Committed By: maxv Date: Tue Aug 8 08:12:14 UTC 2017 Modified Files: src/sys/kern: kern_exec.c Log Message: Remove compat_freebsd from the list of autoloaded modules. Interested users will now have to type 'modload' to use it, or uncomment the entry in GENERIC. I should have removed it when I disabled COMPAT_FREEBSD by default, sorry about that. To generate a diff of this commit: cvs rdiff -u -r1.442 -r1.443 src/sys/kern/kern_exec.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src
Module Name:src Committed By: maxv Date: Tue Aug 8 08:04:06 UTC 2017 Modified Files: src/distrib/sets/lists/comp: md.amd64 md.i386 src/sys/arch/i386/i386: genassym.cf src/sys/arch/i386/include: Makefile src/sys/compat/freebsd: freebsd_exec.c freebsd_exec_elf32.c freebsd_fork.c freebsd_machdep.c freebsd_ptrace.c freebsd_syscall.c freebsd_syscalls.c freebsd_sysent.c syscalls.master Added Files: src/sys/compat/freebsd: freebsd_machdep.h Removed Files: src/sys/arch/i386/include: freebsd_machdep.h Log Message: Move freebsd_machdep.h into sys/compat/freebsd, and don't install it. Now, the compat_freebsd files are all contained in sys/compat/freebsd. To generate a diff of this commit: cvs rdiff -u -r1.247 -r1.248 src/distrib/sets/lists/comp/md.amd64 cvs rdiff -u -r1.171 -r1.172 src/distrib/sets/lists/comp/md.i386 cvs rdiff -u -r1.101 -r1.102 src/sys/arch/i386/i386/genassym.cf cvs rdiff -u -r1.45 -r1.46 src/sys/arch/i386/include/Makefile cvs rdiff -u -r1.14 -r0 src/sys/arch/i386/include/freebsd_machdep.h cvs rdiff -u -r1.38 -r1.39 src/sys/compat/freebsd/freebsd_exec.c cvs rdiff -u -r1.20 -r1.21 src/sys/compat/freebsd/freebsd_exec_elf32.c \ src/sys/compat/freebsd/freebsd_ptrace.c cvs rdiff -u -r1.7 -r1.8 src/sys/compat/freebsd/freebsd_fork.c cvs rdiff -u -r1.1 -r1.2 src/sys/compat/freebsd/freebsd_machdep.c \ src/sys/compat/freebsd/freebsd_syscall.c cvs rdiff -u -r0 -r1.1 src/sys/compat/freebsd/freebsd_machdep.h cvs rdiff -u -r1.84 -r1.85 src/sys/compat/freebsd/freebsd_syscalls.c cvs rdiff -u -r1.86 -r1.87 src/sys/compat/freebsd/freebsd_sysent.c cvs rdiff -u -r1.67 -r1.68 src/sys/compat/freebsd/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.