Re: CVS commit: src/sys/kern

2020-08-02 Thread Kamil Rytarowski
On 02.08.2020 15:57, Taylor R Campbell wrote: > But it sounds like the original motivation is that it triggered > -Wvla...which frankly strikes me as a compiler bug since there's > obviously no actual VLA created in sizeof; as far as I can tell > there's no semantic difference between

Re: CVS commit: src/sys/kern

2020-08-02 Thread Taylor R Campbell
> Date: Sun, 2 Aug 2020 10:47:21 +0200 > From: Jarom�r Dole ek > > Readability first and foremost in this case. > > I was exploring if I can disable VLAs for the kernel altogether, this > can't be done for now. Nevertheless, this change looked like it would > be useful to make anyway. Why does

Re: CVS commit: src/sys/kern

2020-08-02 Thread Jaromír Doleček
Readability first and foremost in this case. I was exploring if I can disable VLAs for the kernel altogether, this can't be done for now. Nevertheless, this change looked like it would be useful to make anyway. Le dim. 2 août 2020 à 01:15, Taylor R Campbell a écrit : > > > Module Name:src >

Re: CVS commit: src/sys/kern

2020-08-01 Thread Taylor R Campbell
> Module Name:src > Committed By: jdolecek > Date: Sat Aug 1 11:18:26 UTC 2020 > > Modified Files: > src/sys/kern: subr_autoconf.c > > Log Message: > avoid VLA for the sizeof() calculations Why?

Re: [sctp fix] Re: CVS commit: src/sys/kern

2020-07-18 Thread Maxime Villard
Le 28/04/2020 à 09:16, Luke Mewburn a écrit : On 20-04-26 18:15, Maxime Villard wrote: | - There was no demonstrated use-case justifying importing it. In addition, |major OSes like Windows and macOS do not implement SCTP. There just is no |demand for SCTP on the market; and on

Re: CVS commit: src/sys/kern

2020-06-01 Thread Rin Okuyama
On 2020/06/02 2:08, Joerg Sonnenberger wrote: On Sun, May 31, 2020 at 11:24:20PM +, Rin Okuyama wrote: Module Name:src Committed By: rin Date: Sun May 31 23:24:20 UTC 2020 Modified Files: src/sys/kern: kern_timeout.c Log Message: Stop allocating buffers dynamically

Re: CVS commit: src/sys/kern

2020-06-01 Thread Joerg Sonnenberger
On Sun, May 31, 2020 at 11:24:20PM +, Rin Okuyama wrote: > Module Name: src > Committed By: rin > Date: Sun May 31 23:24:20 UTC 2020 > > Modified Files: > src/sys/kern: kern_timeout.c > > Log Message: > Stop allocating buffers dynamically in a DDB session, in order not to >

re: CVS commit: src/sys/kern

2020-05-31 Thread matthew green
"Rin Okuyama" writes: > Module Name: src > Committed By: rin > Date: Sun May 31 08:33:48 UTC 2020 > > Modified Files: > src/sys/kern: kern_timeout.c > > Log Message: > db_show_callout(): struct callout_cpu and cpu_info are too much for stack. > > XXX > DDB can be running in the

Re: CVS commit: src/sys/kern

2020-05-31 Thread Jason Thorpe
> On May 31, 2020, at 1:33 AM, Rin Okuyama wrote: > > db_show_callout(): struct callout_cpu and cpu_info are too much for stack. > > XXX > DDB can be running in the interrupt context, e.g., when activated from > console. Therefore, use kmem_intr_alloc(9) instead of kmem_alloc(9). > > Frame

Re: CVS commit: src/sys/kern

2020-05-07 Thread Kamil Rytarowski
On 07.05.2020 07:46, Michael van Elst wrote: > On Wed, May 06, 2020 at 12:39:21PM +0200, Kamil Rytarowski wrote: > > Hi Kamil, > >> If I revert the pipe(2) changes on top of NetBSD-current, the test is no >> longer racy again. > > I tried 9.99.60 with and without my bugfix. The test always

Re: CVS commit: src/sys/kern

2020-05-06 Thread Michael van Elst
On Wed, May 06, 2020 at 12:39:21PM +0200, Kamil Rytarowski wrote: Hi Kamil, > If I revert the pipe(2) changes on top of NetBSD-current, the test is no > longer racy again. I tried 9.99.60 with and without my bugfix. The test always failed after some time with exactly that error. If the change

Re: CVS commit: src/sys/kern

2020-05-06 Thread Kamil Rytarowski
This caused regressions in t_ptrace_wait* tests and random hangs/timeouts/failures. If I revert the pipe(2) changes on top of NetBSD-current, the test is no longer racy again. http://netbsd.org/~kamil/patch-00249-pipe-revert.txt Reproducer: cd /usr/tests/lib/libc/sys ./t_ptrace_waitpid

