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 157020 41699 0 0 0 1 syz-executor * 82088 42166 60929 0x8010 0xc000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834bea16) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff834fc1b4,ffffffff83465fd2,642,ffffffff834483a7) at __assert+0x29 sys/kern/subr_prf.c:-1 process_stop(ffff800045ff79c8,8000000,1) at process_stop+0x3fe cursig(ffff80002a222540,ffff80002a271f98,0) at cursig+0x509 x86_atomic_setbits_u32 sys/arch/amd64/compile/SYZKALLER/obj/machine/atomic.h:-1 [inline] cursig(ffff80002a222540,ffff80002a271f98,0) at cursig+0x509 sys/kern/kern_sig.c:1445 userret(ffff80002a222540) at userret+0x203 sys/kern/kern_sig.c:2207 syscall(ffff80002a2720d0) at syscall+0x9ce mi_syscall_return sys/sys/syscall_mi.h:203 [inline] syscall(ffff80002a2720d0) at syscall+0x9ce sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x62a0d0275a0, 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(ffffffff834bea16) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff834fc1b4,ffffffff83465fd2,642,ffffffff834483a7) at __assert+0x29 sys/kern/subr_prf.c:-1 process_stop(ffff800045ff79c8,8000000,1) at process_stop+0x3fe cursig(ffff80002a222540,ffff80002a271f98,0) at cursig+0x509 x86_atomic_setbits_u32 sys/arch/amd64/compile/SYZKALLER/obj/machine/atomic.h:-1 [inline] cursig(ffff80002a222540,ffff80002a271f98,0) at cursig+0x509 sys/kern/kern_sig.c:1445 userret(ffff80002a222540) at userret+0x203 sys/kern/kern_sig.c:2207 syscall(ffff80002a2720d0) at syscall+0x9ce mi_syscall_return sys/sys/syscall_mi.h:203 [inline] syscall(ffff80002a2720d0) at syscall+0x9ce sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x62a0d0275a0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002a271db0 rbx 0xffffffff838eae07 cpu_info_full_primary+0x2e07 rdx 0 rcx 0xffff80002a222540 rax 0xffffffff838e9ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x642a872fbcd96667 r11 0x25400204f5eb93cd r12 0xffffffff838eac08 cpu_info_full_primary+0x2c08 r13 0 r14 0 r15 0x1 rip 0xffffffff81e08695 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a271da0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=82088 pid=42166 tcnt=3 stat=onproc flags process=8010 proc=c000000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=2 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a223768,0xffff80002a2227e8 process=0xffff800045ff79c8 user=0xffff80002a26d000, vmspace=0xfffff7806cec3200 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 77247 7988 36655 0 2 0 0 syz-executor 8504 496773 80203 0 2 0 0 syz-executor 41699 157020 77542 0 7 0 0 syz-executor 41699 79505 77542 0 2 0 0x4000080 syz-executor 42166 186195 20398 60929 2 0x8010 0x8000000 syz-executor 42166 280877 20398 60929 4 0x8010 0xc000000 syz-executor *42166 82088 20398 60929 7 0x8010 0xc000000 syz-executor 51540 54256 32325 0 2 0 0 syz-executor 51540 239194 32325 0 3 0 0x4000080 fsleep syz-executor 44693 432015 70857 0 2 0 0 syz-executor 44693 479364 70857 0 3 0 0x4000080 fsleep syz-executor 13483 173810 19472 0 2 0 0 syz-executor 13483 347083 19472 0 3 0 0x4000080 fsleep syz-executor 58848 523694 1 0 3 0 0x80 nanoslp init 47380 297672 0 0 3 0x14000 0x200 acct acct 68124 301088 0 0 3 0x14000 0x280 nfsidl nfsio 40855 82683 0 0 3 0x14000 0x280 nfsidl nfsio 51621 65287 0 0 3 0x14000 0x280 nfsidl nfsio 22151 45902 0 0 3 0x14000 0x280 nfsidl nfsio 94350 382457 0 0 3 0x14000 0x280 nfsidl nfsio 9192 54039 0 0 3 0x14000 0x280 nfsidl nfsio 70760 476253 0 0 3 0x14000 0x280 nfsidl nfsio 12243 16729 0 0 3 0x14000 0x280 nfsidl nfsio 44280 454460 0 0 3 0x14000 0x280 nfsidl nfsio 73679 436487 0 0 3 0x14000 0x280 nfsidl nfsio 40647 247156 0 0 3 0x14000 0x280 nfsidl nfsio 72326 184909 0 0 3 0x14000 0x280 nfsidl nfsio 90174 378698 0 0 3 0x14000 0x280 nfsidl nfsio 93615 35178 0 0 3 0x14000 0x280 nfsidl nfsio 48856 18256 0 0 3 0x14000 0x280 nfsidl nfsio 3698 473413 0 0 3 0x14000 0x280 nfsidl nfsio 57362 83425 0 0 3 0x14000 0x280 nfsidl nfsio 54998 153857 0 0 3 0x14000 0x280 nfsidl nfsio 67896 418082 0 0 3 0x14000 0x280 nfsidl nfsio 47304 140506 0 0 3 0x14000 0x280 nfsidl nfsio 77542 506186 20809 0 3 0x2 0x80 nanoslp syz-executor 20398 119462 20809 0 3 0x2 0x80 nanoslp syz-executor 84242 352880 20809 0 2 0x2 0 syz-executor 80203 134421 20809 0 3 0x2 0x80 nanoslp syz-executor 19472 84963 20809 0 3 0x2 0x80 nanoslp syz-executor 36655 494960 20809 0 3 0x2 0x80 nanoslp syz-executor 32325 465199 20809 0 3 0x2 0x80 nanoslp syz-executor 70857 338158 20809 0 3 0x2 0x80 nanoslp syz-executor 20809 341703 1 0 3 0x2 0x80 kqread syz-executor 73296 453190 1 74 3 0x1100012 0x80 bpf pflogd 8170 420405 1 73 3 0x1100010 0x80 kqread syslogd 13078 514937 0 0 3 0x14000 0x200 bored smr 85664 50515 0 0 2 0x14000 0x200 zerothread 43926 175260 0 0 3 0x14000 0x200 aiodoned aiodoned 23538 255010 0 0 3 0x14000 0x200 syncer update 20511 337949 0 0 3 0x14000 0x200 cleaner cleaner 35826 486909 0 0 3 0x14000 0x200 reaper reaper 92397 26107 0 0 3 0x14000 0x200 pgdaemon pagedaemon 51474 325673 0 0 3 0x14000 0x200 bored viomb 96204 516682 0 0 3 0x14000 0x40000200 acpi0 acpi0 14361 335446 0 0 3 0x14000 0x40000200 idle1 39768 289611 0 0 3 0x14000 0x200 bored softnet1 65001 372862 0 0 3 0x14000 0x200 bored softnet0 75248 481528 0 0 3 0x14000 0x200 bored systqmp 33667 302673 0 0 3 0x14000 0x200 bored systq 81549 205619 0 0 3 0x14000 0x200 tmoslp softclockmp 52414 179134 0 0 3 0x14000 0x40000200 tmoslp softclock 27644 468384 0 0 3 0x14000 0x40000200 idle0 1 234282 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 (0xffffffff83a84d50) #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 (0xffff800045ff7ae0) #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 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11079 12297K 12420K 166960K 12493 0 pcb 17 14K 15K 166960K 77 0 rtable 205 7K 7K 166960K 386 0 pf 39 18K 21K 166960K 66 0 ifaddr 42 7K 7K 166960K 56 0 ifgroup 59 2K 2K 166960K 78 0 sysctl 4 1K 9K 166960K 9 0 counters 72 37K 37K 166960K 86 0 ioctlops 0 0K 4K 166960K 1531 0 iov 0 0K 16K 166960K 11 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1329 84K 84K 166960K 1603 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 10 0 VM map 2 1K 1K 166960K 2 0 sem 11 0K 0K 166960K 151 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 17 61K 106K 166960K 390 0 sigio 1 0K 0K 166960K 7 0 proc 12 17K 164K 166960K 580 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 28 0 in_multi 91 6K 7K 166960K 112 0 ether_multi 1 0K 0K 166960K 1 0 mrt 1 0K 0K 166960K 12 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 412 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 3 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 139 95K 174K 166960K 5165 0 UVM aobj 16 2K 2K 166960K 18 0 pinsyscall 22 44K 104K 166960K 1560 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 13 0K 2K 166960K 34 0 temp 41 9115K 9131K 166960K 21383 0 kqueue 3 4K 24K 166960K 64 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 49 0 49 1 0 1 1 0 8 1 rtentry 176 117 0 28 6 0 6 6 0 8 0 unpcb 144 260 0 254 3 0 3 3 0 8 2 syncache 336 6 0 6 1 0 1 1 0 8 1 tcpcb 736 59 0 58 1 0 1 1 0 8 0 arp 136 18 0 2 1 0 1 1 0 8 0 inpcb 328 299 0 297 7 0 7 7 0 8 6 nd6 152 28 0 5 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1192 4 0 4 1 0 1 1 0 8 1 pfstscr 40 5 0 2 1 0 1 1 0 8 0 pffrag 232 3 0 0 1 0 1 1 0 482 0 pffrnode 88 3 0 0 1 0 1 1 0 8 0 pffrent 40 3 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 pfqueue 320 1 0 1 1 0 1 1 0 8 1 pfstitem 24 44 0 0 1 0 1 1 0 8 0 pfstkey 128 46 0 2 2 0 2 2 0 8 0 pfstate 448 43 0 1 5 0 5 5 0 8 0 pfrule 1360 25 0 19 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 528 0 101 33 0 33 33 0 8 3 art_table 40 529 0 101 6 0 6 6 0 8 0 art_node 32 117 0 36 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 2 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 72 148 0 139 1 0 1 1 0 8 0 shmpl 112 15 0 2 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 1996 0 529 93 0 93 93 0 8 0 ffsino 296 1996 0 529 114 0 114 114 0 8 0 nchpl 144 2532 0 828 64 0 64 64 0 8 0 rtmask 32 2 0 2 1 0 1 1 0 8 1 vnodes 216 2251 0 0 126 0 126 126 0 8 0 namei 1024 7964 0 7964 1 0 1 1 0 8 1 percpumem 16 59 0 7 1 0 1 1 0 8 0 kstatmem 264 41 0 10 3 0 3 3 0 8 0 scxspl 216 11128 0 11128 11 3 8 8 1 8 8 plimitpl 152 83 0 71 1 0 1 1 0 8 0 sigapl 424 723 0 665 8 0 8 8 0 8 0 knotepl 120 298 0 0 10 0 10 10 0 8 0 kqueuepl 224 78 0 76 1 0 1 1 0 8 0 pipepl 344 146 0 119 3 0 3 3 0 8 0 fdescpl 528 686 0 665 3 0 3 3 0 8 0 filepl 160 3300 0 3116 14 0 14 14 0 8 5 lockfpl 104 90 0 90 1 0 1 1 0 8 1 lockfspl 48 42 0 42 1 0 1 1 0 8 1 sessionpl 144 35 0 31 1 0 1 1 0 8 0 pgrppl 48 47 0 34 1 0 1 1 0 8 0 ucredpl 104 324 0 315 1 0 1 1 0 8 0 zombiepl 144 665 0 665 1 0 1 1 0 8 1 processpl 1232 723 0 665 6 0 6 6 0 8 0 procpl 664 1121 0 1057 7 0 7 7 0 8 0 sosppl 176 2 0 2 1 0 1 1 0 8 1 sockpl 752 626 0 618 15 5 10 15 0 8 8 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 114 0 0 15 0 15 15 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 26 0 0 3 0 3 3 0 8 0 mextrefs 64 18 0 0 1 0 1 1 0 8 0 mtagpl 96 4 0 0 1 0 1 1 0 8 0 mbufpl 256 142 0 0 9 0 9 9 0 8 0 bufpl 272 3943 0 106 256 0 256 256 0 8 0 anonpl 32 5966 0 0 49 0 49 49 0 247 0 amapchunkpl 152 15562 0 15221 24 0 24 24 0 158 7 amappl16 200 1909 0 1886 15 3 12 14 0 8 8 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 441 0 441 1 0 1 1 0 8 1 amappl13 176 125 0 123 1 0 1 1 0 8 0 amappl12 168 941 0 922 2 0 2 2 0 8 0 amappl11 160 13 0 13 1 1 0 1 0 8 0 amappl10 152 67 0 63 1 0 1 1 0 8 0 amappl9 144 291 0 291 1 1 0 1 0 8 0 amappl8 136 97 0 96 1 0 1 1 0 8 0 amappl7 128 151 0 145 1 0 1 1 0 8 0 amappl6 120 166 0 165 1 0 1 1 0 8 0 amappl5 112 99 0 95 1 0 1 1 0 8 0 amappl4 104 298 0 291 1 0 1 1 0 8 0 amappl3 96 3014 0 2941 3 0 3 3 0 8 0 amappl2 88 560 0 543 2 0 2 2 0 8 0 amappl1 80 11529 0 11374 15 0 15 15 0 8 6 amappl 88 4388 0 4271 4 0 4 4 0 92 0 uvmvnodes 80 108 0 0 3 0 3 3 0 8 0 dma65536 65536 1 0 1 1 0 1 1 0 8 1 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 17 0 2 1 0 1 1 0 8 0 uaddrrnd 24 686 0 665 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 686 0 665 1 0 1 1 0 8 0 vmmpekpl 168 7603 0 7565 2 0 2 2 0 8 0 vmmpepl 168 51471 0 50526 88 0 88 88 0 357 37 vmsppl 488 685 0 665 5 0 5 5 0 8 1 rwobjpl 80 17163 0 16682 23 0 23 23 0 8 2 pdppl 4096 1379 0 1330 103 52 51 83 0 8 2 pvpl 32 11780 0 0 96 1 95 95 0 265 0 pmappl 256 685 0 665 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 536 0 55 14 0 14 14 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(ffffffff834bea16) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff834fc1b4,ffffffff83465fd2,642,ffffffff834483a7) at __assert+0x29 sys/kern/subr_prf.c:-1 process_stop(ffff800045ff79c8,8000000,1) at process_stop+0x3fe cursig(ffff80002a222540,ffff80002a271f98,0) at cursig+0x509 x86_atomic_setbits_u32 sys/arch/amd64/compile/SYZKALLER/obj/machine/atomic.h:-1 [inline] cursig(ffff80002a222540,ffff80002a271f98,0) at cursig+0x509 sys/kern/kern_sig.c:1445 userret(ffff80002a222540) at userret+0x203 sys/kern/kern_sig.c:2207 syscall(ffff80002a2720d0) at syscall+0x9ce mi_syscall_return sys/sys/syscall_mi.h:203 [inline] syscall(ffff80002a2720d0) at syscall+0x9ce sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x62a0d0275a0, 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 end of kernel end trace frame: 0x71206bc195e0, count: 12 ddb{1}>