Re: arc4random lock order issue

2024-06-03 Thread Claudio Jeker
On Mon, Jun 03, 2024 at 01:18:07PM +0200, Jeremie Courreges-Anglas wrote: > On Mon, Jun 03, 2024 at 12:20:06PM +0200, Martin Pieuchot wrote: > > Now that the SCHED_LOCK() is a mutex I see the following WITNESS report > > on arm64. > > IIUC Claudio has proposed a diff for this, see your mails: > ar

Re: arc4random lock order issue

2024-06-03 Thread Jeremie Courreges-Anglas
On Mon, Jun 03, 2024 at 12:20:06PM +0200, Martin Pieuchot wrote: > Now that the SCHED_LOCK() is a mutex I see the following WITNESS report > on arm64. IIUC Claudio has proposed a diff for this, see your mails: arm64: pmap ASID generation without SCHED_LOCK -- jca

arc4random lock order issue

2024-06-03 Thread Martin Pieuchot
Now that the SCHED_LOCK() is a mutex I see the following WITNESS report on arm64. witness: lock order reversal: 1st 0xff80012486e8 /usr/src/sys/dev/rnd.c:321 (/usr/src/sys/dev/rnd.c:321) 2nd 0xff800120afb0 /usr/src/sys/kern/kern_timeout.c:57 (/usr/src/sys/kern/kern_timeout.c:57) lock o