panic: sleep: syz-executor[54211] slept inside a no-sleep walk bracket (raw pointer held across sleep, wmesg "biowait") Stopped at db_enter+0x17: popq %rbp TID PID UID PRFLAGS PFLAGS CPU COMMAND 22746 54211 0 0 0 0 syz-executor *344855 54211 0 0 0x4000010 1K syz-executor db_enter() at db_enter+0x17 sys/arch/amd64/amd64/db_interface.c:457 panic(ffffffff84d8d160) at panic+0x270 sys/kern/subr_prf.c:198 sleep_setup(ffff800001bd6220,11,ffffffff84692f80) at sleep_setup+0x3b2 sys/kern/kern_synch.c:296 tsleep_nsec(ffff800001bd6220,11,ffffffff84692f80,ffffffffffffffff) at tsleep_nsec+0x29c sys/kern/kern_synch.c:153 biowait(ffff800001bd6220) at biowait+0xe6 sys/kern/vfs_bio.c:1110 bwrite(ffff800001bd6220) at bwrite+0x4e1 sys/kern/vfs_bio.c:625 ffs_update(ffff800001c28ab8,1) at ffs_update+0x619 sys/ufs/ffs/ffs_inode.c:111 ffs_truncate(ffff800001c28ab8,0,0,ffffffffffffffff) at ffs_truncate+0x12f0 sys/ufs/ffs/ffs_inode.c:-1 ufs_inactive(ffff800029a78380) at ufs_inactive+0x2cb sys/ufs/ufs/ufs_inode.c:84 VOP_INACTIVE(ffff800001caf2c0,ffff800029a7f4e8) at VOP_INACTIVE+0x1bb sys/kern/vfs_vops.c:498 vrele(ffff800001caf2c0) at vrele+0x16a sys/kern/vfs_subr.c:845 ktrsettrace(ffff800029917500,80000814,ffff800001d62950,ffff8000001197b8) at ktrsettrace+0x16c sys/kern/kern_ktrace.c:123 ktrops(ffff800029a7f4e8,ffff800029917500,0,80000814,ffff800001d62950,ffff8000001197b8) at ktrops+0x338 sys/kern/kern_ktrace.c:578 doktrace(ffff800001d62950,4,814,0,ffff800029a7f4e8) at doktrace+0xa72 ktrsetchildren sys/kern/kern_ktrace.c:607 [inline] doktrace(ffff800001d62950,4,814,0,ffff800029a7f4e8) at doktrace+0xa72 sys/kern/kern_ktrace.c:522 end trace frame: 0xffff800029a78870, count: 0 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: sleep: syz-executor[54211] slept inside a no-sleep walk bracket (raw pointer held across sleep, wmesg "biowait") ddb{1}> show kasan kasan: no report recorded this boot ddb{1}> trace db_enter() at db_enter+0x17 sys/arch/amd64/amd64/db_interface.c:457 panic(ffffffff84d8d160) at panic+0x270 sys/kern/subr_prf.c:198 sleep_setup(ffff800001bd6220,11,ffffffff84692f80) at sleep_setup+0x3b2 sys/kern/kern_synch.c:296 tsleep_nsec(ffff800001bd6220,11,ffffffff84692f80,ffffffffffffffff) at tsleep_nsec+0x29c sys/kern/kern_synch.c:153 biowait(ffff800001bd6220) at biowait+0xe6 sys/kern/vfs_bio.c:1110 bwrite(ffff800001bd6220) at bwrite+0x4e1 sys/kern/vfs_bio.c:625 ffs_update(ffff800001c28ab8,1) at ffs_update+0x619 sys/ufs/ffs/ffs_inode.c:111 ffs_truncate(ffff800001c28ab8,0,0,ffffffffffffffff) at ffs_truncate+0x12f0 sys/ufs/ffs/ffs_inode.c:-1 ufs_inactive(ffff800029a78380) at ufs_inactive+0x2cb sys/ufs/ufs/ufs_inode.c:84 VOP_INACTIVE(ffff800001caf2c0,ffff800029a7f4e8) at VOP_INACTIVE+0x1bb sys/kern/vfs_vops.c:498 vrele(ffff800001caf2c0) at vrele+0x16a sys/kern/vfs_subr.c:845 ktrsettrace(ffff800029917500,80000814,ffff800001d62950,ffff8000001197b8) at ktrsettrace+0x16c sys/kern/kern_ktrace.c:123 ktrops(ffff800029a7f4e8,ffff800029917500,0,80000814,ffff800001d62950,ffff8000001197b8) at ktrops+0x338 sys/kern/kern_ktrace.c:578 doktrace(ffff800001d62950,4,814,0,ffff800029a7f4e8) at doktrace+0xa72 ktrsetchildren sys/kern/kern_ktrace.c:607 [inline] doktrace(ffff800001d62950,4,814,0,ffff800029a7f4e8) at doktrace+0xa72 sys/kern/kern_ktrace.c:522 sys_ktrace(ffff800029a7f4e8,ffff800029a78a00,ffff800029a78960) at sys_ktrace+0x1f6 sys/kern/kern_ktrace.c:563 syscall(ffff800029a78a00) at syscall+0x1089 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800029a78a00) at syscall+0x1089 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x33fbfebf7a0, count: -17 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800029a77c70 rbx 0xffff800029a77ce0 rdx 0 rcx 0xffff800028fe3ff0 rax 0xffff80000015ba80 r8 0x101010101010101 r9 0x8080808080808080 r10 0xffff800029a77a60 r11 0xffffffff83e54b70 x86_bus_space_io_read_1 r12 0xffffffff84d8d160 .str.9 r13 0xffff800028fe4c08 r14 0xffff800028fe4e07 r15 0x1 rip 0xffffffff82f1b577 db_enter+0x17 cs 0x8 rflags 0x246 rsp 0xffff800029a77c70 ss 0x10 db_enter+0x17: popq %rbp ddb{1}> show proc PROC (syz-executor) tid=344855 pid=54211 tcnt=2 stat=onproc flags process=0 proc=4000010 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800029a7efb8,0xffffffff85deb120 process=0xffff8000326ceb78 user=0xffff800029a6d000, vmspace=0xffff800001ad8b80 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 54211 22746 30025 0 7 0 0 syz-executor *54211 344855 30025 0 7 0 0x4000010 syz-executor 98413 317093 12094 0 2 0 0 syz-executor 98413 74700 12094 0 2 0 0x4000000 syz-executor 7449 274433 90355 0 2 0x2 0 syz-executor 7087 376721 88042 0 2 0 0 syz-executor 7087 269920 88042 0 3 0 0x4000080 fsleep syz-executor 75955 325652 43852 0 3 0x10 0x80 nanoslp syz-executor 75955 435508 43852 0 3 0x10 0x4000080 fsleep syz-executor 75955 113501 43852 0 3 0x10 0x4000080 lockf syz-executor 75955 374460 43852 0 3 0x10 0x4000080 fsleep syz-executor 15816 509412 54130 0 2 0 0 syz-executor 15816 385781 54130 0 2 0 0x4000000 syz-executor 58122 21714 82318 0 3 0 0x80 nanoslp syz-executor 58122 116695 82318 0 3 0 0x4000080 msgwait syz-executor 58122 422350 82318 0 3 0 0x4000080 fsleep syz-executor 58122 92222 82318 0 3 0 0x4000080 fsleep syz-executor 12094 259115 90355 0 3 0x2 0x80 nanoslp syz-executor 73944 1544 1 0 3 0x100003 0x80 ttyin getty 35828 141733 0 0 3 0x14000 0x280 nfsidl nfsio 76094 279118 0 0 3 0x14000 0x280 nfsidl nfsio 73274 311546 0 0 3 0x14000 0x280 nfsidl nfsio 98971 322640 0 0 3 0x14000 0x280 nfsidl nfsio 85221 417860 0 0 3 0x14000 0x280 nfsidl nfsio 7843 189510 0 0 3 0x14000 0x280 nfsidl nfsio 72498 81983 0 0 3 0x14000 0x280 nfsidl nfsio 68543 288080 0 0 3 0x14000 0x280 nfsidl nfsio 65229 443546 0 0 3 0x14000 0x280 nfsidl nfsio 93261 321904 0 0 3 0x14000 0x280 nfsidl nfsio 45448 169259 0 0 3 0x14000 0x280 nfsidl nfsio 5173 99596 0 0 3 0x14000 0x280 nfsidl nfsio 68292 27481 0 0 3 0x14000 0x280 nfsidl nfsio 49072 246128 0 0 3 0x14000 0x280 nfsidl nfsio 41055 337427 0 0 3 0x14000 0x280 nfsidl nfsio 92236 165503 0 0 3 0x14000 0x280 nfsidl nfsio 2257 50595 0 0 3 0x14000 0x280 nfsidl nfsio 68235 410824 0 0 3 0x14000 0x280 nfsidl nfsio 83079 174510 0 0 3 0x14000 0x280 nfsidl nfsio 84736 293617 0 0 3 0x14000 0x280 nfsidl nfsio 43852 206969 90355 0 3 0x2 0x80 nanoslp syz-executor 54130 56533 90355 0 3 0x2 0x80 nanoslp syz-executor 68782 117864 90355 0 3 0x2 0 biowait syz-executor 82318 335826 90355 0 3 0x2 0x80 nanoslp syz-executor 88042 119774 90355 0 3 0x2 0x80 nanoslp syz-executor 30025 338073 90355 0 3 0x2 0x80 nanoslp syz-executor 90355 495569 1 0 3 0x2 0x80 kqread syz-executor 45863 55636 95791 74 3 0x1100012 0x80 bpf pflogd 95791 264572 1 0 3 0 0x80 sbwait pflogd 16123 352610 0 0 3 0x14000 0x200 bored smr 3959 48761 0 0 2 0x14000 0x200 zerothread 25150 200533 0 0 3 0x14000 0x200 aiodoned aiodoned 9839 518449 0 0 3 0x14000 0x200 syncer update 3714 364316 0 0 3 0x14000 0x200 cleaner cleaner 9956 252102 0 0 3 0x14000 0x200 reaper reaper 84242 36349 0 0 3 0x14000 0x200 pgdaemon pagedaemon 60809 367160 0 0 3 0x14000 0x200 bored viomb 32380 159319 0 0 3 0x14000 0x40000200 acpi0 acpi0 80710 18584 0 0 3 0x14000 0x40000200 idle1 56146 17146 0 0 3 0x14000 0x200 bored softnet1 97517 168080 0 0 3 0x14000 0x200 bored softnet0 739 325142 0 0 3 0x14000 0x200 bored systqmp 30305 133806 0 0 3 0x14000 0x200 bored systq 44290 154395 0 0 3 0x14000 0x200 tmoslp softclockmp 35074 317513 0 0 3 0x14000 0x40000200 tmoslp softclock 76138 65352 0 0 3 0x14000 0x40000200 idle0 1 409829 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb{1}> show all locks Process 54211 (syz-executor) thread 0xffff800029a7f4e8 (344855) Process 68782 (syz-executor) thread 0xffff800029913c98 (117864) ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11052 12308K 12534K 166960K 12450 0 pcb 17 26K 27K 166960K 51 0 rtable 222 12K 13K 166960K 486 0 pf 32 21K 32793K 166960K 64 0 ifaddr 39 11K 12K 166960K 65 0 ifgroup 51 2K 2K 166960K 79 0 sysctl 2 1K 13K 166960K 6 0 counters 68 42K 42K 166960K 82 0 ioctlops 0 0K 4K 166960K 1580 0 iov 0 0K 16K 166960K 12 0 mount 1 1K 1K 166960K 1 0 log 6 0K 0K 166960K 10 0 vnodes 1356 87K 87K 166960K 1628 0 UFS quota 1 36K 36K 166960K 1 0 UFS mount 5 44K 44K 166960K 5 0 shm 2 2K 6K 166960K 10 0 VM map 2 1K 1K 166960K 2 0 sem 9 0K 0K 166960K 9 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 292K 166960K 11964 0 file desc 15 57K 93K 166960K 387 0 sigio 0 0K 0K 166960K 3 0 proc 31 63K 177K 166960K 708 0 subproc 66 8K 9K 166960K 120 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 20K 20K 166960K 1 0 in_multi 88 6K 7K 166960K 143 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 12 0 ISOFS mount 1 36K 36K 166960K 1 0 MSDOSFS mount 1 20K 20K 166960K 1 0 ttys 55 384K 384K 166960K 55 0 exec 0 0K 2K 166960K 449 0 fusefs mount 1 36K 36K 166960K 1 0 tdb 3 1K 1K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 139 140K 242K 166960K 5079 0 UVM aobj 14 4K 4K 166960K 16 0 pinsyscall 1046 1781K 1783K 166960K 1674 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 13 0K 2K 166960K 42 0 temp 34 9162K 9190K 166960K 5108 0 kqueue 1 4K 56K 166960K 52 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> 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 43 0 43 1 0 1 1 0 8 1 rtentry 176 159 0 57 6 0 6 6 0 8 0 unpcb 144 161 0 157 1 0 1 1 0 8 0 syncache 336 4 0 4 2 2 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpcb 736 21 0 20 1 0 1 1 0 8 0 arp 136 26 0 10 1 0 1 1 0 8 0 inpcb 328 260 0 256 6 0 6 6 0 8 5 nd6 152 40 0 16 2 0 2 2 0 8 0 kcovpl 48 13 0 6 1 0 1 1 0 8 0 pffrent 40 1 0 1 1 0 1 1 0 8 1 pfosfp 40 1429 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1429 0 714 21 0 21 21 0 8 0 pfrktable 1344 1 0 1 1 0 1 1 0 8 1 pfstitem 24 38 0 0 1 0 1 1 0 8 0 pfstkey 128 38 0 0 2 0 2 2 0 8 0 pfstate 448 38 0 0 5 0 5 5 0 8 0 pfrule 1360 87 0 82 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 643 0 225 30 0 30 30 0 8 1 art_table 40 644 0 225 5 0 5 5 0 8 0 art_node 32 159 0 66 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 0 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 72 7 0 0 1 0 1 1 0 8 0 shmpl 112 13 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1876 0 388 94 0 94 94 0 8 0 ffsino 296 1876 0 388 115 0 115 115 0 8 0 nchpl 144 2339 0 616 65 0 65 65 0 8 0 vnodes 216 2193 0 0 122 0 122 122 0 8 0 namei 1024 7969 0 7968 1 0 1 1 0 8 0 percpumem 16 57 0 7 1 0 1 1 0 8 0 kstatmem 264 39 0 14 2 0 2 2 0 8 0 scxspl 216 8342 0 8340 7 4 3 3 1 8 2 plimitpl 152 111 0 99 1 0 1 1 0 8 0 sigapl 424 720 0 664 8 0 8 8 0 8 0 knotepl 120 112 0 0 4 0 4 4 0 8 0 kqueuepl 224 95 0 93 3 1 2 3 0 8 1 pipepl 344 169 0 142 3 0 3 3 0 8 0 fdescpl 528 684 0 664 3 0 3 3 0 8 0 filepl 160 2988 0 2824 11 0 11 11 0 8 1 lockfpl 104 133 0 130 1 0 1 1 0 8 0 lockfspl 48 65 0 63 1 0 1 1 0 8 0 sessionpl 144 37 0 33 1 0 1 1 0 8 0 pgrppl 48 52 0 40 1 0 1 1 0 8 0 ucredpl 104 289 0 282 1 0 1 1 0 8 0 zombiepl 144 664 0 664 1 0 1 1 0 8 1 processpl 1232 720 0 664 6 0 6 6 0 8 0 procpl 664 1029 0 963 7 0 7 7 0 8 0 sockpl 752 467 0 458 7 0 7 7 0 8 5 mcl64k 65536 3 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 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 120 0 0 15 0 15 15 0 8 0 mcl2k 2048 21 0 0 3 0 3 3 0 8 0 mextrefs 64 17 0 0 1 0 1 1 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 149 0 0 10 0 10 10 0 8 0 bufpl 272 2740 0 106 176 0 176 176 0 8 0 anonpl 32 3822 0 0 31 0 31 31 0 222 0 amapchunkpl 152 14672 0 14327 19 0 19 19 0 158 4 amappl16 200 2032 0 2012 5 3 2 5 0 8 0 amappl15 192 8 0 8 1 1 0 1 0 8 0 amappl14 184 496 0 496 1 0 1 1 0 8 1 amappl13 176 170 0 167 1 0 1 1 0 8 0 amappl12 168 956 0 937 2 0 2 2 0 8 0 amappl11 160 7 0 7 3 2 1 1 0 8 1 amappl10 152 98 0 94 1 0 1 1 0 8 0 amappl9 144 273 0 273 1 1 0 1 0 8 0 amappl8 136 124 0 123 1 0 1 1 0 8 0 amappl7 128 159 0 155 1 0 1 1 0 8 0 amappl6 120 194 0 194 1 0 1 1 0 8 1 amappl5 112 112 0 109 1 0 1 1 0 8 0 amappl4 104 321 0 314 1 0 1 1 0 8 0 amappl3 96 2868 0 2788 3 0 3 3 0 8 0 amappl2 88 597 0 583 2 0 2 2 0 8 0 amappl1 80 11825 0 11652 15 2 13 15 0 8 4 amappl 88 4229 0 4113 4 0 4 4 0 92 0 uvmvnodes 80 101 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 15 0 2 1 0 1 1 0 8 0 uaddrrnd 24 684 0 664 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 684 0 664 1 0 1 1 0 8 0 vmmpekpl 168 7510 0 7469 3 0 3 3 0 8 0 vmmpepl 168 52184 0 51253 87 2 85 87 0 357 36 vmsppl 488 683 0 664 5 0 5 5 0 8 1 rwobjpl 80 17716 0 17212 26 3 23 25 0 8 2 pdppl 4096 1376 0 1328 102 48 54 86 0 8 6 pvpl 32 9691 0 0 79 0 79 79 0 265 0 pmappl 256 683 0 664 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 120 454 0 53 13 0 13 13 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x19: leave x86_ipi_db(ffffffff851e9ff0) at x86_ipi_db+0x19 sys/arch/amd64/amd64/db_interface.c:412 x86_ipi_handler() at x86_ipi_handler+0x112 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff85d51b80) at __mp_lock+0x272 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff85d51b80) at __mp_lock+0x272 sys/kern/kern_lock.c:173 intr_handler(ffff800036ee8830,ffff800000170180) at intr_handler+0x113 sys/arch/amd64/amd64/intr.c:560 Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f end of kernel end trace frame: 0x7dadb0cd0d60, count: 9 ddb{0}>