Re: [sctp fix] Re: CVS commit: src/sys/kern

2020-05-02 Thread maya
On Fri, May 01, 2020 at 04:46:36PM +, m...@netbsd.org wrote: > We can setup an equivalence: put as much effort into the SCTP removal > proposal as there was for the SCTP introduction proposal. > > Since SCTP was just dropped in src without any prior discussion, I don't > think we need any

Re: [sctp fix] Re: CVS commit: src/sys/kern

2020-05-01 Thread maya
We can setup an equivalence: put as much effort into the SCTP removal proposal as there was for the SCTP introduction proposal. Since SCTP was just dropped in src without any prior discussion, I don't think we need any discussion for removing it.

Re: [sctp fix] Re: CVS commit: src/sys/kern

2020-04-28 Thread Luke Mewburn
On 20-04-26 18:15, Maxime Villard wrote: | - There was no demonstrated use-case justifying importing it. In addition, |major OSes like Windows and macOS do not implement SCTP. There just is no |demand for SCTP on the market; and on NetBSD, proportionally even less. SCTP is used in

Re: CVS commit: src/sys/kern

2020-04-26 Thread Jason Thorpe
> On Apr 26, 2020, at 2:04 PM, Michael van Elst wrote: > > Log Message: > fix DIAGNOSTIC build non-DIAGNOSTIC you mean? -- thorpej

[sctp fix] Re: CVS commit: src/sys/kern

2020-04-26 Thread Maxime Villard
Le 26/04/2020 à 16:21, Jonathan A. Kollasch a écrit : > Module Name: src > Committed By: jakllsch > Date: Sun Apr 26 14:21:14 UTC 2020 > > Modified Files: > src/sys/kern: uipc_socket.c > > Log Message: > Implement SCTP bug fixes found by maxv@. > > Adding these seems to improve

Re: CVS commit: src/sys/kern

2020-04-13 Thread Andrew Doran
On Mon, Apr 13, 2020 at 04:34:48PM +0100, Roy Marples wrote: > On 13/04/2020 16:31, Andrew Doran wrote: > > Hi Roy. > > > > On Sat, Apr 11, 2020 at 02:13:06AM +0100, Roy Marples wrote: > > > On 10/04/2020 23:34, Andrew Doran wrote: > > > > Module Name:src > > > > Committed By: ad > > > >

Re: CVS commit: src/sys/kern

2020-04-13 Thread Roy Marples
On 13/04/2020 16:31, Andrew Doran wrote: Hi Roy. On Sat, Apr 11, 2020 at 02:13:06AM +0100, Roy Marples wrote: On 10/04/2020 23:34, Andrew Doran wrote: Module Name:src Committed By: ad Date: Fri Apr 10 22:34:36 UTC 2020 Modified Files: src/sys/kern: vfs_mount.c Log

Re: CVS commit: src/sys/kern

2020-04-13 Thread Andrew Doran
Hi Roy. On Sat, Apr 11, 2020 at 02:13:06AM +0100, Roy Marples wrote: > On 10/04/2020 23:34, Andrew Doran wrote: > > Module Name:src > > Committed By: ad > > Date: Fri Apr 10 22:34:36 UTC 2020 > > > > Modified Files: > > src/sys/kern: vfs_mount.c > > > > Log

Re: CVS commit: src/sys/kern

2020-04-10 Thread Roy Marples
On 10/04/2020 23:34, Andrew Doran wrote: Module Name:src Committed By: ad Date: Fri Apr 10 22:34:36 UTC 2020 Modified Files: src/sys/kern: vfs_mount.c Log Message: vfs_mountroot(): don't needlessly grab a second reference to the root vnode (the kernel never chdirs) nor

Re: [vfs_cache] Re: CVS commit: src/sys/kern

2020-04-05 Thread Andrew Doran
On Sun, Mar 29, 2020 at 11:41:23AM +0200, Maxime Villard wrote: > Le 23/03/2020 ? 21:02, Andrew Doran a ?crit?: > > Module Name:src > > Committed By: ad > > Date: Mon Mar 23 20:02:14 UTC 2020 > > > > Modified Files: > > src/sys/kern: vfs_cache.c > > > > Log

[vfs_cache] Re: CVS commit: src/sys/kern

2020-03-29 Thread Maxime Villard
Le 23/03/2020 à 21:02, Andrew Doran a écrit : > Module Name: src > Committed By: ad > Date: Mon Mar 23 20:02:14 UTC 2020 > > Modified Files: > src/sys/kern: vfs_cache.c > > Log Message: > cache_remove(): remove from the vnode list first, so cache_revlookup() > doesn't try to

