Re: CVS commit: src/sys/kern

2022-10-04 Thread Robert Elz
Date:Tue, 04 Oct 2022 10:09:35 -0400 From:Christos Zoulas Message-ID: <8dd220d16861eb3a890461bdf02d1...@zoulas.com> | I always forget the O_CLOEXEC is special | in that regard. I wish it was not, but it is difficult to fix. POSIX is adding O_CLOFORK in the next

Re: CVS commit: src/sys/kern

2022-10-04 Thread Christos Zoulas
On 2022-10-01 3:39 pm, Robert Elz wrote: Date:Sat, 1 Oct 2022 13:00:04 -0400 [stuff deleted] Even when it is called, the code is: fp->f_flag = flags & FMASK; where FMASK is (from fcntl.h) #define FMASK (FREAD|FWRITE|FCNTLFLAGS|FEXEC) and #define FCNTLFLAGS

Re: CVS commit: src/sys/kern

2022-10-01 Thread Robert Elz
Date:Sat, 1 Oct 2022 13:00:04 -0400 From:Christos Zoulas Message-ID: <8bd3a408-77fd-402c-8d6c-ad4b4a5e8...@zoulas.com> | This is what I meant: | | RCS file: /cvsroot/src/sys/kern/kern_descrip.c,v | retrieving revision 1.251 | diff -u -u -r1.251

Re: CVS commit: src/sys/kern

