panic: vop_generic_badpoapn

0 views
Skip to first unread message

syzbot

unread,
Jun 1, 2022, 2:09:22 PM6/1/22
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 66576fed740b shrink dmesg output by printing the ethernet ..
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=10a5c38ff00000
kernel config: https://syzkaller.appspot.com/x/.config?x=bf87b6915a88cd0d
dashboard link: https://syzkaller.appspot.com/bug?extid=6745e6968d6879165a94

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

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

panic: vop_generic_badpoapn
icStopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
306719 48021 32767 0x10 0 1 syz-executor.0
*490293 38300 32767 0x10 0x4000000 0 syz-executor.1
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff82592efc) at panic+0x177 sys/kern/subr_prf.c:202
vop_generic_badop(ffff80002c983c00) at vop_generic_badop+0x1b sys/kern/vfs_default.c:133
VOP_READLINK(fffffd8077836410,ffff80002c983c70,fffffd807f7d7660) at VOP_READLINK+0xb6 sys/kern/vfs_vops.c:476
namei(ffff80002c983d18) at namei+0x48a sys/kern/vfs_lookup.c:290
sys_unveil(ffff8000fffef260,ffff80002c983e38,ffff80002c983e90) at sys_unveil+0x22d sys/kern/vfs_syscalls.c:1005
syscall(ffff80002c983f00) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff80002c983f00) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x52fe6e06070, 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: vop_generic_badop
cpu1: kernel diagnostic assertion "!_kernel_lock_held()" failed: file "/syzkaller/managers/setuid/kernel/sys/kern/kern_fork.c", line 678
ddb{0}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff82592efc) at panic+0x177 sys/kern/subr_prf.c:202
vop_generic_badop(ffff80002c983c00) at vop_generic_badop+0x1b sys/kern/vfs_default.c:133
VOP_READLINK(fffffd8077836410,ffff80002c983c70,fffffd807f7d7660) at VOP_READLINK+0xb6 sys/kern/vfs_vops.c:476
namei(ffff80002c983d18) at namei+0x48a sys/kern/vfs_lookup.c:290
sys_unveil(ffff8000fffef260,ffff80002c983e38,ffff80002c983e90) at sys_unveil+0x22d sys/kern/vfs_syscalls.c:1005
syscall(ffff80002c983f00) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff80002c983f00) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x52fe6e06070, count: -8
ddb{0}> show registers
rdi 0
rsi 0x1
rbp 0xffff80002c983b30
rbx 0xffffffff82979c5f cpu_info_full_primary+0x2c5f
rdx 0xffff800000bcf900
rcx 0
rax 0xffff8000fffef260
r8 0x101010101010101
r9 0x8080808080808080
r10 0xcab54ba43c3c9ab8
r11 0xdc9878a9263f8736
r12 0xffffffff82979a60 cpu_info_full_primary+0x2a60
r13 0
r14 0
r15 0x1
rip 0xffffffff81f06308 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff80002c983b20
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb{0}> show proc
PROC (syz-executor.1) pid=490293 stat=onproc
flags process=10<SUGID> proc=4000000<THREAD>
pri=32, usrpri=82, nice=20
forw=0xffffffffffffffff, list=0xffff8000fffeea80,0xffff80002a726fe0
process=0xffff800027b054e0 user=0xffff80002c97e000, vmspace=0xfffffd806ef72e68
estcpu=36, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
25490 370970 82714 32767 2 0x10 syz-executor.3
71737 139773 65845 32767 2 0x10 syz-executor.6
48021 306719 82368 32767 7 0x10 syz-executor.0
38300 231184 67726 32767 2 0x10 syz-executor.1
*38300 490293 67726 32767 7 0x4000010 syz-executor.1
2110 171620 13502 32767 2 0x10 syz-executor.2
88298 67759 2229 32767 2 0x10 syz-executor.4
88298 327133 2229 32767 3 0x4000090 fsleep syz-executor.4
10278 211993 91167 32767 2 0x10 syz-executor.5
10278 269303 91167 32767 3 0x4000090 nanoslp syz-executor.5
10278 416802 91167 32767 2 0x4000010 syz-executor.5
67726 147959 8367 32767 3 0x90 nanoslp syz-executor.1
8367 329407 40903 0 3 0x82 wait syz-executor.1
82714 79412 91313 32767 3 0x90 nanoslp syz-executor.3
91313 430443 40903 0 3 0x82 wait syz-executor.3
83269 64070 0 0 3 0x14200 bored sosplice
65845 240107 41626 32767 3 0x90 nanoslp syz-executor.6
41626 284716 40903 0 3 0x82 wait syz-executor.6
32830 312914 63948 32767 2 0x10 syz-executor.7
91167 145357 9320 32767 3 0x90 nanoslp syz-executor.5
63948 63098 40903 0 3 0x82 wait syz-executor.7
2229 346820 3331 32767 3 0x90 nanoslp syz-executor.4
9320 263449 40903 0 3 0x82 wait syz-executor.5
13502 448133 6606 32767 2 0x490 syz-executor.2
3331 493661 40903 0 3 0x82 wait syz-executor.4
6606 223337 40903 0 3 0x82 wait syz-executor.2
82368 108389 19810 32767 3 0x90 nanoslp syz-executor.0
19810 113721 40903 0 3 0x82 wait syz-executor.0
40903 296476 33277 0 3 0x82 thrsleep syz-fuzzer
40903 379358 33277 0 2 0x4000482 syz-fuzzer
40903 207526 33277 0 3 0x4000082 thrsleep syz-fuzzer
40903 472466 33277 0 3 0x4000082 kqread syz-fuzzer
40903 384786 33277 0 3 0x4000082 thrsleep syz-fuzzer
40903 50629 33277 0 3 0x4000082 thrsleep syz-fuzzer
40903 113695 33277 0 3 0x4000082 thrsleep syz-fuzzer
40903 153864 33277 0 3 0x4000082 thrsleep syz-fuzzer
40903 508072 33277 0 3 0x4000082 thrsleep syz-fuzzer
33277 358445 10860 0 3 0x10008a sigsusp ksh
10860 342235 3176 0 3 0x9a kqread sshd
50384 250671 1 0 3 0x100083 ttyin getty
3176 65411 1 0 3 0x88 kqread sshd
52146 440525 55533 73 3 0x1100090 kqread syslogd
55533 250028 1 0 3 0x100082 netio syslogd
83656 450270 1 0 3 0x100080 kqread resolvd
19150 378863 59389 77 3 0x100092 kqread dhcpleased
82642 263404 59389 77 3 0x100092 kqread dhcpleased
59389 135224 1 0 3 0x80 kqread dhcpleased
35516 11080 0 0 3 0x14200 bored smr
97535 418944 0 0 2 0x14200 zerothread
80061 203864 0 0 3 0x14200 aiodoned aiodoned
52389 186716 0 0 3 0x14200 syncer update
45431 353212 0 0 3 0x14200 cleaner cleaner
98772 80244 0 0 3 0x14200 reaper reaper
37254 251617 0 0 3 0x14200 pgdaemon pagedaemon
92690 174357 0 0 3 0x14200 bored viomb
28835 352744 0 0 3 0x40014200 acpi0 acpi0
27054 185339 0 0 3 0x40014200 idle1
41504 147781 0 0 3 0x14200 bored softnet
39579 382507 0 0 3 0x14200 bored softnet
72814 126476 0 0 3 0x14200 bored softnet
90401 25453 0 0 3 0x14200 bored softnet
28979 129930 0 0 3 0x14200 bored systqmp
77741 24901 0 0 3 0x14200 bored systq
46839 83963 0 0 2 0x40014200 softclock
146 339547 0 0 3 0x40014200 idle0
1 132860 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
Process 38300 (syz-executor.1) thread 0xffff8000fffef260 (490293)
exclusive rrwlock inode r = 0 (0xfffffd806824f918)
#0 witness_lock+0x44d
#1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310
#2 rrw_enter+0x8b sys/kern/kern_rwlock.c:465
#3 VOP_LOCK+0x87 sys/kern/vfs_vops.c:534
#4 vn_lock+0x84 sys/kern/vfs_vnops.c:579
#5 vget+0x1d3 sys/kern/vfs_subr.c:678
#6 ufs_ihashget+0x121 sys/ufs/ufs/ufs_ihash.c:119
#7 ffs_vget+0x7c sys/ufs/ffs/ffs_vfsops.c:1318
#8 ufs_lookup+0x122c sys/ufs/ufs/ufs_lookup.c:582
#9 VOP_LOOKUP+0x58 sys/kern/vfs_vops.c:85
#10 vfs_lookup+0x6e5 sys/kern/vfs_lookup.c:561
#11 namei+0x36a sys/kern/vfs_lookup.c:245
#12 sys_unveil+0x22d sys/kern/vfs_syscalls.c:1005
#13 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#13 syscall+0x489 sys/arch/amd64/amd64/trap.c:585
#14 Xsyscall+0x128
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82b7ba90)
#0 witness_lock+0x44d
#1 syscall+0x3ef mi_syscall sys/sys/syscall_mi.h:93 [inline]
#1 syscall+0x3ef sys/arch/amd64/amd64/trap.c:585
#2 Xsyscall+0x128
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10219 6414K 6420K 78643K 11323 0
pcb 13 16K 18K 78643K 19 0
rtable 240 6K 7K 78643K 580 0
ifaddr 81 16K 16K 78643K 110 0
sysctl 3 1K 1K 78643K 3 0
counters 56 35K 35K 78643K 64 0
ioctlops 0 0K 2K 78643K 125 0
iov 0 0K 24K 78643K 566 0
mount 1 1K 1K 78643K 1 0
log 0 0K 0K 78643K 4 0
vnodes 1271 79K 79K 78643K 2326 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 9K 78643K 34 0
VM map 2 1K 1K 78643K 2 0
sem 12 0K 0K 78643K 1270 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1697 195K 286K 78643K 12548 0
file desc 25 93K 117K 78643K 4058 0
sigio 0 0K 0K 78643K 14 0
proc 61 91K 115K 78643K 858 0
subproc 104 6K 6K 78643K 156 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
ip_moptions 0 0K 0K 78643K 815 0
in_multi 99 6K 6K 78643K 179 0
ether_multi 1 0K 0K 78643K 7 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 313 1394K 1394K 78643K 313 0
exec 0 0K 2K 78643K 1096 0
tdb 3 0K 0K 78643K 3 0
pagedep 1 8K 8K 78643K 1 0
inodedep 1 32K 32K 78643K 1 0
newblk 1 0K 0K 78643K 1 0
VM swap 7 26K 26K 78643K 7 0
UVM amap 259 84K 99K 78643K 25736 0
UVM aobj 131 4K 4K 78643K 137 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 43 0
NDP 11 0K 2K 78643K 39 0
temp 124 4730K 4794K 78643K 13762 0
kqueue 12 18K 24K 78643K 540 0
SYN cache 2 16K 16K 78643K 2 0
ddb{0}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
plcache 128 22 0 0 1 0 1 1 0 8 0
rtpcb 120 299 0 296 4 3 1 3 0 8 0
rtentry 112 160 0 47 4 0 4 4 0 8 0
unpcb 136 2349 0 2336 17 13 4 6 0 8 3
syncache 296 60 0 60 6 5 1 1 0 8 1
tcpqe 32 52 0 52 5 5 0 1 0 8 0
tcpcb 736 7238 0 7223 72 66 6 22 0 8 0
arp 120 27 0 8 1 0 1 1 0 8 0
inpcb 312 10640 0 10624 53 49 4 17 0 8 0
nd6 48 40 0 14 1 0 1 1 0 8 0
kcovpl 48 12 0 4 1 0 1 1 0 8 0
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 664 0 191 31 1 30 30 0 8 0
art_table 32 665 0 191 4 0 4 4 0 8 0
art_node 16 159 0 56 1 0 1 1 0 8 0
sysvmsgpl 40 1 0 1 1 1 0 1 0 8 0
semapl 112 1268 0 1258 1 0 1 1 0 8 0
shmpl 112 134 0 6 4 0 4 4 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 6979 0 5541 91 0 91 91 0 8 0
ffsino 272 6979 0 5541 97 0 97 97 0 8 0
nchpl 144 12546 0 10903 63 0 63 63 0 8 0
uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0
vnodes 224 5926 0 0 349 0 349 349 0 8 0
namei 1024 42718 0 42716 2 1 1 2 0 8 0
percpumem 16 44 0 4 1 0 1 1 0 8 0
kstatmem 264 30 0 8 2 0 2 2 0 8 0
scxspl 216 33898 0 33898 16 15 1 8 0 8 1
plimitpl 152 819 0 797 4 3 1 2 0 8 0
sigapl 424 4333 0 4279 7 0 7 7 0 8 0
futexpl 64 41790 0 41789 1 0 1 1 0 8 0
knotepl 120 551 0 0 17 0 17 17 0 8 0
kqueuepl 216 1419 0 1411 22 17 5 5 0 8 4
pipepl 336 901 0 873 22 19 3 8 0 8 0
fdescpl 496 4315 0 4279 7 1 6 6 0 8 0
filepl 152 34516 0 34281 29 16 13 19 0 8 3
lockfpl 104 397 0 395 1 0 1 1 0 8 0
lockfspl 48 113 0 111 1 0 1 1 0 8 0
sessionpl 144 27 0 11 1 0 1 1 0 8 0
pgrppl 48 1311 0 1295 1 0 1 1 0 8 0
ucredpl 96 5632 0 5614 1 0 1 1 0 8 0
zombiepl 144 4279 0 4279 1 0 1 1 0 8 1
processpl 1064 4333 0 4279 5 1 4 5 0 8 0
procpl 672 12039 0 11973 11 3 8 8 0 8 1
sosppl 168 250 0 250 1 0 1 1 0 8 1
sockpl 480 13341 0 13312 162 146 16 29 0 8 9
mcl64k 65536 18 0 0 3 0 3 3 0 8 0
mcl16k 16384 15 0 0 2 0 2 2 0 8 0
mcl12k 12288 24 0 0 2 0 2 2 0 8 0
mcl9k 9216 12 0 0 1 0 1 1 0 8 0
mcl8k 8192 25 0 0 4 1 3 3 0 8 0
mcl4k 4096 21 0 0 3 0 3 3 0 8 0
mcl2k2 2112 60 0 0 4 0 4 4 0 8 1
mcl2k 2048 156 0 0 20 0 20 20 0 8 0
mtagpl 96 2 0 0 1 0 1 1 0 8 0
mbufpl 256 410 0 0 22 0 22 22 0 8 0
bufpl 288 9594 0 3266 453 0 453 453 0 8 0
anonpl 24 882626 0 870580 128 41 87 102 0 186 0
amapchunkpl 152 75448 0 74857 57 29 28 40 0 158 1
amappl16 200 14307 0 13961 61 42 19 31 0 8 0
amappl15 192 1205 0 1201 2 1 1 1 0 8 0
amappl14 184 829 0 823 1 0 1 1 0 8 0
amappl13 176 1346 0 1340 1 0 1 1 0 8 0
amappl12 168 4 0 3 2 1 1 1 0 8 0
amappl11 160 971 0 949 2 1 1 2 0 8 0
amappl10 152 505 0 500 1 0 1 1 0 8 0
amappl9 144 522 0 519 1 0 1 1 0 8 0
amappl8 136 712 0 635 3 0 3 3 0 8 0
amappl7 128 136 0 126 1 0 1 1 0 8 0
amappl6 120 258 0 241 2 1 1 2 0 8 0
amappl5 112 3540 0 3519 1 0 1 1 0 8 0
amappl4 104 2563 0 2529 2 0 2 2 0 8 0
amappl3 96 12790 0 12738 2 0 2 2 0 8 0
amappl2 88 6045 0 5973 3 1 2 3 0 8 0
amappl1 80 104533 0 103851 20 4 16 19 0 8 0
amappl 88 25027 0 24860 6 1 5 5 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 4315 0 4279 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 4315 0 4279 1 0 1 1 0 8 0
vmmpekpl 168 38272 0 38214 3 0 3 3 0 8 0
vmmpepl 168 425345 0 422660 160 33 127 134 0 357 5
vmsppl 368 4314 0 4279 4 0 4 4 0 8 0
rwobjpl 56 113627 0 106262 107 1 106 107 0 8 0
pdppl 4096 8637 0 8558 153 72 81 93 0 8 2
pvpl 32 1726794 0 1709700 266 108 158 241 0 265 2
pmappl 248 4314 0 4279 4 1 3 3 0 8 0
extentpl 40 58 0 38 1 0 1 1 0 8 0
phpool 112 1039 0 211 25 0 25 25 0 8 0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff82592efc) at panic+0x177 sys/kern/subr_prf.c:202
vop_generic_badop(ffff80002c983c00) at vop_generic_badop+0x1b sys/kern/vfs_default.c:133
VOP_READLINK(fffffd8077836410,ffff80002c983c70,fffffd807f7d7660) at VOP_READLINK+0xb6 sys/kern/vfs_vops.c:476
namei(ffff80002c983d18) at namei+0x48a sys/kern/vfs_lookup.c:290
sys_unveil(ffff8000fffef260,ffff80002c983e38,ffff80002c983e90) at sys_unveil+0x22d sys/kern/vfs_syscalls.c:1005
syscall(ffff80002c983f00) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff80002c983f00) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x52fe6e06070, count: -8
ddb{0}> machine ddbcpu 1


---
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.

Anton Lindqvist

unread,
Jun 2, 2022, 1:14:30 AM6/2/22
to syzbot, syzkaller-o...@googlegroups.com
#syz invalid
Reply all
Reply to author
Forward
0 new messages