Re: CVS commit: src/sys/kern

2020-03-09 Thread Maxime Villard
Le 08/03/2020 à 21:41, Andrew Doran a écrit : > On Sun, Mar 08, 2020 at 08:34:29AM +0100, Maxime Villard wrote: >> Le 08/03/2020 ? 01:31, Andrew Doran a ?crit?: >>> Module Name:src >>> Committed By: ad >>> Date: Sun Mar 8 00:31:19 UTC 2020 >>> >>> Modified Files: >>>

Re: CVS commit: src/sys/kern

2020-03-08 Thread Andrew Doran
On Sun, Mar 08, 2020 at 08:34:29AM +0100, Maxime Villard wrote: > Le 08/03/2020 ? 01:31, Andrew Doran a ?crit?: > > Module Name:src > > Committed By: ad > > Date: Sun Mar 8 00:31:19 UTC 2020 > > > > Modified Files: > > src/sys/kern: subr_kmem.c > > > > Log

Re: CVS commit: src/sys/kern

2020-03-07 Thread Maxime Villard
Le 08/03/2020 à 01:31, Andrew Doran a écrit : > Module Name: src > Committed By: ad > Date: Sun Mar 8 00:31:19 UTC 2020 > > Modified Files: > src/sys/kern: subr_kmem.c > > Log Message: > KMEM_SIZE: append the size_t to the allocated buffer, rather than > prepending, so it doesn't

Re: CVS commit: src/sys/kern

2020-03-03 Thread Andrew Doran
On Tue, Mar 03, 2020 at 02:55:16PM -0500, Christos Zoulas wrote: > Module Name: src > Committed By: christos > Date: Tue Mar 3 19:55:16 UTC 2020 > > Modified Files: > src/sys/kern: vfs_syscalls.c > > Log Message: > don't skip the rdir check for the lazy case; breaks chroot df(1)

Re: CVS commit: src/sys/kern

2020-03-02 Thread Taylor R Campbell
> Date: Tue, 3 Mar 2020 12:41:32 +0900 > From: Rin Okuyama > > On 2020/03/03 1:00, Taylor R Campbell wrote: > > Include kern_crashme.c in non-DEBUG kernels. > > > > This is useful for simulating crashes in production to test failover. > > I like this. > > Could you please send pullup request

Re: CVS commit: src/sys/kern

2020-03-02 Thread Rin Okuyama
Hi, On 2020/03/03 1:00, Taylor R Campbell wrote: Module Name:src Committed By: riastradh Date: Mon Mar 2 16:00:54 UTC 2020 Modified Files: src/sys/kern: files.kern Log Message: Include kern_crashme.c in non-DEBUG kernels. This is useful for simulating crashes in

Re: CVS commit: src/sys/kern

2020-02-25 Thread Kamil Rytarowski
On 24.02.2020 21:47, Jaromir Dolecek wrote: > Module Name: src > Committed By: jdolecek > Date: Mon Feb 24 20:47:47 UTC 2020 > > Modified Files: > src/sys/kern: init_main.c > > Log Message: > move config_init_mi() call before vfsinit(), which can trigger loading > of VFS modules >

re: CVS commit: src/sys/kern

2020-02-23 Thread matthew green
"Andrew Doran" writes: > Module Name: src > Committed By: ad > Date: Sun Feb 23 20:08:35 UTC 2020 > > Modified Files: > src/sys/kern: kern_pmf.c > > Log Message: > shutdown_all: take kernel_lock now that kern_reboot() doesn't. ah, i am now guessing that having the kernel lock

re: CVS commit: src/sys/kern

2020-02-23 Thread matthew green
"Andrew Doran" writes: > Module Name: src > Committed By: ad > Date: Sun Feb 23 20:06:30 UTC 2020 > > Modified Files: > src/sys/kern: kern_reboot.c > > Log Message: > - If concurrent calls to kern_reboot(), only let the first do the deed. > - Don't need kernel_lock for this

Re: CVS commit: src/sys/kern

2020-02-21 Thread Kamil Rytarowski
On 20.02.2020 22:14, Jaromir Dolecek wrote: > Module Name: src > Committed By: jdolecek > Date: Thu Feb 20 21:14:23 UTC 2020 > > Modified Files: > src/sys/kern: subr_autoconf.c > > Log Message: > protect deferred lists' manipulation by config_misc_lock, same as > config_pending

Re: CVS commit: src/sys/kern

2020-02-18 Thread J. Hannken-Illjes
> On Feb 17, 2020, at 11:19 PM, Andrew Doran wrote: > > Hi, > > On Thu, Feb 06, 2020 at 06:33:55PM +0100, J. Hannken-Illjes wrote: > >>> On 12. Jan 2020, at 18:49, Andrew Doran wrote: >>> >>> Module Name:src >>> Committed By: ad >>> Date: Sun Jan 12 17:49:17 UTC