2022-10-01 Thread Christos Zoulas
> On Sep 30, 2022, at 11:02 PM, Robert Elz wrote: > >Date:Fri, 30 Sep 2022 20:15:07 -0400 >From:Christos Zoulas >Message-ID: > > | It does not need an extra flag (it looks in the file descriptor flags to > | find if it needs to set or not. > > One of us is

Re: CVS commit: src/sys/kern

2022-09-30 Thread Robert Elz
Date:Fri, 30 Sep 2022 20:15:07 -0400 From:Christos Zoulas Message-ID: | It does not need an extra flag (it looks in the file descriptor flags to | find if it needs to set or not. One of us is confused. From where in this case does anything get the exclose

Re: CVS commit: src/sys/kern

2022-09-30 Thread Christos Zoulas
> On Sep 30, 2022, at 5:57 PM, Robert Elz wrote: > >Date:Fri, 30 Sep 2022 16:34:20 -0400 >From:Christos Zoulas >Message-ID: <232331ad-d501-4547-b730-03590c0c9...@zoulas.com> > > | How about handling exclose there? > > That would be possible, but why? We still

Re: CVS commit: src/sys/kern

2022-09-30 Thread Paul Goyette
On Sat, 1 Oct 2022, Robert Elz wrote: Currently fd_affix (I mistakenly made it fp_affix in the last message...) doesn't have a flags parameter, so to do it the way you suggest, we'd need to alter its signature, bump to 9.99.101 ... and add some COMPAT_09 goop for backward compability :)

Re: CVS commit: src/sys/kern

2022-09-30 Thread Robert Elz
Date:Fri, 30 Sep 2022 16:34:20 -0400 From:Christos Zoulas Message-ID: <232331ad-d501-4547-b730-03590c0c9...@zoulas.com> | How about handling exclose there? That would be possible, but why? We still need higher level code to handle the locking, which can also

Re: CVS commit: src/sys/kern

2022-09-30 Thread Christos Zoulas
> On Sep 30, 2022, at 10:13 AM, Robert Elz wrote: > >Date:Thu, 29 Sep 2022 16:47:06 - (UTC) >From:chris...@astron.com (Christos Zoulas) >Message-ID: > > | I think that the way to go is to: > | > | 1. Do the fd_set_exclose() in fd_affix(). That will remove

Re: CVS commit: src/sys/kern

2022-09-30 Thread Robert Elz
Date:Thu, 29 Sep 2022 16:47:06 - (UTC) From:chris...@astron.com (Christos Zoulas) Message-ID: | I think that the way to go is to: | | 1. Do the fd_set_exclose() in fd_affix(). That will remove most of the calls |to fd_set_exclose() *and* the

Re: CVS commit: src/sys/kern

2022-09-29 Thread Christos Zoulas
In article <9275.1664462...@jacaranda.noi.kre.to>, Robert Elz wrote: >Date:Thu, 29 Sep 2022 08:18:28 -0400 >From:"Christos Zoulas" >Message-ID: <20220929121828.06edff...@cvs.netbsd.org> > > | Log Message: > | Add fd_set_exclose(). It is probably better to do this

Re: CVS commit: src/sys/kern

2022-09-29 Thread Robert Elz
Date:Thu, 29 Sep 2022 08:18:28 -0400 From:"Christos Zoulas" Message-ID: <20220929121828.06edff...@cvs.netbsd.org> | Log Message: | Add fd_set_exclose(). It is probably better to do this automatically in | fd_affix()... Since that only affects /dev/ptmx I'd

CVS commit: src/sys/kern

2022-09-29 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Sep 29 12:18:27 UTC 2022 Modified Files: src/sys/kern: tty_ptm.c Log Message: Add fd_set_exclose(). It is probably better to do this automatically in fd_affix()... To generate a diff of this commit: cvs rdiff -u -r1.44

CVS commit: src/sys/kern

2022-09-29 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Sep 29 12:18:27 UTC 2022 Modified Files: src/sys/kern: tty_ptm.c Log Message: Add fd_set_exclose(). It is probably better to do this automatically in fd_affix()... To generate a diff of this commit: cvs rdiff -u -r1.44

CVS commit: src/sys/kern

2022-09-28 Thread Reinoud Zandijk
Module Name:src Committed By: reinoud Date: Wed Sep 28 09:57:13 UTC 2022 Modified Files: src/sys/kern: vfs_dirhash.c Log Message: Remove reference to udf_node in comment; it is FS agnostic. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15

CVS commit: src/sys/kern

2022-09-28 Thread Reinoud Zandijk
Module Name:src Committed By: reinoud Date: Wed Sep 28 09:57:13 UTC 2022 Modified Files: src/sys/kern: vfs_dirhash.c Log Message: Remove reference to udf_node in comment; it is FS agnostic. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15

CVS commit: src/sys/kern

2022-09-24 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Sep 24 16:29:27 UTC 2022 Modified Files: src/sys/kern: tty_ptm.c Log Message: Propagate the open flags to the master pty (Anthony Mallet) To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44

CVS commit: src/sys/kern

2022-09-24 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Sep 24 16:29:27 UTC 2022 Modified Files: src/sys/kern: tty_ptm.c Log Message: Propagate the open flags to the master pty (Anthony Mallet) To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44

CVS commit: src/sys/kern

2022-09-22 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Sep 22 14:39:24 UTC 2022 Modified Files: src/sys/kern: kern_crashme.c Log Message: crashme(9): Clarify description of kernel_lock_spinout. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10

CVS commit: src/sys/kern

2022-09-22 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Sep 22 14:39:24 UTC 2022 Modified Files: src/sys/kern: kern_crashme.c Log Message: crashme(9): Clarify description of kernel_lock_spinout. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10

CVS commit: src/sys/kern

2022-09-21 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Sep 21 10:50:29 UTC 2022 Modified Files: src/sys/kern: kern_crashme.c Log Message: crashme(9): Fix crashme_add return value to match comment. XXX Why do this and crashme_remove return -1 instead of an error code like

CVS commit: src/sys/kern

2022-09-21 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Sep 21 10:50:29 UTC 2022 Modified Files: src/sys/kern: kern_crashme.c Log Message: crashme(9): Fix crashme_add return value to match comment. XXX Why do this and crashme_remove return -1 instead of an error code like

CVS commit: src/sys/kern

2022-09-13 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Sep 13 09:40:38 UTC 2022 Modified Files: src/sys/kern: subr_autoconf.c Log Message: autoconf(9): Improve diagnostics for config_detach_enter/commit/exit. To generate a diff of this commit: cvs rdiff -u -r1.304 -r1.305

CVS commit: src/sys/kern

2022-09-13 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Sep 13 09:40:38 UTC 2022 Modified Files: src/sys/kern: subr_autoconf.c Log Message: autoconf(9): Improve diagnostics for config_detach_enter/commit/exit. To generate a diff of this commit: cvs rdiff -u -r1.304 -r1.305

CVS commit: src/sys/kern

2022-09-13 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Sep 13 09:37:49 UTC 2022 Modified Files: src/sys/kern: kern_kthread.c Log Message: kthread(9): Attribute uarea to caller for kmsan. To generate a diff of this commit: cvs rdiff -u -r1.46 -r1.47

CVS commit: src/sys/kern

2022-09-13 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Sep 13 09:37:49 UTC 2022 Modified Files: src/sys/kern: kern_kthread.c Log Message: kthread(9): Attribute uarea to caller for kmsan. To generate a diff of this commit: cvs rdiff -u -r1.46 -r1.47

CVS commit: src/sys/kern

2022-09-13 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Sep 13 09:35:32 UTC 2022 Modified Files: src/sys/kern: vfs_mount.c Log Message: vflush(9): Insert `involuntary' preemption point at each vnode. Currently there is a voluntary yield every 100ms, but that's a long time.

CVS commit: src/sys/kern

2022-09-13 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Sep 13 09:35:32 UTC 2022 Modified Files: src/sys/kern: vfs_mount.c Log Message: vflush(9): Insert `involuntary' preemption point at each vnode. Currently there is a voluntary yield every 100ms, but that's a long time.

CVS commit: src/sys/kern

2022-09-13 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Sep 13 09:28:06 UTC 2022 Modified Files: src/sys/kern: kern_lock.c Log Message: KERNEL_LOCK(9): Avoid spinning out until 10sec have passed. This means we'll never spin out if the hardclock timer is stuck. But the

CVS commit: src/sys/kern

2022-09-13 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Sep 13 09:28:06 UTC 2022 Modified Files: src/sys/kern: kern_lock.c Log Message: KERNEL_LOCK(9): Avoid spinning out until 10sec have passed. This means we'll never spin out if the hardclock timer is stuck. But the

CVS commit: src/sys/kern

2022-09-13 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Sep 13 09:14:26 UTC 2022 Modified Files: src/sys/kern: kern_lock.c Log Message: KERNEL_LOCK(9): Restore backoff while spinning in !LOCKDEBUG case. When the spinout logic was put under LOCKDEBUG among a series of other

CVS commit: src/sys/kern

2022-09-13 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Sep 13 09:14:26 UTC 2022 Modified Files: src/sys/kern: kern_lock.c Log Message: KERNEL_LOCK(9): Restore backoff while spinning in !LOCKDEBUG case. When the spinout logic was put under LOCKDEBUG among a series of other

CVS commit: src/sys/kern

2022-09-13 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Sep 13 09:13:20 UTC 2022 Modified Files: src/sys/kern: vfs_subr.c Log Message: vfs(9): For MP-safe mounts, don't kernel lock in mount/unmount. To generate a diff of this commit: cvs rdiff -u -r1.494 -r1.495

CVS commit: src/sys/kern

2022-09-13 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Sep 13 09:13:20 UTC 2022 Modified Files: src/sys/kern: vfs_subr.c Log Message: vfs(9): For MP-safe mounts, don't kernel lock in mount/unmount. To generate a diff of this commit: cvs rdiff -u -r1.494 -r1.495

CVS commit: src/sys/kern

2022-09-13 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Sep 13 08:48:21 UTC 2022 Modified Files: src/sys/kern: vfs_subr.c Log Message: vfs_subr.c: Nix trailing whitespace. To generate a diff of this commit: cvs rdiff -u -r1.493 -r1.494 src/sys/kern/vfs_subr.c Please note

CVS commit: src/sys/kern

2022-09-13 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Sep 13 08:48:21 UTC 2022 Modified Files: src/sys/kern: vfs_subr.c Log Message: vfs_subr.c: Nix trailing whitespace. To generate a diff of this commit: cvs rdiff -u -r1.493 -r1.494 src/sys/kern/vfs_subr.c Please note

CVS commit: src/sys/kern

2022-09-10 Thread matthew green
Module Name:src Committed By: mrg Date: Sat Sep 10 07:30:41 UTC 2022 Modified Files: src/sys/kern: kern_core.c Log Message: avoid a GCC warning (happens on -current, -9, and -8.) To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/sys/kern/kern_core.c

CVS commit: src/sys/kern

2022-09-10 Thread matthew green
Module Name:src Committed By: mrg Date: Sat Sep 10 07:30:41 UTC 2022 Modified Files: src/sys/kern: kern_core.c Log Message: avoid a GCC warning (happens on -current, -9, and -8.) To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/sys/kern/kern_core.c

CVS commit: src/sys/kern

2022-09-09 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Sep 9 14:30:17 UTC 2022 Modified Files: src/sys/kern: kern_core.c Log Message: Don't forget to free the cred we just held. Thanks to Chris J-D (chris at accessvector dot net) While here, de-duplicate the mutex exit

CVS commit: src/sys/kern

2022-09-09 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Sep 9 14:30:17 UTC 2022 Modified Files: src/sys/kern: kern_core.c Log Message: Don't forget to free the cred we just held. Thanks to Chris J-D (chris at accessvector dot net) While here, de-duplicate the mutex exit

CVS commit: src/sys/kern

2022-09-06 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Tue Sep 6 13:31:09 UTC 2022 Modified Files: src/sys/kern: kern_module.c Log Message: Resequence the sysctl_setup and evcnt stuff so that they always occur _before_ the module's MODULE_CMD_INIT call. Also update the unload

CVS commit: src/sys/kern

2022-09-06 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Tue Sep 6 13:31:09 UTC 2022 Modified Files: src/sys/kern: kern_module.c Log Message: Resequence the sysctl_setup and evcnt stuff so that they always occur _before_ the module's MODULE_CMD_INIT call. Also update the unload

CVS commit: src/sys/kern

2022-09-02 Thread Takeshi Nakayama
Module Name:src Committed By: nakayama Date: Fri Sep 2 06:01:38 UTC 2022 Modified Files: src/sys/kern: subr_lockdebug.c Log Message: Fix "error: cast from pointer to integer of different size" on sparc build. To generate a diff of this commit: cvs rdiff -u -r1.82

CVS commit: src/sys/kern

2022-09-02 Thread Takeshi Nakayama
Module Name:src Committed By: nakayama Date: Fri Sep 2 06:01:38 UTC 2022 Modified Files: src/sys/kern: subr_lockdebug.c Log Message: Fix "error: cast from pointer to integer of different size" on sparc build. To generate a diff of this commit: cvs rdiff -u -r1.82

CVS commit: src/sys/kern

2022-08-30 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Wed Aug 31 05:24:41 UTC 2022 Modified Files: src/sys/kern: subr_lockdebug.c Log Message: Fix previous to make it compile again. To generate a diff of this commit: cvs rdiff -u -r1.81 -r1.82 src/sys/kern/subr_lockdebug.c

CVS commit: src/sys/kern

2022-08-30 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Wed Aug 31 05:24:41 UTC 2022 Modified Files: src/sys/kern: subr_lockdebug.c Log Message: Fix previous to make it compile again. To generate a diff of this commit: cvs rdiff -u -r1.81 -r1.82 src/sys/kern/subr_lockdebug.c

CVS commit: src/sys/kern

2022-08-30 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Aug 30 22:38:27 UTC 2022 Modified Files: src/sys/kern: kern_crashme.c Log Message: crashme(9): New debug.crashme.mutex_recursion method. Takes a lock twice. Set it to 1 for adaptive lock, 2 for spin lock. To generate a

CVS commit: src/sys/kern

2022-08-30 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Aug 30 22:38:27 UTC 2022 Modified Files: src/sys/kern: kern_crashme.c Log Message: crashme(9): New debug.crashme.mutex_recursion method. Takes a lock twice. Set it to 1 for adaptive lock, 2 for spin lock. To generate a

CVS commit: src/sys/kern

2022-08-30 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Aug 30 22:38:17 UTC 2022 Modified Files: src/sys/kern: subr_lockdebug.c Log Message: lockdebug(9): Try to show symbol names if possible. Also print the possible owner in ddb/crash `show lock' even if the kernel is built

CVS commit: src/sys/kern

2022-08-30 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Aug 30 22:38:17 UTC 2022 Modified Files: src/sys/kern: subr_lockdebug.c Log Message: lockdebug(9): Try to show symbol names if possible. Also print the possible owner in ddb/crash `show lock' even if the kernel is built

CVS commit: src/sys/kern

2022-08-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Aug 28 12:24:39 UTC 2022 Modified Files: src/sys/kern: subr_devsw.c Log Message: devsw(9): Clarify to match loop condition. NFCI. To generate a diff of this commit: cvs rdiff -u -r1.47 -r1.48 src/sys/kern/subr_devsw.c

CVS commit: src/sys/kern

2022-08-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Aug 28 12:24:39 UTC 2022 Modified Files: src/sys/kern: subr_devsw.c Log Message: devsw(9): Clarify to match loop condition. NFCI. To generate a diff of this commit: cvs rdiff -u -r1.47 -r1.48 src/sys/kern/subr_devsw.c

CVS commit: src/sys/kern

2022-08-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Aug 28 11:17:38 UTC 2022 Modified Files: src/sys/kern: subr_devsw.c Log Message: devsw(9): Fix case of existing conv in devsw_attach. - Fix sense of conditional: if we found a conv, i < max_devsw_convs. - Make sure to

CVS commit: src/sys/kern

2022-08-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Aug 28 11:17:38 UTC 2022 Modified Files: src/sys/kern: subr_devsw.c Log Message: devsw(9): Fix case of existing conv in devsw_attach. - Fix sense of conditional: if we found a conv, i < max_devsw_convs. - Make sure to

CVS commit: src/sys/kern

2022-08-26 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Fri Aug 26 11:03:53 UTC 2022 Modified Files: src/sys/kern: vfs_mount.c Log Message: Two defects in vfs_getnewfsid(): - Parallel mounts may get the same fsid. Always increment "xxxfs_mntid" to make it unlikely. - Directly

CVS commit: src/sys/kern

2022-08-26 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Fri Aug 26 11:03:53 UTC 2022 Modified Files: src/sys/kern: vfs_mount.c Log Message: Two defects in vfs_getnewfsid(): - Parallel mounts may get the same fsid. Always increment "xxxfs_mntid" to make it unlikely. - Directly

CVS commit: src/sys/kern

2022-08-24 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Aug 24 11:41:39 UTC 2022 Modified Files: src/sys/kern: kern_pmf.c Log Message: kern_pmf.c: Fix whitespace, KNF, static. No functional change intended. To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51

CVS commit: src/sys/kern

2022-08-24 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Aug 24 11:41:39 UTC 2022 Modified Files: src/sys/kern: kern_pmf.c Log Message: kern_pmf.c: Fix whitespace, KNF, static. No functional change intended. To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51

CVS commit: src/sys/kern

2022-08-22 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Mon Aug 22 09:14:59 UTC 2022 Modified Files: src/sys/kern: vfs_lookup.c Log Message: Use fstrans_start()/fstrans_done() to cross the mount in lookup_crossmount(). It is sufficient here as it prevents the file system from unmount

CVS commit: src/sys/kern

2022-08-22 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Mon Aug 22 09:14:59 UTC 2022 Modified Files: src/sys/kern: vfs_lookup.c Log Message: Use fstrans_start()/fstrans_done() to cross the mount in lookup_crossmount(). It is sufficient here as it prevents the file system from unmount

CVS commit: src/sys/kern

2022-08-22 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Mon Aug 22 09:14:24 UTC 2022 Modified Files: src/sys/kern: vfs_mount.c Log Message: Protect changing "v_mountedhere" with file system suspension instead of vnode lock. To generate a diff of this commit: cvs rdiff -u -r1.94

CVS commit: src/sys/kern

2022-08-22 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Mon Aug 22 09:14:24 UTC 2022 Modified Files: src/sys/kern: vfs_mount.c Log Message: Protect changing "v_mountedhere" with file system suspension instead of vnode lock. To generate a diff of this commit: cvs rdiff -u -r1.94

CVS commit: src/sys/kern

2022-08-22 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Mon Aug 22 09:13:08 UTC 2022 Modified Files: src/sys/kern: vfs_trans.c Log Message: Don't allocate lwp info for fstrans_held() and fstrans_is_owner(). If it doesn't exist we cannot hold a transaction or suspension. To generate

CVS commit: src/sys/kern

2022-08-22 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Mon Aug 22 09:13:08 UTC 2022 Modified Files: src/sys/kern: vfs_trans.c Log Message: Don't allocate lwp info for fstrans_held() and fstrans_is_owner(). If it doesn't exist we cannot hold a transaction or suspension. To generate

CVS commit: src/sys/kern

2022-08-20 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Aug 20 23:37:12 UTC 2022 Modified Files: src/sys/kern: kern_lock.c Log Message: KERNEL_LOCK(9): Limit ipi trace diagnostic to after init has started. To generate a diff of this commit: cvs rdiff -u -r1.177 -r1.178

CVS commit: src/sys/kern

2022-08-20 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Aug 20 23:37:12 UTC 2022 Modified Files: src/sys/kern: kern_lock.c Log Message: KERNEL_LOCK(9): Limit ipi trace diagnostic to after init has started. To generate a diff of this commit: cvs rdiff -u -r1.177 -r1.178

CVS commit: src/sys/kern

2022-08-16 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Aug 16 21:23:37 UTC 2022 Modified Files: src/sys/kern: kern_lock.c Log Message: KERNEL_LOCK(9): Fix previous for non-LOCKDEBUG builds. To generate a diff of this commit: cvs rdiff -u -r1.176 -r1.177

CVS commit: src/sys/kern

2022-08-16 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Aug 16 21:23:37 UTC 2022 Modified Files: src/sys/kern: kern_lock.c Log Message: KERNEL_LOCK(9): Fix previous for non-LOCKDEBUG builds. To generate a diff of this commit: cvs rdiff -u -r1.176 -r1.177

CVS commit: src/sys/kern

2022-08-16 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Aug 16 18:13:09 UTC 2022 Modified Files: src/sys/kern: kern_lock.c Log Message: KERNEL_LOCK(9): Record kernel lock holder in fast path too. To generate a diff of this commit: cvs rdiff -u -r1.175 -r1.176

CVS commit: src/sys/kern

2022-08-16 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Aug 16 18:13:09 UTC 2022 Modified Files: src/sys/kern: kern_lock.c Log Message: KERNEL_LOCK(9): Record kernel lock holder in fast path too. To generate a diff of this commit: cvs rdiff -u -r1.175 -r1.176

CVS commit: src/sys/kern

2022-08-16 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Aug 16 16:25:17 UTC 2022 Modified Files: src/sys/kern: kern_lock.c Log Message: KERNEL_LOCK(9): Need kpreempt_disable to ipi_send, oops. To generate a diff of this commit: cvs rdiff -u -r1.174 -r1.175

CVS commit: src/sys/kern

2022-08-16 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Aug 16 16:25:17 UTC 2022 Modified Files: src/sys/kern: kern_lock.c Log Message: KERNEL_LOCK(9): Need kpreempt_disable to ipi_send, oops. To generate a diff of this commit: cvs rdiff -u -r1.174 -r1.175

CVS commit: src/sys/kern

2022-08-16 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Aug 16 10:24:17 UTC 2022 Modified Files: src/sys/kern: kern_crashme.c Log Message: crashme(9): New kernel_lock_spinout crasher. This assumes that something will eventually try to take the kernel lock and, after spinning

CVS commit: src/sys/kern

2022-08-16 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Aug 16 10:24:17 UTC 2022 Modified Files: src/sys/kern: kern_crashme.c Log Message: crashme(9): New kernel_lock_spinout crasher. This assumes that something will eventually try to take the kernel lock and, after spinning

CVS commit: src/sys/kern

2022-08-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Aug 16 00:26:40 UTC 2022 Modified Files: src/sys/kern: kern_lock.c Log Message: KERNEL_LOCK(9): Send an IPI to print holder's stack trace on spinout. To generate a diff of this commit: cvs rdiff -u -r1.173 -r1.174

CVS commit: src/sys/kern

2022-08-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Aug 16 00:26:40 UTC 2022 Modified Files: src/sys/kern: kern_lock.c Log Message: KERNEL_LOCK(9): Send an IPI to print holder's stack trace on spinout. To generate a diff of this commit: cvs rdiff -u -r1.173 -r1.174

CVS commit: src/sys/kern

2022-08-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Aug 15 11:43:56 UTC 2022 Modified Files: src/sys/kern: subr_workqueue.c Log Message: workqueue(9): workqueue_wait and workqueue_destroy may sleep. But might not, so assert sleepable up front. To generate a diff of this

CVS commit: src/sys/kern

2022-08-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Aug 15 11:43:56 UTC 2022 Modified Files: src/sys/kern: subr_workqueue.c Log Message: workqueue(9): workqueue_wait and workqueue_destroy may sleep. But might not, so assert sleepable up front. To generate a diff of this

CVS commit: src/sys/kern

2022-08-12 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Aug 12 16:16:12 UTC 2022 Modified Files: src/sys/kern: subr_autoconf.c Log Message: autoconf(9): Provide diagnostics for config_detach_* misuse. To generate a diff of this commit: cvs rdiff -u -r1.301 -r1.302

CVS commit: src/sys/kern

2022-08-12 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Aug 12 16:16:12 UTC 2022 Modified Files: src/sys/kern: subr_autoconf.c Log Message: autoconf(9): Provide diagnostics for config_detach_* misuse. To generate a diff of this commit: cvs rdiff -u -r1.301 -r1.302

CVS commit: src/sys/kern

2022-08-12 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Aug 12 15:17:10 UTC 2022 Modified Files: src/sys/kern: kern_module.c Log Message: module(9): Don't autounload unaudited modules by default. Modules that have not been audited for autounload safety don't recognize the

CVS commit: src/sys/kern

2022-08-12 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Aug 12 15:17:10 UTC 2022 Modified Files: src/sys/kern: kern_module.c Log Message: module(9): Don't autounload unaudited modules by default. Modules that have not been audited for autounload safety don't recognize the

CVS commit: src/sys/kern

2022-08-11 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Thu Aug 11 10:17:44 UTC 2022 Modified Files: src/sys/kern: vfs_trans.c Log Message: Finish previous, evaluate the lowest mount on first access to "struct mount_info" and store it here so we no longer derefence the "struct mount"

CVS commit: src/sys/kern

2022-08-11 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Thu Aug 11 10:17:44 UTC 2022 Modified Files: src/sys/kern: vfs_trans.c Log Message: Finish previous, evaluate the lowest mount on first access to "struct mount_info" and store it here so we no longer derefence the "struct mount"

CVS commit: src/sys/kern

2022-08-08 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Aug 8 22:31:45 UTC 2022 Modified Files: src/sys/kern: kern_ras.c Log Message: rasctl(2): Avoid arithmetic overflow. Reported-by: syzbot+40b6085d020ae47a6...@syzkaller.appspotmail.com

CVS commit: src/sys/kern

2022-08-08 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Aug 8 22:31:45 UTC 2022 Modified Files: src/sys/kern: kern_ras.c Log Message: rasctl(2): Avoid arithmetic overflow. Reported-by: syzbot+40b6085d020ae47a6...@syzkaller.appspotmail.com

Re: CVS commit: src/sys/kern

2022-08-07 Thread Taylor R Campbell
Reverted and alternative proposed on tech-kern! Sorry for the unilateral toe-stomping.

CVS commit: src/sys/kern

2022-08-07 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Aug 7 23:03:59 UTC 2022 Modified Files: src/sys/kern: kern_module.c Log Message: Revert "module(9): Disable module autounload by default." Needs more discussion. Maybe better with an opt-in mechanism to replace the

CVS commit: src/sys/kern

2022-08-07 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Aug 7 23:03:59 UTC 2022 Modified Files: src/sys/kern: kern_module.c Log Message: Revert "module(9): Disable module autounload by default." Needs more discussion. Maybe better with an opt-in mechanism to replace the

Re: CVS commit: src/sys/kern

2022-08-07 Thread Paul Goyette
On Sun, 7 Aug 2022, Paul Goyette wrote: On Sun, 7 Aug 2022, Taylor R Campbell wrote: Module Name:src Committed By: riastradh Date: Sun Aug 7 21:17:18 UTC 2022 Modified Files: src/sys/kern: kern_module.c Log Message: module(9): Disable module autounload by default.

Re: CVS commit: src/sys/kern

2022-08-07 Thread Paul Goyette
On Sun, 7 Aug 2022, Taylor R Campbell wrote: Module Name:src Committed By: riastradh Date: Sun Aug 7 21:17:18 UTC 2022 Modified Files: src/sys/kern: kern_module.c Log Message: module(9): Disable module autounload by default. I don't know why this was ever enabled by

CVS commit: src/sys/kern

2022-08-07 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Aug 7 21:17:18 UTC 2022 Modified Files: src/sys/kern: kern_module.c Log Message: module(9): Disable module autounload by default. I don't know why this was ever enabled by default; many modules are still not safe to

CVS commit: src/sys/kern

2022-08-07 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Aug 7 21:17:18 UTC 2022 Modified Files: src/sys/kern: kern_module.c Log Message: module(9): Disable module autounload by default. I don't know why this was ever enabled by default; many modules are still not safe to

CVS commit: src/sys/kern

2022-08-07 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Aug 7 20:44:39 UTC 2022 Modified Files: src/sys/kern: kern_module.c Log Message: module(9): Call callbacks in topological order on load. They are called in reverse topological order on unload. dtrace_sdt will rely on

CVS commit: src/sys/kern

2022-08-07 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Aug 7 20:44:39 UTC 2022 Modified Files: src/sys/kern: kern_module.c Log Message: module(9): Call callbacks in topological order on load. They are called in reverse topological order on unload. dtrace_sdt will rely on

CVS commit: src/sys/kern

2022-08-06 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Aug 6 21:21:10 UTC 2022 Modified Files: src/sys/kern: vfs_vnops.c Log Message: vnodeops(9): Take exclusive lock in read/seek for f_offset update. Otherwise concurrent readers/seekers might clobber it. To generate a

CVS commit: src/sys/kern

2022-08-06 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Aug 6 21:21:10 UTC 2022 Modified Files: src/sys/kern: vfs_vnops.c Log Message: vnodeops(9): Take exclusive lock in read/seek for f_offset update. Otherwise concurrent readers/seekers might clobber it. To generate a

CVS commit: src/sys/kern

2022-08-05 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Aug 5 23:43:46 UTC 2022 Modified Files: src/sys/kern: kern_entropy.c Log Message: entropy: Don't disclose stack garbage in kern.entropy sysctls. kern.entropy.consolidate and kern.entropy.gather are supposed to be

CVS commit: src/sys/kern

2022-08-05 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Aug 5 23:43:46 UTC 2022 Modified Files: src/sys/kern: kern_entropy.c Log Message: entropy: Don't disclose stack garbage in kern.entropy sysctls. kern.entropy.consolidate and kern.entropy.gather are supposed to be

CVS commit: src/sys/kern

2022-08-03 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Aug 3 11:09:13 UTC 2022 Modified Files: src/sys/kern: vfs_lockf.c Log Message: kern/vfs_lockf.c: Fix overflow in overflow detection. Reported-by: syzbot+cda9440741a151674...@syzkaller.appspotmail.com

  1   2   3   4   5   6   7   8   9   10   >