syzbot


netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND

Status: fixed on 2022/04/19 15:06
Reported-by: syzbot+ad6408154611a8bce03e@syzkaller.appspotmail.com
Fix commit: 517fa18875c3 entropy(9): Call entropy_softintr while bound to CPU.
First crash: 973d, last: 973d

Sample crash report:
[   1.2368457] panic: kernel diagnostic assertion "curlwp->l_pflag & LP_BOUND" failed: file "/syzkaller/managers/ci2-netbsd-kubsan/kernel/sys/kern/kern_entropy.c", line 740 
[   1.2524767] cpu0: Begin traceback...
[   1.2585864] vpanic() at netbsd:vpanic+0x2d0 sys/kern/subr_prf.c:290
[   1.2786250] kern_assert() at netbsd:kern_assert+0x65 sys/arch/amd64/amd64/db_disasm.c:1074
[   1.2986423] entropy_account_cpu() at netbsd:entropy_account_cpu+0x480 sys/kern/kern_entropy.c:740
[   1.3186703] entropy_softintr() at netbsd:entropy_softintr+0xde sys/kern/kern_entropy.c:1024
[   1.3386994] xc_broadcast() at netbsd:xc_broadcast+0x3a3 sys/kern/subr_xcall.c:265
[   1.3587279] rnd_init_softint() at netbsd:rnd_init_softint+0xca entropy_init_late sys/kern/kern_entropy.c:471 [inline]
[   1.3587279] rnd_init_softint() at netbsd:rnd_init_softint+0xca sys/kern/kern_entropy.c:2488
[   1.3787615] main() at netbsd:main+0x457 sys/kern/init_main.c:559
[   1.3787615] cpu0: End traceback...
[   1.3903878] fatal breakpoint trap in supervisor mode
[   1.3903878] trap type 1 code 0 rip 0xffffffff80221a95 cs 0x8 rflags 0x202 cr2 0 ilevel 0 rsp 0xffffffff86e93c70
[   1.4054866] curlwp 0xffffffff865354c0 pid 0.0 lowest kstack 0xffffffff86e8e2c0
Stopped in pid 0.0 (system) at  netbsd:breakpoint+0x5:  leave
breakpoint() at netbsd:breakpoint+0x5
db_panic() at netbsd:db_panic+0xec sys/ddb/db_panic.c:69
vpanic() at netbsd:vpanic+0x2d0 sys/kern/subr_prf.c:290
kern_assert() at netbsd:kern_assert+0x65 sys/arch/amd64/amd64/db_disasm.c:1074
entropy_account_cpu() at netbsd:entropy_account_cpu+0x480 sys/kern/kern_entropy.c:740
entropy_softintr() at netbsd:entropy_softintr+0xde sys/kern/kern_entropy.c:1024
xc_broadcast() at netbsd:xc_broadcast+0x3a3 sys/kern/subr_xcall.c:265
rnd_init_softint() at netbsd:rnd_init_softint+0xca entropy_init_late sys/kern/kern_entropy.c:471 [inline]
rnd_init_softint() at netbsd:rnd_init_softint+0xca sys/kern/kern_entropy.c:2488
main() at netbsd:main+0x457 sys/kern/init_main.c:559
ds          a400
es          3c30
fs          3c80
gs          10
rdi         0
rsi         1
rbp         ffffffff86e93c70
rbx         1
rdx         1
rcx         ffffffff82b421ee    db_panic+0xde
rax         0
r8          ffffffff84f6fc40    cpu_info_primary
r9          2
--db_more--

Crashes (36):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/03/24 16:18 netbsd 3c01deb79f8a 89bc8608 .config console log report ci2-netbsd-kubsan netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 16:18 netbsd 3c01deb79f8a 89bc8608 .config console log report ci2-netbsd-kubsan netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 16:18 netbsd 3c01deb79f8a 89bc8608 .config console log report ci2-netbsd-kubsan netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 15:57 netbsd 3c01deb79f8a 89bc8608 .config console log report ci2-netbsd netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 15:57 netbsd 3c01deb79f8a 89bc8608 .config console log report ci2-netbsd netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 15:57 netbsd 3c01deb79f8a 89bc8608 .config console log report ci2-netbsd netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 15:38 netbsd 3c01deb79f8a 89bc8608 .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 15:38 netbsd 3c01deb79f8a 89bc8608 .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 15:38 netbsd 3c01deb79f8a 89bc8608 .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 14:08 netbsd dd231c1ddfdd 89bc8608 .config console log report ci2-netbsd netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 14:08 netbsd dd231c1ddfdd 89bc8608 .config console log report ci2-netbsd netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 14:08 netbsd dd231c1ddfdd 89bc8608 .config console log report ci2-netbsd netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 13:49 netbsd dd231c1ddfdd 89bc8608 .config console log report ci2-netbsd-kubsan netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 13:49 netbsd dd231c1ddfdd 89bc8608 .config console log report ci2-netbsd-kubsan netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 13:49 netbsd dd231c1ddfdd 89bc8608 .config console log report ci2-netbsd-kubsan netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 13:28 netbsd dd231c1ddfdd 89bc8608 .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 13:28 netbsd dd231c1ddfdd 89bc8608 .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 13:28 netbsd dd231c1ddfdd 89bc8608 .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 12:00 netbsd 58be80ed50a6 89bc8608 .config console log report ci2-netbsd netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 12:00 netbsd 58be80ed50a6 89bc8608 .config console log report ci2-netbsd netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 12:00 netbsd 58be80ed50a6 89bc8608 .config console log report ci2-netbsd netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 11:39 netbsd 58be80ed50a6 89bc8608 .config console log report ci2-netbsd-kubsan netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 11:39 netbsd 58be80ed50a6 89bc8608 .config console log report ci2-netbsd-kubsan netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 11:39 netbsd 58be80ed50a6 89bc8608 .config console log report ci2-netbsd-kubsan netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 11:17 netbsd 58be80ed50a6 89bc8608 .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 11:17 netbsd 58be80ed50a6 89bc8608 .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 11:17 netbsd 58be80ed50a6 89bc8608 .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 09:46 netbsd 365de6249647 89bc8608 .config console log report ci2-netbsd-kubsan netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 09:46 netbsd 365de6249647 89bc8608 .config console log report ci2-netbsd-kubsan netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 09:46 netbsd 365de6249647 89bc8608 .config console log report ci2-netbsd-kubsan netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 09:25 netbsd 365de6249647 89bc8608 .config console log report ci2-netbsd netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 09:25 netbsd 365de6249647 89bc8608 .config console log report ci2-netbsd netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 09:25 netbsd 365de6249647 89bc8608 .config console log report ci2-netbsd netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 09:04 netbsd 365de6249647 89bc8608 .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 09:04 netbsd 365de6249647 89bc8608 .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
2022/03/24 09:04 netbsd 365de6249647 89bc8608 .config console log report ci2-netbsd-kmsan netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND
* Struck through repros no longer work on HEAD.