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 1602 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 207057 6751 0 0x8000 0x8000000 1 syz-executor *360525 6751 0 0x8000 0xc000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834c1aaf) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff834fddca,ffffffff83461e2f,642,ffffffff83443e39) at __assert+0x29 sys/kern/subr_prf.c:-1 process_stop(ffff800045fe9358,8000000,1) at process_stop+0x3fe cursig(ffff800045fe7ca8,ffff80003b3b2c68,0) at cursig+0x509 x86_atomic_setbits_u32 sys/arch/amd64/compile/SYZKALLER/obj/machine/atomic.h:-1 [inline] cursig(ffff800045fe7ca8,ffff80003b3b2c68,0) at cursig+0x509 sys/kern/kern_sig.c:1445 userret(ffff800045fe7ca8) at userret+0x203 sys/kern/kern_sig.c:2207 syscall(ffff80003b3b2da0) at syscall+0x9ce mi_syscall_return sys/sys/syscall_mi.h:203 [inline] syscall(ffff80003b3b2da0) at syscall+0x9ce sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf231c010440, 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 1602 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(ffffffff834c1aaf) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff834fddca,ffffffff83461e2f,642,ffffffff83443e39) at __assert+0x29 sys/kern/subr_prf.c:-1 process_stop(ffff800045fe9358,8000000,1) at process_stop+0x3fe cursig(ffff800045fe7ca8,ffff80003b3b2c68,0) at cursig+0x509 x86_atomic_setbits_u32 sys/arch/amd64/compile/SYZKALLER/obj/machine/atomic.h:-1 [inline] cursig(ffff800045fe7ca8,ffff80003b3b2c68,0) at cursig+0x509 sys/kern/kern_sig.c:1445 userret(ffff800045fe7ca8) at userret+0x203 sys/kern/kern_sig.c:2207 syscall(ffff80003b3b2da0) at syscall+0x9ce mi_syscall_return sys/sys/syscall_mi.h:203 [inline] syscall(ffff80003b3b2da0) at syscall+0x9ce sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf231c010440, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80003b3b2a80 rbx 0xffffffff83960e07 cpu_info_full_primary+0x2e07 rdx 0 rcx 0xffff800045fe7ca8 rax 0xffffffff8395fff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xfc626fae43a287c4 r11 0x54f50ef7d7914fe6 r12 0xffffffff83960c08 cpu_info_full_primary+0x2c08 r13 0 r14 0 r15 0x1 rip 0xffffffff82e42b55 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003b3b2a70 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=360525 pid=6751 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,0xffff800045fe74f0 process=0xffff800045fe9358 user=0xffff80003b3ad000, vmspace=0xfffff0006fbd0b78 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 17996 497691 27918 0 2 0 0 syz-executor 17996 366480 27918 0 3 0 0x4000080 fsleep syz-executor 65176 366018 21543 60929 2 0x10 0 syz-executor 65176 194871 21543 60929 3 0x10 0x4000080 fsleep syz-executor 6751 207057 28997 0 7 0x8000 0x8000000 syz-executor * 6751 360525 28997 0 7 0x8000 0xc000000 syz-executor 6751 190752 28997 0 4 0x8000 0xc000000 syz-executor 89117 42533 15220 0 2 0 0 syz-executor 25872 405499 47180 0 3 0 0x80 nanoslp syz-executor 25872 77306 47180 0 3 0 0x4000080 ttyout syz-executor 25872 315688 47180 0 3 0 0x4000080 fsleep syz-executor 25872 446307 47180 0 3 0 0x4000080 fsleep syz-executor 62618 32544 41969 0 3 0 0x80 nanoslp syz-executor 62618 49151 41969 0 3 0 0x4000080 lockf syz-executor 62115 373680 1 0 3 0x2 0x80 nanoslp getty 71913 118364 0 0 3 0x14000 0x200 acct acct 41969 488615 67038 0 3 0x2 0x80 nanoslp syz-executor 15220 106599 67038 0 3 0x2 0x80 nanoslp syz-executor 51229 330069 67038 0 3 0x2 0x80 piperd syz-executor 21543 240736 67038 0 3 0x2 0x80 nanoslp syz-executor 47180 360382 67038 0 2 0x2 0 syz-executor 27918 512093 67038 0 3 0x2 0x80 nanoslp syz-executor 17203 333619 67038 0 3 0x2 0x80 wait syz-executor 28997 35571 67038 0 3 0x2 0x80 nanoslp syz-executor 67038 380295 1 0 2 0x2 0 syz-executor 60775 60082 0 0 3 0x14000 0x200 bored smr 61240 495538 0 0 2 0x14000 0x200 zerothread 22159 410827 0 0 3 0x14000 0x200 aiodoned aiodoned 62063 317957 0 0 3 0x14000 0x200 syncer update 71816 34970 0 0 3 0x14000 0x200 cleaner cleaner 75506 232100 0 0 3 0x14000 0x200 reaper reaper 14005 110977 0 0 3 0x14000 0x200 pgdaemon pagedaemon 97823 355163 0 0 3 0x14000 0x200 bored viomb 59415 5115 0 0 3 0x14000 0x40000200 acpi0 acpi0 50511 374752 0 0 3 0x14000 0x40000200 idle1 18861 391108 0 0 3 0x14000 0x200 bored softnet1 64377 455270 0 0 3 0x14000 0x200 bored softnet0 41765 257252 0 0 3 0x14000 0x200 smrbar systqmp 80621 348174 0 0 3 0x14000 0x200 bored systq 73777 127912 0 0 3 0x14000 0x200 tmoslp softclockmp 84372 412336 0 0 3 0x14000 0x40000200 tmoslp softclock 78131 322470 0 0 3 0x14000 0x40000200 idle0 1 288395 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 (0xffffffff83b41578) #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:1444 #3 userret+0x203 sys/kern/kern_sig.c:2207 #4 syscall+0x9ce mi_syscall_return sys/sys/syscall_mi.h:203 [inline] #4 syscall+0x9ce sys/arch/amd64/amd64/trap.c:804 #5 Xsyscall+0x128 exclusive mutex &pr->ps_mtx r = 0 (0xffff800045fe9470) #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:1440 #3 userret+0x203 sys/kern/kern_sig.c:2207 #4 syscall+0x9ce mi_syscall_return sys/sys/syscall_mi.h:203 [inline] #4 syscall+0x9ce sys/arch/amd64/amd64/trap.c:804 #5 Xsyscall+0x128 Process 41765 (systqmp) thread 0xffff800045ffe298 (257252) shared rwlock systqmp r = 0 (0xffffffff838e03b8) #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 11115 12280K 12479K 166960K 12651 0 pcb 17 14K 15K 166960K 134 0 rtable 237 9K 9K 166960K 505 0 pf 35 17K 24K 166960K 113 0 ifaddr 43 7K 7K 166960K 73 0 ifgroup 55 2K 2K 166960K 103 0 sysctl 3 1K 9K 166960K 8 0 counters 70 37K 37K 166960K 108 0 ioctlops 0 0K 4K 166960K 1538 0 iov 0 0K 12K 166960K 11 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1347 85K 85K 166960K 1687 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 8 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 58 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 16 61K 89K 166960K 484 0 sigio 1 0K 0K 166960K 5 0 proc 21 33K 164K 166960K 673 0 subproc 72 4K 4K 166960K 99 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 1 0K 0K 166960K 44 0 in_multi 99 6K 6K 166960K 140 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 17 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 289 1288K 1288K 166960K 289 0 exec 0 0K 1K 166960K 450 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 128 82K 177K 166960K 5919 0 UVM aobj 44 5K 5K 166960K 45 0 pinsyscall 19 38K 104K 166960K 1722 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 7 0 NDP 12 0K 1K 166960K 48 0 temp 42 9119K 9182K 166960K 22348 0 kqueue 3 6K 26K 166960K 82 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 92 0 91 2 0 2 2 0 8 1 rtentry 176 152 0 51 6 0 6 6 0 8 0 unpcb 144 300 0 299 4 1 3 4 0 8 2 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 736 141 0 137 4 0 4 4 0 8 3 arp 136 24 0 6 1 0 1 1 0 8 0 inpcb 328 458 0 454 7 0 7 7 0 8 5 nd6 152 34 0 10 1 0 1 1 0 8 0 pkpcb 40 3 0 3 1 0 1 1 0 8 1 kcovpl 48 11 0 3 1 0 1 1 0 8 0 mppekey 1024 2 0 2 1 0 1 1 0 8 1 ppxss 1192 11 0 11 1 0 1 1 0 8 1 pppxif 1576 3 0 3 1 0 1 1 0 8 1 pffrag 232 2 0 0 1 0 1 1 0 482 0 pffrnode 88 2 0 0 1 0 1 1 0 8 0 pffrent 40 7 0 4 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 pfrktable 1344 10 0 6 1 0 1 1 0 8 0 pfsrclim 320 1 0 1 1 0 1 1 0 8 1 pfstlim 224 2 0 2 1 0 1 1 0 8 1 pfanchor 1288 5 0 1 1 0 1 1 0 8 0 pftag 88 2 0 1 1 0 1 1 0 8 0 pfqueue 320 1 0 1 1 0 1 1 0 8 1 pfstitem 24 37 0 0 1 0 1 1 0 8 0 pfstkey 128 37 0 0 2 0 2 2 0 8 0 pfstate 448 37 0 0 5 0 5 5 0 8 0 pfrule 1360 27 0 20 2 1 1 2 0 8 0 rttmr 136 3 0 3 1 0 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 691 0 245 32 0 32 32 0 8 3 art_table 40 693 0 245 6 0 6 6 0 8 1 art_node 32 152 0 60 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 0 1 1 0 8 1 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 72 54 0 44 1 0 1 1 0 8 0 shmpl 112 42 0 1 2 0 2 2 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 2125 0 650 93 0 93 93 0 8 0 ffsino 296 2125 0 650 115 0 115 115 0 8 0 nchpl 144 2816 0 1095 65 0 65 65 0 8 0 vnodes 216 2446 0 0 136 0 136 136 0 8 0 namei 1024 9372 0 9372 2 1 1 2 0 8 1 percpumem 16 70 0 19 1 0 1 1 0 8 0 pfiaddrpl 120 2 0 1 1 0 1 1 0 8 0 kstatmem 264 55 0 28 3 0 3 3 0 8 1 scxspl 216 9324 0 9324 11 3 8 8 1 8 8 plimitpl 152 164 0 153 1 0 1 1 0 8 0 sigapl 424 797 0 761 7 1 6 7 0 8 0 knotepl 120 314 0 0 10 0 10 10 0 8 0 kqueuepl 224 107 0 104 1 0 1 1 0 8 0 pipepl 344 148 0 120 3 0 3 3 0 8 0 fdescpl 528 780 0 761 3 0 3 3 0 8 0 filepl 160 3890 0 3718 14 0 14 14 0 8 2 lockfpl 104 147 0 144 1 0 1 1 0 8 0 lockfspl 48 66 0 64 1 0 1 1 0 8 0 sessionpl 144 110 0 108 1 0 1 1 0 8 0 pgrppl 48 125 0 114 1 0 1 1 0 8 0 ucredpl 104 562 0 558 1 0 1 1 0 8 0 zombiepl 144 762 0 761 1 0 1 1 0 8 0 processpl 1232 797 0 761 5 1 4 5 0 8 0 procpl 664 1299 0 1255 6 0 6 6 0 8 0 sosppl 176 2 0 2 1 0 1 1 0 8 1 sockpl 752 860 0 854 14 3 11 14 0 8 8 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k128 9344 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 108 0 0 14 0 14 14 0 8 0 mcl2k 2048 23 0 0 3 0 3 3 0 8 0 mextrefs 64 23 0 0 1 0 1 1 0 8 0 mtagpl 96 5 0 0 1 0 1 1 0 8 0 mbufpl 256 185 0 0 12 0 12 12 0 8 0 bufpl 272 3042 0 105 196 0 196 196 0 8 0 anonpl 32 5525 0 0 45 0 45 45 0 247 0 amapchunkpl 152 18461 0 18120 30 0 30 30 0 158 12 amappl16 200 1732 0 1708 6 3 3 5 0 8 0 amappl15 192 2 0 2 1 1 0 1 0 8 0 amappl14 184 478 0 478 1 0 1 1 0 8 1 amappl13 176 132 0 131 1 0 1 1 0 8 0 amappl12 168 1044 0 1027 2 0 2 2 0 8 0 amappl11 160 5 0 5 1 1 0 1 0 8 0 amappl10 152 65 0 64 1 0 1 1 0 8 0 amappl9 144 276 0 276 1 1 0 1 0 8 0 amappl8 136 106 0 106 1 0 1 1 0 8 1 amappl7 128 162 0 160 1 0 1 1 0 8 0 amappl6 120 189 0 189 1 0 1 1 0 8 1 amappl5 112 94 0 94 1 0 1 1 0 8 1 amappl4 104 301 0 298 1 0 1 1 0 8 0 amappl3 96 3306 0 3247 3 0 3 3 0 8 0 amappl2 88 906 0 882 2 0 2 2 0 8 0 amappl1 80 12192 0 12075 15 2 13 15 0 8 7 amappl 88 5085 0 4972 6 1 5 5 0 92 1 uvmvnodes 80 111 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 44 0 1 1 0 1 1 0 8 0 uaddrrnd 24 780 0 761 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 780 0 761 1 0 1 1 0 8 0 vmmpekpl 168 8018 0 7971 3 0 3 3 0 8 0 vmmpepl 168 56936 0 56097 87 0 87 87 0 357 43 vmsppl 488 779 0 761 5 0 5 5 0 8 1 rwobjpl 80 18178 0 17714 24 1 23 24 0 8 1 pdppl 4096 1567 0 1522 99 46 53 85 0 8 8 pvpl 32 13091 0 0 106 0 106 106 0 265 0 pmappl 256 779 0 761 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 478 0 51 13 0 13 13 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(ffffffff834c1aaf) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff834fddca,ffffffff83461e2f,642,ffffffff83443e39) at __assert+0x29 sys/kern/subr_prf.c:-1 process_stop(ffff800045fe9358,8000000,1) at process_stop+0x3fe cursig(ffff800045fe7ca8,ffff80003b3b2c68,0) at cursig+0x509 x86_atomic_setbits_u32 sys/arch/amd64/compile/SYZKALLER/obj/machine/atomic.h:-1 [inline] cursig(ffff800045fe7ca8,ffff80003b3b2c68,0) at cursig+0x509 sys/kern/kern_sig.c:1445 userret(ffff800045fe7ca8) at userret+0x203 sys/kern/kern_sig.c:2207 syscall(ffff80003b3b2da0) at syscall+0x9ce mi_syscall_return sys/sys/syscall_mi.h:203 [inline] syscall(ffff80003b3b2da0) at syscall+0x9ce sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf231c010440, 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+0xf kd_curproc sys/dev/kcov.c:580 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xf sys/dev/kcov.c:153 userret(ffff800045fe6a80) at userret+0x79 proc_suspend_check sys/kern/kern_sig.c:2281 [inline] userret(ffff800045fe6a80) at userret+0x79 sys/kern/kern_sig.c:2194 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x7ebef26bc860, count: 9 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+0xf kd_curproc sys/dev/kcov.c:580 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xf sys/dev/kcov.c:153 userret(ffff800045fe6a80) at userret+0x79 proc_suspend_check sys/kern/kern_sig.c:2281 [inline] userret(ffff800045fe6a80) at userret+0x79 sys/kern/kern_sig.c:2194 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x7ebef26bc860, count: -6 ddb{1}>