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 405017 12736 0 0x8000 0x8000000 1 syz-executor *484693 12736 0 0x8000 0xc000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834ba77f) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff834fdef3,ffffffff83465dd9,643,ffffffff83447b19) at __assert+0x29 sys/kern/subr_prf.c:-1 process_stop(ffff800045feb038,8000000,1) at process_stop+0x3fe cursig(ffff800045fe7a10,ffff80002abc7918,0) at cursig+0x509 x86_atomic_setbits_u32 sys/arch/amd64/compile/SYZKALLER/obj/machine/atomic.h:-1 [inline] cursig(ffff800045fe7a10,ffff80002abc7918,0) at cursig+0x509 sys/kern/kern_sig.c:1446 userret(ffff800045fe7a10) at userret+0x203 sys/kern/kern_sig.c:2208 syscall(ffff80002abc7a50) at syscall+0x9ce mi_syscall_return sys/sys/syscall_mi.h:203 [inline] syscall(ffff80002abc7a50) at syscall+0x9ce sys/arch/amd64/amd64/trap.c:812 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x941805c5970, 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(ffffffff834ba77f) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff834fdef3,ffffffff83465dd9,643,ffffffff83447b19) at __assert+0x29 sys/kern/subr_prf.c:-1 process_stop(ffff800045feb038,8000000,1) at process_stop+0x3fe cursig(ffff800045fe7a10,ffff80002abc7918,0) at cursig+0x509 x86_atomic_setbits_u32 sys/arch/amd64/compile/SYZKALLER/obj/machine/atomic.h:-1 [inline] cursig(ffff800045fe7a10,ffff80002abc7918,0) at cursig+0x509 sys/kern/kern_sig.c:1446 userret(ffff800045fe7a10) at userret+0x203 sys/kern/kern_sig.c:2208 syscall(ffff80002abc7a50) at syscall+0x9ce mi_syscall_return sys/sys/syscall_mi.h:203 [inline] syscall(ffff80002abc7a50) at syscall+0x9ce sys/arch/amd64/amd64/trap.c:812 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x941805c5970, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002abc7730 rbx 0xffffffff83957e07 cpu_info_full_primary+0x2e07 rdx 0 rcx 0xffff800045fe7a10 rax 0xffffffff83956ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x1843c6ecb91cc957 r11 0x3eaaa15b7344dcfe r12 0xffffffff83957c08 cpu_info_full_primary+0x2c08 r13 0 r14 0 r15 0x1 rip 0xffffffff81abcf95 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002abc7720 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=484693 pid=12736 tcnt=3 stat=onproc flags process=8000 proc=c000000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=2 ecnt=0 forw=0xffffffffffffffff, list=0xffff800045fe6fb0,0xffff800045fe67f8 process=0xffff800045feb038 user=0xffff80002abc2000, vmspace=0xfffffd806cf2d3e8 estcpu=10, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 4983 374087 34356 0 2 0x100002 0 sh 12736 405017 14376 0 7 0x8000 0x8000000 syz-executor *12736 484693 14376 0 7 0x8000 0xc000000 syz-executor 12736 187729 14376 0 4 0x8000 0xc000000 syz-executor 67612 131451 69079 0 3 0 0x80 nanoslp syz-executor 67612 410733 69079 0 3 0 0x4000080 fsleep syz-executor 67612 142781 69079 0 3 0 0x4000080 fsleep syz-executor 76813 347860 41454 0 2 0x2 0 sh 6904 131517 47889 0 2 0x40 0 syz-executor 21278 392828 57990 0 2 0 0 syz-executor 21278 444537 57990 0 3 0 0x4000080 fsleep syz-executor 21278 88963 57990 0 3 0 0x4000080 fsleep syz-executor 21278 307683 57990 0 3 0 0x4000080 fsleep syz-executor 40110 310197 97479 0 2 0 0 syz-executor 40110 239722 97479 0 3 0 0x4000080 lockf syz-executor 40110 250840 97479 0 2 0 0x4000000 syz-executor 41454 333342 61302 0 2 0x10000002 0 syz-executor 47889 258470 61302 0 3 0x82 0 ppwait syz-executor 34356 296252 61302 0 3 0x2 0x80 wait syz-executor 97479 349365 61302 0 3 0x2 0x80 nanoslp syz-executor 57990 349794 61302 0 3 0x2 0x80 nanoslp syz-executor 14376 7657 61302 0 3 0x2 0x80 nanoslp syz-executor 69079 489493 61302 0 3 0x2 0x80 nanoslp syz-executor 31357 333587 61302 0 3 0x2 0x80 nanoslp syz-executor 61302 287857 88741 0 2 0x2 0 syz-executor 88741 226475 48414 0 3 0x100002 0x88 sigsusp ksh 48414 213664 81667 0 3 0x10 0x88 kqread sshd-session 81667 387495 62352 0 3 0x12 0x80 kqread sshd-session 27703 320424 1 0 3 0x100003 0x80 ttyin getty 62352 41485 1 0 3 0 0x88 kqread sshd 98538 116249 52399 74 3 0x1100012 0x80 bpf pflogd 52399 410472 1 0 3 0 0x80 sbwait pflogd 88656 382327 48488 73 3 0x1100010 0x80 kqread syslogd 48488 413114 1 0 3 0x100002 0x80 sbwait syslogd 32265 234264 1 0 3 0x100000 0x80 kqread resolvd 45004 297750 82344 77 3 0x100012 0x80 kqread dhcpleased 42290 75601 82344 77 3 0x100012 0x80 kqread dhcpleased 82344 462260 1 0 3 0 0x80 kqread dhcpleased 62515 280417 0 0 3 0x14000 0x200 bored smr 78112 14613 0 0 2 0x14000 0x200 zerothread 15823 277748 0 0 3 0x14000 0x200 aiodoned aiodoned 7561 405587 0 0 3 0x14000 0x200 syncer update 88100 89603 0 0 3 0x14000 0x200 cleaner cleaner 34455 164092 0 0 3 0x14000 0x200 reaper reaper 66739 317922 0 0 3 0x14000 0x200 pgdaemon pagedaemon 62297 499463 0 0 3 0x14000 0x200 bored viomb 42863 227253 0 0 3 0x14000 0x40000200 acpi0 acpi0 32126 403573 0 0 3 0x14000 0x40000200 idle1 19959 9162 0 0 3 0x14000 0x200 bored softnet1 96516 117905 0 0 3 0x14000 0x200 bored softnet0 89251 106163 0 0 3 0x14000 0x200 smrbar systqmp 11703 212681 0 0 3 0x14000 0x200 bored systq 56049 95583 0 0 3 0x14000 0x200 tmoslp softclockmp 95592 69692 0 0 3 0x14000 0x40000200 tmoslp softclock 480 340448 0 0 3 0x14000 0x40000200 idle0 1 73452 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 (0xffffffff839e4550) #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 (0xffff800045feb150) #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 89251 (systqmp) thread 0xffff800045ffe298 (106163) shared rwlock systqmp r = 0 (0xffffffff839c9a58) #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 11061 12094K 12155K 166960K 12215 0 pcb 19 12K 12K 166960K 28 0 rtable 173 5K 6K 166960K 479 0 pf 35 17K 24K 166960K 95 0 ifaddr 34 5K 7K 166960K 69 0 ifgroup 55 2K 2K 166960K 91 0 sysctl 1 1K 9K 166960K 5 0 counters 70 37K 37K 166960K 90 0 ioctlops 0 0K 4K 166960K 1502 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1289 81K 81K 166960K 1474 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 5K 166960K 3 0 VM map 2 1K 1K 166960K 2 0 sem 8 0K 0K 166960K 9 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 18 65K 85K 166960K 270 0 sigio 0 0K 0K 166960K 2 0 proc 71 115K 180K 166960K 704 0 subproc 72 4K 4K 166960K 135 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 1 0K 0K 166960K 5 0 in_multi 68 4K 5K 166960K 145 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 6 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 73 334K 334K 166960K 73 0 exec 0 0K 1K 166960K 466 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 233 176K 183K 166960K 4068 0 UVM aobj 5 2K 4K 166960K 6 0 pinsyscall 43 86K 98K 166960K 1587 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 12 0K 1K 166960K 46 0 temp 33 9114K 9120K 166960K 4736 0 kqueue 13 20K 24K 166960K 39 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 47 0 44 1 0 1 1 0 8 0 rtentry 176 156 0 78 5 0 5 5 0 8 0 unpcb 144 72 0 55 1 0 1 1 0 8 0 syncache 336 4 0 4 1 0 1 1 0 8 1 tcpcb 736 17 0 13 1 0 1 1 0 8 0 arp 136 26 0 14 1 0 1 1 0 8 0 inpcb 328 124 0 114 2 0 2 2 0 8 1 nd6 152 37 0 21 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 0 1 1 0 8 1 kcovpl 48 15 0 7 1 0 1 1 0 8 0 ppxss 1192 2 0 2 1 0 1 1 0 8 1 pfstscr 40 2 0 2 1 0 1 1 0 8 1 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfanchor 1288 7 0 2 1 0 1 1 0 8 0 pfstitem 24 22 0 0 1 0 1 1 0 8 0 pfstkey 128 23 0 1 1 0 1 1 0 8 0 pfstate 448 23 0 1 3 0 3 3 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 633 0 308 29 0 29 29 0 8 4 art_table 40 634 0 308 5 0 5 5 0 8 0 art_node 32 156 0 76 1 0 1 1 0 8 0 semapl 72 7 0 1 1 0 1 1 0 8 0 shmpl 112 3 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1685 0 204 93 0 93 93 0 8 0 ffsino 296 1685 0 204 115 0 115 115 0 8 0 nchpl 144 1938 0 219 64 0 64 64 0 8 0 vnodes 216 1860 0 0 104 0 104 104 0 8 0 namei 1024 6616 0 6616 1 0 1 1 0 8 1 percpumem 16 61 0 10 1 0 1 1 0 8 0 kstatmem 264 47 0 20 2 0 2 2 0 8 0 scxspl 216 6540 0 6540 4 3 1 3 1 8 1 plimitpl 152 45 0 28 1 0 1 1 0 8 0 sigapl 424 583 0 535 6 0 6 6 0 8 0 knotepl 120 303 0 0 10 0 10 10 0 8 0 kqueuepl 224 45 0 33 1 0 1 1 0 8 0 pipepl 344 155 0 128 3 0 3 3 0 8 0 fdescpl 528 567 0 535 3 0 3 3 0 8 0 filepl 160 2202 0 1981 12 0 12 12 0 8 2 lockfpl 104 80 0 76 1 0 1 1 0 8 0 lockfspl 48 19 0 16 1 0 1 1 0 8 0 sessionpl 144 35 0 26 1 0 1 1 0 8 0 pgrppl 48 52 0 34 1 0 1 1 0 8 0 ucredpl 104 184 0 170 1 0 1 1 0 8 0 zombiepl 144 536 0 535 1 0 1 1 0 8 0 processpl 1232 583 0 535 5 0 5 5 0 8 1 procpl 664 693 0 636 6 0 6 6 0 8 0 sockpl 752 249 0 219 4 0 4 4 0 8 0 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 127 0 0 16 0 16 16 0 8 0 mcl2k 2048 18 0 0 3 0 3 3 0 8 0 mextrefs 64 18 0 0 1 0 1 1 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 120 0 0 8 0 8 8 0 8 0 bufpl 272 2357 0 105 151 0 151 151 0 8 0 anonpl 32 3680 0 0 30 0 30 30 0 247 0 amapchunkpl 152 10939 0 10464 21 0 21 21 0 158 1 amappl16 200 1505 0 1486 5 1 4 5 0 8 3 amappl15 192 9 0 9 1 1 0 1 0 8 0 amappl14 184 498 0 496 1 0 1 1 0 8 0 amappl13 176 140 0 128 1 0 1 1 0 8 0 amappl12 168 841 0 812 2 0 2 2 0 8 0 amappl11 160 5 0 4 1 0 1 1 0 8 0 amappl10 152 88 0 74 1 0 1 1 0 8 0 amappl9 144 278 0 277 1 0 1 1 0 8 0 amappl8 136 121 0 118 1 0 1 1 0 8 0 amappl7 128 158 0 145 1 0 1 1 0 8 0 amappl6 120 208 0 205 1 0 1 1 0 8 0 amappl5 112 100 0 90 1 0 1 1 0 8 0 amappl4 104 316 0 297 1 0 1 1 0 8 0 amappl3 96 1973 0 1876 4 1 3 3 0 8 0 amappl2 88 684 0 607 2 0 2 2 0 8 0 amappl1 80 11344 0 10738 14 0 14 14 0 8 1 amappl 88 3235 0 3077 4 0 4 4 0 92 0 uvmvnodes 80 100 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 5 0 1 1 0 1 1 0 8 0 uaddrrnd 24 567 0 535 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 567 0 535 1 0 1 1 0 8 0 vmmpekpl 168 6558 0 6506 3 0 3 3 0 8 0 vmmpepl 168 45255 0 43366 85 0 85 85 0 357 0 vmsppl 488 566 0 535 5 0 5 5 0 8 0 rwobjpl 80 16012 0 14974 23 0 23 23 0 8 0 pdppl 4096 1141 0 1070 109 32 77 81 0 8 6 pvpl 32 9645 0 0 78 0 78 78 0 265 0 pmappl 256 566 0 535 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 430 0 35 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(ffffffff834ba77f) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff834fdef3,ffffffff83465dd9,643,ffffffff83447b19) at __assert+0x29 sys/kern/subr_prf.c:-1 process_stop(ffff800045feb038,8000000,1) at process_stop+0x3fe cursig(ffff800045fe7a10,ffff80002abc7918,0) at cursig+0x509 x86_atomic_setbits_u32 sys/arch/amd64/compile/SYZKALLER/obj/machine/atomic.h:-1 [inline] cursig(ffff800045fe7a10,ffff80002abc7918,0) at cursig+0x509 sys/kern/kern_sig.c:1446 userret(ffff800045fe7a10) at userret+0x203 sys/kern/kern_sig.c:2208 syscall(ffff80002abc7a50) at syscall+0x9ce mi_syscall_return sys/sys/syscall_mi.h:203 [inline] syscall(ffff80002abc7a50) at syscall+0x9ce sys/arch/amd64/amd64/trap.c:812 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x941805c5970, 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x33 kd_curproc sys/dev/kcov.c:585 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x33 sys/dev/kcov.c:153 mtx_enter(ffff800045feb140) at mtx_enter+0x375 sys/kern/kern_lock.c:455 userret(ffff800045fe62b8) at userret+0x79 proc_suspend_check sys/kern/kern_sig.c:2282 [inline] userret(ffff800045fe62b8) at userret+0x79 sys/kern/kern_sig.c:2195 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x770004f5f330, count: 8 ddb{1}> trace 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x33 kd_curproc sys/dev/kcov.c:585 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x33 sys/dev/kcov.c:153 mtx_enter(ffff800045feb140) at mtx_enter+0x375 sys/kern/kern_lock.c:455 userret(ffff800045fe62b8) at userret+0x79 proc_suspend_check sys/kern/kern_sig.c:2282 [inline] userret(ffff800045fe62b8) at userret+0x79 sys/kern/kern_sig.c:2195 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x770004f5f330, count: -7