CVS commit: src/sys/kern

2021-10-16 Thread Simon Burge
Module Name:src Committed By: simonb Date: Sat Oct 16 07:12:01 UTC 2021 Modified Files: src/sys/kern: vfs_subr.c Log Message: Spinkle some KNF spaces after commas. To generate a diff of this commit: cvs rdiff -u -r1.490 -r1.491 src/sys/kern/vfs_subr.c Please note that

CVS commit: src/sys/kern

2021-10-16 Thread Simon Burge
Module Name:src Committed By: simonb Date: Sat Oct 16 07:12:01 UTC 2021 Modified Files: src/sys/kern: vfs_subr.c Log Message: Spinkle some KNF spaces after commas. To generate a diff of this commit: cvs rdiff -u -r1.490 -r1.491 src/sys/kern/vfs_subr.c Please note that

CVS commit: src/sys/kern

2021-10-11 Thread Jared D. McNeill
Module Name:src Committed By: jmcneill Date: Mon Oct 11 10:59:09 UTC 2021 Modified Files: src/sys/kern: subr_autoconf.c Log Message: Squash "holding up boot" messages into a single line, and only print the device list if no progress has been made in 1 second. To

CVS commit: src/sys/kern

2021-10-11 Thread Jared D. McNeill
Module Name:src Committed By: jmcneill Date: Mon Oct 11 10:59:09 UTC 2021 Modified Files: src/sys/kern: subr_autoconf.c Log Message: Squash "holding up boot" messages into a single line, and only print the device list if no progress has been made in 1 second. To

CVS commit: src/sys/kern

2021-10-10 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sun Oct 10 19:11:56 UTC 2021 Modified Files: src/sys/kern: kern_event.c Log Message: Check _KERNEL_OPT before including opt_ddb.h. To generate a diff of this commit: cvs rdiff -u -r1.129 -r1.130 src/sys/kern/kern_event.c

CVS commit: src/sys/kern

2021-10-10 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sun Oct 10 19:11:56 UTC 2021 Modified Files: src/sys/kern: kern_event.c Log Message: Check _KERNEL_OPT before including opt_ddb.h. To generate a diff of this commit: cvs rdiff -u -r1.129 -r1.130 src/sys/kern/kern_event.c

CVS commit: src/sys/kern

2021-10-05 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Wed Oct 6 05:24:54 UTC 2021 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: Fix a bug that NMBCLUSTERS(kern.mbuf.nmbclusters) can't be changed by sysctl. To generate a diff of this commit: cvs rdiff -u -r1.243 -r1.244

CVS commit: src/sys/kern

2021-10-05 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Wed Oct 6 05:24:54 UTC 2021 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: Fix a bug that NMBCLUSTERS(kern.mbuf.nmbclusters) can't be changed by sysctl. To generate a diff of this commit: cvs rdiff -u -r1.243 -r1.244

CVS commit: src/sys/kern

2021-10-02 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Sat Oct 2 07:35:41 UTC 2021 Modified Files: src/sys/kern: sys_pipe.c Log Message: Fix a deadlock where one thread writes to a pipe, has more data and no space in the pipe and waits on "pipe_wcv" while the reader is closing the

CVS commit: src/sys/kern

2021-10-02 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Sat Oct 2 07:35:41 UTC 2021 Modified Files: src/sys/kern: sys_pipe.c Log Message: Fix a deadlock where one thread writes to a pipe, has more data and no space in the pipe and waits on "pipe_wcv" while the reader is closing the

CVS commit: src/sys/kern

2021-09-30 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Thu Sep 30 07:15:02 UTC 2021 Modified Files: src/sys/kern: kern_hook.c Log Message: Some platforms need sys/cpu.h for curlwp so #include it To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/kern/kern_hook.c

CVS commit: src/sys/kern

2021-09-30 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Thu Sep 30 07:15:02 UTC 2021 Modified Files: src/sys/kern: kern_hook.c Log Message: Some platforms need sys/cpu.h for curlwp so #include it To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/kern/kern_hook.c

CVS commit: src/sys/kern

2021-09-30 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Thu Sep 30 07:14:10 UTC 2021 Modified Files: src/sys/kern: kern_hook.c Log Message: KNF To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/kern/kern_hook.c Please note that diffs are not public domain; they