Re: CVS commit: src/sys/kern

2020-02-17 Thread Andrew Doran
Hi, On Thu, Feb 06, 2020 at 06:33:55PM +0100, J. Hannken-Illjes wrote: > > On 12. Jan 2020, at 18:49, Andrew Doran wrote: > > > > Module Name:src > > Committed By: ad > > Date: Sun Jan 12 17:49:17 UTC 2020 > > > > Modified Files: > > src/sys/kern: vfs_vnode.c >

Re: CVS commit: src/sys/kern

2020-02-06 Thread J. Hannken-Illjes
> On 12. Jan 2020, at 18:49, Andrew Doran wrote: > > Module Name: src > Committed By: ad > Date: Sun Jan 12 17:49:17 UTC 2020 > > Modified Files: > src/sys/kern: vfs_vnode.c > > Log Message: > vput(): don't drop the vnode lock, carry the hold over into vrelel() which > might

Re: CVS commit: src/sys/kern

2020-01-21 Thread Simon Burge
"Christos Zoulas" wrote: > Log Message: > > Don't crash if we are on a hippie trail, head full of zombie +1 for any Australian references in a commit message :) Cheers, Simon.

re: CVS commit: src/sys/kern

2019-12-12 Thread matthew green
> Therefore, I wouldn't bother adding kcov.h headers, and rolling back to the > previous version of in_interrupt for now is fine, considering that kcov > currently has no use outside of amd64. if you want to put code in sys/kern please make it portable. adding more MD code in MI places is the

Re: CVS commit: src/sys/kern

2019-12-12 Thread Maxime Villard
Le 08/12/2019 à 14:22, Martin Husemann a écrit : On Sun, Dec 08, 2019 at 12:58:20PM +0100, Maxime Villard wrote: kMSan has special constraints which, in this specific case, come down to: each function called from a KCOV instrumentation callback must be a static inline tagged with __nomsan.

re: CVS commit: src/sys/kern

2019-12-10 Thread matthew green
> > > Log Message: > > > Expunge the panicstr checks, we don't need them. > > > > can you explain why? > > Sure, [ .. ] ah, wow. i didn't realise it had such a bad effect on cpus before they actually go properly down. we should probably work hard to make them go down faster if possible,

Re: CVS commit: src/sys/kern

2019-12-10 Thread Andrew Doran
On Wed, Dec 11, 2019 at 09:06:33AM +1100, matthew green wrote: > "Andrew Doran" writes: > > Module Name:src > > Committed By: ad > > Date: Mon Dec 9 21:02:10 UTC 2019 > > > > Modified Files: > > src/sys/kern: kern_rwlock.c > > > > Log Message: > > Expunge the

re: CVS commit: src/sys/kern

2019-12-10 Thread matthew green
"Andrew Doran" writes: > Module Name: src > Committed By: ad > Date: Mon Dec 9 21:02:10 UTC 2019 > > Modified Files: > src/sys/kern: kern_rwlock.c > > Log Message: > Expunge the panicstr checks, we don't need them. can you explain why? what sort of crash-time testing did you

Re: CVS commit: src/sys/kern

2019-12-09 Thread Jason Thorpe
> On Dec 9, 2019, at 1:08 PM, Paul Goyette wrote: > > On Mon, 9 Dec 2019, Andrew Doran wrote: > >> Module Name: src >> Committed By:ad >> Date:Mon Dec 9 21:05:23 UTC 2019 >> >> Modified Files: >> src/sys/kern: kern_mutex.c >> >> Log Message: >> - Add a

Re: CVS commit: src/sys/kern

2019-12-09 Thread Paul Goyette
On Mon, 9 Dec 2019, Andrew Doran wrote: Module Name:src Committed By: ad Date: Mon Dec 9 21:05:23 UTC 2019 Modified Files: src/sys/kern: kern_mutex.c Log Message: - Add a mutex_owner_running() for the benefit of the pagedaemon, which needs help with locking things in

Re: CVS commit: src/sys/kern

2019-12-08 Thread Martin Husemann
On Sun, Dec 08, 2019 at 12:58:20PM +0100, Maxime Villard wrote: > kMSan has special constraints which, in this specific case, come down to: each > function called from a KCOV instrumentation callback must be a static inline > tagged with __nomsan. > > This was not the case with the updated

Re: CVS commit: src/sys/kern

