CVS commit: src/sys/kern

2022-11-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Nov 25 16:15:39 UTC 2022 Modified Files: src/sys/kern: vfs_lockf.c Log Message: kern/vfs_lockf.c: Parenthesize to make arithmetic match check. We verified start + (fl->fl_len - 1) would not overflow, but then computed

CVS commit: src/sys/kern

2022-11-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Nov 25 16:15:39 UTC 2022 Modified Files: src/sys/kern: vfs_lockf.c Log Message: kern/vfs_lockf.c: Parenthesize to make arithmetic match check. We verified start + (fl->fl_len - 1) would not overflow, but then computed

CVS commit: src/sys/kern

2022-11-19 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Sat Nov 19 15:30:12 UTC 2022 Modified Files: src/sys/kern: subr_optstr.c Log Message: Style. NFCI. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/kern/subr_optstr.c Please note that diffs are not public

CVS commit: src/sys/kern

2022-11-19 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Sat Nov 19 15:30:12 UTC 2022 Modified Files: src/sys/kern: subr_optstr.c Log Message: Style. NFCI. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/kern/subr_optstr.c Please note that diffs are not public

CVS commit: src/sys/kern

2022-11-17 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Nov 18 00:10:03 UTC 2022 Modified Files: src/sys/kern: vfs_init.c Log Message: kern/vfs_init.c: extern vfs_op_descs got rehomed in sys/vnode.h. To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59

CVS commit: src/sys/kern

2022-11-17 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Nov 18 00:10:03 UTC 2022 Modified Files: src/sys/kern: vfs_init.c Log Message: kern/vfs_init.c: extern vfs_op_descs got rehomed in sys/vnode.h. To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59

Re: CVS commit: src/sys/kern

2022-11-15 Thread Michael
Hello, On Tue, 15 Nov 2022 10:29:56 + "Michael Lorenz" wrote: > Module Name: src > Committed By: macallan > Date: Tue Nov 15 10:29:56 UTC 2022 > > Modified Files: > src/sys/kern: subr_pserialize.c > > Log Message: > don't KASSERT(kpreempt_disabled()) while cold >

CVS commit: src/sys/kern

2022-11-15 Thread Michael Lorenz
Module Name:src Committed By: macallan Date: Tue Nov 15 10:29:56 UTC 2022 Modified Files: src/sys/kern: subr_pserialize.c Log Message: don't KASSERT(kpreempt_disabled()) while cold pserialize_read_*() can be called *very* early in kernel startup these days To generate a

CVS commit: src/sys/kern

2022-11-15 Thread Michael Lorenz
Module Name:src Committed By: macallan Date: Tue Nov 15 10:29:56 UTC 2022 Modified Files: src/sys/kern: subr_pserialize.c Log Message: don't KASSERT(kpreempt_disabled()) while cold pserialize_read_*() can be called *very* early in kernel startup these days To generate a

CVS commit: src/sys/kern

2022-11-10 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Thu Nov 10 10:55:01 UTC 2022 Modified Files: src/sys/kern: vfs_mount.c Log Message: If built with DEBUG Limit the depth of file system stack so kernel sanitizers may stress mount/unmount without exhausting the kernel stack. To

CVS commit: src/sys/kern

2022-11-10 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Thu Nov 10 10:55:01 UTC 2022 Modified Files: src/sys/kern: vfs_mount.c Log Message: If built with DEBUG Limit the depth of file system stack so kernel sanitizers may stress mount/unmount without exhausting the kernel stack. To

CVS commit: src/sys/kern

2022-10-31 Thread Simon Burge
Module Name:src Committed By: simonb Date: Mon Oct 31 09:14:18 UTC 2022 Modified Files: src/sys/kern: subr_prf.c Log Message: Fix (invalid) gcc uninitialised warning with i386 gcc using -Os. To generate a diff of this commit: cvs rdiff -u -r1.195 -r1.196

CVS commit: src/sys/kern

2022-10-31 Thread Simon Burge
Module Name:src Committed By: simonb Date: Mon Oct 31 09:14:18 UTC 2022 Modified Files: src/sys/kern: subr_prf.c Log Message: Fix (invalid) gcc uninitialised warning with i386 gcc using -Os. To generate a diff of this commit: cvs rdiff -u -r1.195 -r1.196

CVS commit: src/sys/kern

2022-10-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Oct 29 11:41:00 UTC 2022 Modified Files: src/sys/kern: subr_workqueue.c Log Message: workqueue(9): Sprinkle dtrace probes. To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/sys/kern/subr_workqueue.c

