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 *112181 43849 0 0x40009000 0xc080000 0 syz-executor 323269 60597 0 0x14000 0x200 1 reaper db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834ed6f3) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8352ffa5,ffffffff83494b34,643,ffffffff83476ae8) at __assert+0x29 sys/kern/subr_prf.c:-1 process_stop(ffff80003c3e0500,8000000,1) at process_stop+0x3fe cursig(ffff80003338c2c8,ffff80002a2a8b78,0) at cursig+0x509 x86_atomic_setbits_u32 sys/arch/amd64/compile/SYZKALLER/obj/machine/atomic.h:-1 [inline] cursig(ffff80003338c2c8,ffff80002a2a8b78,0) at cursig+0x509 sys/kern/kern_sig.c:1446 userret(ffff80003338c2c8) at userret+0x203 sys/kern/kern_sig.c:2208 syscall(ffff80002a2a8cb0) at syscall+0x9ce mi_syscall_return sys/sys/syscall_mi.h:203 [inline] syscall(ffff80002a2a8cb0) at syscall+0x9ce sys/arch/amd64/amd64/trap.c:812 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x669b3467210, 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(ffffffff834ed6f3) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8352ffa5,ffffffff83494b34,643,ffffffff83476ae8) at __assert+0x29 sys/kern/subr_prf.c:-1 process_stop(ffff80003c3e0500,8000000,1) at process_stop+0x3fe cursig(ffff80003338c2c8,ffff80002a2a8b78,0) at cursig+0x509 x86_atomic_setbits_u32 sys/arch/amd64/compile/SYZKALLER/obj/machine/atomic.h:-1 [inline] cursig(ffff80003338c2c8,ffff80002a2a8b78,0) at cursig+0x509 sys/kern/kern_sig.c:1446 userret(ffff80003338c2c8) at userret+0x203 sys/kern/kern_sig.c:2208 syscall(ffff80002a2a8cb0) at syscall+0x9ce mi_syscall_return sys/sys/syscall_mi.h:203 [inline] syscall(ffff80002a2a8cb0) at syscall+0x9ce sys/arch/amd64/amd64/trap.c:812 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x669b3467210, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002a2a8990 rbx 0xffffffff8393ce0f cpu_info_full_primary+0x2e0f rdx 0 rcx 0xffff80003338c2c8 rax 0xffffffff8393bff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xf7df53168b3a74a2 r11 0x6326fd691050ad6b r12 0xffffffff8393cc10 cpu_info_full_primary+0x2c10 r13 0 r14 0 r15 0x1 rip 0xffffffff82140f95 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a2a8980 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=112181 pid=43849 tcnt=5 stat=onproc flags process=40009000 proc=c080000 runpri=50, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80003338d788 scnt=4 ecnt=1 forw=0xffffffffffffffff, list=0xffff800045fef4d8,0xffff80003338c570 process=0xffff80003c3e0500 user=0xffff80002a2a3000, vmspace=0xfffffc806ccd67c0 estcpu=0, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 53222 299419 1567 0 3 0 0x80 nanoslp syz-executor 53222 254108 1567 0 3 0 0x4000080 sbwait syz-executor 53222 189416 1567 0 3 0 0x4000080 fsleep syz-executor 6874 377175 91966 60929 3 0x10 0x80 nanoslp syz-executor 6874 247218 91966 60929 3 0x10 0x4000080 kqread syz-executor 6874 281706 91966 60929 3 0x10 0x4000080 fsleep syz-executor 43283 129265 1 0 3 0x2 0x80 nanoslp getty 56198 298085 36347 0 3 0x2 0x80 piperd syz-executor 64163 353835 36347 0 3 0x2 0x80 piperd syz-executor 79344 351664 36347 0 3 0x2 0x80 piperd syz-executor 17706 297539 36347 0 3 0x2 0x80 piperd syz-executor *43849 112181 47543 0 7 0x40009000 0xc080000 syz-executor 43849 492907 47543 0 2 0x40009000 0xc080000 syz-executor 43849 275797 47543 0 2 0x40009000 0xc080000 syz-executor 43849 386568 47543 0 2 0x40009000 0xc080000 syz-executor 43849 177290 47543 0 3 0x40009000 0x4002000 suspend syz-executor 91966 289642 36347 0 3 0x2 0x80 nanoslp syz-executor 58096 21005 0 0 3 0x14000 0x280 nfsidl nfsio 84501 180116 0 0 3 0x14000 0x280 nfsidl nfsio 85949 398831 0 0 3 0x14000 0x280 nfsidl nfsio 94109 230965 0 0 3 0x14000 0x280 nfsidl nfsio 98944 56535 0 0 3 0x14000 0x280 nfsidl nfsio 86287 280488 0 0 3 0x14000 0x280 nfsidl nfsio 96546 298878 0 0 3 0x14000 0x280 nfsidl nfsio 71290 78853 0 0 3 0x14000 0x280 nfsidl nfsio 81036 299224 0 0 3 0x14000 0x280 nfsidl nfsio 97889 254867 0 0 3 0x14000 0x280 nfsidl nfsio 74220 328812 0 0 3 0x14000 0x280 nfsidl nfsio 79801 148355 0 0 3 0x14000 0x280 nfsidl nfsio 22717 338043 0 0 3 0x14000 0x280 nfsidl nfsio 9030 120977 0 0 3 0x14000 0x280 nfsidl nfsio 49254 76666 0 0 3 0x14000 0x280 nfsidl nfsio 88205 315079 0 0 3 0x14000 0x280 nfsidl nfsio 53265 497197 0 0 3 0x14000 0x280 nfsidl nfsio 14566 159600 0 0 3 0x14000 0x280 nfsidl nfsio 83672 431347 0 0 3 0x14000 0x280 nfsidl nfsio 90236 433240 0 0 3 0x14000 0x280 nfsidl nfsio 1567 436161 36347 0 3 0x2 0x80 nanoslp syz-executor 47543 36683 36347 0 3 0x2 0x80 wait syz-executor 36347 473364 1 0 3 0x2 0x80 nanoslp syz-executor 22504 412078 46594 74 3 0x1100012 0x80 bpf pflogd 46594 315255 1 0 3 0 0x80 sbwait pflogd 14329 426764 1 73 3 0x1100010 0x80 kqread syslogd 31764 500959 0 0 3 0x14000 0x200 bored smr 39770 98238 0 0 3 0x14000 0x200 pgzero zerothread 62786 471457 0 0 3 0x14000 0x200 aiodoned aiodoned 11615 7184 0 0 3 0x14000 0x200 syncer update 64192 417002 0 0 3 0x14000 0x200 cleaner cleaner 60597 323269 0 0 7 0x14000 0x200 reaper 7373 122438 0 0 3 0x14000 0x200 pgdaemon pagedaemon 21987 253965 0 0 3 0x14000 0x200 bored viomb 92375 95634 0 0 3 0x14000 0x40000200 acpi0 acpi0 18764 423850 0 0 3 0x14000 0x40000200 idle1 14664 436008 0 0 3 0x14000 0x200 bored softnet1 8107 464628 0 0 3 0x14000 0x200 bored softnet0 61255 394285 0 0 3 0x14000 0x200 bored systqmp 99138 477722 0 0 3 0x14000 0x200 bored systq 87513 93392 0 0 3 0x14000 0x200 tmoslp softclockmp 57737 298708 0 0 3 0x14000 0x40000200 tmoslp softclock 30539 156869 0 0 3 0x14000 0x40000200 idle0 1 1965 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 (0xffffffff83b12138) #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 (0xffff80003c3e0618) #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 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11046 12086K 12351K 166960K 12382 0 pcb 17 12K 12K 166960K 55 0 rtable 227 9K 9K 166960K 986 0 pf 34 17K 24K 166960K 173 0 ifaddr 40 7K 8K 166960K 133 0 ifgroup 51 2K 2K 166960K 142 0 sysctl 3 1K 9K 166960K 9 0 counters 68 36K 37K 166960K 114 0 ioctlops 0 0K 4K 166960K 1543 0 iov 1 16K 16K 166960K 9 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1330 84K 84K 166960K 1783 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 16 1K 1K 166960K 16 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 12 41K 93K 166960K 657 0 sigio 0 0K 0K 166960K 2 0 proc 32 50K 180K 166960K 1145 0 subproc 63 3K 4K 166960K 252 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 12 0 in_multi 92 6K 7K 166960K 326 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 19 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 55 254K 254K 166960K 55 0 exec 0 0K 1K 166960K 662 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 141 99K 187K 166960K 6879 0 UVM aobj 7 2K 2K 166960K 8 0 pinsyscall 20 40K 104K 166960K 2367 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 11 0 NDP 17 0K 1K 166960K 91 0 temp 34 9122K 9186K 166960K 8979 0 kqueue 4 6K 26K 166960K 66 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 90 0 90 1 0 1 1 0 8 1 rtentry 176 333 0 234 6 0 6 6 0 8 0 unpcb 144 133 0 122 1 0 1 1 0 8 0 syncache 336 11 0 11 2 1 1 1 0 8 1 tcpcb 736 46 0 43 1 0 1 1 0 8 0 arp 136 59 0 43 1 0 1 1 0 8 0 inpcb 328 300 0 297 2 0 2 2 0 8 1 nd6 152 84 0 63 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 kcovpl 48 28 0 21 1 0 1 1 0 8 0 ppxss 1192 1 0 1 1 0 1 1 0 8 1 pfstscr 40 3 0 2 1 0 1 1 0 8 0 pffrag 232 6 0 0 1 0 1 1 0 482 0 pffrnode 88 6 0 0 1 0 1 1 0 8 0 pffrent 40 8 0 2 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 pfanchor 1288 28 0 24 2 0 2 2 0 8 1 pfstitem 24 46 0 4 1 0 1 1 0 8 0 pfstkey 128 48 0 6 2 0 2 2 0 8 0 pfstate 448 46 0 5 5 0 5 5 0 8 0 pfrule 1360 29 0 27 2 0 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1344 0 930 29 0 29 29 0 8 0 art_table 40 1345 0 930 5 0 5 5 0 8 0 art_node 32 333 0 243 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 0 1 1 0 8 1 semapl 72 14 0 0 1 0 1 1 0 8 0 shmpl 120 5 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1983 0 478 95 0 95 95 0 8 0 ffsino 296 1983 0 478 116 0 116 116 0 8 0 nchpl 144 2513 0 740 66 0 66 66 0 8 0 vnodes 216 2431 0 0 136 0 136 136 0 8 0 namei 1024 10915 0 10915 2 1 1 2 0 8 1 percpumem 16 73 0 23 1 0 1 1 0 8 0 kstatmem 264 71 0 46 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 1 0 1 0 8 0 scxspl 216 8555 0 8555 11 3 8 8 1 8 8 plimitpl 152 65 0 54 1 0 1 1 0 8 0 sigapl 424 964 0 911 8 0 8 8 0 8 0 knotepl 120 316 0 0 10 0 10 10 0 8 0 kqueuepl 224 86 0 83 1 0 1 1 0 8 0 pipepl 344 202 0 175 3 0 3 3 0 8 0 fdescpl 528 928 0 911 3 0 3 3 0 8 0 filepl 160 3341 0 3161 11 0 11 11 0 8 0 lockfpl 104 80 0 80 1 0 1 1 0 8 1 lockfspl 48 37 0 37 1 0 1 1 0 8 1 sessionpl 144 54 0 50 1 0 1 1 0 8 0 pgrppl 48 99 0 87 1 0 1 1 0 8 0 ucredpl 104 279 0 271 1 0 1 1 0 8 0 zombiepl 144 912 0 911 1 0 1 1 0 8 0 processpl 1240 964 0 911 6 0 6 6 0 8 0 procpl 664 1347 0 1285 8 0 8 8 0 8 0 sockpl 752 537 0 523 5 0 5 5 0 8 2 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k128 9344 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 7 0 0 1 0 1 1 0 8 0 mcl4k 4096 112 0 0 14 0 14 14 0 8 0 mcl2k 2048 25 0 0 4 0 4 4 0 8 0 mextrefs 64 25 0 0 1 0 1 1 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 207 0 0 13 0 13 13 0 8 0 bufpl 272 2797 0 112 179 0 179 179 0 8 0 anonpl 32 7553 0 0 61 0 61 61 0 247 0 amapchunkpl 152 19374 0 19048 27 2 25 25 0 158 5 amappl16 200 2171 0 2160 15 10 5 14 0 8 3 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 676 0 676 1 0 1 1 0 8 1 amappl13 176 170 0 166 1 0 1 1 0 8 0 amappl12 168 1268 0 1252 2 0 2 2 0 8 0 amappl11 160 6 0 5 1 0 1 1 0 8 0 amappl10 152 63 0 57 1 0 1 1 0 8 0 amappl9 144 277 0 277 1 1 0 1 0 8 0 amappl8 136 213 0 212 1 0 1 1 0 8 0 amappl7 128 209 0 203 1 0 1 1 0 8 0 amappl6 120 352 0 352 1 0 1 1 0 8 1 amappl5 112 99 0 94 1 0 1 1 0 8 0 amappl4 104 363 0 353 1 0 1 1 0 8 0 amappl3 96 3511 0 3453 4 1 3 3 0 8 0 amappl2 88 981 0 948 2 0 2 2 0 8 0 amappl1 80 14058 0 13868 15 1 14 14 0 8 4 amappl 88 5761 0 5650 5 0 5 5 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 254 0 254 2 2 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 7 0 1 1 0 1 1 0 8 0 uaddrrnd 24 928 0 911 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 928 0 911 1 0 1 1 0 8 0 vmmpekpl 168 9060 0 8999 4 0 4 4 0 8 1 vmmpepl 168 67891 0 67047 97 5 92 97 0 357 31 vmsppl 488 927 0 911 5 0 5 5 0 8 0 rwobjpl 80 21703 0 21176 28 2 26 28 0 8 2 pdppl 4096 1864 0 1822 116 46 70 86 0 8 28 pvpl 32 14094 0 0 114 0 114 114 0 265 0 pmappl 256 927 0 911 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 475 0 50 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(ffffffff834ed6f3) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8352ffa5,ffffffff83494b34,643,ffffffff83476ae8) at __assert+0x29 sys/kern/subr_prf.c:-1 process_stop(ffff80003c3e0500,8000000,1) at process_stop+0x3fe cursig(ffff80003338c2c8,ffff80002a2a8b78,0) at cursig+0x509 x86_atomic_setbits_u32 sys/arch/amd64/compile/SYZKALLER/obj/machine/atomic.h:-1 [inline] cursig(ffff80003338c2c8,ffff80002a2a8b78,0) at cursig+0x509 sys/kern/kern_sig.c:1446 userret(ffff80003338c2c8) at userret+0x203 sys/kern/kern_sig.c:2208 syscall(ffff80002a2a8cb0) at syscall+0x9ce mi_syscall_return sys/sys/syscall_mi.h:203 [inline] syscall(ffff80002a2a8cb0) at syscall+0x9ce sys/arch/amd64/amd64/trap.c:812 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x669b3467210, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff80002998dff0) 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 _kernel_lock_held() at _kernel_lock_held+0x15 sys/kern/kern_lock.c:104 msleep_nsec(ffffffff8394a208,ffffffff8394a1d0,4,ffffffff834ffc7a,ffffffffffffffff) at msleep_nsec+0x1a0 sys/kern/kern_synch.c:202 reaper(ffff800045ffd9f8) at reaper+0x15b sys/kern/kern_exit.c:479 end trace frame: 0x0, count: 9 ddb{1}> trace x86_ipi_db(ffff80002998dff0) 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 _kernel_lock_held() at _kernel_lock_held+0x15 sys/kern/kern_lock.c:104 msleep_nsec(ffffffff8394a208,ffffffff8394a1d0,4,ffffffff834ffc7a,ffffffffffffffff) at msleep_nsec+0x1a0 sys/kern/kern_synch.c:202 reaper(ffff800045ffd9f8) at reaper+0x15b sys/kern/kern_exit.c:479 end trace frame: 0x0, count: -6 ddb{1}>