2019-12-08 Thread Maxime Villard
Le 08/12/2019 à 00:51, Kamil Rytarowski a écrit : On 08.12.2019 00:35, matthew green wrote: Module Name:src Committed By: kamil Date: Sat Dec 7 19:50:34 UTC 2019 Modified Files: src/sys/kern: subr_kcov.c Log Message: Revert the in_interrupt() change to use again the

Re: CVS commit: src/sys/kern

2019-12-07 Thread Kamil Rytarowski
On 08.12.2019 00:35, matthew green wrote: >> Module Name: src >> Committed By:kamil >> Date:Sat Dec 7 19:50:34 UTC 2019 >> >> Modified Files: >> src/sys/kern: subr_kcov.c >> >> Log Message: >> Revert the in_interrupt() change to use again the x86 specific code >> >>

re: CVS commit: src/sys/kern

2019-12-07 Thread matthew green
> Module Name: src > Committed By: kamil > Date: Sat Dec 7 19:50:34 UTC 2019 > > Modified Files: > src/sys/kern: subr_kcov.c > > Log Message: > Revert the in_interrupt() change to use again the x86 specific code > > This is prerequisite for kMSan and upcoming kernel changes. >

Re: CVS commit: src/sys/kern [change in kern_lwp.c]

2019-12-03 Thread Maxime Villard
Le 01/12/2019 à 16:27, Andrew Doran a écrit : Module Name:src Committed By: ad Date: Sun Dec 1 15:27:58 UTC 2019 Modified Files: src/sys/kern: kern_lwp.c Log Message: Fix a longstanding problem with LWP limits. When changing the user's LWP count, we must use the

Re: CVS commit: src/sys/kern

2019-11-30 Thread Rin Okuyama
On 2019/11/30 23:35, Andrew Doran wrote: Hmm, it works fine on amd64 and looks OK but me, but I have backed it out for the time being. Thanks! Also thank you for working on this area! rin

CVS commit: src/sys/kern

2019-11-30 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sat Nov 30 20:45:49 UTC 2019 Modified Files: src/sys/kern: tty_ptm.c Log Message: VOP_UNLOCK + vrele -> vput To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/sys/kern/tty_ptm.c Please note that diffs are not

CVS commit: src/sys/kern

2019-11-30 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sat Nov 30 20:45:49 UTC 2019 Modified Files: src/sys/kern: tty_ptm.c Log Message: VOP_UNLOCK + vrele -> vput To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/sys/kern/tty_ptm.c Please note that diffs are not

Re: CVS commit: src/sys/kern

2019-11-30 Thread Andrew Doran
Hi, On Sat, Nov 30, 2019 at 04:52:38PM +0900, Rin Okuyama wrote: > On 2019/11/30 5:50, Andrew Doran wrote: > > Module Name:src > > Committed By: ad > > Date: Fri Nov 29 20:50:54 UTC 2019 > > > > Modified Files: > > src/sys/kern: kern_rwlock.c > > > > Log Message:

CVS commit: src/sys/kern

2019-11-30 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sat Nov 30 14:21:16 UTC 2019 Modified Files: src/sys/kern: kern_rwlock.c Log Message: Back out previous. It works on amd64 under stress test but not evbarm-aarch64 for some reason. Will revisit. To generate a diff of this commit:

CVS commit: src/sys/kern

2019-11-30 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sat Nov 30 14:21:16 UTC 2019 Modified Files: src/sys/kern: kern_rwlock.c Log Message: Back out previous. It works on amd64 under stress test but not evbarm-aarch64 for some reason. Will revisit. To generate a diff of this commit:

Re: CVS commit: src/sys/kern

2019-11-29 Thread Rin Okuyama
On 2019/11/30 5:50, Andrew Doran wrote: Module Name:src Committed By: ad Date: Fri Nov 29 20:50:54 UTC 2019 Modified Files: src/sys/kern: kern_rwlock.c Log Message: A couple more tweaks to avoid reading the lock word. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/kern

2019-11-29 Thread Andrew Doran
Module Name:src Committed By: ad Date: Fri Nov 29 20:50:54 UTC 2019 Modified Files: src/sys/kern: kern_rwlock.c Log Message: A couple more tweaks to avoid reading the lock word. To generate a diff of this commit: cvs rdiff -u -r1.56 -r1.57 src/sys/kern/kern_rwlock.c

CVS commit: src/sys/kern

2019-11-29 Thread Andrew Doran
Module Name:src Committed By: ad Date: Fri Nov 29 20:50:54 UTC 2019 Modified Files: src/sys/kern: kern_rwlock.c Log Message: A couple more tweaks to avoid reading the lock word. To generate a diff of this commit: cvs rdiff -u -r1.56 -r1.57 src/sys/kern/kern_rwlock.c

CVS commit: src/sys/kern

