panic: kernel diagnostic assertion "ISSET(p->p_flag, P_SUSPSIG | P_SUSPSINGLE) == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_sig.c", line 1603 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 429713 26680 -1 0x10 0x4000000 1 syz-executor *523656 15995 60929 0x8010 0xc000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834d7df5) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff835149de,ffffffff834796f3,643,ffffffff8345b73e) at __assert+0x29 sys/kern/subr_prf.c:-1 process_stop(ffff800045ff1d20,8000000,1) at process_stop+0x3fe cursig(ffff80002a2222a8,ffff80002a358a18,0) at cursig+0x509 x86_atomic_setbits_u32 sys/arch/amd64/compile/SYZKALLER/obj/machine/atomic.h:-1 [inline] cursig(ffff80002a2222a8,ffff80002a358a18,0) at cursig+0x509 sys/kern/kern_sig.c:1446 userret(ffff80002a2222a8) at userret+0x203 sys/kern/kern_sig.c:2208 syscall(ffff80002a358b50) at syscall+0x9ce mi_syscall_return sys/sys/syscall_mi.h:203 [inline] syscall(ffff80002a358b50) at syscall+0x9ce sys/arch/amd64/amd64/trap.c:812 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc5ad89fb910, count: 7 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: kernel diagnostic assertion "ISSET(p->p_flag, P_SUSPSIG | P_SUSPSINGLE) == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_sig.c", line 1603 ddb{0}> show kasan No such command ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834d7df5) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff835149de,ffffffff834796f3,643,ffffffff8345b73e) at __assert+0x29 sys/kern/subr_prf.c:-1 process_stop(ffff800045ff1d20,8000000,1) at process_stop+0x3fe cursig(ffff80002a2222a8,ffff80002a358a18,0) at cursig+0x509 x86_atomic_setbits_u32 sys/arch/amd64/compile/SYZKALLER/obj/machine/atomic.h:-1 [inline] cursig(ffff80002a2222a8,ffff80002a358a18,0) at cursig+0x509 sys/kern/kern_sig.c:1446 userret(ffff80002a2222a8) at userret+0x203 sys/kern/kern_sig.c:2208 syscall(ffff80002a358b50) at syscall+0x9ce mi_syscall_return sys/sys/syscall_mi.h:203 [inline] syscall(ffff80002a358b50) at syscall+0x9ce sys/arch/amd64/amd64/trap.c:812 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc5ad89fb910, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002a358830 rbx 0xffffffff83955e0f cpu_info_full_primary+0x2e0f rdx 0 rcx 0xffff80002a2222a8 rax 0xffffffff83954ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x9df1da3ce48f7d55 r11 0xa3e3ef8f4b402bdd r12 0xffffffff83955c10 cpu_info_full_primary+0x2c10 r13 0 r14 0 r15 0x1 rip 0xffffffff82c46b95 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a358820 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=523656 pid=15995 tcnt=3 stat=onproc flags process=8010 proc=c000000 runpri=32, usrpri=70, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=2 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a223238,0xffff80002a223778 process=0xffff800045ff1d20 user=0xffff80002a353000, vmspace=0xfffff2806cefab88 estcpu=20, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 26680 235962 53866 -1 2 0x10 0 syz-executor 26680 429713 53866 -1 7 0x10 0x4000000 syz-executor 15995 92740 95608 60929 2 0x8010 0x8000000 syz-executor 15995 117147 95608 60929 4 0x8010 0xc000000 syz-executor *15995 523656 95608 60929 7 0x8010 0xc000000 syz-executor 11415 396607 96072 0 2 0 0 syz-executor 11415 64901 96072 0 3 0 0x4000080 fsleep syz-executor 40626 425612 87964 0 2 0x2 0 syz-executor 73 193262 25591 0 3 0x2 0 clonelk ifconfig 25591 444543 96965 0 3 0x100002 0x88 sigsusp sh 96965 498646 87964 0 3 0x2 0x80 wait syz-executor 96072 455526 87964 0 3 0x2 0x80 nanoslp syz-executor 95608 100524 87964 0 3 0x2 0x80 nanoslp syz-executor 32219 487894 1 0 3 0 0x80 nanoslp init 53866 361545 87964 0 3 0x2 0x80 nanoslp syz-executor 87964 32806 1 0 3 0x2 0x80 wait syz-executor 78978 366835 0 0 3 0x14000 0x200 bored smr 70389 17650 0 0 2 0x14000 0x200 zerothread 88747 289142 0 0 3 0x14000 0x200 aiodoned aiodoned 277 156750 0 0 3 0x14000 0x200 syncer update 56982 334296 0 0 3 0x14000 0x200 cleaner cleaner 31244 249189 0 0 3 0x14000 0x200 reaper reaper 25672 432695 0 0 3 0x14000 0x200 pgdaemon pagedaemon 72843 58071 0 0 3 0x14000 0x200 bored viomb 79056 244422 0 0 3 0x14000 0x40000200 acpi0 acpi0 92617 434876 0 0 3 0x14000 0x40000200 idle1 5536 332204 0 0 3 0x14000 0x200 bored softnet1 96846 39601 0 0 3 0x14000 0x200 bored softnet0 98055 132698 0 0 3 0x14000 0x200 smrbar systqmp 23404 176978 0 0 3 0x14000 0x200 bored systq 66375 382991 0 0 3 0x14000 0x200 tmoslp softclockmp 23487 464137 0 0 3 0x14000 0x40000200 tmoslp softclock 82412 32909 0 0 3 0x14000 0x40000200 idle0 1 421072 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive mutex &sched_lock r = 0 (0xffffffff83b39230) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 mtx_enter+0x4b4 sys/kern/kern_lock.c:487 #2 cursig+0x4ee sys/kern/kern_sig.c:1445 #3 userret+0x203 sys/kern/kern_sig.c:2208 #4 syscall+0x9ce mi_syscall_return sys/sys/syscall_mi.h:203 [inline] #4 syscall+0x9ce sys/arch/amd64/amd64/trap.c:812 #5 Xsyscall+0x128 exclusive mutex &pr->ps_mtx r = 0 (0xffff800045ff1e38) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 mtx_enter+0x4b4 sys/kern/kern_lock.c:487 #2 cursig+0x4c2 sys/kern/kern_sig.c:1441 #3 userret+0x203 sys/kern/kern_sig.c:2208 #4 syscall+0x9ce mi_syscall_return sys/sys/syscall_mi.h:203 [inline] #4 syscall+0x9ce sys/arch/amd64/amd64/trap.c:812 #5 Xsyscall+0x128 Process 98055 (systqmp) thread 0xffff800045ffe298 (132698) shared rwlock systqmp r = 0 (0xffffffff839b8dd8) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 taskq_thread+0x12a sys/kern/kern_task.c:442 #2 proc_trampoline+0x10 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11040 12011K 12088K 166960K 12285 0 pcb 18 14K 16K 166960K 436 0 rtable 202 6K 7K 166960K 1311 0 pf 31 17K 24K 166960K 137 0 ifaddr 35 6K 7K 166960K 175 0 ifgroup 47 2K 2K 166960K 186 0 sysctl 3 1K 9K 166960K 8 0 counters 66 36K 37K 166960K 136 0 ioctlops 0 0K 4K 166960K 1547 0 iov 0 0K 32K 166960K 8 0 mount 1 1K 1K 166960K 1 0 log 1 0K 0K 166960K 5 0 vnodes 1289 81K 81K 166960K 1754 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 3 0 VM map 2 1K 1K 166960K 2 0 sem 5 0K 0K 166960K 9 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 14 53K 93K 166960K 728 0 proc 18 33K 164K 166960K 1440 0 subproc 72 4K 4K 166960K 369 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 15 0 in_multi 77 5K 6K 166960K 442 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 10 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 61 281K 281K 166960K 61 0 exec 0 0K 1K 166960K 810 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 99 78K 178K 166960K 6824 0 UVM aobj 10 2K 2K 166960K 10 0 pinsyscall 16 32K 107K 166960K 2736 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 4 0 NDP 16 0K 2K 166960K 123 0 temp 43 9120K 9140K 166960K 14306 0 kqueue 1 2K 24K 166960K 52 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 28 0 0 1 0 1 1 0 8 0 rtpcb 120 107 0 107 1 0 1 1 0 8 1 rtentry 176 453 0 364 6 0 6 6 0 8 1 unpcb 144 125 0 123 2 0 2 2 0 8 1 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 736 31 0 30 1 0 1 1 0 8 0 arp 136 80 0 66 1 0 1 1 0 8 0 inpcb 328 666 0 661 7 0 7 7 0 8 6 nd6 152 117 0 99 1 0 1 1 0 8 0 pkpcb 40 3 0 3 1 0 1 1 0 8 1 kcovpl 48 41 0 33 1 0 1 1 0 8 0 ppxss 1192 1 0 1 1 1 0 1 0 8 0 pfstscr 40 1 0 0 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfsrclim 320 1 0 1 1 1 0 1 0 8 0 pfanchor 1288 9 0 9 1 1 0 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfqueue 320 1 0 1 1 1 0 1 0 8 0 pfstitem 24 33 0 0 1 0 1 1 0 8 0 pfstkey 128 33 0 0 2 0 2 2 0 8 0 pfstate 448 33 0 0 4 0 4 4 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 1822 0 1411 29 0 29 29 0 8 0 art_table 40 1824 0 1411 5 0 5 5 0 8 0 art_node 32 453 0 363 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 6 1 0 1 1 0 8 1 semapl 72 6 0 3 1 0 1 1 0 8 0 shmpl 120 7 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1831 0 288 97 0 97 97 0 8 0 ffsino 296 1831 0 288 119 0 119 119 0 8 0 nchpl 144 2222 0 391 68 0 68 68 0 8 0 vnodes 216 2258 0 0 126 0 126 126 0 8 0 namei 1024 11466 0 11466 3 2 1 2 0 8 1 percpumem 16 84 0 35 1 0 1 1 0 8 0 kstatmem 264 93 0 70 2 0 2 2 0 8 0 scxspl 216 7578 0 7578 4 3 1 3 1 8 1 plimitpl 152 201 0 191 1 0 1 1 0 8 0 sigapl 424 993 0 960 7 1 6 7 0 8 1 knotepl 120 306 0 0 10 0 10 10 0 8 0 kqueuepl 224 97 0 96 3 0 3 3 0 8 2 pipepl 344 233 0 206 4 0 4 4 0 8 0 fdescpl 528 977 0 960 3 0 3 3 0 8 0 filepl 160 3660 0 3507 14 0 14 14 0 8 5 lockfpl 104 47 0 47 1 0 1 1 0 8 1 lockfspl 48 22 0 22 1 0 1 1 0 8 1 sessionpl 144 59 0 57 1 0 1 1 0 8 0 pgrppl 48 104 0 93 1 0 1 1 0 8 0 ucredpl 104 310 0 305 1 0 1 1 0 8 0 zombiepl 144 963 0 960 1 0 1 1 0 8 0 processpl 1240 993 0 960 5 1 4 5 0 8 0 procpl 664 1254 0 1217 6 0 6 6 0 8 1 sosppl 176 1 0 1 1 1 0 1 0 8 0 sockpl 752 903 0 896 12 3 9 11 0 8 8 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 127 0 0 16 0 16 16 0 8 0 mcl2k 2048 21 0 0 3 0 3 3 0 8 0 mextrefs 64 20 0 0 1 0 1 1 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 184 0 0 12 0 12 12 0 8 0 bufpl 272 2813 0 105 181 0 181 181 0 8 0 anonpl 32 3959 0 0 32 0 32 32 0 247 0 amapchunkpl 152 18486 0 18223 31 2 29 31 0 158 15 amappl16 200 1711 0 1707 6 3 3 5 0 8 1 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 814 0 813 1 0 1 1 0 8 0 amappl13 176 192 0 192 1 0 1 1 0 8 1 amappl12 168 1356 0 1342 2 0 2 2 0 8 0 amappl11 160 4 0 4 1 1 0 1 0 8 0 amappl10 152 63 0 63 1 0 1 1 0 8 1 amappl9 144 284 0 284 1 1 0 1 0 8 0 amappl8 136 228 0 227 1 0 1 1 0 8 0 amappl7 128 216 0 214 1 0 1 1 0 8 0 amappl6 120 554 0 552 1 0 1 1 0 8 0 amappl5 112 103 0 103 1 0 1 1 0 8 1 amappl4 104 396 0 394 1 0 1 1 0 8 0 amappl3 96 3427 0 3384 3 0 3 3 0 8 1 amappl2 88 978 0 959 2 0 2 2 0 8 0 amappl1 80 15281 0 15197 15 2 13 15 0 8 6 amappl 88 5499 0 5411 4 0 4 4 0 92 0 uvmvnodes 80 105 0 0 3 0 3 3 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 9 0 0 1 0 1 1 0 8 0 uaddrrnd 24 977 0 960 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 977 0 960 1 0 1 1 0 8 0 vmmpekpl 168 9452 0 9407 3 0 3 3 0 8 0 vmmpepl 168 71521 0 70915 86 4 82 86 0 357 48 vmsppl 488 976 0 960 5 1 4 5 0 8 1 rwobjpl 80 22854 0 22500 24 2 22 24 0 8 0 pdppl 4096 1961 0 1920 121 76 45 85 0 8 4 pvpl 32 9821 0 0 83 3 80 81 0 265 0 pmappl 256 976 0 960 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 483 0 82 12 0 12 12 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834d7df5) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff835149de,ffffffff834796f3,643,ffffffff8345b73e) at __assert+0x29 sys/kern/subr_prf.c:-1 process_stop(ffff800045ff1d20,8000000,1) at process_stop+0x3fe cursig(ffff80002a2222a8,ffff80002a358a18,0) at cursig+0x509 x86_atomic_setbits_u32 sys/arch/amd64/compile/SYZKALLER/obj/machine/atomic.h:-1 [inline] cursig(ffff80002a2222a8,ffff80002a358a18,0) at cursig+0x509 sys/kern/kern_sig.c:1446 userret(ffff80002a2222a8) at userret+0x203 sys/kern/kern_sig.c:2208 syscall(ffff80002a358b50) at syscall+0x9ce mi_syscall_return sys/sys/syscall_mi.h:203 [inline] syscall(ffff80002a358b50) at syscall+0x9ce sys/arch/amd64/amd64/trap.c:812 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc5ad89fb910, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff80002999dff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff83b212c0) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83b212c0) at __mp_lock+0x192 sys/kern/kern_lock.c:173 sy