CVS commit: src/sys/kern

2021-09-30 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Thu Sep 30 07:14:10 UTC 2021 Modified Files: src/sys/kern: kern_hook.c Log Message: KNF To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/kern/kern_hook.c Please note that diffs are not public domain; they

CVS commit: src/sys/kern

2021-09-29 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Thu Sep 30 01:20:53 UTC 2021 Modified Files: src/sys/kern: kern_event.c Log Message: Make the info returned by kqueue_stat() a little less barren. To generate a diff of this commit: cvs rdiff -u -r1.127 -r1.128

CVS commit: src/sys/kern

2021-09-29 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Thu Sep 30 01:20:53 UTC 2021 Modified Files: src/sys/kern: kern_event.c Log Message: Make the info returned by kqueue_stat() a little less barren. To generate a diff of this commit: cvs rdiff -u -r1.127 -r1.128

CVS commit: src/sys/kern

2021-09-29 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Thu Sep 30 01:12:06 UTC 2021 Modified Files: src/sys/kern: kern_event.c Log Message: In knote(), don't call kn->kn_fop->f_event() directly; use filter_event() to get the correct KERNEL_LOCK handling for the filter attached to

CVS commit: src/sys/kern

2021-09-29 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Thu Sep 30 01:12:06 UTC 2021 Modified Files: src/sys/kern: kern_event.c Log Message: In knote(), don't call kn->kn_fop->f_event() directly; use filter_event() to get the correct KERNEL_LOCK handling for the filter attached to

CVS commit: src/sys/kern

2021-09-29 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Wed Sep 29 13:14:39 UTC 2021 Modified Files: src/sys/kern: tty.c tty_pty.c Log Message: ttyread_filtops, ttywrite_filtops, ptcread_filtops, and ptcwrite_filtops are MPSAFE. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/kern

2021-09-29 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Wed Sep 29 13:14:39 UTC 2021 Modified Files: src/sys/kern: tty.c tty_pty.c Log Message: ttyread_filtops, ttywrite_filtops, ptcread_filtops, and ptcwrite_filtops are MPSAFE. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/kern