2019-11-29 Thread Andrew Doran
Module Name:src Committed By: ad Date: Fri Nov 29 19:44:59 UTC 2019 Modified Files: src/sys/kern: kern_mutex.c Log Message: Get rid of MUTEX_RECEIVE/MUTEX_GIVE. To generate a diff of this commit: cvs rdiff -u -r1.79 -r1.80 src/sys/kern/kern_mutex.c Please note that

CVS commit: src/sys/kern

2019-11-29 Thread Andrew Doran
Module Name:src Committed By: ad Date: Fri Nov 29 19:44:59 UTC 2019 Modified Files: src/sys/kern: kern_mutex.c Log Message: Get rid of MUTEX_RECEIVE/MUTEX_GIVE. To generate a diff of this commit: cvs rdiff -u -r1.79 -r1.80 src/sys/kern/kern_mutex.c Please note that

CVS commit: src/sys/kern

2019-11-29 Thread Andrew Doran
Module Name:src Committed By: ad Date: Fri Nov 29 18:29:45 UTC 2019 Modified Files: src/sys/kern: sched_4bsd.c Log Message: Don't try to kpreempt a CPU hog unless __HAVE_PREEMPTION (oops). To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38

CVS commit: src/sys/kern

2019-11-29 Thread Andrew Doran
Module Name:src Committed By: ad Date: Fri Nov 29 18:29:45 UTC 2019 Modified Files: src/sys/kern: sched_4bsd.c Log Message: Don't try to kpreempt a CPU hog unless __HAVE_PREEMPTION (oops). To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38

CVS commit: src/sys/kern

2019-11-27 Thread Andrew Doran
Module Name:src Committed By: ad Date: Wed Nov 27 20:31:13 UTC 2019 Modified Files: src/sys/kern: kern_runq.c Log Message: Don't try to IPI other CPUs early on. Fixes a crash on sparc64. Thanks to martin@ for diagnosing. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/kern

2019-11-27 Thread Andrew Doran
Module Name:src Committed By: ad Date: Wed Nov 27 20:31:13 UTC 2019 Modified Files: src/sys/kern: kern_runq.c Log Message: Don't try to IPI other CPUs early on. Fixes a crash on sparc64. Thanks to martin@ for diagnosing. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/kern

2019-11-25 Thread Andrew Doran
Module Name:src Committed By: ad Date: Mon Nov 25 20:16:23 UTC 2019 Modified Files: src/sys/kern: kern_rwlock.c Log Message: Remove some unneeded memory barriers and reads of the lock word. Prodded by Mateusz Guzik. To generate a diff of this commit: cvs rdiff -u -r1.54

CVS commit: src/sys/kern

2019-11-25 Thread Andrew Doran
Module Name:src Committed By: ad Date: Mon Nov 25 20:16:23 UTC 2019 Modified Files: src/sys/kern: kern_rwlock.c Log Message: Remove some unneeded memory barriers and reads of the lock word. Prodded by Mateusz Guzik. To generate a diff of this commit: cvs rdiff -u -r1.54

CVS commit: src/sys/kern

2019-11-25 Thread Andrew Doran
Module Name:src Committed By: ad Date: Mon Nov 25 17:24:59 UTC 2019 Modified Files: src/sys/kern: kern_softint.c Log Message: port-sparc/54718 (sparc install hangs since recent scheduler changes) To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51

CVS commit: src/sys/kern

2019-11-25 Thread Andrew Doran
Module Name:src Committed By: ad Date: Mon Nov 25 17:24:59 UTC 2019 Modified Files: src/sys/kern: kern_softint.c Log Message: port-sparc/54718 (sparc install hangs since recent scheduler changes) To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51

CVS commit: src/sys/kern

2019-11-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Nov 25 15:19:54 UTC 2019 Modified Files: src/sys/kern: subr_cprng.c Log Message: Use cprng_strong, not cprng_fast, for sysctl kern.arnd. To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33

CVS commit: src/sys/kern

2019-11-25 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Nov 25 15:19:54 UTC 2019 Modified Files: src/sys/kern: subr_cprng.c Log Message: Use cprng_strong, not cprng_fast, for sysctl kern.arnd. To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33

CVS commit: src/sys/kern

2019-11-24 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sun Nov 24 13:23:57 UTC 2019 Modified Files: src/sys/kern: kern_lwp.c Log Message: lwp_start(): don't try to change the target CPU. Fixes potential panic in setrunnable(). Oops, experimental change that escaped. To generate a diff

CVS commit: src/sys/kern

2019-11-24 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sun Nov 24 13:23:57 UTC 2019 Modified Files: src/sys/kern: kern_lwp.c Log Message: lwp_start(): don't try to change the target CPU. Fixes potential panic in setrunnable(). Oops, experimental change that escaped. To generate a diff

