panic: vputonfreelist: lock count is not zero (3)

0 views
Skip to first unread message

syzbot

unread,
Feb 18, 2024, 3:29:21 PMFeb 18
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 357c6b751ff9 Adjust regress test for memset() requested by..
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=14a941c2180000
kernel config: https://syzkaller.appspot.com/x/.config?x=1bc15e68cd2a49e5
dashboard link: https://syzkaller.appspot.com/bug?extid=3456e36c777581b15096

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/6cedf758aca2/disk-357c6b75.raw.xz
bsd.gdb: https://storage.googleapis.com/syzbot-assets/5730a78fe890/bsd-357c6b75.gdb.xz
kernel image: https://storage.googleapis.com/syzbot-assets/935c198d4aca/kernel-357c6b75.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+3456e3...@syzkaller.appspotmail.com

panic: vputonfreelist: lock count is not zero
Stopped at db_enter+0x1c: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
* 71833 48421 0 0 0x4000000 0 syz-executor.5
db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff8294946b) at panic+0x165 sys/kern/subr_prf.c:198
vputonfreelist(fffffd805b6c5c08) at vputonfreelist+0x1a3 sys/kern/vfs_subr.c:719
vput(fffffd805b6c5c08) at vput+0xf2 sys/kern/vfs_subr.c:781
ufs_mknod(ffff800037821be0) at ufs_mknod+0xf1 sys/ufs/ufs/ufs_vnops.c:186
VOP_MKNOD(fffffd80662397e0,ffff800037821d40,ffff800037821d70,ffff800037821c70) at VOP_MKNOD+0xc3 sys/kern/vfs_vops.c:121
domknodat(ffff80002a5e6560,ffffff9c,20000040,6000,e02) at domknodat+0x32a sys/kern/vfs_syscalls.c:1627
syscall(ffff800037821f10) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x381a1247620, count: 6
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>
ddb> set $lines = 0
ddb> set $maxwidth = 0
ddb> show panic
*cpu0: vputonfreelist: lock count is not zero
ddb> trace
db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff8294946b) at panic+0x165 sys/kern/subr_prf.c:198
vputonfreelist(fffffd805b6c5c08) at vputonfreelist+0x1a3 sys/kern/vfs_subr.c:719
vput(fffffd805b6c5c08) at vput+0xf2 sys/kern/vfs_subr.c:781
ufs_mknod(ffff800037821be0) at ufs_mknod+0xf1 sys/ufs/ufs/ufs_vnops.c:186
VOP_MKNOD(fffffd80662397e0,ffff800037821d40,ffff800037821d70,ffff800037821c70) at VOP_MKNOD+0xc3 sys/kern/vfs_vops.c:121
domknodat(ffff80002a5e6560,ffffff9c,20000040,6000,e02) at domknodat+0x32a sys/kern/vfs_syscalls.c:1627
syscall(ffff800037821f10) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x381a1247620, count: -9
ddb> show registers
rdi 0
rsi 0x1
rbp 0xffff800037821a70
rbx 0xfffffd8061bf1000
rdx 0
rcx 0
rax 0xffff80002a5e6560
r8 0x101010101010101
r9 0x8080808080808080
r10 0x342af1857bb56dda
r11 0x245fa10807f5da71
r12 0
r13 0x1
r14 0
r15 0x1
rip 0xffffffff8177683c db_enter+0x1c
cs 0x8
rflags 0x246
rsp 0xffff800037821a60
ss 0
db_enter+0x1c: addq $0x8,%rsp
ddb> show proc
PROC (syz-executor.5) tid=71833 pid=48421 tcnt=2 stat=onproc
flags process=0 proc=4000000<THREAD>
runpri=17, usrpri=86, slppri=17, nice=20
wchan=0x0, wmesg=, ps_single=0x0
forw=0xffffffffffffffff, list=0xffff80002a5e7d48,0xffff80002a5e6d68
process=0xffff8000ffff4ca0 user=0xffff80003781c000, vmspace=0xfffffd805bc48708
estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0
ddb> ps
PID TID PPID UID S FLAGS WAIT COMMAND
82457 148596 7265 0 2 0 syz-executor.6
72816 70393 58144 0 2 0 syz-executor.1
48421 273249 68573 0 2 0 syz-executor.5
*48421 71833 68573 0 7 0x4000000 syz-executor.5
71817 54196 2563 0 2 0 syz-executor.4
71817 143967 2563 0 3 0x4000080 fsleep syz-executor.4
95099 345198 26259 0 3 0 vmmaplk syz-executor.2
95099 103943 26259 0 2 0x4000000 syz-executor.2
88764 44966 35927 0 3 0x3000 suspend syz-executor.0
88764 148569 35927 0 2 0x4081000 syz-executor.0
42906 10562 37974 0 3 0x82 nanoslp syz-executor.7
7265 145983 37974 0 3 0x82 nanoslp syz-executor.6
26992 105449 37974 0 3 0x2 biowait syz-executor.3
2563 425796 37974 0 3 0x82 nanoslp syz-executor.4
68573 411686 37974 0 3 0x82 nanoslp syz-executor.5
35927 105131 37974 0 3 0x82 nanoslp syz-executor.0
58144 249416 37974 0 3 0x82 nanoslp syz-executor.1
26259 457345 37974 0 3 0x82 nanoslp syz-executor.2
99565 256629 0 0 3 0x14280 nfsidl nfsio
6382 437384 0 0 3 0x14280 nfsidl nfsio
41564 433288 0 0 3 0x14280 nfsidl nfsio
87421 70539 0 0 3 0x14280 nfsidl nfsio
62311 207949 0 0 3 0x14280 nfsidl nfsio
72953 359899 0 0 3 0x14280 nfsidl nfsio
22248 487606 0 0 3 0x14280 nfsidl nfsio
41808 108866 0 0 3 0x14280 nfsidl nfsio
68433 352363 0 0 3 0x14280 nfsidl nfsio
76916 7201 0 0 3 0x14280 nfsidl nfsio
46947 154156 0 0 3 0x14280 nfsidl nfsio
19749 444419 0 0 3 0x14280 nfsidl nfsio
28880 43397 0 0 3 0x14280 nfsidl nfsio
89458 519141 0 0 3 0x14280 nfsidl nfsio
41283 353887 0 0 3 0x14280 nfsidl nfsio
97985 387153 0 0 3 0x14280 nfsidl nfsio
66636 172770 0 0 3 0x14280 nfsidl nfsio
65222 72152 0 0 3 0x14280 nfsidl nfsio
49502 74720 0 0 3 0x14280 nfsidl nfsio
62885 287943 0 0 3 0x14280 nfsidl nfsio
20970 282254 1 0 3 0x100083 ttyin getty
80050 352610 0 0 3 0x14200 bored sosplice
37974 479822 2955 0 3 0x2000082 wait syz-fuzzer
37974 312144 2955 0 3 0x6000082 nanoslp syz-fuzzer
37974 237293 2955 0 3 0x6000082 wait syz-fuzzer
37974 422471 2955 0 3 0x6000082 thrsleep syz-fuzzer
37974 510555 2955 0 3 0x6000082 thrsleep syz-fuzzer
37974 326025 2955 0 3 0x6000082 wait syz-fuzzer
37974 325036 2955 0 3 0x6000082 wait syz-fuzzer
37974 158737 2955 0 3 0x6000082 wait syz-fuzzer
37974 387514 2955 0 3 0x6000082 kqread syz-fuzzer
37974 10291 2955 0 3 0x6000082 thrsleep syz-fuzzer
37974 520718 2955 0 3 0x6000082 wait syz-fuzzer
37974 48996 2955 0 3 0x6000082 thrsleep syz-fuzzer
37974 33177 2955 0 3 0x6000082 wait syz-fuzzer
37974 518023 2955 0 3 0x6000082 wait syz-fuzzer
2955 378601 77190 0 3 0x10008a sigsusp ksh
77190 125139 18676 0 3 0x9a kqread sshd
18676 179869 1 0 3 0x88 kqread sshd
95983 456675 52875 73 3 0x1100090 kqread syslogd
52875 7757 1 0 3 0x100082 netio syslogd
8045 365302 1 0 3 0x100080 kqread resolvd
89687 503198 0 0 3 0x14200 bored smr
71199 453145 0 0 2 0x14200 zerothread
73005 326295 0 0 3 0x14200 aiodoned aiodoned
39438 177218 0 0 3 0x14200 syncer update
17439 37184 0 0 3 0x14200 cleaner cleaner
29995 101816 0 0 3 0x14200 reaper reaper
43296 173263 0 0 3 0x14200 pgdaemon pagedaemon
64552 372231 0 0 3 0x14200 bored viomb
54247 102670 0 0 3 0x40014200 acpi0 acpi0
78991 508620 0 0 3 0x14200 bored softnet3
490 166709 0 0 3 0x14200 bored softnet2
37391 115067 0 0 3 0x14200 bored softnet1
68434 368726 0 0 3 0x14200 bored softnet0
42462 345147 0 0 3 0x14200 bored systqmp
51187 45196 0 0 3 0x14200 bored systq
86618 81476 0 0 3 0x40014200 tmoslp softclock
96552 95091 0 0 3 0x40014200 idle0
1 208741 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb> show all locks
No such command
ddb> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10175 6478K 6994K 166960K 24403 0
pcb 15 20K 22K 166960K 1024 0
rtable 226 15K 16K 166960K 2317 0
pf 35 9K 11K 166960K 351 0
ifaddr 44 13K 13K 166960K 331 0
ifgroup 62 2K 3K 166960K 570 0
sysctl 3 1K 2K 166960K 13 0
counters 33 17K 18K 166960K 167 0
ioctlops 0 0K 2K 166960K 702 0
iov 0 0K 28K 166960K 1026 0
mount 1 1K 1K 166960K 1 0
log 0 0K 0K 166960K 4 0
vnodes 1458 91K 92K 166960K 6380 0
UFS quota 1 32K 32K 166960K 1 0
UFS mount 5 36K 36K 166960K 5 0
shm 2 1K 9K 166960K 141 0
VM map 2 1K 1K 166960K 2 0
sem 12 1K 1K 166960K 25 0
dirhash 12 2K 3K 166960K 471 0
ACPI 1697 195K 286K 166960K 12548 0
file desc 16 57K 85K 166960K 11239 0
sigio 0 0K 0K 166960K 486 0
proc 52 42K 75K 166960K 2148 0
subproc 104 6K 7K 166960K 705 0
NFS srvsock 1 0K 0K 166960K 1 0
NFS daemon 1 16K 16K 166960K 1 0
ip_moptions 0 0K 0K 166960K 1722 0
in_multi 89 6K 7K 166960K 1184 0
ether_multi 1 0K 0K 166960K 16 0
mrt 0 0K 0K 166960K 6 0
ISOFS mount 1 32K 32K 166960K 1 0
MSDOSFS mount 1 16K 16K 166960K 1 0
ttys 79 360K 360K 166960K 79 0
exec 0 0K 1K 166960K 2457 0
tdb 3 0K 0K 166960K 3 0
VM swap 8 62K 64K 166960K 10 0
UVM amap 419 538K 555K 166960K 103498 0
UVM aobj 131 4K 4K 166960K 137 0
memdesc 1 4K 4K 166960K 1 0
crypto data 1 1K 1K 166960K 1 0
ip6_options 0 0K 0K 166960K 463 0
NDP 14 0K 1K 166960K 255 0
temp 76 6772K 7144K 166960K 117311 0
kqueue 6 10K 26K 166960K 828 0
SYN cache 2 16K 16K 166960K 2 0
ddb> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
rtpcb 120 579 0 578 7 1 6 6 0 8 5
rtentry 112 758 0 658 5 1 4 4 0 8 1
unpcb 144 11634 0 11628 17 9 8 8 0 8 7
syncache 320 67 0 67 3 2 1 1 0 8 1
tcpqe 32 303 0 303 3 2 1 1 0 8 1
tcpcb 808 4659 0 4653 40 31 9 15 0 8 8
arp 88 136 0 118 1 0 1 1 0 8 0
ipq 40 7 0 7 2 1 1 1 0 8 1
ipqe 40 24 0 24 2 1 1 1 0 8 1
inpcb 344 12678 0 12671 61 52 9 19 0 8 8
nd6 104 164 0 143 1 0 1 1 0 8 0
pkpcb 40 18 0 18 1 0 1 1 0 8 1
kcovpl 48 54 0 46 1 0 1 1 0 8 0
ppxss 1072 38 0 38 2 1 1 1 0 8 1
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 2617 0 2197 60 31 29 29 0 8 2
art_table 32 2618 0 2197 4 0 4 4 0 8 0
art_node 16 689 0 601 1 0 1 1 0 8 0
sysvmsgpl 40 10 0 7 2 1 1 1 0 8 0
semupl 112 1 0 1 1 1 0 1 0 8 0
semapl 112 15 0 5 1 0 1 1 0 8 0
shmpl 112 134 0 6 4 0 4 4 0 8 0
dirhash 1024 323 0 306 3 0 3 3 0 8 0
dino2pl 256 17938 0 16468 93 0 93 93 0 8 0
ffsino 240 17938 0 16468 87 0 87 87 0 8 0
nchpl 144 32817 0 32318 63 33 30 63 0 8 8
uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0
vnodes 216 5926 0 0 330 0 330 330 0 8 0
namei 1024 113833 0 113832 5 3 2 3 0 8 1
vcpupl 2048 120 0 2 15 0 15 15 0 8 0
vmpool 664 140 0 22 11 0 11 11 0 8 1
kstatmem 264 296 0 268 3 0 3 3 0 8 1
scxspl 216 106527 0 106526 12 9 3 8 1 8 2
plimitpl 152 813 0 799 1 0 1 1 0 8 0
sigapl 424 11560 0 11498 8 0 8 8 0 8 0
futexpl 64 124511 0 124510 1 0 1 1 0 8 0
knotepl 120 97507 0 97441 17 7 10 11 0 8 7
kqueuepl 184 1992 0 1987 9 5 4 4 0 8 3
pipepl 288 2147 0 2118 16 9 7 7 0 8 4
fdescpl 432 11418 0 11394 4 0 4 4 0 8 1
filepl 120 72757 0 72536 32 18 14 18 0 8 7
lockfpl 104 2814 0 2813 3 1 2 2 0 8 1
lockfspl 48 777 0 776 1 0 1 1 0 8 0
sessionpl 144 72 0 57 1 0 1 1 0 8 0
pgrppl 48 149 0 134 1 0 1 1 0 8 0
ucredpl 104 7628 0 7621 1 0 1 1 0 8 0
zombiepl 144 11499 0 11498 2 1 1 1 0 8 0
processpl 1072 11560 0 11498 5 0 5 5 0 8 0
procpl 680 27845 0 27766 11 2 9 9 0 8 1
sosppl 168 116 0 116 3 2 1 1 0 8 1
sockpl 488 24945 0 24933 329 319 10 45 0 8 8
mcl64k 65536 332 0 332 3 2 1 1 0 8 1
mcl16k 16384 222 0 222 3 2 1 1 0 8 1
mcl12k 12288 314 0 314 3 2 1 1 0 8 1
mcl9k 9216 113 0 113 3 2 1 1 0 8 1
mcl8k 8192 697 0 697 2 1 1 1 0 8 1
mcl4k 4096 2323 0 2323 4 2 2 2 0 8 2
mcl2k2 2112 59 0 59 3 2 1 1 0 8 1
mcl2k 2048 89539 0 89488 53 38 15 39 0 8 8
mtagpl 96 1576 0 1576 11 3 8 11 0 8 8
mbufpl 256 246233 0 246119 308 289 19 93 0 8 6
bufpl 280 23289 0 16895 457 0 457 457 0 8 0
anonpl 24 1217754 0 1202917 157 27 130 130 0 188 11
amapchunkpl 152 329280 0 328491 57 10 47 47 0 158 8
amappl16 200 28354 0 27805 140 103 37 48 0 8 8
amappl15 192 6 0 6 1 1 0 1 0 8 0
amappl14 184 286 0 277 2 1 1 2 0 8 0
amappl13 176 19 0 19 3 2 1 1 0 8 1
amappl12 168 12794 0 12769 2 0 2 2 0 8 0
amappl11 160 59 0 55 1 0 1 1 0 8 0
amappl10 152 71 0 62 1 0 1 1 0 8 0
amappl9 144 238 0 237 1 0 1 1 0 8 0
amappl8 136 424 0 331 4 0 4 4 0 8 0
amappl7 128 283 0 260 2 0 2 2 0 8 0
amappl6 120 945 0 934 1 0 1 1 0 8 0
amappl5 112 264 0 258 1 0 1 1 0 8 0
amappl4 104 877 0 853 2 1 1 2 0 8 0
amappl3 96 64746 0 64677 3 0 3 3 0 8 0
amappl2 88 12485 0 12428 3 1 2 3 0 8 0
amappl1 80 52495 0 52087 23 12 11 22 0 8 1
amappl 88 102401 0 102162 7 0 7 7 0 92 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 136 0 6 3 0 3 3 0 8 0
uaddrrnd 24 11558 0 11416 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 11558 0 11416 1 0 1 1 0 8 0
vmmpekpl 168 77178 0 77097 5 0 5 5 0 8 0
vmmpepl 168 715596 0 713371 172 30 142 142 0 357 31
vmsppl 352 11557 0 11416 14 0 14 14 0 8 1
rwobjpl 24 170113 0 162605 48 0 48 48 0 8 0
pdppl 4096 23122 0 22950 803 627 176 184 0 8 4
pvpl 32 3372242 0 3351584 434 214 220 362 0 265 19
pmappl 216 11557 0 11416 9 0 9 9 0 8 1
extentpl 40 56 0 38 1 0 1 1 0 8 0
phpool 112 1510 0 1039 16 0 16 16 0 8 0
ddb> machine ddbcpu 0
No such command
ddb> trace
db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff8294946b) at panic+0x165 sys/kern/subr_prf.c:198
vputonfreelist(fffffd805b6c5c08) at vputonfreelist+0x1a3 sys/kern/vfs_subr.c:719
vput(fffffd805b6c5c08) at vput+0xf2 sys/kern/vfs_subr.c:781
ufs_mknod(ffff800037821be0) at ufs_mknod+0xf1 sys/ufs/ufs/ufs_vnops.c:186
VOP_MKNOD(fffffd80662397e0,ffff800037821d40,ffff800037821d70,ffff800037821c70) at VOP_MKNOD+0xc3 sys/kern/vfs_vops.c:121
domknodat(ffff80002a5e6560,ffffff9c,20000040,6000,e02) at domknodat+0x32a sys/kern/vfs_syscalls.c:1627
syscall(ffff800037821f10) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x381a1247620, count: -9
ddb> machine ddbcpu 1
No such command
ddb> trace
db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff8294946b) at panic+0x165 sys/kern/subr_prf.c:198
vputonfreelist(fffffd805b6c5c08) at vputonfreelist+0x1a3 sys/kern/vfs_subr.c:719
vput(fffffd805b6c5c08) at vput+0xf2 sys/kern/vfs_subr.c:781
ufs_mknod(ffff800037821be0) at ufs_mknod+0xf1 sys/ufs/ufs/ufs_vnops.c:186
VOP_MKNOD(fffffd80662397e0,ffff800037821d40,ffff800037821d70,ffff800037821c70) at VOP_MKNOD+0xc3 sys/kern/vfs_vops.c:121
domknodat(ffff80002a5e6560,ffffff9c,20000040,6000,e02) at domknodat+0x32a sys/kern/vfs_syscalls.c:1627
syscall(ffff800037821f10) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x381a1247620, count: -9


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages