H %t]Ձ-LPq۫Z}>m"a/f0L} 6ZrOzD$G[PUm;WuգM)r O_8:&-*HaumGa;MU hP;H+p"iHZ"x[l;BqȈQMYZU}:{3GY}7 LZĕ 4wѬ.5׹Tz^-)o*Hɫ<GeY``Nٷwitness: userret: returning with the following locks held: exclusive rrwlock inode r = 0 (0xfffffd806ef17920) locked @ /syzkaller/managers/pf/kernel/sys/ufs/ufs/ufs_vnops.c:1547 #0 witness_lock+0x594 sys/kern/subr_witness.c:1205 #1 _rw_enter+0x45d sys/kern/kern_rwlock.c:280 #2 _rrw_enter+0x60 sys/kern/kern_rwlock.c:410 #3 VOP_LOCK+0x57 sys/kern/vfs_vops.c:602 #4 vn_write+0x169 vn_lock sys/kern/vfs_vnops.c:549 [inline] #4 vn_write+0x169 sys/kern/vfs_vnops.c:393 #5 dofilewritev+0x1b0 sys/kern/sys_generic.c:364 #6 sys_writev+0xc5 sys/kern/sys_generic.c:311 #7 syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] #7 syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 #8 Xsyscall+0x128 panic: witness_warn Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *514917 58213 0 0x1000 0x4080000 1 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399 panic() at panic+0x174 sys/kern/subr_prf.c:208 witness_warn(2,0,ffffffff81f7b8ed) at witness_warn+0x7c7 witness_debugger sys/kern/subr_witness.c:2653 [inline] witness_warn(2,0,ffffffff81f7b8ed) at witness_warn+0x7c7 sys/kern/subr_witness.c:1512 userret(ffff800020b399e0) at userret+0x366 sys/kern/kern_sig.c:1900 syscall(ffff800020c4d290) at syscall+0x698 mi_syscall_return sys/sys/syscall_mi.h:122 [inline] syscall(ffff800020c4d290) at syscall+0x698 sys/arch/amd64/amd64/trap.c:596 Xsyscall(6,5,d,0,3,fafa0a491a0) at Xsyscall+0x128 end of kernel end trace frame: 0xfb2325779e0, count: 9 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 witness_warn ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399 panic() at panic+0x174 sys/kern/subr_prf.c:208 witness_warn(2,0,ffffffff81f7b8ed) at witness_warn+0x7c7 witness_debugger sys/kern/subr_witness.c:2653 [inline] witness_warn(2,0,ffffffff81f7b8ed) at witness_warn+0x7c7 sys/kern/subr_witness.c:1512 userret(ffff800020b399e0) at userret+0x366 sys/kern/kern_sig.c:1900 syscall(ffff800020c4d290) at syscall+0x698 mi_syscall_return sys/sys/syscall_mi.h:122 [inline] syscall(ffff800020c4d290) at syscall+0x698 sys/arch/amd64/amd64/trap.c:596 Xsyscall(6,5,d,0,3,fafa0a491a0) at Xsyscall+0x128 end of kernel end trace frame: 0xfb2325779e0, count: -6 ddb{1}> show registers rdi 0 rsi 0x3ffff acpi_pdirpa+0x2be67 rbp 0xffff800020c4cfb0 rbx 0xffff800020c4d060 rdx 0x40000 acpi_pdirpa+0x2be68 rcx 0xffff800000d66000 rax 0xffff80000091f000 r8 0xffffffff818e0893 kprintf+0x183 r9 0x1 r10 0x25 r11 0x8a74305bf8895571 r12 0x3000000008 r13 0xffff800020c4cfc0 r14 0x100 r15 0x1 rip 0xffffffff817e3668 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c4cfa0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=514917 stat=onproc flags process=1000 proc=4080000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b38018,0xffffffff82361848 process=0xffff800020b8d080 user=0xffff800020c48000, vmspace=0xfffffd807f00c438 estcpu=36, cpticks=5, pctcpu=0.0 user=0, sys=5, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 58213 435245 36710 0 3 0x3000 suspend syz-executor.0 *58213 514917 36710 0 7 0x4081000 syz-executor.0 49429 344148 1 0 3 0x100083 ttyin getty 447 4856 0 0 3 0x14200 bored sosplice 58634 51258 98251 0 3 0x82 nanosleep syz-executor.1 36710 62836 98251 0 3 0x82 nanosleep syz-executor.0 98251 399366 82055 0 3 0x82 thrsleep syz-fuzzer 98251 361258 82055 0 3 0x4000082 thrsleep syz-fuzzer 98251 260163 82055 0 3 0x4000082 thrsleep syz-fuzzer 98251 13172 82055 0 3 0x4000082 thrsleep syz-fuzzer 98251 399141 82055 0 3 0x4000082 thrsleep syz-fuzzer 98251 17582 82055 0 3 0x4000082 kqread syz-fuzzer 98251 258391 82055 0 3 0x4000082 thrsleep syz-fuzzer 98251 282326 82055 0 3 0x4000082 thrsleep syz-fuzzer 98251 280488 82055 0 3 0x4000082 thrsleep syz-fuzzer 98251 502020 82055 0 3 0x4000082 thrsleep syz-fuzzer 98251 80780 82055 0 3 0x4000082 thrsleep syz-fuzzer 98251 404416 82055 0 3 0x4000082 thrsleep syz-fuzzer 82055 37291 63468 0 3 0x10008a pause ksh 63468 340309 71289 0 3 0x92 select sshd 71289 518721 1 0 3 0x80 select sshd 58809 448030 58568 74 3 0x100092 bpf pflogd 58568 199633 1 0 3 0x80 netio pflogd 17698 449929 93198 73 3 0x100010 ffs_fsync syslogd 93198 66115 1 0 3 0x100082 netio syslogd 71412 493124 1 77 3 0x100090 poll dhclient 62505 350807 1 0 3 0x80 poll dhclient 17506 93951 0 0 3 0x14200 pgzero zerothread 43307 24037 0 0 3 0x14200 aiodoned aiodoned 53815 307089 0 0 3 0x14200 syncer update 68164 20583 0 0 3 0x14200 cleaner cleaner 27132 469015 0 0 3 0x14200 reaper reaper 56508 500772 0 0 3 0x14200 pgdaemon pagedaemon 30296 270563 0 0 3 0x14200 bored crynlk 36667 65508 0 0 3 0x14200 bored crypto 87562 446251 0 0 3 0x40014200 acpi0 acpi0 85876 85124 0 0 3 0x40014200 idle1 4781 297022 0 0 3 0x14200 bored softnet 34427 303941 0 0 3 0x14200 bored systqmp 13559 439579 0 0 3 0x14200 bored systq 76624 267896 0 0 3 0x40014200 bored softclock 8275 89979 0 0 7 0x40014200 idle0 10735 429079 0 0 3 0x14200 bored smr 1 277 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 58213 (syz-executor.0) thread 0xffff800020b399e0 (514917) exclusive rrwlock inode r = 0 (0xfffffd806ef17920) locked @ /syzkaller/managers/pf/kernel/sys/ufs/ufs/ufs_vnops.c:1547 #0 witness_lock+0x594 sys/kern/subr_witness.c:1205 #1 _rw_enter+0x45d sys/kern/kern_rwlock.c:280 #2 _rrw_enter+0x60 sys/kern/kern_rwlock.c:410 #3 VOP_LOCK+0x57 sys/kern/vfs_vops.c:602 #4 vn_write+0x169 vn_lock sys/kern/vfs_vnops.c:549 [inline] #4 vn_write+0x169 sys/kern/vfs_vnops.c:393 #5 dofilewritev+0x1b0 sys/kern/sys_generic.c:364 #6 sys_writev+0xc5 sys/kern/sys_generic.c:311 #7 syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] #7 syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 #8 Xsyscall+0x128 Process 17698 (syslogd) thread 0xffff800020b764c0 (449929) exclusive rrwlock inode r = 0 (0xfffffd806ec86b38) locked @ /syzkaller/managers/pf/kernel/sys/ufs/ufs/ufs_vnops.c:1547 #0 witness_lock+0x594 sys/kern/subr_witness.c:1205 #1 _rw_enter+0x45d sys/kern/kern_rwlock.c:280 #2 _rrw_enter+0x60 sys/kern/kern_rwlock.c:410 #3 VOP_LOCK+0x57 sys/kern/vfs_vops.c:602 #4 vn_lock+0x6e sys/kern/vfs_vnops.c:549 #5 sys_fsync+0x114 sys/kern/vfs_syscalls.c:2704 #6 syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] #6 syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 #7 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9516 6423K 6431K 78643K 10879 0 0 pcb 25 9K 11K 78643K 567 0 0 rtable 100 3K 4K 78643K 346 0 0 ifaddr 55 13K 13K 78643K 146 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1474 0 0 iov 0 0K 16K 78643K 111 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1190 75K 75K 78643K 1700 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 12 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 53 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 5 13K 21K 78643K 918 0 0 sigio 1 0K 0K 78643K 12 0 0 proc 53 50K 71K 78643K 463 0 0 subproc 64 65538K 67586K 78643K 68 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 106 0 0 in_multi 33 2K 2K 78643K 62 0 0 ether_multi 1 0K 0K 78643K 7 0 0 mrt 0 0K 0K 78643K 5 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 90 397K 397K 78643K 90 0 0 exec 0 0K 1K 78643K 246 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 97 21K 30K 78643K 3789 0 0 UVM aobj 51 4K 4K 78643K 59 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 40 0 0 NDP 11 0K 0K 78643K 39 0 0 temp 158 2374K 2454K 78643K 5534 0 0 kqueue 0 0K 0K 78643K 4 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 4 0 0 1 0 1 1 0 8 0 inpcbpl 280 505 0 498 1 0 1 1 0 8 0 plimitpl 152 32 0 24 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 42 0 2 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 561 0 561 1 1 0 1 0 8 0 tcpcb 544 159 0 155 1 0 1 1 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 4 0 0 1 0 1 1 0 8 0 ppxss 1128 21 0 21 5 4 1 1 0 8 1 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 12 0 10 1 0 1 1 0 8 0 pfstkey 112 12 0 10 1 0 1 1 0 8 0 pfstate 328 12 0 10 1 0 1 1 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 214 0 30 14 2 12 14 0 8 0 art_table 32 215 0 30 2 0 2 2 0 8 0 art_node 16 41 0 7 1 0 1 1 0 8 0 sysvmsgpl 40 7 0 2 1 0 1 1 0 8 0 semapl 112 51 0 41 1 0 1 1 0 8 0 shmpl 112 57 0 8 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3094 0 1677 46 0 46 46 0 8 0 ffsino 272 3094 0 1677 95 0 95 95 0 8 0 nchpl 144 4582 0 2952 61 0 61 61 0 8 0 uvmvnodes 72 3220 0 0 59 0 59 59 0 8 0 vnodes 200 3220 0 0 170 0 170 170 0 8 0 namei 1024 13617 0 13617 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 12474 0 12473 17 14 3 6 0 8 2 sigapl 432 1116 0 1101 2 0 2 2 0 8 0 futexpl 56 11227 0 11227 1 0 1 1 0 8 1 knotepl 112 271 0 244 4 3 1 2 0 8 0 kqueuepl 104 245 0 243 1 0 1 1 0 8 0 pipepl 112 664 0 645 4 3 1 2 0 8 0 fdescpl 488 1117 0 1101 3 0 3 3 0 8 0 filepl 152 6684 0 6578 7 2 5 6 0 8 0 lockfpl 104 287 0 287 3 2 1 1 0 8 1 lockfspl 32 390 0 390 3 2 1 1 0 8 1 sessionpl 112 20 0 9 1 0 1 1 0 8 0 pgrppl 48 39 0 28 1 0 1 1 0 8 0 ucredpl 96 1694 0 1685 1 0 1 1 0 8 0 zombiepl 144 1102 0 1100 3 2 1 1 0 8 0 processpl 840 1133 0 1100 4 0 4 4 0 8 0 procpl 600 3096 0 3051 6 1 5 5 0 8 1 srpgc 64 1 0 1 1 1 0 1 0 8 0 sosppl 128 20 0 20 4 3 1 1 0 8 1 sockpl 384 981 0 962 6 3 3 4 0 8 1 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 12 0 0 2 0 2 2 0 8 0 mcl9k 9216 7 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 12 0 0 2 0 2 2 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 126 0 0 14 0 14 14 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 145 0 0 8 0 8 8 0 8 0 bufpl 256 7442 0 1050 400 0 400 400 0 8 0 anonpl 16 103203 0 95551 74 28 46 48 0 125 14 amapchunkpl 152 6124 0 6035 16 11 5 11 0 158 0 amappl16 192 4402 0 4002 43 16 27 32 0 8 6 amappl15 184 3 0 1 1 0 1 1 0 8 0 amappl14 176 25 0 22 1 0 1 1 0 8 0 amappl13 168 1383 0 1375 1 0 1 1 0 8 0 amappl12 160 11 0 10 1 0 1 1 0 8 0 amappl11 152 215 0 201 1 0 1 1 0 8 0 amappl10 144 75 0 67 1 0 1 1 0 8 0 amappl9 136 365 0 362 1 0 1 1 0 8 0 amappl8 128 146 0 125 1 0 1 1 0 8 0 amappl7 120 924 0 919 1 0 1 1 0 8 0 amappl6 112 55 0 48 1 0 1 1 0 8 0 amappl5 104 122 0 107 1 0 1 1 0 8 0 amappl4 96 328 0 303 2 1 1 2 0 8 0 amappl3 88 170 0 164 1 0 1 1 0 8 0 amappl2 80 9760 0 9705 3 1 2 2 0 8 0 amappl1 72 33146 0 32696 24 14 10 19 0 8 0 amappl 72 3331 0 3295 1 0 1 1 0 75 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma64 64 259 0 259 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 17 0 17 1 1 0 1 0 8 0 aobjpl 64 58 0 8 1 0 1 1 0 8 0 uaddrrnd 24 1117 0 1101 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1117 0 1101 1 0 1 1 0 8 0 vmmpekpl 168 12820 0 12797 3 1 2 2 0 8 0 vmmpepl 168 122553 0 121132 121 47 74 76 0 357 11 vmsppl 360 1116 0 1101 2 0 2 2 0 8 0 pdppl 4096 2242 0 2202 6 0 6 6 0 8 0 pvpl 32 311154 0 300302 201 73 128 130 0 265 39 pmappl 224 1116 0 1101 2 1 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 554 0 7 16 0 16 16 0 8 0