CVS commit: src/sys/kern

2019-11-24 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sun Nov 24 13:14:23 UTC 2019 Modified Files: src/sys/kern: kern_lwp.c kern_turnstile.c Log Message: Put section attribute for turnstile0 in the correct place. For LLVM. To generate a diff of this commit: cvs rdiff -u -r1.212

CVS commit: src/sys/kern

2019-11-24 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sun Nov 24 13:14:23 UTC 2019 Modified Files: src/sys/kern: kern_lwp.c kern_turnstile.c Log Message: Put section attribute for turnstile0 in the correct place. For LLVM. To generate a diff of this commit: cvs rdiff -u -r1.212

CVS commit: src/sys/kern

2019-11-23 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sat Nov 23 22:35:08 UTC 2019 Modified Files: src/sys/kern: kern_runq.c sched_4bsd.c Log Message: Pull in sys/atomic.h. To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/sys/kern/kern_runq.c cvs rdiff -u -r1.36

CVS commit: src/sys/kern

2019-11-23 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sat Nov 23 22:35:08 UTC 2019 Modified Files: src/sys/kern: kern_runq.c sched_4bsd.c Log Message: Pull in sys/atomic.h. To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/sys/kern/kern_runq.c cvs rdiff -u -r1.36

CVS commit: src/sys/kern

2019-11-22 Thread Andrew Doran
Module Name:src Committed By: ad Date: Fri Nov 22 20:07:53 UTC 2019 Modified Files: src/sys/kern: sched_m2.c Log Message: sched_tick: examine the correct LWP, and lock it. To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/sys/kern/sched_m2.c Please note

CVS commit: src/sys/kern

2019-11-22 Thread Andrew Doran
Module Name:src Committed By: ad Date: Fri Nov 22 20:07:53 UTC 2019 Modified Files: src/sys/kern: sched_m2.c Log Message: sched_tick: examine the correct LWP, and lock it. To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/sys/kern/sched_m2.c Please note

CVS commit: src/sys/kern

2019-11-22 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Fri Nov 22 15:57:49 UTC 2019 Modified Files: src/sys/kern: core_elf32.c Log Message: Use __diagused To generate a diff of this commit: cvs rdiff -u -r1.59 -r1.60 src/sys/kern/core_elf32.c Please note that diffs are not

CVS commit: src/sys/kern

2019-11-22 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Fri Nov 22 15:57:49 UTC 2019 Modified Files: src/sys/kern: core_elf32.c Log Message: Use __diagused To generate a diff of this commit: cvs rdiff -u -r1.59 -r1.60 src/sys/kern/core_elf32.c Please note that diffs are not

CVS commit: src/sys/kern

2019-11-21 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Fri Nov 22 05:01:44 UTC 2019 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Fix regression introduced to ptrace_regs() in rev 1.27: http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/kern/sys_ptrace_common.c#rev1.27 Size

CVS commit: src/sys/kern

2019-11-21 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Fri Nov 22 05:01:44 UTC 2019 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Fix regression introduced to ptrace_regs() in rev 1.27: http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/kern/sys_ptrace_common.c#rev1.27 Size

CVS commit: src/sys/kern

2019-11-21 Thread Andrew Doran
Module Name:src Committed By: ad Date: Thu Nov 21 20:51:05 UTC 2019 Modified Files: src/sys/kern: kern_synch.c Log Message: - Don't give up kpriority boost in preempt(). That's unfair and bad for interactive response. It should only be dropped on final return to user.

CVS commit: src/sys/kern

2019-11-21 Thread Andrew Doran
Module Name:src Committed By: ad Date: Thu Nov 21 20:51:05 UTC 2019 Modified Files: src/sys/kern: kern_synch.c Log Message: - Don't give up kpriority boost in preempt(). That's unfair and bad for interactive response. It should only be dropped on final return to user.

CVS commit: src/sys/kern

2019-11-21 Thread Andrew Doran
Module Name:src Committed By: ad Date: Thu Nov 21 18:22:05 UTC 2019 Modified Files: src/sys/kern: kern_lwp.c Log Message: lwp_create: - Don't need to check for PK_SYSTEM when inheriting an affinity mask. - Inherit processor set ID under proc_lock, to sync with pset

CVS commit: src/sys/kern

2019-11-21 Thread Andrew Doran
Module Name:src Committed By: ad Date: Thu Nov 21 18:22:05 UTC 2019 Modified Files: src/sys/kern: kern_lwp.c Log Message: lwp_create: - Don't need to check for PK_SYSTEM when inheriting an affinity mask. - Inherit processor set ID under proc_lock, to sync with pset

CVS commit: src/sys/kern

2019-11-21 Thread Andrew Doran
Module Name:src Committed By: ad Date: Thu Nov 21 18:17:36 UTC 2019 Modified Files: src/sys/kern: kern_lwp.c kern_sig.c Log Message: - lwp_need_userret(): only do it if ONPROC and !curlwp, and explain why. - Use signotify() in a couple more places. To generate a diff of

CVS commit: src/sys/kern

2019-11-21 Thread Andrew Doran
Module Name:src Committed By: ad Date: Thu Nov 21 18:17:36 UTC 2019 Modified Files: src/sys/kern: kern_lwp.c kern_sig.c Log Message: - lwp_need_userret(): only do it if ONPROC and !curlwp, and explain why. - Use signotify() in a couple more places. To generate a diff of

CVS commit: src/sys/kern

2019-11-21 Thread Andrew Doran
Module Name:src Committed By: ad Date: Thu Nov 21 17:57:40 UTC 2019 Modified Files: src/sys/kern: kern_timeout.c Log Message: Break the slow path for callout_halt() out into its own routine. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.56

CVS commit: src/sys/kern

2019-11-21 Thread Andrew Doran
Module Name:src Committed By: ad Date: Thu Nov 21 17:57:40 UTC 2019 Modified Files: src/sys/kern: kern_timeout.c Log Message: Break the slow path for callout_halt() out into its own routine. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.56

CVS commit: src/sys/kern

2019-11-21 Thread Andrew Doran
Module Name:src Committed By: ad Date: Thu Nov 21 17:50:49 UTC 2019 Modified Files: src/sys/kern: kern_resource.c kern_softint.c Log Message: calcru: ignore running softints, unless softint_timing is on. Fixes crazy times reported for proc0. To generate a diff of this

CVS commit: src/sys/kern

2019-11-21 Thread Andrew Doran
Module Name:src Committed By: ad Date: Thu Nov 21 17:50:49 UTC 2019 Modified Files: src/sys/kern: kern_resource.c kern_softint.c Log Message: calcru: ignore running softints, unless softint_timing is on. Fixes crazy times reported for proc0. To generate a diff of this

CVS commit: src/sys/kern

2019-11-20 Thread Andrew Doran
Module Name:src Committed By: ad Date: Wed Nov 20 21:49:00 UTC 2019 Modified Files: src/sys/kern: kern_condvar.c Log Message: - Put back a microoptimisation that was accidentally removed. - Comments. To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42

CVS commit: src/sys/kern

2019-11-20 Thread Andrew Doran
Module Name:src Committed By: ad Date: Wed Nov 20 21:49:00 UTC 2019 Modified Files: src/sys/kern: kern_condvar.c Log Message: - Put back a microoptimisation that was accidentally removed. - Comments. To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42

CVS commit: src/sys/kern

2019-11-17 Thread Nia Alarie
Module Name:src Committed By: nia Date: Sun Nov 17 12:32:31 UTC 2019 Modified Files: src/sys/kern: subr_cprng.c Log Message: Update comment to reflect third-party software's usage of KERN_ARND. Changing it as the comment suggests would be a very terrible idea due to the

CVS commit: src/sys/kern

2019-11-17 Thread Nia Alarie
Module Name:src Committed By: nia Date: Sun Nov 17 12:32:31 UTC 2019 Modified Files: src/sys/kern: subr_cprng.c Log Message: Update comment to reflect third-party software's usage of KERN_ARND. Changing it as the comment suggests would be a very terrible idea due to the

CVS commit: src/sys/kern

2019-11-16 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Sun Nov 17 02:22:14 UTC 2019 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Fix pointer arithmetic for 32-bit process on LP64 kernel in process_auxv_offset(). Now, PIOD_READ_AUXV works fine with COMPAT_NETBSD32.

CVS commit: src/sys/kern

2019-11-16 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Sun Nov 17 02:22:14 UTC 2019 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Fix pointer arithmetic for 32-bit process on LP64 kernel in process_auxv_offset(). Now, PIOD_READ_AUXV works fine with COMPAT_NETBSD32.

CVS commit: src/sys/kern

2019-11-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Nov 16 10:07:53 UTC 2019 Modified Files: src/sys/kern: vfs_mount.c Log Message: NULL-check the structure pointer, not the address of its first field. Also add KASSERT. For clarity, and to appease kUBSan. To generate a diff of

CVS commit: src/sys/kern

2019-11-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Nov 16 10:07:53 UTC 2019 Modified Files: src/sys/kern: vfs_mount.c Log Message: NULL-check the structure pointer, not the address of its first field. Also add KASSERT. For clarity, and to appease kUBSan. To generate a diff of

<    6   7   8   9   10   11   12   13   14   15   >