CVS commit: src/sys/kern

2022-10-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Oct 29 11:41:00 UTC 2022 Modified Files: src/sys/kern: subr_workqueue.c Log Message: workqueue(9): Sprinkle dtrace probes. To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/sys/kern/subr_workqueue.c

CVS commit: src/sys/kern

2022-10-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Oct 29 10:52:36 UTC 2022 Modified Files: src/sys/kern: subr_devsw.c Log Message: devsw(9): Sprinkle dtrace probes on bdevsw, cdevsw calls. This is better than fbt-tracing the bdev_* and cdev_* functions because this way

CVS commit: src/sys/kern

2022-10-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Oct 29 10:52:36 UTC 2022 Modified Files: src/sys/kern: subr_devsw.c Log Message: devsw(9): Sprinkle dtrace probes on bdevsw, cdevsw calls. This is better than fbt-tracing the bdev_* and cdev_* functions because this way

CVS commit: src/sys/kern

2022-10-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Oct 29 00:19:22 UTC 2022 Modified Files: src/sys/kern: kern_timeout.c Log Message: callout(9): Mark new flags local unused for non-KDTRACE_HOOKS builds. (feel free to add a new __dtrace_used annotation to make this more

CVS commit: src/sys/kern

2022-10-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Oct 29 00:19:22 UTC 2022 Modified Files: src/sys/kern: kern_timeout.c Log Message: callout(9): Mark new flags local unused for non-KDTRACE_HOOKS builds. (feel free to add a new __dtrace_used annotation to make this more

CVS commit: src/sys/kern

2022-10-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Oct 28 21:53:26 UTC 2022 Modified Files: src/sys/kern: kern_timeout.c Log Message: callout(9): Sprinkle dtrace probes. To generate a diff of this commit: cvs rdiff -u -r1.71 -r1.72 src/sys/kern/kern_timeout.c Please

CVS commit: src/sys/kern

2022-10-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Oct 28 21:53:26 UTC 2022 Modified Files: src/sys/kern: kern_timeout.c Log Message: callout(9): Sprinkle dtrace probes. To generate a diff of this commit: cvs rdiff -u -r1.71 -r1.72 src/sys/kern/kern_timeout.c Please

CVS commit: src/sys/kern

2022-10-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Oct 28 21:52:22 UTC 2022 Modified Files: src/sys/kern: kern_timeout.c Log Message: callout(9): Nix trailing whitespace. No functional change intended. To generate a diff of this commit: cvs rdiff -u -r1.70 -r1.71

CVS commit: src/sys/kern

2022-10-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Oct 28 21:52:22 UTC 2022 Modified Files: src/sys/kern: kern_timeout.c Log Message: callout(9): Nix trailing whitespace. No functional change intended. To generate a diff of this commit: cvs rdiff -u -r1.70 -r1.71

CVS commit: src/sys/kern

2022-10-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Oct 28 21:52:02 UTC 2022 Modified Files: src/sys/kern: kern_softint.c Log Message: softint(9): Sprinkle dtrace probes. To generate a diff of this commit: cvs rdiff -u -r1.71 -r1.72 src/sys/kern/kern_softint.c Please

CVS commit: src/sys/kern

2022-10-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Oct 28 21:52:02 UTC 2022 Modified Files: src/sys/kern: kern_softint.c Log Message: softint(9): Sprinkle dtrace probes. To generate a diff of this commit: cvs rdiff -u -r1.71 -r1.72 src/sys/kern/kern_softint.c Please

CVS commit: src/sys/kern

2022-10-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Oct 26 23:28:30 UTC 2022 Modified Files: src/sys/kern: subr_log.c Log Message: kern/subr_log.c: log_lock is private; make it static, not extern. To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63

CVS commit: src/sys/kern

2022-10-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Oct 26 23:28:30 UTC 2022 Modified Files: src/sys/kern: subr_log.c Log Message: kern/subr_log.c: log_lock is private; make it static, not extern. To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63

CVS commit: src/sys/kern

2022-10-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Oct 26 23:28:18 UTC 2022 Modified Files: src/sys/kern: kern_lock.c Log Message: kern/kern_lock.c: We get start_init_exec from sys/kernel.h now. To generate a diff of this commit: cvs rdiff -u -r1.180 -r1.181

CVS commit: src/sys/kern

2022-10-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Oct 26 23:28:18 UTC 2022 Modified Files: src/sys/kern: kern_lock.c Log Message: kern/kern_lock.c: We get start_init_exec from sys/kernel.h now. To generate a diff of this commit: cvs rdiff -u -r1.180 -r1.181

CVS commit: src/sys/kern

2022-10-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Oct 26 23:27:16 UTC 2022 Modified Files: src/sys/kern: kern_turnstile.c Log Message: kern/kern_turnstile.c: Get turnstile0 from sys/sleeptab.h. To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45

CVS commit: src/sys/kern

2022-10-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Oct 26 23:27:16 UTC 2022 Modified Files: src/sys/kern: kern_turnstile.c Log Message: kern/kern_turnstile.c: Get turnstile0 from sys/sleeptab.h. To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45

CVS commit: src/sys/kern

2022-10-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Oct 26 23:26:57 UTC 2022 Modified Files: src/sys/kern: kgdb_stub.c Log Message: kgdb(9): Use ddb/db_extern.h instead of copying extern. To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31

CVS commit: src/sys/kern

2022-10-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Oct 26 23:26:57 UTC 2022 Modified Files: src/sys/kern: kgdb_stub.c Log Message: kgdb(9): Use ddb/db_extern.h instead of copying extern. To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31

CVS commit: src/sys/kern

2022-10-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Oct 26 23:26:45 UTC 2022 Modified Files: src/sys/kern: subr_kobj.c Log Message: kern/subr_kobj.c: We already get module_base from sys/module.h. To generate a diff of this commit: cvs rdiff -u -r1.74 -r1.75

CVS commit: src/sys/kern

2022-10-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Oct 26 23:26:45 UTC 2022 Modified Files: src/sys/kern: subr_kobj.c Log Message: kern/subr_kobj.c: We already get module_base from sys/module.h. To generate a diff of this commit: cvs rdiff -u -r1.74 -r1.75

CVS commit: src/sys/kern

2022-10-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Oct 26 23:24:21 UTC 2022 Modified Files: src/sys/kern: subr_kcov.c Log Message: kern/subr_kcov.c: We already get cold from sys/kernel.h. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18

CVS commit: src/sys/kern

2022-10-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Oct 26 23:24:21 UTC 2022 Modified Files: src/sys/kern: subr_kcov.c Log Message: kern/subr_kcov.c: We already get cold from sys/kernel.h. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18

CVS commit: src/sys/kern

2022-10-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Oct 26 23:23:28 UTC 2022 Modified Files: src/sys/kern: kern_synch.c Log Message: kern/kern_synch.c: Get averunnable from sys/resource.h. To generate a diff of this commit: cvs rdiff -u -r1.351 -r1.352

CVS commit: src/sys/kern

2022-10-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Oct 26 23:23:28 UTC 2022 Modified Files: src/sys/kern: kern_synch.c Log Message: kern/kern_synch.c: Get averunnable from sys/resource.h. To generate a diff of this commit: cvs rdiff -u -r1.351 -r1.352

CVS commit: src/sys/kern

2022-10-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Oct 26 23:22:38 UTC 2022 Modified Files: src/sys/kern: kern_pax.c Log Message: kern/kern_pax.c: Get maxsmap from sys/resourcevar.h. To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63 src/sys/kern/kern_pax.c

CVS commit: src/sys/kern

2022-10-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Oct 26 23:22:38 UTC 2022 Modified Files: src/sys/kern: kern_pax.c Log Message: kern/kern_pax.c: Get maxsmap from sys/resourcevar.h. To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63 src/sys/kern/kern_pax.c

CVS commit: src/sys/kern

2022-10-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Oct 26 23:21:06 UTC 2022 Modified Files: src/sys/kern: kern_hook.c Log Message: kern/kern_hook.c: Get exec_lock from sys/exec.h. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/kern/kern_hook.c

CVS commit: src/sys/kern

2022-10-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Oct 26 23:21:06 UTC 2022 Modified Files: src/sys/kern: kern_hook.c Log Message: kern/kern_hook.c: Get exec_lock from sys/exec.h. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/kern/kern_hook.c

CVS commit: src/sys/kern

2022-10-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Oct 26 23:20:47 UTC 2022 Modified Files: src/sys/kern: init_main.c Log Message: kern/init_main.c: Get extern lwp0 from sys/lwp.h. To generate a diff of this commit: cvs rdiff -u -r1.540 -r1.541 src/sys/kern/init_main.c

CVS commit: src/sys/kern

2022-10-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Oct 26 23:20:47 UTC 2022 Modified Files: src/sys/kern: init_main.c Log Message: kern/init_main.c: Get extern lwp0 from sys/lwp.h. To generate a diff of this commit: cvs rdiff -u -r1.540 -r1.541 src/sys/kern/init_main.c

CVS commit: src/sys/kern

2022-10-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Oct 26 23:20:36 UTC 2022 Modified Files: src/sys/kern: exec_elf.c kern_proc.c Log Message: kern/exec_elf.c: Get emul_netbsd from sys/proc.h. To generate a diff of this commit: cvs rdiff -u -r1.103 -r1.104

CVS commit: src/sys/kern

2022-10-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Oct 26 23:20:36 UTC 2022 Modified Files: src/sys/kern: exec_elf.c kern_proc.c Log Message: kern/exec_elf.c: Get emul_netbsd from sys/proc.h. To generate a diff of this commit: cvs rdiff -u -r1.103 -r1.104

CVS commit: src/sys/kern

2022-10-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Oct 25 23:22:36 UTC 2022 Modified Files: src/sys/kern: vfs_xattr.c Log Message: extattr(9): KNF No functional change intended. To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/sys/kern/vfs_xattr.c

CVS commit: src/sys/kern

2022-10-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Oct 25 23:22:36 UTC 2022 Modified Files: src/sys/kern: vfs_xattr.c Log Message: extattr(9): KNF No functional change intended. To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/sys/kern/vfs_xattr.c

CVS commit: src/sys/kern

2022-10-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Oct 25 23:22:17 UTC 2022 Modified Files: src/sys/kern: vfs_xattr.c Log Message: extattr(9): Fix uninitialized uio_iovcnt. To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/sys/kern/vfs_xattr.c Please

CVS commit: src/sys/kern

2022-10-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue Oct 25 23:22:17 UTC 2022 Modified Files: src/sys/kern: vfs_xattr.c Log Message: extattr(9): Fix uninitialized uio_iovcnt. To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/sys/kern/vfs_xattr.c Please

CVS commit: src/sys/kern

2022-10-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Oct 15 15:28:23 UTC 2022 Modified Files: src/sys/kern: subr_kobj.c Log Message: kobj(9): Rephrase kobj_load and kobj_affix positively. Write error cases as branches, normal cases as straight-line code. Side effect: One

CVS commit: src/sys/kern

2022-10-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Oct 15 15:28:23 UTC 2022 Modified Files: src/sys/kern: subr_kobj.c Log Message: kobj(9): Rephrase kobj_load and kobj_affix positively. Write error cases as branches, normal cases as straight-line code. Side effect: One

CVS commit: src/sys/kern

2022-10-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Oct 15 15:27:20 UTC 2022 Modified Files: src/sys/kern: subr_kobj.c Log Message: kobj(9): Fix kobj_read_mem error branches. Rewrite positively to simplify logic: Write errors as branches, normal case as straight-line code.

CVS commit: src/sys/kern

2022-10-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Oct 15 15:27:20 UTC 2022 Modified Files: src/sys/kern: subr_kobj.c Log Message: kobj(9): Fix kobj_read_mem error branches. Rewrite positively to simplify logic: Write errors as branches, normal case as straight-line code.

CVS commit: src/sys/kern

2022-10-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Oct 15 15:23:24 UTC 2022 Modified Files: src/sys/kern: subr_kobj.c Log Message: kobj(9): Avoid arithmetic overflow in overflow detection. To generate a diff of this commit: cvs rdiff -u -r1.70 -r1.71

CVS commit: src/sys/kern

2022-10-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Oct 15 15:23:24 UTC 2022 Modified Files: src/sys/kern: subr_kobj.c Log Message: kobj(9): Avoid arithmetic overflow in overflow detection. To generate a diff of this commit: cvs rdiff -u -r1.70 -r1.71

CVS commit: src/sys/kern

2022-10-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Oct 15 15:22:27 UTC 2022 Modified Files: src/sys/kern: subr_kobj.c Log Message: kobj(9): Forbid reading negative offsets. Shouldn't have any functional change, but let's fail with EINVAL rather than reading arbitrarily

CVS commit: src/sys/kern

2022-10-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Oct 15 15:22:27 UTC 2022 Modified Files: src/sys/kern: subr_kobj.c Log Message: kobj(9): Forbid reading negative offsets. Shouldn't have any functional change, but let's fail with EINVAL rather than reading arbitrarily

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

  1   2   3   4   5   6   7   8   9   10   >