2021-09-28 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Tue Sep 28 15:35:44 UTC 2021 Modified Files: src/sys/kern: kern_exec.c Log Message: Make sure the robust futex head is zeroed out, since this LWP will live on with a different program image. (Thanks ryo@ for pointing out my

CVS commit: src/sys/kern

2021-09-28 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Tue Sep 28 15:35:44 UTC 2021 Modified Files: src/sys/kern: kern_exec.c Log Message: Make sure the robust futex head is zeroed out, since this LWP will live on with a different program image. (Thanks ryo@ for pointing out my

CVS commit: src/sys/kern

2021-09-28 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Tue Sep 28 14:52:22 UTC 2021 Modified Files: src/sys/kern: kern_exec.c Log Message: In the exec path, multi-LWP programs dispose of their robust futexes by calling exit_lwps(), except for the last LWP. So, dispose of that LWP's

CVS commit: src/sys/kern

2021-09-28 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Tue Sep 28 14:52:22 UTC 2021 Modified Files: src/sys/kern: kern_exec.c Log Message: In the exec path, multi-LWP programs dispose of their robust futexes by calling exit_lwps(), except for the last LWP. So, dispose of that LWP's

CVS commit: src/sys/kern

2021-09-26 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Mon Sep 27 00:51:10 UTC 2021 Modified Files: src/sys/kern: sys_pipe.c Log Message: Tweak filt_piperead() and filt_pipewrite() so that: - There is only a single return from the function (and thus a single place where the pipe

CVS commit: src/sys/kern

2021-09-26 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Mon Sep 27 00:51:10 UTC 2021 Modified Files: src/sys/kern: sys_pipe.c Log Message: Tweak filt_piperead() and filt_pipewrite() so that: - There is only a single return from the function (and thus a single place where the pipe

CVS commit: src/sys/kern

2021-09-26 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Mon Sep 27 00:40:49 UTC 2021 Modified Files: src/sys/kern: sys_eventfd.c sys_timerfd.c tty.c Log Message: Consistently reference kn->kn_data only within the lock perimeter in the filtops f_event() callback. To generate a diff

CVS commit: src/sys/kern

2021-09-26 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Mon Sep 27 00:40:49 UTC 2021 Modified Files: src/sys/kern: sys_eventfd.c sys_timerfd.c tty.c Log Message: Consistently reference kn->kn_data only within the lock perimeter in the filtops f_event() callback. To generate a diff

CVS commit: src/sys/kern

2021-09-26 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sun Sep 26 23:37:40 UTC 2021 Modified Files: src/sys/kern: kern_event.c Log Message: In kqueue_kqfilter(), return EINVAL instead of 1 if something other than EVFILT_READ was requested. To generate a diff of this commit: cvs

CVS commit: src/sys/kern

2021-09-26 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sun Sep 26 23:37:40 UTC 2021 Modified Files: src/sys/kern: kern_event.c Log Message: In kqueue_kqfilter(), return EINVAL instead of 1 if something other than EVFILT_READ was requested. To generate a diff of this commit: cvs

CVS commit: src/sys/kern

2021-09-26 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sun Sep 26 23:34:46 UTC 2021 Modified Files: src/sys/kern: kern_event.c Log Message: - Rename kqueue_misc_lock -> kqueue_timer_lock, since EVFILT_TIMER is now its only user. Also initialize it as IPL_SOFTCLOCK; there is no

CVS commit: src/sys/kern

2021-09-26 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sun Sep 26 23:34:46 UTC 2021 Modified Files: src/sys/kern: kern_event.c Log Message: - Rename kqueue_misc_lock -> kqueue_timer_lock, since EVFILT_TIMER is now its only user. Also initialize it as IPL_SOFTCLOCK; there is no

CVS commit: src/sys/kern

2021-09-26 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sun Sep 26 18:13:58 UTC 2021 Modified Files: src/sys/kern: kern_event.c Log Message: Mark kqread_filtops, user_filtops, and seltrue_filtops as MPSAFE. To generate a diff of this commit: cvs rdiff -u -r1.122 -r1.123

CVS commit: src/sys/kern

2021-09-26 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sun Sep 26 18:13:58 UTC 2021 Modified Files: src/sys/kern: kern_event.c Log Message: Mark kqread_filtops, user_filtops, and seltrue_filtops as MPSAFE. To generate a diff of this commit: cvs rdiff -u -r1.122 -r1.123

CVS commit: src/sys/kern

2021-09-26 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sun Sep 26 17:34:19 UTC 2021 Modified Files: src/sys/kern: kern_sig.c Log Message: sig_filtops is MPSAFE. To generate a diff of this commit: cvs rdiff -u -r1.398 -r1.399 src/sys/kern/kern_sig.c Please note that diffs are not

CVS commit: src/sys/kern

2021-09-26 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sun Sep 26 17:34:19 UTC 2021 Modified Files: src/sys/kern: kern_sig.c Log Message: sig_filtops is MPSAFE. To generate a diff of this commit: cvs rdiff -u -r1.398 -r1.399 src/sys/kern/kern_sig.c Please note that diffs are not

CVS commit: src/sys/kern

2021-09-26 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sun Sep 26 15:48:54 UTC 2021 Modified Files: src/sys/kern: sys_pipe.c Log Message: The pipe kq filter ops are MPSAFE. To generate a diff of this commit: cvs rdiff -u -r1.154 -r1.155 src/sys/kern/sys_pipe.c Please note that

CVS commit: src/sys/kern

2021-09-26 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sun Sep 26 15:48:54 UTC 2021 Modified Files: src/sys/kern: sys_pipe.c Log Message: The pipe kq filter ops are MPSAFE. To generate a diff of this commit: cvs rdiff -u -r1.154 -r1.155 src/sys/kern/sys_pipe.c Please note that

CVS commit: src/sys/kern

2021-09-26 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sun Sep 26 15:11:33 UTC 2021 Modified Files: src/sys/kern: subr_log.c Log Message: logread_filtops is MPSAFE. To generate a diff of this commit: cvs rdiff -u -r1.61 -r1.62 src/sys/kern/subr_log.c Please note that diffs are

CVS commit: src/sys/kern

2021-09-26 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sun Sep 26 15:11:33 UTC 2021 Modified Files: src/sys/kern: subr_log.c Log Message: logread_filtops is MPSAFE. To generate a diff of this commit: cvs rdiff -u -r1.61 -r1.62 src/sys/kern/subr_log.c Please note that diffs are

CVS commit: src/sys/kern

2021-09-26 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sun Sep 26 15:10:51 UTC 2021 Modified Files: src/sys/kern: kern_entropy.c Log Message: entropy_read_filtops is MPSAFE. To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33 src/sys/kern/kern_entropy.c Please note that

CVS commit: src/sys/kern

2021-09-26 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sun Sep 26 15:10:51 UTC 2021 Modified Files: src/sys/kern: kern_entropy.c Log Message: entropy_read_filtops is MPSAFE. To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33 src/sys/kern/kern_entropy.c Please note that

CVS commit: src/sys/kern

2021-09-25 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sun Sep 26 03:42:54 UTC 2021 Modified Files: src/sys/kern: sys_eventfd.c sys_timerfd.c Log Message: eventfd and timerfd have MPSAFE kq filterops. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6

CVS commit: src/sys/kern

2021-09-25 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sun Sep 26 03:42:54 UTC 2021 Modified Files: src/sys/kern: sys_eventfd.c sys_timerfd.c Log Message: eventfd and timerfd have MPSAFE kq filterops. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6

CVS commit: src/sys/kern

2021-09-23 Thread Ryo Shimizu
Module Name:src Committed By: ryo Date: Thu Sep 23 06:58:47 UTC 2021 Modified Files: src/sys/kern: sys_sig.c Log Message: Since trampoline ABI ver0 is also used in other emulation environments (e.g. linux emulation), checking (emul->e_sigobject != NULL) to determine if

CVS commit: src/sys/kern

2021-09-23 Thread Ryo Shimizu
Module Name:src Committed By: ryo Date: Thu Sep 23 06:58:47 UTC 2021 Modified Files: src/sys/kern: sys_sig.c Log Message: Since trampoline ABI ver0 is also used in other emulation environments (e.g. linux emulation), checking (emul->e_sigobject != NULL) to determine if

Re: CVS commit: src/sys/kern

2021-09-22 Thread Rin Okuyama
On 2021/09/22 14:42, Rin Okuyama wrote: Module Name:src Committed By: rin Date: Wed Sep 22 05:42:19 UTC 2021 Modified Files: src/sys/kern: kern_ksyms.c Log Message: ksymsmmap: Add missing uao_reference(9) call for ks->ks_uobj. Fix failure for savecore(8) and subsequent

CVS commit: src/sys/kern

2021-09-21 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Wed Sep 22 05:42:19 UTC 2021 Modified Files: src/sys/kern: kern_ksyms.c Log Message: ksymsmmap: Add missing uao_reference(9) call for ks->ks_uobj. Fix failure for savecore(8) and subsequent kernel panic, introduced to kern_ksyms.c

CVS commit: src/sys/kern

2021-09-21 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Wed Sep 22 05:42:19 UTC 2021 Modified Files: src/sys/kern: kern_ksyms.c Log Message: ksymsmmap: Add missing uao_reference(9) call for ks->ks_uobj. Fix failure for savecore(8) and subsequent kernel panic, introduced to kern_ksyms.c

CVS commit: src/sys/kern

2021-09-21 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Sep 21 14:56:08 UTC 2021 Modified Files: src/sys/kern: vfs_cache.c Log Message: don't opencode kauth_cred_get() To generate a diff of this commit: cvs rdiff -u -r1.150 -r1.151 src/sys/kern/vfs_cache.c Please note that

CVS commit: src/sys/kern

2021-09-21 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Sep 21 14:56:08 UTC 2021 Modified Files: src/sys/kern: vfs_cache.c Log Message: don't opencode kauth_cred_get() To generate a diff of this commit: cvs rdiff -u -r1.150 -r1.151 src/sys/kern/vfs_cache.c Please note that

CVS commit: src/sys/kern

2021-09-21 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Sep 21 14:55:14 UTC 2021 Modified Files: src/sys/kern: subr_time.c Log Message: don't opencode kauth_cred_get() To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/sys/kern/subr_time.c Please note that

CVS commit: src/sys/kern

2021-09-21 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Sep 21 14:55:14 UTC 2021 Modified Files: src/sys/kern: subr_time.c Log Message: don't opencode kauth_cred_get() To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/sys/kern/subr_time.c Please note that

CVS commit: src/sys/kern

2021-09-21 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Sep 21 14:54:26 UTC 2021 Modified Files: src/sys/kern: kern_entropy.c Log Message: don't opencode kauth_cred_get() To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/sys/kern/kern_entropy.c Please note

CVS commit: src/sys/kern

2021-09-21 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Sep 21 14:54:26 UTC 2021 Modified Files: src/sys/kern: kern_entropy.c Log Message: don't opencode kauth_cred_get() To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/sys/kern/kern_entropy.c Please note

CVS commit: src/sys/kern

2021-09-21 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Sep 21 14:54:02 UTC 2021 Modified Files: src/sys/kern: kern_event.c Log Message: undo previous, wrong file. To generate a diff of this commit: cvs rdiff -u -r1.119 -r1.120 src/sys/kern/kern_event.c Please note that diffs

CVS commit: src/sys/kern

2021-09-21 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Sep 21 14:54:02 UTC 2021 Modified Files: src/sys/kern: kern_event.c Log Message: undo previous, wrong file. To generate a diff of this commit: cvs rdiff -u -r1.119 -r1.120 src/sys/kern/kern_event.c Please note that diffs

CVS commit: src/sys/kern

2021-09-21 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Sep 21 14:52:40 UTC 2021 Modified Files: src/sys/kern: kern_event.c Log Message: don't opencode kauth_cred_get() To generate a diff of this commit: cvs rdiff -u -r1.118 -r1.119 src/sys/kern/kern_event.c Please note that

CVS commit: src/sys/kern

2021-09-21 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Sep 21 14:52:40 UTC 2021 Modified Files: src/sys/kern: kern_event.c Log Message: don't opencode kauth_cred_get() To generate a diff of this commit: cvs rdiff -u -r1.118 -r1.119 src/sys/kern/kern_event.c Please note that

CVS commit: src/sys/kern

2021-09-20 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Mon Sep 20 14:30:05 UTC 2021 Modified Files: src/sys/kern: sys_eventfd.c Log Message: eventfd_destroy(): Add missing kmem_free(). To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/kern/sys_eventfd.c Please

CVS commit: src/sys/kern

2021-09-20 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Mon Sep 20 14:30:05 UTC 2021 Modified Files: src/sys/kern: sys_eventfd.c Log Message: eventfd_destroy(): Add missing kmem_free(). To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/kern/sys_eventfd.c Please

CVS commit: src/sys/kern

2021-09-20 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Mon Sep 20 11:12:35 UTC 2021 Modified Files: src/sys/kern: sys_eventfd.c sys_timerfd.c Log Message: KNF, i.e. #include then #include Fixes builds To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3

CVS commit: src/sys/kern

2021-09-20 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Mon Sep 20 11:12:35 UTC 2021 Modified Files: src/sys/kern: sys_eventfd.c sys_timerfd.c Log Message: KNF, i.e. #include then #include Fixes builds To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3

CVS commit: src/sys/kern

2021-09-15 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Wed Sep 15 17:25:14 UTC 2021 Added Files: src/sys/kern: gendevcalls.awk Log Message: Add an awk program that reads in a device call interface description file and emits a header file containing the argument and call binding

CVS commit: src/sys/kern

2021-09-15 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Wed Sep 15 17:25:14 UTC 2021 Added Files: src/sys/kern: gendevcalls.awk Log Message: Add an awk program that reads in a device call interface description file and emits a header file containing the argument and call binding

CVS commit: src/sys/kern

2021-09-11 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Sep 11 10:09:31 UTC 2021 Modified Files: src/sys/kern: kern_ksyms.c Log Message: ksyms(4): Take a complete snapshot on each open. - Snapshots are stored in pageable anonymous uvm objects. - Snapshots are reference-counted

CVS commit: src/sys/kern

2021-09-11 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Sep 11 10:09:31 UTC 2021 Modified Files: src/sys/kern: kern_ksyms.c Log Message: ksyms(4): Take a complete snapshot on each open. - Snapshots are stored in pageable anonymous uvm objects. - Snapshots are reference-counted

CVS commit: src/sys/kern

2021-09-11 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Sep 11 10:09:14 UTC 2021 Modified Files: src/sys/kern: sys_descrip.c vfs_vnops.c Log Message: sys/kern: Avoid fp->f_offset without the object (here, vnode) lock. To generate a diff of this commit: cvs rdiff -u -r1.37

CVS commit: src/sys/kern

2021-09-11 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Sep 11 10:09:14 UTC 2021 Modified Files: src/sys/kern: sys_descrip.c vfs_vnops.c Log Message: sys/kern: Avoid fp->f_offset without the object (here, vnode) lock. To generate a diff of this commit: cvs rdiff -u -r1.37

CVS commit: src/sys/kern

2021-09-07 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Sep 7 16:56:25 UTC 2021 Modified Files: src/sys/kern: kern_ksyms.c Log Message: Revert "ksyms(4): Simply block unload until last /dev/ksyms close." This appears to break t_execsnoop -- presumably something goes wrong

CVS commit: src/sys/kern

2021-09-07 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Sep 7 16:56:25 UTC 2021 Modified Files: src/sys/kern: kern_ksyms.c Log Message: Revert "ksyms(4): Simply block unload until last /dev/ksyms close." This appears to break t_execsnoop -- presumably something goes wrong

CVS commit: src/sys/kern

2021-09-07 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Sep 7 11:00:13 UTC 2021 Modified Files: src/sys/kern: kern_crashme.c Log Message: New crashme sysctl to enter ddb directly. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/kern/kern_crashme.c Please

CVS commit: src/sys/kern

2021-09-07 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Sep 7 11:00:13 UTC 2021 Modified Files: src/sys/kern: kern_crashme.c Log Message: New crashme sysctl to enter ddb directly. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/kern/kern_crashme.c Please

CVS commit: src/sys/kern

2021-09-07 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Sep 7 10:59:46 UTC 2021 Modified Files: src/sys/kern: kern_ksyms.c Log Message: ksyms(4): Simply block unload until last /dev/ksyms close. Otherwise, readers may get a garbled snapshot of ksyms (or a crash on an

CVS commit: src/sys/kern

2021-09-07 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Sep 7 10:59:46 UTC 2021 Modified Files: src/sys/kern: kern_ksyms.c Log Message: ksyms(4): Simply block unload until last /dev/ksyms close. Otherwise, readers may get a garbled snapshot of ksyms (or a crash on an

CVS commit: src/sys/kern

2021-08-29 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Mon Aug 30 01:25:10 UTC 2021 Modified Files: src/sys/kern: kern_pax.c Log Message: Respect alignment requests of executable when PAX_ASLR is enabled on kernel, but disabled for the process, as in the same manner as PAX_ASLR is

CVS commit: src/sys/kern

2021-08-29 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Mon Aug 30 01:25:10 UTC 2021 Modified Files: src/sys/kern: kern_pax.c Log Message: Respect alignment requests of executable when PAX_ASLR is enabled on kernel, but disabled for the process, as in the same manner as PAX_ASLR is

Re: CVS commit: src/sys/kern

2021-08-18 Thread Michael van Elst
On Tue, Aug 17, 2021 at 11:39:26PM +, Taylor R Campbell wrote: > > > > Log Message: > > skip symbol tables that were unloaded again to avoid EFAULT when reading > > ksyms. > > > > also restore TAILQ_FOREACH idiom. > > This change isn't quite right: Reading past st = ksyms_last_snapshot > in

Re: CVS commit: src/sys/kern

2021-08-17 Thread Taylor R Campbell
> Module Name:src > Committed By: mlelstv > Date: Sun Jul 18 06:57:28 UTC 2021 > > Modified Files: > src/sys/kern: kern_ksyms.c > > Log Message: > skip symbol tables that were unloaded again to avoid EFAULT when reading > ksyms. > > also restore TAILQ_FOREACH idiom.

Re: CVS commit: src/sys/kern

2021-06-30 Thread David Holland
On Thu, Jul 01, 2021 at 12:25:51AM -0400, Christos Zoulas wrote: > Modified Files: > src/sys/kern: vfs_vnops.c > > Log Message: > don't clear the error before we use it to determine if we are moving or > duping. oh ffs... *goes to soak head* -- David A. Holland dholl...@netbsd.org

Re: CVS commit: src/sys/kern

2021-06-02 Thread Rin Okuyama
Hmm, misleading commit log (code itself is correct). More precisely: s/the last element of ksyms_symtabs/ksyms_last_snapshot/ Anyway, does this help you to reintroduce "ksyms(4): Don't skip symbol tables that are soon to be freed."? That KASSERT does not fire anymore for aarch64, as far as I

Re: CVS commit: src/sys/kern

2021-06-02 Thread Taylor R Campbell
> Date: Wed, 2 Jun 2021 17:33:39 +0900 > From: Rin Okuyama > > On 2021/06/02 6:11, Taylor R Campbell wrote: > > - KASSERT(filepos <= sizeof(struct ksyms_hdr) + > > + KASSERT(filepos == sizeof(struct ksyms_hdr) + > > ksyms_hdr.kh_shdr[SYMTAB].sh_size); > ... > > This KASSERT fires at

Re: CVS commit: src/sys/kern

2021-06-02 Thread Rin Okuyama
Hi, On 2021/06/02 6:11, Taylor R Campbell wrote: Module Name:src Committed By: riastradh Date: Tue Jun 1 21:11:52 UTC 2021 Modified Files: src/sys/kern: kern_ksyms.c Log Message: ksyms(4): Don't skip symbol tables that are soon to be freed. They will not actually be

Re: CVS commit: src/sys/kern (kern_event.c)

2021-01-22 Thread Paul Goyette
On Fri, 22 Jan 2021, Paul Goyette wrote: On Thu, 21 Jan 2021, Paul Goyette wrote: Ooopppsss ignore me - looks like this was already fixed and my update missed it. I'll retry. OK, I built and installed a new kernel+userland. Most everything works, and syslogd seems to work fine (at least,

Re: CVS commit: src/sys/kern (kern_event.c)

2021-01-22 Thread Paul Goyette
On Thu, 21 Jan 2021, Paul Goyette wrote: Ooopppsss ignore me - looks like this was already fixed and my update missed it. I'll retry. OK, I built and installed a new kernel+userland. Most everything works, and syslogd seems to work fine (at least, it no longer panics during startup).

Re: CVS commit: src/sys/kern (kern_event.c)

2021-01-21 Thread Paul Goyette
Ooopppsss ignore me - looks like this was already fixed and my update missed it. I'll retry. On Thu, 21 Jan 2021, Paul Goyette wrote: This change seems to break everything! As soon as I try to start syslogd I hit the panic() that you added [ 28.0253983] panic: kqueue_scan,1491:

Re: CVS commit: src/sys/kern (kern_event.c)

2021-01-21 Thread Paul Goyette
This change seems to break everything! As soon as I try to start syslogd I hit the panic() that you added [ 28.0253983] panic: kqueue_scan,1491: kq=0xdc13890bc4c0 kq->kq_count(1) != count(0), nmarker=1 [ 28.0253983] cpu0: Begin traceback... [ 28.0253983] vpanic() at

Re: CVS commit: src/sys/kern

2021-01-21 Thread Tom Spindler (moof)
I believe it's this change that's made my vbox image panic at the drop of a hat; while it occasionally panics before it even hits single user, it also consistently panics when starting syslogd (even from single-user): panic: kqueue_scan,1491: kq=0xc779aeff6dc0 kq->kq_count(1) != count(0),

Re: CVS commit: src/sys/kern

2020-11-05 Thread Rin Okuyama
On 2020/11/05 2:45, Paul Goyette wrote: On Wed, 4 Nov 2020, Rin Okuyama wrote: On 2020/11/04 22:52, Paul Goyette wrote: On Wed, 4 Nov 2020, Rin Okuyama wrote: ptrace_common_{init,fini} are called from the ptrace_common module's modcmd routine in kern/sys_ptrace_common.c.  The modcmd routine

Re: CVS commit: src/sys/kern

2020-11-04 Thread Paul Goyette
OK, this is my mistake. When I change the calls in the ptrace_common modcmd, I should also have renamed the functions (including their entries in sys/ptrace.h). I will commit this shortly, before I leave. Thanks for the "recipe" for reproducing the problem - I will try it later when I return.

Re: CVS commit: src/sys/kern

2020-11-04 Thread Paul Goyette
On Wed, 4 Nov 2020, Rin Okuyama wrote: On 2020/11/04 22:52, Paul Goyette wrote: On Wed, 4 Nov 2020, Rin Okuyama wrote: ptrace_common_{init,fini} are called from the ptrace_common module's modcmd routine in kern/sys_ptrace_common.c. The modcmd routine in turn is called at module

Re: CVS commit: src/sys/kern

2020-11-04 Thread Rin Okuyama
On 2020/11/04 22:52, Paul Goyette wrote: On Wed, 4 Nov 2020, Rin Okuyama wrote: ptrace_common_{init,fini} are called from the ptrace_common module's modcmd routine in kern/sys_ptrace_common.c. The modcmd routine in turn is called at module initialization time. In the case of a built-in

Re: CVS commit: src/sys/kern

2020-11-04 Thread Paul Goyette
On Wed, 4 Nov 2020, Rin Okuyama wrote: ptrace_common_{init,fini} are called from the ptrace_common module's modcmd routine in kern/sys_ptrace_common.c.  The modcmd routine in turn is called at module initialization time.  In the case of a built-in module, it will be called by module_init via

Re: CVS commit: src/sys/kern

2020-11-04 Thread Rin Okuyama
On 2020/11/04 22:31, Paul Goyette wrote: On Wed, 4 Nov 2020, Rin Okuyama wrote: Hi, On 2020/10/26 0:55, Paul Goyette wrote: Module Name:    src Committed By:    pgoyette Date:    Sun Oct 25 15:55:37 UTC 2020 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message:

Re: CVS commit: src/sys/kern

2020-11-04 Thread Paul Goyette
On Wed, 4 Nov 2020, Rin Okuyama wrote: Hi, On 2020/10/26 0:55, Paul Goyette wrote: Module Name:src Committed By: pgoyette Date: Sun Oct 25 15:55:37 UTC 2020 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: ptrace_Common is a module unto itself. Don't

Re: CVS commit: src/sys/kern

2020-11-03 Thread Rin Okuyama
Hi, On 2020/10/26 0:55, Paul Goyette wrote: Module Name:src Committed By: pgoyette Date: Sun Oct 25 15:55:37 UTC 2020 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: ptrace_Common is a module unto itself. Don't use the ptrace module's init/fini

Re: CVS commit: src/sys/kern

2020-10-19 Thread Christos Zoulas
In article <20201019144701.a6d3bf...@cvs.netbsd.org>, Kamil Rytarowski wrote: >-=-=-=-=-=- > >Module Name: src >Committed By: kamil >Date: Mon Oct 19 14:47:01 UTC 2020 > >Modified Files: > src/sys/kern: sys_ptrace.c sys_ptrace_common.c > >Log Message: >Remove obsolete references

re: CVS commit: src/sys/kern

2020-10-08 Thread David H. Gutteridge
On Mon, 07 Sep 2020 at 20:47:25 +1000, matthew green wrote: "Jason R Thorpe" writes: Module Name:src Committed By: thorpej Date: Mon Sep 7 03:50:41 UTC 2020 Modified Files: src/sys/kern: files.kern init_main.c Log Message: Add the ability to set an alternate cnmagic

re: CVS commit: src/sys/kern

2020-09-07 Thread matthew green
"Jason R Thorpe" writes: > Module Name: src > Committed By: thorpej > Date: Mon Sep 7 03:50:41 UTC 2020 > > Modified Files: > src/sys/kern: files.kern init_main.c > > Log Message: > Add the ability to set an alternate cnmagic in the kernel config > file, e.g.: > > options

Re: CVS commit: src/sys/kern

2020-08-02 Thread Kamil Rytarowski
On 02.08.2020 17:50, Taylor R Campbell wrote: >> Date: Sun, 2 Aug 2020 17:35:06 +0200 >> From: Kamil Rytarowski >> >> On 02.08.2020 16:44, Taylor R Campbell wrote: Date: Sun, 2 Aug 2020 16:04:15 +0200 From: Kamil Rytarowski On 02.08.2020 15:57, Taylor R Campbell wrote: >

  1   2   3   4   5   6   7   8   9   10   >