| Home | Sort by: relevance | last modified time | path |
| /src/tests/net/route/ | |
| t_rtcache.sh | 1.1.2.2 Tue Oct 24 08:55:56 UTC 2017 snj Pull up following revision(s) (requested by ozaki-r in ticket #305): distrib/sets/lists/tests/mi: revision 1.762 sys/net/route.c: revision 1.198-1.201 sys/net/route.h: revision 1.114 sys/netatalk/at_proto.c: revision 1.22 sys/netinet/in_proto.c: revision 1.124 sys/netinet6/in6_proto.c: revision 1.118 sys/netmpls/mpls_proto.c: revision 1.31 sys/netnatm/natm_proto.c: revision 1.18 sys/rump/net/lib/libsockin/sockin.c: revision 1.65 sys/sys/domain.h: revision 1.33 tests/net/route/Makefile: revision 1.6 tests/net/route/t_rtcache.sh: revision 1.1 Add tests of rtcache invalidation Remove unnecessary NULL check of rt_ifp It's always non-NULL. Invalidate rtcache based on a global generation counter The change introduces a global generation counter that is incremented when any routes have been added or deleted. When a rtcache caches a rtentry into itself, it also stores a snapshot of the generation counter. If the snapshot equals to the global counter, the cache is still valid, otherwise invalidated. One drawback of the change is that all rtcaches of all protocol families are invalidated when any routes of any protocol families are added or deleted. If that matters, we should have separate generation counters based on protocol families. This change removes LIST_ENTRY from struct route, which fixes a part of PR kern/52515. Remove the global lock for rtcache Thanks to removal of LIST_ENTRY of struct route, rtcaches are accessed only by their users. And in existing usages a rtcache is guranteed to be not accessed simultaneously. So the rtcache framework doesn't need any exclusion controls in itself. Synchronize on rtcache_generation with rtlock It's racy if NET_MPSAFE is enabled. Pointed out by joerg@ |
| Makefile | 1.5.6.1 Tue Oct 24 08:55:56 UTC 2017 snj Pull up following revision(s) (requested by ozaki-r in ticket #305): distrib/sets/lists/tests/mi: revision 1.762 sys/net/route.c: revision 1.198-1.201 sys/net/route.h: revision 1.114 sys/netatalk/at_proto.c: revision 1.22 sys/netinet/in_proto.c: revision 1.124 sys/netinet6/in6_proto.c: revision 1.118 sys/netmpls/mpls_proto.c: revision 1.31 sys/netnatm/natm_proto.c: revision 1.18 sys/rump/net/lib/libsockin/sockin.c: revision 1.65 sys/sys/domain.h: revision 1.33 tests/net/route/Makefile: revision 1.6 tests/net/route/t_rtcache.sh: revision 1.1 Add tests of rtcache invalidation Remove unnecessary NULL check of rt_ifp It's always non-NULL. Invalidate rtcache based on a global generation counter The change introduces a global generation counter that is incremented when any routes have been added or deleted. When a rtcache caches a rtentry into itself, it also stores a snapshot of the generation counter. If the snapshot equals to the global counter, the cache is still valid, otherwise invalidated. One drawback of the change is that all rtcaches of all protocol families are invalidated when any routes of any protocol families are added or deleted. If that matters, we should have separate generation counters based on protocol families. This change removes LIST_ENTRY from struct route, which fixes a part of PR kern/52515. Remove the global lock for rtcache Thanks to removal of LIST_ENTRY of struct route, rtcaches are accessed only by their users. And in existing usages a rtcache is guranteed to be not accessed simultaneously. So the rtcache framework doesn't need any exclusion controls in itself. Synchronize on rtcache_generation with rtlock It's racy if NET_MPSAFE is enabled. Pointed out by joerg@ |
| /src/sys/dev/usb/ | |
| usb_subr.c | 1.198 Sun Sep 21 14:30:22 UTC 2014 christos branches: 1.198.2; Merge the 3 copies of devlist2h.awk that deal with 16 bit key and value pairs to the compressed one that matt wrote. Sun Sep 21 14:30:22 UTC 2014 christos branches: 1.198.2; Merge the 3 copies of devlist2h.awk that deal with 16 bit key and value pairs to the compressed one that matt wrote. 1.198.2.40 Mon Aug 28 17:52:28 UTC 2017 skrll Sync with HEAD 1.198.2.39 Tue Jan 03 00:50:50 UTC 2017 skrll Improve handling of roothub device and free up a bus address for LS/FS/HS controllers. 1.198.2.38 Thu Dec 29 08:40:27 UTC 2016 skrll Take bus lock while removing a device from the bus list and announce detach once complete (not before) 1.198.2.37 Thu Dec 29 08:38:19 UTC 2016 skrll Whitespace 1.198.2.36 Mon Dec 05 10:55:18 UTC 2016 skrll Sync with HEAD 1.198.2.35 Wed Oct 26 07:31:24 UTC 2016 skrll PR kern/48243 (inconsistant usage of 'up->parent' in usb_subr.c) Add a KASSERT and comment to explain what's going on. 1.198.2.34 Fri Oct 07 10:37:42 UTC 2016 skrll Sprinkle const 1.198.2.33 Fri Oct 07 10:35:25 UTC 2016 skrll Actually add sshub_p for previous |
| /src/sys/nfs/ | |
| nfs_clntsocket.c | 1.1.42.1 Sun Jul 10 08:38:54 UTC 2016 martin Pull up following revision(s) (requested by christos in ticket #1184): sys/nfs/nfs_socket.c: revision 1.198 sys/nfs/nfs_clntsocket.c: revision 1.5 Serialize all access to the NFS request queue via splsoftnet(). Fixes random crashes. 1.1.40.2 Sun Jul 10 09:42:34 UTC 2016 martin Pull up following revision(s) (requested by christos in ticket #1184): sys/nfs/nfs_socket.c: revision 1.198 sys/nfs/nfs_clntsocket.c: revision 1.5 Serialize all access to the NFS request queue via splsoftnet(). Fixes random crashes. XXX: Pullup-7 |
| /src/sys/dev/ic/ | |
| aic6915reg.h | 1.5.94.1 Fri Jan 31 11:17:32 UTC 2020 martin Pull up following revision(s) (requested by msaitoh in ticket #672): sys/dev/ic/tulip.c: revision 1.198 sys/dev/pci/if_jme.c: revision 1.45 sys/dev/pci/agp.c: revision 1.86 sys/dev/pci/if_lii.c: revision 1.27 sys/dev/acpi/thinkpad_acpi.c: revision 1.47 sys/dev/scsipi/scsipi_base.c: revision 1.183 sys/dev/ic/aic6915reg.h: revision 1.6 Fix undefined behavior in thinkpad_mask_init(). Found by kUBSan. Use unsigned when initialize the transmit completion ring to avoid undefined behavior. Found by kUBSan. Avoid undefined behavior when setting multicast address. found by kUBSan. Use unsigned to avoid undefined behavior in agpattach(). Found by kUBSan. Avoid undefined behavior in jme_mii_write(). Found by kUBSan. Use unsigned to avoid undefined behavior in lii_setmulti(). Use unsigned to avoid undefined behavior in scsipi_{get,put}_tag(). Found by kUBSan. |
| /src/sys/arch/hp300/hp300/ | |
| machdep.c | 1.198 Mon Dec 31 13:38:49 UTC 2007 ad branches: 1.198.6; 1.198.10; 1.198.12; 1.198.14; Remove COMPAT_HPUX. Mon Dec 31 13:38:49 UTC 2007 ad branches: 1.198.6; 1.198.10; 1.198.12; 1.198.14; Remove COMPAT_HPUX. .6; 1.198.10; 1.198.12; 1.198.14; Remove COMPAT_HPUX. .10; 1.198.12; 1.198.14; Remove COMPAT_HPUX. .12; 1.198.14; Remove COMPAT_HPUX. 1.198.14.1 Thu Jul 03 18:37:53 UTC 2008 simonb Sync with head. 1.198.12.4 Wed Sep 24 16:38:49 UTC 2008 wrstuden Merge in changes between wrstuden-revivesa-base-2 and wrstuden-revivesa-base-3. 1.198.12.3 Thu Sep 18 04:33:25 UTC 2008 wrstuden Sync with wrstuden-revivesa-base-2. 1.198.12.2 Wed May 14 01:34:59 UTC 2008 wrstuden Per discussion with ad, remove most of the #include <sys/sa.h> lines as they were including sa.h just for the type(s) needed for syscallargs.h. Instead, create a new file, sys/satypes.h, which contains just the types needed for syscallargs.h. Yes, there's only one now, but that may change and it's probably more likely to change if it'd be difficult to handle. :-) Per discussion with matt at n dot o, add an include of satypes.h to sigtypes.h. Upcall handlers are kinda signal handlers, and signalling is the header file that's already included for syscallargs.h that closest matches SA. This shaves about 3000 lines off of the diff of the branch relative to the base. That also represents about 18% of the total before this checkin. I think this reduction is very good thing. 1.198.12.1 Sat May 10 23:48:43 UTC 2008 wrstuden Initial checkin of re-adding SA. Everything except kern_sa.c compiles in GENERIC for i386. This is still a work-in-progress, but this checkin covers most of the mechanical work (changing signalling to be able to accomidate SA's process-wide signalling and re-adding includes of sys/sa.h and savar.h). Subsequent changes will be much more interesting. Also, kern_sa.c has received partial cleanup. There's still more to do, though. |
| /src/sys/arch/mips/mips/ | |
| trap.c | 1.198 Sun Dec 11 00:18:09 UTC 2005 christos branches: 1.198.4; 1.198.6; 1.198.8; 1.198.10; merge ktrace-lwp. Sun Dec 11 00:18:09 UTC 2005 christos branches: 1.198.4; 1.198.6; 1.198.8; 1.198.10; merge ktrace-lwp. .4; 1.198.6; 1.198.8; 1.198.10; merge ktrace-lwp. .6; 1.198.8; 1.198.10; merge ktrace-lwp. .8; 1.198.10; merge ktrace-lwp. 1.198.10.3 Thu May 11 23:26:59 UTC 2006 elad sync with head 1.198.10.2 Wed Apr 19 02:33:18 UTC 2006 elad sync with head - hopefully this will work 1.198.10.1 Wed Mar 08 00:43:07 UTC 2006 elad Adapt to kernel authorization KPI. I expect *some* lossage here... 1.198.8.4 Sun Sep 03 15:23:21 UTC 2006 yamt sync with head. 1.198.8.3 Fri Aug 11 15:42:22 UTC 2006 yamt sync with head |
| /src/sys/ufs/lfs/ | |
| lfs_segment.c | 1.198 Sun Mar 04 06:03:45 UTC 2007 christos branches: 1.198.2; 1.198.4; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. Sun Mar 04 06:03:45 UTC 2007 christos branches: 1.198.2; 1.198.4; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. .2; 1.198.4; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 1.198.4.1 Wed Jul 11 20:12:46 UTC 2007 mjf Sync with head. 1.198.2.13 Mon Oct 01 16:09:13 UTC 2007 ad Make it compile (XXX not correct). 1.198.2.12 Tue Aug 28 14:03:09 UTC 2007 yamt - mark aiodone workqueue MPSAFE. - make lfs callbacks acquire kernel_lock by themselves. ok'ed by Andrew Doran. 1.198.2.11 Tue Aug 28 13:33:40 UTC 2007 yamt make this compilable with DEBUG. 1.198.2.10 Fri Aug 24 23:28:47 UTC 2007 ad Sync with buffer cache locking changes. See buf.h/vfs_bio.c for details. Some minor portions are incomplete and needs to be verified as a whole. 1.198.2.9 Mon Aug 20 21:28:27 UTC 2007 ad Sync with HEAD. 1.198.2.8 Sun Aug 19 19:25:01 UTC 2007 ad - Back out the biodone() changes. - Eliminate B_ERROR (from HEAD). |
| /src/sys/dev/scsipi/ | |
| st.c | 1.198 Sun Jul 29 00:50:23 UTC 2007 ad branches: 1.198.4; 1.198.6; 1.198.8; 1.198.10; It's not a good idea for device drivers to modify b_flags, as they don't need to understand the locking around that field. Instead of setting B_ERROR, set b_error instead. b_error is 'owned' by whoever completes the I/O request. Sun Jul 29 00:50:23 UTC 2007 ad branches: 1.198.4; 1.198.6; 1.198.8; 1.198.10; It's not a good idea for device drivers to modify b_flags, as they don't need to understand the locking around that field. Instead of setting B_ERROR, set b_error instead. b_error is 'owned' by whoever completes the I/O request. .4; 1.198.6; 1.198.8; 1.198.10; It's not a good idea for device drivers to modify b_flags, as they don't need to understand the locking around that field. Instead of setting B_ERROR, set b_error instead. b_error is 'owned' by whoever completes the I/O request. .6; 1.198.8; 1.198.10; It's not a good idea for device drivers to modify b_flags, as they don't need to understand the locking around that field. Instead of setting B_ERROR, set b_error instead. b_error is 'owned' by whoever completes the I/O request. .8; 1.198.10; It's not a good idea for device drivers to modify b_flags, as they don't need to understand the locking around that field. Instead of setting B_ERROR, set b_error instead. b_error is 'owned' by whoever completes the I/O request. 1.198.10.2 Sun Jul 29 00:50:24 UTC 2007 ad It's not a good idea for device drivers to modify b_flags, as they don't need to understand the locking around that field. Instead of setting B_ERROR, set b_error instead. b_error is 'owned' by whoever completes the I/O request. 1.198.10.1 Sun Jul 29 00:50:23 UTC 2007 ad file st.c was added on branch matt-mips64 on 2007-07-29 12:50:24 +0000 1.198.8.2 Sun Oct 14 11:48:18 UTC 2007 yamt sync with head. 1.198.8.1 Sat Oct 06 15:31:31 UTC 2007 yamt sync with head. 1.198.6.1 Tue Nov 06 23:30:16 UTC 2007 matt sync with HEAD |
| /src/distrib/arc/ramdisk/ | |
| list | 1.23.46.1 Sun Jun 07 00:35:01 UTC 2020 martin Pull up following revision(s) (requested by tsutsui in ticket #939): distrib/arc/ramdisk/Makefile: revision 1.29 sys/arch/arc/arc/arcbios.c: revision 1.18 distrib/arc/ramdisk/list: revision 1.24 sys/arch/arc/conf/GENERIC: revision 1.198 sys/arch/arc/conf/RAMDISK: revision 1.83 distrib/arc/ramdisk/Makefile: revision 1.28 bump ramdisk size to 3200k for gcc 8. yay! - Make sure to preserve MIPS_CURLWP (t8) register from ARC BIOS calls. Fixes silent hangup right after starting a kernel on my Express5800/230 R4400 PCI (finally I've repaired its PSU and RTC). Reviewed by soda@. Maybe other ARC machines are also affected. Note GXemul was not affected by this problem because it doesn't have actual ARC BIOS ROM and emulates ARC functions internally. Should be pulled up to at least netbsd-9. - Shrink ramdisk to make RAMDISK kernel smaller for ARC BIOS restriction. Try to shrink kernels to smaller than ~6MB due to ARC BIOS restriction. Currently NetBSD/arc kernels are loaded at 0x80200000 (on some machines ARC BIOS uses regions before it) and ARC BIOS also uses around 0x807f0000, so bootloader fails on loading >6MB kernels. Note GXemul doesn't have this restriction because it loads a kernel directly via a command line argument. Tested by installing using sysinst on RAMDISK kernel on netbsd-9. Should be pulled up to netbsd-9. |
| Makefile | 1.26.12.1 Sun Jun 07 00:35:01 UTC 2020 martin Pull up following revision(s) (requested by tsutsui in ticket #939): distrib/arc/ramdisk/Makefile: revision 1.29 sys/arch/arc/arc/arcbios.c: revision 1.18 distrib/arc/ramdisk/list: revision 1.24 sys/arch/arc/conf/GENERIC: revision 1.198 sys/arch/arc/conf/RAMDISK: revision 1.83 distrib/arc/ramdisk/Makefile: revision 1.28 bump ramdisk size to 3200k for gcc 8. yay! - Make sure to preserve MIPS_CURLWP (t8) register from ARC BIOS calls. Fixes silent hangup right after starting a kernel on my Express5800/230 R4400 PCI (finally I've repaired its PSU and RTC). Reviewed by soda@. Maybe other ARC machines are also affected. Note GXemul was not affected by this problem because it doesn't have actual ARC BIOS ROM and emulates ARC functions internally. Should be pulled up to at least netbsd-9. - Shrink ramdisk to make RAMDISK kernel smaller for ARC BIOS restriction. Try to shrink kernels to smaller than ~6MB due to ARC BIOS restriction. Currently NetBSD/arc kernels are loaded at 0x80200000 (on some machines ARC BIOS uses regions before it) and ARC BIOS also uses around 0x807f0000, so bootloader fails on loading >6MB kernels. Note GXemul doesn't have this restriction because it loads a kernel directly via a command line argument. Tested by installing using sysinst on RAMDISK kernel on netbsd-9. Should be pulled up to netbsd-9. |
| /src/sys/arch/arc/arc/ | |
| arcbios.c | 1.17.68.1 Sun Jun 07 00:35:01 UTC 2020 martin Pull up following revision(s) (requested by tsutsui in ticket #939): distrib/arc/ramdisk/Makefile: revision 1.29 sys/arch/arc/arc/arcbios.c: revision 1.18 distrib/arc/ramdisk/list: revision 1.24 sys/arch/arc/conf/GENERIC: revision 1.198 sys/arch/arc/conf/RAMDISK: revision 1.83 distrib/arc/ramdisk/Makefile: revision 1.28 bump ramdisk size to 3200k for gcc 8. yay! - Make sure to preserve MIPS_CURLWP (t8) register from ARC BIOS calls. Fixes silent hangup right after starting a kernel on my Express5800/230 R4400 PCI (finally I've repaired its PSU and RTC). Reviewed by soda@. Maybe other ARC machines are also affected. Note GXemul was not affected by this problem because it doesn't have actual ARC BIOS ROM and emulates ARC functions internally. Should be pulled up to at least netbsd-9. - Shrink ramdisk to make RAMDISK kernel smaller for ARC BIOS restriction. Try to shrink kernels to smaller than ~6MB due to ARC BIOS restriction. Currently NetBSD/arc kernels are loaded at 0x80200000 (on some machines ARC BIOS uses regions before it) and ARC BIOS also uses around 0x807f0000, so bootloader fails on loading >6MB kernels. Note GXemul doesn't have this restriction because it loads a kernel directly via a command line argument. Tested by installing using sysinst on RAMDISK kernel on netbsd-9. Should be pulled up to netbsd-9. |
| /src/sys/sys/ | |
| event.h | 1.23.36.1 Sat Jul 08 16:52:27 UTC 2017 snj Pull up following revision(s) (requested by christos in ticket #1442): sys/kern/kern_event.c: revision 1.92 via patch sys/miscfs/genfs/genfs_vnops.c: revision 1.198 via patch sys/sys/event.h: revision 1.30 via patch Provide EVFILT_WRITE; this is what FreeBSD does and go wants it. Makes go unit tests pass. -- fix file descriptor locking (from joerg). fixes kernel crashes by running go 1.23.32.1 Sat Jul 08 16:51:56 UTC 2017 snj Pull up following revision(s) (requested by christos in ticket #1442): sys/kern/kern_event.c: revision 1.92 via patch sys/miscfs/genfs/genfs_vnops.c: revision 1.198 via patch sys/sys/event.h: revision 1.30 via patch Provide EVFILT_WRITE; this is what FreeBSD does and go wants it. Makes go unit tests pass. -- fix file descriptor locking (from joerg). fixes kernel crashes by running go 1.23.28.1 Sat Jul 08 16:53:24 UTC 2017 snj Pull up following revision(s) (requested by christos in ticket #1442): sys/kern/kern_event.c: revision 1.92 via patch sys/miscfs/genfs/genfs_vnops.c: revision 1.198 via patch sys/sys/event.h: revision 1.30 via patch Provide EVFILT_WRITE; this is what FreeBSD does and go wants it. Makes go unit tests pass. -- fix file descriptor locking (from joerg). fixes kernel crashes by running go 1.28.2.1 Wed Jul 05 20:04:40 UTC 2017 snj Pull up following revision(s) (requested by christos in ticket #91): sys/kern/kern_event.c: revision 1.92 sys/miscfs/genfs/genfs_vnops.c: revision 1.198 sys/sys/event.h: revision 1.30 Provide EVFILT_WRITE; this is what FreeBSD does and go wants it. Makes go unit tests pass. -- fix file descriptor locking (from joerg). fixes kernel crashes by running go |
| /src/sys/kern/ | |
| init_sysent.c | 1.198 Fri Sep 07 18:58:46 UTC 2007 rmind branches: 1.198.4; 1.198.6; Regen syscalls. Fri Sep 07 18:58:46 UTC 2007 rmind branches: 1.198.4; 1.198.6; Regen syscalls. .4; 1.198.6; Regen syscalls. 1.198.6.3 Mon Feb 18 21:06:45 UTC 2008 mjf Sync with HEAD. 1.198.6.2 Thu Dec 27 00:45:54 UTC 2007 mjf Sync with HEAD. 1.198.6.1 Mon Nov 19 00:48:34 UTC 2007 mjf Sync with HEAD. 1.198.4.1 Tue Nov 13 16:01:54 UTC 2007 bouyer Sync with HEAD |
| /src/sys/fs/puffs/ | |
| puffs_vnops.c | 1.198 Tue Nov 04 09:14:42 UTC 2014 manu branches: 1.198.2; PUFFS direct I/O cache fix There are a few situations where we must take care of the cache if direct I/O was enabled: - if we do direct I/O for write but not for read, then any write must invalidate the cache so that a reader gets the written data and not the not-updated cache. - if we used a vnode without direct I/O and it is enabled for writing, we must flush the cache before compeling the open operation, so that the cachec write are not lost. And at inactive time, we wipe direct I/O flags so that a new open without direct I/O does not inherit direct I/O. Tue Nov 04 09:14:42 UTC 2014 manu branches: 1.198.2; PUFFS direct I/O cache fix There are a few situations where we must take care of the cache if direct I/O was enabled: - if we do direct I/O for write but not for read, then any write must invalidate the cache so that a reader gets the written data and not the not-updated cache. - if we used a vnode without direct I/O and it is enabled for writing, we must flush the cache before compeling the open operation, so that the cachec write are not lost. And at inactive time, we wipe direct I/O flags so that a new open without direct I/O does not inherit direct I/O. 1.163.2.10 Sun Nov 09 11:05:15 UTC 2014 msaitoh Pull up following revision(s) (requested by manu in ticket #1187): sys/fs/puffs/puffs_vnops.c: revision 1.198 PUFFS direct I/O cache fix There are a few situations where we must take care of the cache if direct I/O was enabled: - if we do direct I/O for write but not for read, then any write must invalidate the cache so that a reader gets the written data and not the not-updated cache. - if we used a vnode without direct I/O and it is enabled for writing, we must flush the cache before compeling the open operation, so that the cachec write are not lost. And at inactive time, we wipe direct I/O flags so that a new open without direct I/O does not inherit direct I/O. 1.182.2.10 Sun Nov 09 10:07:31 UTC 2014 msaitoh Pull up following revision(s) (requested by manu in ticket #193): sys/fs/puffs/puffs_vnops.c: revision 1.198 PUFFS direct I/O cache fix There are a few situations where we must take care of the cache if direct I/O was enabled: - if we do direct I/O for write but not for read, then any write must invalidate the cache so that a reader gets the written data and not the not-updated cache. - if we used a vnode without direct I/O and it is enabled for writing, we must flush the cache before compeling the open operation, so that the cachec write are not lost. And at inactive time, we wipe direct I/O flags so that a new open without direct I/O does not inherit direct I/O. 1.198.2.5 Mon Aug 28 17:53:06 UTC 2017 skrll Sync with HEAD 1.198.2.4 Wed Oct 05 20:56:01 UTC 2016 skrll Sync with HEAD 1.198.2.3 Sat Jul 09 20:25:19 UTC 2016 skrll Sync with HEAD 1.198.2.2 Sat Jun 06 14:40:21 UTC 2015 skrll Sync with HEAD 1.198.2.1 Mon Apr 06 15:18:19 UTC 2015 skrll Sync with HEAD |
| /src/sys/miscfs/procfs/ | |
| files.procfs | 1.11.6.1 Thu Apr 12 13:42:48 UTC 2018 martin Pull up following revision(s) (requested by kamil in ticket #713): sys/modules/procfs/Makefile: revision 1.4 sys/miscfs/procfs/procfs_vfsops.c: revision 1.98 bin/ps/ps.1: revision 1.108 sys/compat/linux/arch/i386/linux_ptrace.c: revision 1.32 sys/miscfs/procfs/procfs_vnops.c: revision 1.198 sys/kern/sys_ptrace_common.c: revision 1.23 sys/kern/sys_ptrace_common.c: revision 1.24 sbin/mount_procfs/mount_procfs.8: revision 1.36 sys/kern/sys_ptrace_common.c: revision 1.25 sys/kern/sys_ptrace.c: revision 1.5 sys/compat/linux/arch/powerpc/linux_ptrace.c: revision 1.30 sys/sys/proc.h: revision 1.342 sys/kern/sys_ptrace_common.c: revision 1.26 sys/miscfs/procfs/procfs_ctl.c: file removal sys/kern/sys_ptrace_common.c: revision 1.27 sys/miscfs/procfs/procfs_subr.c: revision 1.109 sys/kern/sys_ptrace_common.c: revision 1.28 sys/secmodel/extensions/secmodel_extensions.c: revision 1.8 sys/kern/sys_ptrace_common.c: revision 1.29 sys/sys/ptrace.h: revision 1.62 sys/compat/netbsd32/netbsd32_signal.c: revision 1.45 share/man/man9/kauth.9: revision 1.109 sys/miscfs/procfs/files.procfs: revision 1.12 sys/compat/netbsd32/netbsd32.h: revision 1.115 sys/miscfs/procfs/procfs.h: revision 1.72 sys/compat/netbsd32/netbsd32_ptrace.c: revision 1.5 sys/kern/kern_sig.c: revision 1.337 sys/sys/kauth.h: revision 1.75 sys/sys/sysctl.h: revision 1.224 sys/kern/sys_ptrace_common.c: revision 1.30 sys/kern/sys_ptrace_common.c: revision 1.31 sys/kern/sys_ptrace_common.c: revision 1.32 sys/kern/sys_ptrace_common.c: revision 1.33 sys/compat/linux/arch/arm/linux_ptrace.c: revision 1.20 sys/kern/sys_ptrace_common.c: revision 1.34 sys/kern/sys_ptrace_common.c: revision 1.36 sys/kern/kern_proc.c: revision 1.207 sys/kern/kern_exit.c: revision 1.269 doc/TODO.ptrace: revision 1.29 Make {s,g}et{db,fp,}regs work again for PK_32 processes XXX: pullup-8 add disgusting magic to handle compat_netbsd32 as a module. use process_*reg32 instead of struct *reg32. Remove the filesystem tracing feature This is a legacy interface from 4.4BSD, and it was introduced to overcome shortcomings of ptrace(2) at that time, which are no longer relevant (performance). Today /proc/#/ctl offers a narrow subset of ptrace(2) commands and is not applicable for modern applications use beyond simplistic tracing scenarios. This removal will simplify kernel internals. Users will still be able to use all the other /proc files. This change won't affect other procfs files neither Linux compat features within mount_procfs(8). /proc/#/ctl isn't available on Linux. Remove: - /proc/#/ctl from mount_procfs(8) - P_FSTRACE note from the documentation of ps(1) - /proc/#/ctl and filesystem tracing documentation from mount_procfs(8) - KAUTH_REQ_PROCESS_PROCFS_CTL documentation from kauth(9) - source code file miscfs/procfs/procfs_ctl.c - PFSctl and procfs_doctl() from sys/miscfs/procfs/procfs.h - KAUTH_REQ_PROCESS_PROCFS_CTL from sys/sys/kauth.h - PSL_FSTRACE (0x00010000) from sys/sys/proc.h - P_FSTRACE (0x00010000) from sys/sys/sysctl.h Reduce code complexity after removal of this functionality. Update TODO.ptrace accordingly: remove two entries about /proc tracing. Do not keep legacy notes as comments in the headers about removed PSL_FSTRACE / P_FSTRACE, as this interface had little number of users (close or equal to zero). Proposed on tech-kern@. All filesystem tracing utility users are encouraged to switch to ptrace(2). Sponsored by <The NetBSD Foundation> untangle the mess: - factor out common code - break each ptrace subcall to its own sub-function .. more to come ... - reduce ifdef ugliness by moving it up top. - factor out PT_IO and make PT_{READ,WRITE}_{I,D} use it - factor out PT_DUMPCORE - factor out sendsig code .. more to come ... handle siginfo requests for ptrace32 ptrace: Partially undo PT_{READ,WRITE}_{I,D} and unbreak these commands The refactored code did not work and was generating EFAULT. Sponsored by <The NetBSD Foundation> Merge the code back; the problem was that since we are reading/writing to a kernel address for PT_{READ,WRITE}_{I,D} we need the kernel vmspace. provide separate read and write functions to accomodate register functions that need a size argument. don't ignore error from copyout_piod Use the proper process (the tracee) to get information about lwps and registers and the tracer for vmspace. Add new sysctl(3) entry: security.models.extensions.user_set_dbregs Model this new sysctl(3) entry after "user_set_cpu_affinity" in the same level of sysctl(3) switches. Allow to read unconditionally Debug Registers (no change here). This is convenient as even if a user of a debugger does not use hardware assisted watchpoints/breakpoints, a debugger can still prompt these values to store in an internal cache with context of registers. Reading them should have no security concerns. Add a paranoid MI switch that prohibits by default setting these registers by a regular user (non-superuser). Make this switch disabled by default. There are enough reserved bits out there to allow using them unconditionally on hardened hosts. Features shipped with Debug Registers are optional features in debuggers. There is no reduction in elementary functionality. Reviewed by <christos> Sponsored by <The NetBSD Foundation> |
| /src/sys/modules/procfs/ | |
| Makefile | 1.3.6.1 Thu Apr 12 13:42:48 UTC 2018 martin Pull up following revision(s) (requested by kamil in ticket #713): sys/modules/procfs/Makefile: revision 1.4 sys/miscfs/procfs/procfs_vfsops.c: revision 1.98 bin/ps/ps.1: revision 1.108 sys/compat/linux/arch/i386/linux_ptrace.c: revision 1.32 sys/miscfs/procfs/procfs_vnops.c: revision 1.198 sys/kern/sys_ptrace_common.c: revision 1.23 sys/kern/sys_ptrace_common.c: revision 1.24 sbin/mount_procfs/mount_procfs.8: revision 1.36 sys/kern/sys_ptrace_common.c: revision 1.25 sys/kern/sys_ptrace.c: revision 1.5 sys/compat/linux/arch/powerpc/linux_ptrace.c: revision 1.30 sys/sys/proc.h: revision 1.342 sys/kern/sys_ptrace_common.c: revision 1.26 sys/miscfs/procfs/procfs_ctl.c: file removal sys/kern/sys_ptrace_common.c: revision 1.27 sys/miscfs/procfs/procfs_subr.c: revision 1.109 sys/kern/sys_ptrace_common.c: revision 1.28 sys/secmodel/extensions/secmodel_extensions.c: revision 1.8 sys/kern/sys_ptrace_common.c: revision 1.29 sys/sys/ptrace.h: revision 1.62 sys/compat/netbsd32/netbsd32_signal.c: revision 1.45 share/man/man9/kauth.9: revision 1.109 sys/miscfs/procfs/files.procfs: revision 1.12 sys/compat/netbsd32/netbsd32.h: revision 1.115 sys/miscfs/procfs/procfs.h: revision 1.72 sys/compat/netbsd32/netbsd32_ptrace.c: revision 1.5 sys/kern/kern_sig.c: revision 1.337 sys/sys/kauth.h: revision 1.75 sys/sys/sysctl.h: revision 1.224 sys/kern/sys_ptrace_common.c: revision 1.30 sys/kern/sys_ptrace_common.c: revision 1.31 sys/kern/sys_ptrace_common.c: revision 1.32 sys/kern/sys_ptrace_common.c: revision 1.33 sys/compat/linux/arch/arm/linux_ptrace.c: revision 1.20 sys/kern/sys_ptrace_common.c: revision 1.34 sys/kern/sys_ptrace_common.c: revision 1.36 sys/kern/kern_proc.c: revision 1.207 sys/kern/kern_exit.c: revision 1.269 doc/TODO.ptrace: revision 1.29 Make {s,g}et{db,fp,}regs work again for PK_32 processes XXX: pullup-8 add disgusting magic to handle compat_netbsd32 as a module. use process_*reg32 instead of struct *reg32. Remove the filesystem tracing feature This is a legacy interface from 4.4BSD, and it was introduced to overcome shortcomings of ptrace(2) at that time, which are no longer relevant (performance). Today /proc/#/ctl offers a narrow subset of ptrace(2) commands and is not applicable for modern applications use beyond simplistic tracing scenarios. This removal will simplify kernel internals. Users will still be able to use all the other /proc files. This change won't affect other procfs files neither Linux compat features within mount_procfs(8). /proc/#/ctl isn't available on Linux. Remove: - /proc/#/ctl from mount_procfs(8) - P_FSTRACE note from the documentation of ps(1) - /proc/#/ctl and filesystem tracing documentation from mount_procfs(8) - KAUTH_REQ_PROCESS_PROCFS_CTL documentation from kauth(9) - source code file miscfs/procfs/procfs_ctl.c - PFSctl and procfs_doctl() from sys/miscfs/procfs/procfs.h - KAUTH_REQ_PROCESS_PROCFS_CTL from sys/sys/kauth.h - PSL_FSTRACE (0x00010000) from sys/sys/proc.h - P_FSTRACE (0x00010000) from sys/sys/sysctl.h Reduce code complexity after removal of this functionality. Update TODO.ptrace accordingly: remove two entries about /proc tracing. Do not keep legacy notes as comments in the headers about removed PSL_FSTRACE / P_FSTRACE, as this interface had little number of users (close or equal to zero). Proposed on tech-kern@. All filesystem tracing utility users are encouraged to switch to ptrace(2). Sponsored by <The NetBSD Foundation> untangle the mess: - factor out common code - break each ptrace subcall to its own sub-function .. more to come ... - reduce ifdef ugliness by moving it up top. - factor out PT_IO and make PT_{READ,WRITE}_{I,D} use it - factor out PT_DUMPCORE - factor out sendsig code .. more to come ... handle siginfo requests for ptrace32 ptrace: Partially undo PT_{READ,WRITE}_{I,D} and unbreak these commands The refactored code did not work and was generating EFAULT. Sponsored by <The NetBSD Foundation> Merge the code back; the problem was that since we are reading/writing to a kernel address for PT_{READ,WRITE}_{I,D} we need the kernel vmspace. provide separate read and write functions to accomodate register functions that need a size argument. don't ignore error from copyout_piod Use the proper process (the tracee) to get information about lwps and registers and the tracer for vmspace. Add new sysctl(3) entry: security.models.extensions.user_set_dbregs Model this new sysctl(3) entry after "user_set_cpu_affinity" in the same level of sysctl(3) switches. Allow to read unconditionally Debug Registers (no change here). This is convenient as even if a user of a debugger does not use hardware assisted watchpoints/breakpoints, a debugger can still prompt these values to store in an internal cache with context of registers. Reading them should have no security concerns. Add a paranoid MI switch that prohibits by default setting these registers by a regular user (non-superuser). Make this switch disabled by default. There are enough reserved bits out there to allow using them unconditionally on hardened hosts. Features shipped with Debug Registers are optional features in debuggers. There is no reduction in elementary functionality. Reviewed by <christos> Sponsored by <The NetBSD Foundation> |
| /src/sys/arch/sparc64/conf/ | |
| GENERIC | 1.198 Sat Mar 25 13:24:08 UTC 2017 martin branches: 1.198.6; Add virtio PCI devices, some of them mostly untested so far Sat Mar 25 13:24:08 UTC 2017 martin branches: 1.198.6; Add virtio PCI devices, some of them mostly untested so far 1.198.6.5 Wed Apr 18 14:45:08 UTC 2018 martin Requested by skrll in ticket #60: sys/arch/amd64/conf/GENERIC sys/arch/amd64/conf/XEN3_DOM0 sys/arch/amd64/conf/XEN3_DOMU sys/arch/cobalt/conf/GENERIC sys/arch/evbarm/conf/BEAGLEBONE sys/arch/evbarm/conf/BEAGLEBOARD sys/arch/evbarm/conf/BEAGLEBOARDXM sys/arch/evbarm/conf/GENERIC.common sys/arch/i386/conf/GENERIC sys/arch/i386/conf/XEN3_DOM0 sys/arch/i386/conf/XEN3_DOMU sys/arch/mvmeppc/conf/GENERIC sys/arch/shark/conf/GENERIC sys/arch/sparc64/conf/GENERIC sys/arch/zaurus/conf/GENERIC Remove option DIAGNOSTIC. 1.198.6.4 Fri Jan 26 14:28:13 UTC 2018 martin Pull up following revision(s) (requested by sevan in ticket #510): sys/arch/sun3/conf/GENERIC3X: revision 1.130 sys/arch/sparc64/conf/GENERIC: revision 1.203 sys/arch/news68k/conf/LIBERO: revision 1.66 sys/arch/amiga/conf/DRACO: revision 1.185 sys/arch/evbarm/conf/MV2120: revision 1.35 sys/arch/x68k/conf/GENERIC: revision 1.187 sys/arch/rs6000/conf/GENERIC: revision 1.39 sys/arch/news68k/conf/GENERIC_TINY: revision 1.86 sys/arch/i386/conf/XEN3_DOMU: revision 1.88 sys/arch/iyonix/conf/GENERIC: revision 1.97 sys/arch/evbarm64/conf/A64EMUL: revision 1.11 sys/arch/mvme68k/conf/GENERIC: revision 1.98 sys/arch/acorn32/conf/GENERIC: revision 1.124 sys/arch/i386/conf/XEN3_DOM0: revision 1.125 sys/arch/cobalt/conf/INSTALL: revision 1.65 sys/arch/macppc/conf/GENERIC_601: revision 1.16 sys/arch/hppa/conf/GENERIC: revision 1.17 sys/arch/amiga/conf/GENERIC.in: revision 1.137 sys/arch/sgimips/conf/GENERIC32_IP12: revision 1.33 sys/arch/netwinder/conf/GENERIC: revision 1.134 sys/arch/amd64/conf/XEN3_DOMU: revision 1.83 sys/arch/mac68k/conf/GENERIC: revision 1.225 sys/arch/arc/conf/RPC44: revision 1.54 sys/arch/mipsco/conf/GENERIC: revision 1.92 sys/arch/cats/conf/GENERIC: revision 1.166 sys/arch/amd64/conf/XEN3_DOM0: revision 1.145 sys/arch/amigappc/conf/GENERIC: revision 1.33 sys/arch/sun3/conf/GENERIC: revision 1.176 sys/arch/news68k/conf/GENERIC: revision 1.130 sys/arch/hpcsh/conf/GENERIC: revision 1.110 sys/arch/hp300/conf/GENERIC: revision 1.198 sys/arch/atari/conf/GENERIC.in: revision 1.115 sys/arch/sparc/conf/MRCOFFEE: revision 1.54 sys/arch/evbppc/conf/EXPLORA451: revision 1.62 sys/arch/cesfic/conf/GENERIC: revision 1.69 sys/arch/vax/conf/GENERIC: revision 1.204 sys/arch/sgimips/conf/GENERIC32_IP3x: revision 1.115 sys/arch/sgimips/conf/GENERIC32_IP2x: revision 1.112 sys/arch/sparc/conf/GENERIC: revision 1.258 sys/arch/next68k/conf/GENERIC: revision 1.145 sys/arch/evbarm/conf/MMNET_GENERIC: revision 1.34 sys/arch/prep/conf/GENERIC: revision 1.185 sys/arch/amiga/conf/INSTALL: revision 1.129 sys/arch/newsmips/conf/GENERIC: revision 1.133 sys/arch/cobalt/conf/GENERIC: revision 1.156 sys/arch/sun2/conf/GENERIC: revision 1.99 sys/arch/luna68k/conf/INSTALL: revision 1.25 sys/arch/amigappc/conf/NULL: revision 1.53 sys/arch/acorn26/conf/GENERIC: revision 1.85 sys/arch/vax/conf/VAX780: revision 1.25 sys/arch/luna68k/conf/GENERIC: revision 1.125 sys/arch/ews4800mips/conf/GENERIC: revision 1.56 sys/arch/macppc/conf/POWERMAC_G5: revision 1.29 sys/arch/arc/conf/GENERIC: revision 1.189 sys/arch/macppc/conf/MAMBO: revision 1.27 sys/arch/acorn32/conf/EB7500ATX: revision 1.64 sys/arch/pmax/conf/GENERIC: revision 1.196 sys/arch/pmax/conf/GENERIC64: revision 1.28 sys/arch/amiga/conf/GENERIC: revision 1.319 sys/arch/evbarm/conf/MPCSA_GENERIC: revision 1.55 sys/arch/macppc/conf/GENERIC: revision 1.339 sys/arch/emips/conf/GENERIC: revision 1.21 sys/arch/sandpoint/conf/GENERIC: revision 1.97 sys/arch/landisk/conf/GENERIC: revision 1.58 sys/arch/bebox/conf/GENERIC: revision 1.157 sys/arch/alpha/conf/GENERIC: revision 1.379 Alternate buffer queue strategies no longer considered experimental, update description. Discussed on tech-kern http://mail-index.netbsd.org/tech-kern/2018/01/21/msg023002.html .6.4 Fri Jan 26 14:28:13 UTC 2018 martin Pull up following revision(s) (requested by sevan in ticket #510): sys/arch/sun3/conf/GENERIC3X: revision 1.130 sys/arch/sparc64/conf/GENERIC: revision 1.203 sys/arch/news68k/conf/LIBERO: revision 1.66 sys/arch/amiga/conf/DRACO: revision 1.185 sys/arch/evbarm/conf/MV2120: revision 1.35 sys/arch/x68k/conf/GENERIC: revision 1.187 sys/arch/rs6000/conf/GENERIC: revision 1.39 sys/arch/news68k/conf/GENERIC_TINY: revision 1.86 sys/arch/i386/conf/XEN3_DOMU: revision 1.88 sys/arch/iyonix/conf/GENERIC: revision 1.97 sys/arch/evbarm64/conf/A64EMUL: revision 1.11 sys/arch/mvme68k/conf/GENERIC: revision 1.98 sys/arch/acorn32/conf/GENERIC: revision 1.124 sys/arch/i386/conf/XEN3_DOM0: revision 1.125 sys/arch/cobalt/conf/INSTALL: revision 1.65 sys/arch/macppc/conf/GENERIC_601: revision 1.16 sys/arch/hppa/conf/GENERIC: revision 1.17 sys/arch/amiga/conf/GENERIC.in: revision 1.137 sys/arch/sgimips/conf/GENERIC32_IP12: revision 1.33 sys/arch/netwinder/conf/GENERIC: revision 1.134 sys/arch/amd64/conf/XEN3_DOMU: revision 1.83 sys/arch/mac68k/conf/GENERIC: revision 1.225 sys/arch/arc/conf/RPC44: revision 1.54 sys/arch/mipsco/conf/GENERIC: revision 1.92 sys/arch/cats/conf/GENERIC: revision 1.166 sys/arch/amd64/conf/XEN3_DOM0: revision 1.145 sys/arch/amigappc/conf/GENERIC: revision 1.33 sys/arch/sun3/conf/GENERIC: revision 1.176 sys/arch/news68k/conf/GENERIC: revision 1.130 sys/arch/hpcsh/conf/GENERIC: revision 1.110 sys/arch/hp300/conf/GENERIC: revision 1.198 sys/arch/atari/conf/GENERIC.in: revision 1.115 sys/arch/sparc/conf/MRCOFFEE: revision 1.54 sys/arch/evbppc/conf/EXPLORA451: revision 1.62 sys/arch/cesfic/conf/GENERIC: revision 1.69 sys/arch/vax/conf/GENERIC: revision 1.204 sys/arch/sgimips/conf/GENERIC32_IP3x: revision 1.115 sys/arch/sgimips/conf/GENERIC32_IP2x: revision 1.112 sys/arch/sparc/conf/GENERIC: revision 1.258 sys/arch/next68k/conf/GENERIC: revision 1.145 sys/arch/evbarm/conf/MMNET_GENERIC: revision 1.34 sys/arch/prep/conf/GENERIC: revision 1.185 sys/arch/amiga/conf/INSTALL: revision 1.129 sys/arch/newsmips/conf/GENERIC: revision 1.133 sys/arch/cobalt/conf/GENERIC: revision 1.156 sys/arch/sun2/conf/GENERIC: revision 1.99 sys/arch/luna68k/conf/INSTALL: revision 1.25 sys/arch/amigappc/conf/NULL: revision 1.53 sys/arch/acorn26/conf/GENERIC: revision 1.85 sys/arch/vax/conf/VAX780: revision 1.25 sys/arch/luna68k/conf/GENERIC: revision 1.125 sys/arch/ews4800mips/conf/GENERIC: revision 1.56 sys/arch/macppc/conf/POWERMAC_G5: revision 1.29 sys/arch/arc/conf/GENERIC: revision 1.189 sys/arch/macppc/conf/MAMBO: revision 1.27 sys/arch/acorn32/conf/EB7500ATX: revision 1.64 sys/arch/pmax/conf/GENERIC: revision 1.196 sys/arch/pmax/conf/GENERIC64: revision 1.28 sys/arch/amiga/conf/GENERIC: revision 1.319 sys/arch/evbarm/conf/MPCSA_GENERIC: revision 1.55 sys/arch/macppc/conf/GENERIC: revision 1.339 sys/arch/emips/conf/GENERIC: revision 1.21 sys/arch/sandpoint/conf/GENERIC: revision 1.97 sys/arch/landisk/conf/GENERIC: revision 1.58 sys/arch/bebox/conf/GENERIC: revision 1.157 sys/arch/alpha/conf/GENERIC: revision 1.379 Alternate buffer queue strategies no longer considered experimental, update description. Discussed on tech-kern http://mail-index.netbsd.org/tech-kern/2018/01/21/msg023002.html 1.198.6.3 Thu Aug 31 08:41:33 UTC 2017 bouyer apply paych, requested by maxv in ticket #237: sys/arch/amiga/conf/DRACO patch sys/arch/amiga/conf/GENERIC patch sys/arch/amiga/conf/GENERIC.in patch sys/arch/i386/conf/ALL patch sys/arch/i386/conf/GENERIC patch sys/arch/i386/conf/XEN3_DOM0 patch sys/arch/i386/conf/XEN3_DOMU patch sys/arch/sparc/conf/GENERIC patch sys/arch/sparc/conf/KRUPS patch sys/arch/sparc/conf/MRCOFFEE patch sys/arch/sparc/conf/TADPOLE3GX patch sys/arch/sparc64/conf/GENERIC patch sys/arch/sparc64/conf/NONPLUS64 patch sys/kern/kern_exec.c patch Disables compat_svr4 and compat_svr4_32 on each architecture, and removes the associated module autoload entries. 1.198.6.2 Tue Aug 29 09:42:19 UTC 2017 martin Requested by skrll in ticket #60: sys/arch/amd64/conf/GENERIC sys/arch/amd64/conf/XEN3_DOM0 sys/arch/amd64/conf/XEN3_DOMU sys/arch/cobalt/conf/GENERIC sys/arch/evbarm/conf/BEAGLEBONE sys/arch/evbarm/conf/BEAGLEBOARD sys/arch/evbarm/conf/BEAGLEBOARDXM sys/arch/evbarm/conf/GENERIC.common sys/arch/i386/conf/GENERIC sys/arch/i386/conf/XEN3_DOM0 sys/arch/i386/conf/XEN3_DOMU sys/arch/mvmeppc/conf/GENERIC sys/arch/shark/conf/GENERIC sys/arch/sparc64/conf/GENERIC sys/arch/zaurus/conf/GENERIC Re-enable option DIAGNOSTIC for now, will remove it again later. 1.198.6.1 Wed Jul 05 13:58:48 UTC 2017 martin Remove options DIAGNOSTIC/DEBUG and PAX debug options. Requested by snj in #60. |
| /src/sys/netinet/ | |
| tcp_output.c | 1.198 Mon Feb 12 08:22:26 UTC 2018 maxv branches: 1.198.2; Remove unused argument from tcp_signature_getsav. Mon Feb 12 08:22:26 UTC 2018 maxv branches: 1.198.2; Remove unused argument from tcp_signature_getsav. 1.198.2.6 Fri Jan 18 08:50:58 UTC 2019 pgoyette Synch with HEAD 1.198.2.5 Thu Sep 06 06:56:45 UTC 2018 pgoyette Sync with HEAD Resolve a couple of conflicts (result of the uimin/uimax changes) 1.198.2.4 Mon May 21 04:36:16 UTC 2018 pgoyette Sync with HEAD 1.198.2.3 Sat Apr 07 04:12:19 UTC 2018 pgoyette Sync with HEAD. 77 conflicts resolved - all of them $NetBSD$ 1.198.2.2 Fri Mar 30 06:20:16 UTC 2018 pgoyette Resolve conflicts between branch and HEAD 1.198.2.1 Thu Mar 15 09:12:06 UTC 2018 pgoyette Synch with HEAD |
| /src/ | |
| build.sh | 1.198 Sun Oct 26 23:40:06 UTC 2008 apb branches: 1.198.2; Try harder to guess the correct TOOLDIR. Adapted from a proposal by Izumi Tsutsui in tech-toolchain. Sun Oct 26 23:40:06 UTC 2008 apb branches: 1.198.2; Try harder to guess the correct TOOLDIR. Adapted from a proposal by Izumi Tsutsui in tech-toolchain. 1.198.2.3 Wed Mar 18 05:39:06 UTC 2009 snj branches: 1.198.2.3.4; Pull up following revision(s) (requested by apb in ticket #578): build.sh: revision 1.205 share/mk/bsd.own.mk: revision 1.559 Add "-", "_", and "A-Z" to the set of allowed characters in the result from `uname -p`. We already have a platform with an underline ("x86_64"), and the other chars seem harmless. .2.3 Wed Mar 18 05:39:06 UTC 2009 snj branches: 1.198.2.3.4; Pull up following revision(s) (requested by apb in ticket #578): build.sh: revision 1.205 share/mk/bsd.own.mk: revision 1.559 Add "-", "_", and "A-Z" to the set of allowed characters in the result from `uname -p`. We already have a platform with an underline ("x86_64"), and the other chars seem harmless. 1.198.2.2 Wed Mar 18 05:37:59 UTC 2009 snj Pull up following revision(s) (requested by apb in ticket #578): build.sh: revision 1.204 share/mk/bsd.own.mk: revision 1.558 In build.sh and bsd.own.mk, if uname -p fails, or prints "unknown", or prints something that does not look like an identifier, then use uname -m instead. (Cygwin prints "unknown", and OpenBSD prints a long string containing several spaces; this code should handle both.) 1.198.2.1 Fri Jan 09 02:04:43 UTC 2009 snj Pull up following revision(s) (requested by apb in ticket #232): build.sh: revision 1.200 "\t" does not represent a tab in sed regular expressions, so use a ${tab} variable instead. This bug was found by Jeremy C. Reed. 1.198.2.3.4.4 Wed Dec 18 18:40:35 UTC 2013 matt Allow arch of armv7/armv7eb for evbarm. Add evbarmv7-e[bl] alias 1.198.2.3.4.3 Sun Feb 28 04:05:41 UTC 2010 matt Enable cobalt64 (cobalt/mips64el) and arc64 (arc/mips64el). 1.198.2.3.4.2 Wed Sep 09 04:46:10 UTC 2009 matt For pmap64, algor64, and sgimips64 use *64 as the makewrapper name 1.198.2.3.4.1 Wed Aug 26 03:38:31 UTC 2009 matt Add recognition of algor64, pmax64, and sgimips64 |
| /src/sys/arch/x86/include/ | |
| specialreg.h | 1.198 Mon Nov 21 00:21:17 UTC 2022 msaitoh branches: 1.198.2; Update AMD CPUID Fn8000_001b - Add IbsFetchCtlExtd and IbsOpData4. - Fix typo (lbs -> Ibs). Mon Nov 21 00:21:17 UTC 2022 msaitoh branches: 1.198.2; Update AMD CPUID Fn8000_001b - Add IbsFetchCtlExtd and IbsOpData4. - Fix typo (lbs -> Ibs). 1.98.2.25 Mon Jan 23 13:09:54 UTC 2023 martin Pull up the following revisions, requested by msaitoh in ticket #1791: sys/arch/x86/include/specialreg.h 1.193-1.198 - Add CPUID Fn0000_0006 %eax bit 24 IA32_THERM_INTERRUPT MSR bit 25 Hardware Feedback Notification support. - Add CPUID Fn0000_0007 %ecx bit 29 ENQCMD. - Add CPUID Fn0000_0007 %edx bit 1 SGX-KEYS. - Add CPUID Fn0000_0007 %edx bit 5 UINTR(User INTeRrupts). - Add CPUID Fn0000_0007 %edx bit 11 RTM_ALWAYS_ABORT. - Add CPUID Fn0000_0007 %edx bit 22 AMX_BF16. - Add CPUID Fn0000_0007 %edx bit 23 AVX512_FP16. - Add CPUID Fn0000_0007 %edx bit 24 AMX_TILE. - Add CPUID Fn0000_0007 %edx bit 25 AMX_INT8. - Add CPUID Fn0000_0007 sub-leaf 1 %edx bit 18 CET_SSS. - Add CPUID Fn0000_0007 sub-leaf 2 %edx definitions. - Add CPUID Fn0000_000d sub-leaf 1 %eax bit 4 XFD. - Add CPUID Fn0000_001d Tile Information. - Add CPUID Fn0000_001e TMUL Information. - Add CPUID Fn8000_0007 %eax RAS capabilities. - Add CPUID Fn8000_0008 %ebx BTC_NO, - Add cpuid Fn8000_000a x2AVIC, VNMI, IBSVIRT and ROGPT. - Add CPUID Fn8000_001b Instruction-Based Sampling. - Add CPUID Fn8000_001e Processor Topology Information. - Add CPUID Fn8000_001f %eax RPMQUERY, VmplSSS, TscAuxVirt, VmgexitParam, VirtualTomMsr, IbsVirtGuest, SmtProtection, vsmCommPageMSR and NestedVirtSnpMsr. - Add CPUID Fn8000_0021 AMD Extended Features Identification 2. - Add CPUID Fn8000_0022 AMD Extended Performance Monitoring and Debug. - Rename HW_FEEDBACK to HWI (Hardware Feedback Interface). - Rename TSX_FORCE_ABORT to RTM_FORCE_ABORT. - Modify comment. Both Intel and AMD support CPUID Fn0000000b. - Modify comment. Hybrid Information -> Native Model ID Information. - Use __BIT(). Add comment. Whitespace fix. 1.150.2.12 Mon Jan 23 13:00:53 UTC 2023 martin Pull up the following revisions, requested by msaitoh in ticket #1574: sys/arch/x86/include/specialreg.h 1.193-1.198 - Add CPUID Fn0000_0006 %eax bit 24 IA32_THERM_INTERRUPT MSR bit 25 Hardware Feedback Notification support. - Add CPUID Fn0000_0007 %ecx bit 29 ENQCMD. - Add CPUID Fn0000_0007 %edx bit 1 SGX-KEYS. - Add CPUID Fn0000_0007 %edx bit 5 UINTR(User INTeRrupts). - Add CPUID Fn0000_0007 %edx bit 11 RTM_ALWAYS_ABORT. - Add CPUID Fn0000_0007 %edx bit 22 AMX_BF16. - Add CPUID Fn0000_0007 %edx bit 23 AVX512_FP16. - Add CPUID Fn0000_0007 %edx bit 24 AMX_TILE. - Add CPUID Fn0000_0007 %edx bit 25 AMX_INT8. - Add CPUID Fn0000_0007 sub-leaf 1 %edx bit 18 CET_SSS. - Add CPUID Fn0000_0007 sub-leaf 2 %edx definitions. - Add CPUID Fn0000_000d sub-leaf 1 %eax bit 4 XFD. - Add CPUID Fn0000_001d Tile Information. - Add CPUID Fn0000_001e TMUL Information. - Add CPUID Fn8000_0007 %eax RAS capabilities. - Add CPUID Fn8000_0008 %ebx BTC_NO, - Add cpuid Fn8000_000a x2AVIC, VNMI, IBSVIRT and ROGPT. - Add CPUID Fn8000_001b Instruction-Based Sampling. - Add CPUID Fn8000_001e Processor Topology Information. - Add CPUID Fn8000_001f %eax RPMQUERY, VmplSSS, TscAuxVirt, VmgexitParam, VirtualTomMsr, IbsVirtGuest, SmtProtection, vsmCommPageMSR and NestedVirtSnpMsr. - Add CPUID Fn8000_0021 AMD Extended Features Identification 2. - Add CPUID Fn8000_0022 AMD Extended Performance Monitoring and Debug. - Rename HW_FEEDBACK to HWI (Hardware Feedback Interface). - Rename TSX_FORCE_ABORT to RTM_FORCE_ABORT. - Modify comment. Both Intel and AMD support CPUID Fn0000000b. - Modify comment. Hybrid Information -> Native Model ID Information. - Use __BIT(). Add comment. Whitespace fix. 1.198.2.6 Thu Oct 03 00:00:57 UTC 2024 martin Pull up following revision(s) (requested by rin in ticket #919): sys/arch/x86/x86/errata.c: revision 1.28 sys/arch/x86/x86/errata.c: revision 1.29 sys/arch/x86/include/specialreg.h: revision 1.209 usr.sbin/cpuctl/arch/i386.c: revision 1.144 sys/arch/x86/x86/errata.c: revision 1.30 sys/arch/x86/x86/errata.c: revision 1.33 sys/arch/x86/x86/errata.c: revision 1.34 sys/arch/x86/x86/errata.c: revision 1.35 sys/arch/x86/include/specialreg.h: revision 1.210 sys/arch/x86/include/specialreg.h: revision 1.211 x86/errata.c: Link to original AMD errata guide. This one is no longer updated; need to link to newer ones for individual families too. That's where all the cryptic nomenclature comes from here. x86/errata.c: Say what revision we're searching for. x86/errata.c: Only say the errata revision search for cpu0. x86: make the CPUID list for errata be far less confusing the 0x80000001 CPUID result needs some parsing to match against actual family/model/stepping values. 4-bit 'family' values of 15 or 6 change how to parse the 4-bit extended model and 8-bit extended family value - for family 6 or 15, the extended model bits (4) are concatenated with the base 4-bits to create an 8-bit value, and for family 15, the family value is addition of the family value and the 8-bit extended-family value, giving a range of 0 to 15 + 0xff aka 270. use a CPUREV(family, model, stepping) macro that builds the relevant bit-representation of a CPUID, making it far easier to understand what each entry means, and to add new ones too. i have confirmed that the emitted cpurevs[] array has the same values before/after this change, ie, NFCI or observed. x86: add names for errata that don't have actual numbers zenbleed is reported as "erratum 65535" currently, this adds a name for it, and enables the name for any others as well. pull logging into a function with a tag message. x86: handle AMD errata 1474: A CPU core may hang after about 1044 days from the new comment: * This requires disabling CC6 power level, which can be a performance * issue since it stops full turbo in some implementations (eg, half the * cores must be in CC6 to achieve the highest boost level.) Set a timer * to fire in 1000 days -- except NetBSD timers end up having a signed * 32-bit hz-based value, which rolls over in under 25 days with HZ=1000, * and doing xcall(9) or kthread(9) from a callout is not allowed anyway, * so just have a kthread wait 1 day for 1000 times. documented in: https://www.amd.com/content/dam/amd/en/documents/processor-tech-docs/revision-guides/56323-PUB_1_01.pdf add MSR stuff for AMD errata 1474. cpuctl: fix i386 bit descriptions for CPUID_SEF_FLAGS1 warning: non-printing character '\31' in description 'BUS_LOCK_DETECT""b\31' [363] s/RPMQUERY/RMPQUERY/ 1.198.2.5 Sat Jul 20 14:19:31 UTC 2024 martin Pull up following revision(s) (requested by andvar in ticket #738): sys/arch/x86/x86/identcpu.c: revision 1.129 sys/arch/x86/include/specialreg.h: revision 1.212 sys/arch/x86/x86/identcpu.c: revision 1.130 Disable the VIA Alternate Instructions according the VIA documentation: * C7 and above do not support ALTINST, do not check or attempt to disable them. * For VIA C3 Nehemiah check extended feature flags for support and status, do no attempt to disable when AIS is not supported or enabled. * For pre-Nehemiah models explicitly disable, if they are in the range of documented models, flags aren't present to check the status on these models. Note: for pre-Nehemiah may be other functional side effects depdending on the version and stepping. Explicit disabling of ALTINST was introduced with rev. 1.84 following the discovery of some VIA CPUs having these instructions enabled by default leading to the potential backdoor (aka rosenbrindge). Unfortunately, implementation used a wrong check (ACE supported flag), which can be true for the later models, still supporting padlock features. Setting ALTINST bit on those may have unexpected side effects like VIA C7 CPUID instruction for temperature sensor not reporting correct value or `cpuctl identify' not reporting certain CPU features. Similar side effects can be observed even for Nehemiah models not supporting AIS instructions. This change should limit possibility of such issues to only the pre-Nehemiah models, not covered at all in the previous implementation. Feature Control Register (FCR) macros were unified under one group and consistent naming while implementing the change. Few comments updated as well. patch reviewed by Riastradh@ (thank you) PR kern/58370 Move determination of the largest VIA CPU extended function value to the intended place where the checks are performed. Currently the value can be overridden while checking for the padlock features, and failing the check for max function value as a result. 1.198.2.4 Sat Jul 29 09:44:34 UTC 2023 martin Pull up the following revisions, all via patch, requested by msaitoh in ticket #250: sys/arch/x86/include/specialreg.h 1.204-1.206, 1.208 - Add Intel CPUID 0x07 %ecx bit 24 BUS_LOCK_DETECT. - Add AMD CPUID 0x80000008 %ebx bit 30 IBPB_RET and CPUID 0x8000000a %edx bit 29 BusLockThreshold. - Fix typo in comment. 1.198.2.3 Tue Jul 25 09:10:32 UTC 2023 martin Pull up following revision(s) (requested by mrg in ticket #243): sys/arch/x86/include/specialreg.h: revision 1.207 sys/arch/x86/x86/errata.c: revision 1.31 x86: turn off zenbleed chicken bit on Zen2 cpus. this is based upon Taylor's original work. i just made the list of CPUs to run on correct as i could determine. (also, add some Zen3 and Zen4 cpuids not yet used by any errata.) (might be nice to have a better way to expression revision ranges rather than specific cpuid matches, eg, 0x30-0x4f models in a cpu family, etc.) tested on ryzen 3600, and a ported zenbleed PoC that no longer shows any obtained text. (a similar module-version of it stopped the PoC on a ryzen 3950x without having to reboot.) https://www.amd.com/en/resources/product-security/bulletin/amd-sb-7008.html https://lock.cmpxchg8b.com/zenbleed.html 1.198.2.2 Wed Jun 21 19:02:18 UTC 2023 martin Pull up following revision(s) (requested by msaitoh in ticket #200): sys/arch/x86/include/specialreg.h: revision 1.202 sys/arch/x86/include/specialreg.h: revision 1.203 usr.sbin/cpuctl/arch/i386.c: revision 1.136 Add some CPUID bits from PPR for AMD Family 19h Model 61h Revision B1. Add AMD CPUID Fn0000_0008 %ebx bit 3 INVLPGB. 1.198.2.1 Mon Jan 23 00:52:17 UTC 2023 martin Pull up following revision(s) (requested by msaitoh in ticket #56): sys/arch/x86/include/specialreg.h: revision 1.200 sys/arch/x86/include/specialreg.h: revision 1.201 sys/arch/x86/include/specialreg.h: revision 1.199 Use __BIT(). Add comment. Whitespace. No functional change. Update definitions from the latest Intel SDM. - Rename HW_FEEDBACK to HWI (Hardware Feedback Interface). - Add CPUID Fn0000_0006 %eax bit 24 IA32_THERM_INTERRUPT MSR bit 25 Hardware Feedback Notification support. - Add CPUID Fn0000_0007 %ecx bit 29 ENQCMD. - Add CPUID Fn0000_0007 %edx bit 1 SGX-KEYS. - Add CPUID Fn0000_0007 %edx bit 5 UINTR(User INTeRrupts). - Add CPUID Fn0000_0007 %edx bit 1 RTM_ALWAYS_ABORT. - Rename TSX_FORCE_ABORT to RTM_FORCE_ABORT. - Add CPUID Fn0000_0007 %edx bit 22 AMX_BF16. - Add CPUID Fn0000_0007 %edx bit 23 AVX512_FP16. - Add CPUID Fn0000_0007 %edx bit 24 AMX_TILE. - Add CPUID Fn0000_0007 %edx bit 25 AMX_INT8. - Add CPUID Fn0000_0007 sub-leaf 1 %edx bit 18 CET_SSS. - Add CPUID Fn0000_0007 sub-leaf 2 %edx bit 0 PSFD. - Add CPUID Fn0000_0007 sub-leaf 2 %edx bit 1 IPRED_CTRL. - Add CPUID Fn0000_0007 sub-leaf 2 %edx bit 2 RRSBA_CTRL. - Add CPUID Fn0000_0007 sub-leaf 2 %edx bit 3 DDPD_U. - Add CPUID Fn0000_0007 sub-leaf 2 %edx bit 4 BHI_CTRL. - Add CPUID Fn0000_0007 sub-leaf 2 %edx bit 5 MCDT_NO. - Modify comment. Both Intel and AMD support CPUID Fn0000000b. - Add CPUID Fn0000_000d sub-leaf 1 %eax bit 4 XFD. - Modify comment. Hybrid Information -> Native Model ID Information. - Add CPUID Fn0000_001d Tile Information. - Add CPUID Fn0000_001e TMUL Information. Fix comment. |
| /src/sys/arch/hp300/conf/ | |
| GENERIC | 1.198 Tue Jan 23 14:47:54 UTC 2018 sevan branches: 1.198.2; 1.198.4; Alternate buffer queue strategies no longer considered experimental, update description. Discussed on tech-kern http://mail-index.netbsd.org/tech-kern/2018/01/21/msg023002.html Tue Jan 23 14:47:54 UTC 2018 sevan branches: 1.198.2; 1.198.4; Alternate buffer queue strategies no longer considered experimental, update description. Discussed on tech-kern http://mail-index.netbsd.org/tech-kern/2018/01/21/msg023002.html .2; 1.198.4; Alternate buffer queue strategies no longer considered experimental, update description. Discussed on tech-kern http://mail-index.netbsd.org/tech-kern/2018/01/21/msg023002.html 1.194.8.1 Fri Jan 26 14:28:15 UTC 2018 martin Pull up following revision(s) (requested by sevan in ticket #510): sys/arch/sun3/conf/GENERIC3X: revision 1.130 sys/arch/sparc64/conf/GENERIC: revision 1.203 sys/arch/news68k/conf/LIBERO: revision 1.66 sys/arch/amiga/conf/DRACO: revision 1.185 sys/arch/evbarm/conf/MV2120: revision 1.35 sys/arch/x68k/conf/GENERIC: revision 1.187 sys/arch/rs6000/conf/GENERIC: revision 1.39 sys/arch/news68k/conf/GENERIC_TINY: revision 1.86 sys/arch/i386/conf/XEN3_DOMU: revision 1.88 sys/arch/iyonix/conf/GENERIC: revision 1.97 sys/arch/evbarm64/conf/A64EMUL: revision 1.11 sys/arch/mvme68k/conf/GENERIC: revision 1.98 sys/arch/acorn32/conf/GENERIC: revision 1.124 sys/arch/i386/conf/XEN3_DOM0: revision 1.125 sys/arch/cobalt/conf/INSTALL: revision 1.65 sys/arch/macppc/conf/GENERIC_601: revision 1.16 sys/arch/hppa/conf/GENERIC: revision 1.17 sys/arch/amiga/conf/GENERIC.in: revision 1.137 sys/arch/sgimips/conf/GENERIC32_IP12: revision 1.33 sys/arch/netwinder/conf/GENERIC: revision 1.134 sys/arch/amd64/conf/XEN3_DOMU: revision 1.83 sys/arch/mac68k/conf/GENERIC: revision 1.225 sys/arch/arc/conf/RPC44: revision 1.54 sys/arch/mipsco/conf/GENERIC: revision 1.92 sys/arch/cats/conf/GENERIC: revision 1.166 sys/arch/amd64/conf/XEN3_DOM0: revision 1.145 sys/arch/amigappc/conf/GENERIC: revision 1.33 sys/arch/sun3/conf/GENERIC: revision 1.176 sys/arch/news68k/conf/GENERIC: revision 1.130 sys/arch/hpcsh/conf/GENERIC: revision 1.110 sys/arch/hp300/conf/GENERIC: revision 1.198 sys/arch/atari/conf/GENERIC.in: revision 1.115 sys/arch/sparc/conf/MRCOFFEE: revision 1.54 sys/arch/evbppc/conf/EXPLORA451: revision 1.62 sys/arch/cesfic/conf/GENERIC: revision 1.69 sys/arch/vax/conf/GENERIC: revision 1.204 sys/arch/sgimips/conf/GENERIC32_IP3x: revision 1.115 sys/arch/sgimips/conf/GENERIC32_IP2x: revision 1.112 sys/arch/sparc/conf/GENERIC: revision 1.258 sys/arch/next68k/conf/GENERIC: revision 1.145 sys/arch/evbarm/conf/MMNET_GENERIC: revision 1.34 sys/arch/prep/conf/GENERIC: revision 1.185 sys/arch/amiga/conf/INSTALL: revision 1.129 sys/arch/newsmips/conf/GENERIC: revision 1.133 sys/arch/cobalt/conf/GENERIC: revision 1.156 sys/arch/sun2/conf/GENERIC: revision 1.99 sys/arch/luna68k/conf/INSTALL: revision 1.25 sys/arch/amigappc/conf/NULL: revision 1.53 sys/arch/acorn26/conf/GENERIC: revision 1.85 sys/arch/vax/conf/VAX780: revision 1.25 sys/arch/luna68k/conf/GENERIC: revision 1.125 sys/arch/ews4800mips/conf/GENERIC: revision 1.56 sys/arch/macppc/conf/POWERMAC_G5: revision 1.29 sys/arch/arc/conf/GENERIC: revision 1.189 sys/arch/macppc/conf/MAMBO: revision 1.27 sys/arch/acorn32/conf/EB7500ATX: revision 1.64 sys/arch/pmax/conf/GENERIC: revision 1.196 sys/arch/pmax/conf/GENERIC64: revision 1.28 sys/arch/amiga/conf/GENERIC: revision 1.319 sys/arch/evbarm/conf/MPCSA_GENERIC: revision 1.55 sys/arch/macppc/conf/GENERIC: revision 1.339 sys/arch/emips/conf/GENERIC: revision 1.21 sys/arch/sandpoint/conf/GENERIC: revision 1.97 sys/arch/landisk/conf/GENERIC: revision 1.58 sys/arch/bebox/conf/GENERIC: revision 1.157 sys/arch/alpha/conf/GENERIC: revision 1.379 Alternate buffer queue strategies no longer considered experimental, update description. Discussed on tech-kern http://mail-index.netbsd.org/tech-kern/2018/01/21/msg023002.html 1.198.4.1 Mon Jun 10 22:06:16 UTC 2019 christos Sync with HEAD 1.198.2.2 Wed Dec 26 14:01:36 UTC 2018 pgoyette Sync with HEAD, resolve a few conflicts 1.198.2.1 Thu Sep 06 06:55:33 UTC 2018 pgoyette Sync with HEAD Resolve a couple of conflicts (result of the uimin/uimax changes) |
| /src/sbin/mount_procfs/ | |
| mount_procfs.8 | 1.34.38.1 Thu Apr 12 13:42:49 UTC 2018 martin Pull up following revision(s) (requested by kamil in ticket #713): sys/modules/procfs/Makefile: revision 1.4 sys/miscfs/procfs/procfs_vfsops.c: revision 1.98 bin/ps/ps.1: revision 1.108 sys/compat/linux/arch/i386/linux_ptrace.c: revision 1.32 sys/miscfs/procfs/procfs_vnops.c: revision 1.198 sys/kern/sys_ptrace_common.c: revision 1.23 sys/kern/sys_ptrace_common.c: revision 1.24 sbin/mount_procfs/mount_procfs.8: revision 1.36 sys/kern/sys_ptrace_common.c: revision 1.25 sys/kern/sys_ptrace.c: revision 1.5 sys/compat/linux/arch/powerpc/linux_ptrace.c: revision 1.30 sys/sys/proc.h: revision 1.342 sys/kern/sys_ptrace_common.c: revision 1.26 sys/miscfs/procfs/procfs_ctl.c: file removal sys/kern/sys_ptrace_common.c: revision 1.27 sys/miscfs/procfs/procfs_subr.c: revision 1.109 sys/kern/sys_ptrace_common.c: revision 1.28 sys/secmodel/extensions/secmodel_extensions.c: revision 1.8 sys/kern/sys_ptrace_common.c: revision 1.29 sys/sys/ptrace.h: revision 1.62 sys/compat/netbsd32/netbsd32_signal.c: revision 1.45 share/man/man9/kauth.9: revision 1.109 sys/miscfs/procfs/files.procfs: revision 1.12 sys/compat/netbsd32/netbsd32.h: revision 1.115 sys/miscfs/procfs/procfs.h: revision 1.72 sys/compat/netbsd32/netbsd32_ptrace.c: revision 1.5 sys/kern/kern_sig.c: revision 1.337 sys/sys/kauth.h: revision 1.75 sys/sys/sysctl.h: revision 1.224 sys/kern/sys_ptrace_common.c: revision 1.30 sys/kern/sys_ptrace_common.c: revision 1.31 sys/kern/sys_ptrace_common.c: revision 1.32 sys/kern/sys_ptrace_common.c: revision 1.33 sys/compat/linux/arch/arm/linux_ptrace.c: revision 1.20 sys/kern/sys_ptrace_common.c: revision 1.34 sys/kern/sys_ptrace_common.c: revision 1.36 sys/kern/kern_proc.c: revision 1.207 sys/kern/kern_exit.c: revision 1.269 doc/TODO.ptrace: revision 1.29 Make {s,g}et{db,fp,}regs work again for PK_32 processes XXX: pullup-8 add disgusting magic to handle compat_netbsd32 as a module. use process_*reg32 instead of struct *reg32. Remove the filesystem tracing feature This is a legacy interface from 4.4BSD, and it was introduced to overcome shortcomings of ptrace(2) at that time, which are no longer relevant (performance). Today /proc/#/ctl offers a narrow subset of ptrace(2) commands and is not applicable for modern applications use beyond simplistic tracing scenarios. This removal will simplify kernel internals. Users will still be able to use all the other /proc files. This change won't affect other procfs files neither Linux compat features within mount_procfs(8). /proc/#/ctl isn't available on Linux. Remove: - /proc/#/ctl from mount_procfs(8) - P_FSTRACE note from the documentation of ps(1) - /proc/#/ctl and filesystem tracing documentation from mount_procfs(8) - KAUTH_REQ_PROCESS_PROCFS_CTL documentation from kauth(9) - source code file miscfs/procfs/procfs_ctl.c - PFSctl and procfs_doctl() from sys/miscfs/procfs/procfs.h - KAUTH_REQ_PROCESS_PROCFS_CTL from sys/sys/kauth.h - PSL_FSTRACE (0x00010000) from sys/sys/proc.h - P_FSTRACE (0x00010000) from sys/sys/sysctl.h Reduce code complexity after removal of this functionality. Update TODO.ptrace accordingly: remove two entries about /proc tracing. Do not keep legacy notes as comments in the headers about removed PSL_FSTRACE / P_FSTRACE, as this interface had little number of users (close or equal to zero). Proposed on tech-kern@. All filesystem tracing utility users are encouraged to switch to ptrace(2). Sponsored by <The NetBSD Foundation> untangle the mess: - factor out common code - break each ptrace subcall to its own sub-function .. more to come ... - reduce ifdef ugliness by moving it up top. - factor out PT_IO and make PT_{READ,WRITE}_{I,D} use it - factor out PT_DUMPCORE - factor out sendsig code .. more to come ... handle siginfo requests for ptrace32 ptrace: Partially undo PT_{READ,WRITE}_{I,D} and unbreak these commands The refactored code did not work and was generating EFAULT. Sponsored by <The NetBSD Foundation> Merge the code back; the problem was that since we are reading/writing to a kernel address for PT_{READ,WRITE}_{I,D} we need the kernel vmspace. provide separate read and write functions to accomodate register functions that need a size argument. don't ignore error from copyout_piod Use the proper process (the tracee) to get information about lwps and registers and the tracer for vmspace. Add new sysctl(3) entry: security.models.extensions.user_set_dbregs Model this new sysctl(3) entry after "user_set_cpu_affinity" in the same level of sysctl(3) switches. Allow to read unconditionally Debug Registers (no change here). This is convenient as even if a user of a debugger does not use hardware assisted watchpoints/breakpoints, a debugger can still prompt these values to store in an internal cache with context of registers. Reading them should have no security concerns. Add a paranoid MI switch that prohibits by default setting these registers by a regular user (non-superuser). Make this switch disabled by default. There are enough reserved bits out there to allow using them unconditionally on hardened hosts. Features shipped with Debug Registers are optional features in debuggers. There is no reduction in elementary functionality. Reviewed by <christos> Sponsored by <The NetBSD Foundation> |
| /src/sys/arch/evbarm/conf/ | |
| MV2120 | 1.31.6.1 Fri Jan 26 14:28:13 UTC 2018 martin Pull up following revision(s) (requested by sevan in ticket #510): sys/arch/sun3/conf/GENERIC3X: revision 1.130 sys/arch/sparc64/conf/GENERIC: revision 1.203 sys/arch/news68k/conf/LIBERO: revision 1.66 sys/arch/amiga/conf/DRACO: revision 1.185 sys/arch/evbarm/conf/MV2120: revision 1.35 sys/arch/x68k/conf/GENERIC: revision 1.187 sys/arch/rs6000/conf/GENERIC: revision 1.39 sys/arch/news68k/conf/GENERIC_TINY: revision 1.86 sys/arch/i386/conf/XEN3_DOMU: revision 1.88 sys/arch/iyonix/conf/GENERIC: revision 1.97 sys/arch/evbarm64/conf/A64EMUL: revision 1.11 sys/arch/mvme68k/conf/GENERIC: revision 1.98 sys/arch/acorn32/conf/GENERIC: revision 1.124 sys/arch/i386/conf/XEN3_DOM0: revision 1.125 sys/arch/cobalt/conf/INSTALL: revision 1.65 sys/arch/macppc/conf/GENERIC_601: revision 1.16 sys/arch/hppa/conf/GENERIC: revision 1.17 sys/arch/amiga/conf/GENERIC.in: revision 1.137 sys/arch/sgimips/conf/GENERIC32_IP12: revision 1.33 sys/arch/netwinder/conf/GENERIC: revision 1.134 sys/arch/amd64/conf/XEN3_DOMU: revision 1.83 sys/arch/mac68k/conf/GENERIC: revision 1.225 sys/arch/arc/conf/RPC44: revision 1.54 sys/arch/mipsco/conf/GENERIC: revision 1.92 sys/arch/cats/conf/GENERIC: revision 1.166 sys/arch/amd64/conf/XEN3_DOM0: revision 1.145 sys/arch/amigappc/conf/GENERIC: revision 1.33 sys/arch/sun3/conf/GENERIC: revision 1.176 sys/arch/news68k/conf/GENERIC: revision 1.130 sys/arch/hpcsh/conf/GENERIC: revision 1.110 sys/arch/hp300/conf/GENERIC: revision 1.198 sys/arch/atari/conf/GENERIC.in: revision 1.115 sys/arch/sparc/conf/MRCOFFEE: revision 1.54 sys/arch/evbppc/conf/EXPLORA451: revision 1.62 sys/arch/cesfic/conf/GENERIC: revision 1.69 sys/arch/vax/conf/GENERIC: revision 1.204 sys/arch/sgimips/conf/GENERIC32_IP3x: revision 1.115 sys/arch/sgimips/conf/GENERIC32_IP2x: revision 1.112 sys/arch/sparc/conf/GENERIC: revision 1.258 sys/arch/next68k/conf/GENERIC: revision 1.145 sys/arch/evbarm/conf/MMNET_GENERIC: revision 1.34 sys/arch/prep/conf/GENERIC: revision 1.185 sys/arch/amiga/conf/INSTALL: revision 1.129 sys/arch/newsmips/conf/GENERIC: revision 1.133 sys/arch/cobalt/conf/GENERIC: revision 1.156 sys/arch/sun2/conf/GENERIC: revision 1.99 sys/arch/luna68k/conf/INSTALL: revision 1.25 sys/arch/amigappc/conf/NULL: revision 1.53 sys/arch/acorn26/conf/GENERIC: revision 1.85 sys/arch/vax/conf/VAX780: revision 1.25 sys/arch/luna68k/conf/GENERIC: revision 1.125 sys/arch/ews4800mips/conf/GENERIC: revision 1.56 sys/arch/macppc/conf/POWERMAC_G5: revision 1.29 sys/arch/arc/conf/GENERIC: revision 1.189 sys/arch/macppc/conf/MAMBO: revision 1.27 sys/arch/acorn32/conf/EB7500ATX: revision 1.64 sys/arch/pmax/conf/GENERIC: revision 1.196 sys/arch/pmax/conf/GENERIC64: revision 1.28 sys/arch/amiga/conf/GENERIC: revision 1.319 sys/arch/evbarm/conf/MPCSA_GENERIC: revision 1.55 sys/arch/macppc/conf/GENERIC: revision 1.339 sys/arch/emips/conf/GENERIC: revision 1.21 sys/arch/sandpoint/conf/GENERIC: revision 1.97 sys/arch/landisk/conf/GENERIC: revision 1.58 sys/arch/bebox/conf/GENERIC: revision 1.157 sys/arch/alpha/conf/GENERIC: revision 1.379 Alternate buffer queue strategies no longer considered experimental, update description. Discussed on tech-kern http://mail-index.netbsd.org/tech-kern/2018/01/21/msg023002.html |
| /src/sys/arch/macppc/conf/ | |
| GENERIC_601 | 1.12.6.1 Fri Jan 26 14:28:14 UTC 2018 martin Pull up following revision(s) (requested by sevan in ticket #510): sys/arch/sun3/conf/GENERIC3X: revision 1.130 sys/arch/sparc64/conf/GENERIC: revision 1.203 sys/arch/news68k/conf/LIBERO: revision 1.66 sys/arch/amiga/conf/DRACO: revision 1.185 sys/arch/evbarm/conf/MV2120: revision 1.35 sys/arch/x68k/conf/GENERIC: revision 1.187 sys/arch/rs6000/conf/GENERIC: revision 1.39 sys/arch/news68k/conf/GENERIC_TINY: revision 1.86 sys/arch/i386/conf/XEN3_DOMU: revision 1.88 sys/arch/iyonix/conf/GENERIC: revision 1.97 sys/arch/evbarm64/conf/A64EMUL: revision 1.11 sys/arch/mvme68k/conf/GENERIC: revision 1.98 sys/arch/acorn32/conf/GENERIC: revision 1.124 sys/arch/i386/conf/XEN3_DOM0: revision 1.125 sys/arch/cobalt/conf/INSTALL: revision 1.65 sys/arch/macppc/conf/GENERIC_601: revision 1.16 sys/arch/hppa/conf/GENERIC: revision 1.17 sys/arch/amiga/conf/GENERIC.in: revision 1.137 sys/arch/sgimips/conf/GENERIC32_IP12: revision 1.33 sys/arch/netwinder/conf/GENERIC: revision 1.134 sys/arch/amd64/conf/XEN3_DOMU: revision 1.83 sys/arch/mac68k/conf/GENERIC: revision 1.225 sys/arch/arc/conf/RPC44: revision 1.54 sys/arch/mipsco/conf/GENERIC: revision 1.92 sys/arch/cats/conf/GENERIC: revision 1.166 sys/arch/amd64/conf/XEN3_DOM0: revision 1.145 sys/arch/amigappc/conf/GENERIC: revision 1.33 sys/arch/sun3/conf/GENERIC: revision 1.176 sys/arch/news68k/conf/GENERIC: revision 1.130 sys/arch/hpcsh/conf/GENERIC: revision 1.110 sys/arch/hp300/conf/GENERIC: revision 1.198 sys/arch/atari/conf/GENERIC.in: revision 1.115 sys/arch/sparc/conf/MRCOFFEE: revision 1.54 sys/arch/evbppc/conf/EXPLORA451: revision 1.62 sys/arch/cesfic/conf/GENERIC: revision 1.69 sys/arch/vax/conf/GENERIC: revision 1.204 sys/arch/sgimips/conf/GENERIC32_IP3x: revision 1.115 sys/arch/sgimips/conf/GENERIC32_IP2x: revision 1.112 sys/arch/sparc/conf/GENERIC: revision 1.258 sys/arch/next68k/conf/GENERIC: revision 1.145 sys/arch/evbarm/conf/MMNET_GENERIC: revision 1.34 sys/arch/prep/conf/GENERIC: revision 1.185 sys/arch/amiga/conf/INSTALL: revision 1.129 sys/arch/newsmips/conf/GENERIC: revision 1.133 sys/arch/cobalt/conf/GENERIC: revision 1.156 sys/arch/sun2/conf/GENERIC: revision 1.99 sys/arch/luna68k/conf/INSTALL: revision 1.25 sys/arch/amigappc/conf/NULL: revision 1.53 sys/arch/acorn26/conf/GENERIC: revision 1.85 sys/arch/vax/conf/VAX780: revision 1.25 sys/arch/luna68k/conf/GENERIC: revision 1.125 sys/arch/ews4800mips/conf/GENERIC: revision 1.56 sys/arch/macppc/conf/POWERMAC_G5: revision 1.29 sys/arch/arc/conf/GENERIC: revision 1.189 sys/arch/macppc/conf/MAMBO: revision 1.27 sys/arch/acorn32/conf/EB7500ATX: revision 1.64 sys/arch/pmax/conf/GENERIC: revision 1.196 sys/arch/pmax/conf/GENERIC64: revision 1.28 sys/arch/amiga/conf/GENERIC: revision 1.319 sys/arch/evbarm/conf/MPCSA_GENERIC: revision 1.55 sys/arch/macppc/conf/GENERIC: revision 1.339 sys/arch/emips/conf/GENERIC: revision 1.21 sys/arch/sandpoint/conf/GENERIC: revision 1.97 sys/arch/landisk/conf/GENERIC: revision 1.58 sys/arch/bebox/conf/GENERIC: revision 1.157 sys/arch/alpha/conf/GENERIC: revision 1.379 Alternate buffer queue strategies no longer considered experimental, update description. Discussed on tech-kern http://mail-index.netbsd.org/tech-kern/2018/01/21/msg023002.html |