kernel: protection fault trap, code=NUM (6)

0 views
Skip to first unread message

syzbot

unread,
Nov 10, 2022, 5:10:56 PM11/10/22
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: f799f30eb9db Port ASN1_buf_print() from OpenSSL 1.1.
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=111a3b66880000
kernel config: https://syzkaller.appspot.com/x/.config?x=7058272de1526588
dashboard link: https://syzkaller.appspot.com/bug?extid=8eba244a293b9b0a46a3

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/ff6680e5f532/disk-f799f30e.raw.xz
bsd.gdb: https://storage.googleapis.com/syzbot-assets/cca22c80b04f/bsd-f799f30e.gdb.xz
kernel image: https://storage.googleapis.com/syzbot-assets/6bcaf61bef43/kernel-f799f30e.xz

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

exclusive kernel: protection fault trap, code=0
Faulted in DDB; continuing...
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10195 6409K 6420K 78643K 11285 0
pcb 13 10K 12K 78643K 15 0
rtable 236 6K 6K 78643K 510 0
ifaddr 82 16K 16K 78643K 84 0
sysctl 2 0K 0K 78643K 2 0
counters 60 35K 35K 78643K 60 0
ioctlops 0 0K 2K 78643K 39 0
iov 0 0K 12K 78643K 601 0
mount 1 1K 1K 78643K 1 0
log 0 0K 0K 78643K 4 0
vnodes 1272 80K 80K 78643K 1566 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 13K 78643K 36 0
VM map 2 1K 1K 78643K 2 0
sem 12 0K 0K 78643K 161 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1697 195K 286K 78643K 12548 0
file desc 22 81K 117K 78643K 1151 0
sigio 0 0K 0K 78643K 77 0
proc 56 78K 115K 78643K 504 0
subproc 104 6K 6K 78643K 104 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
ip_moptions 0 0K 0K 78643K 452 0
in_multi 99 6K 6K 78643K 105 0
ether_multi 1 0K 0K 78643K 4 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 79 360K 360K 78643K 79 0
exec 0 0K 1K 78643K 420 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 8 62K 64K 78643K 10 0
UVM amap 288 84K 85K 78643K 10067 0
UVM aobj 131 8K 8K 78643K 131 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 67 0
NDP 11 0K 2K 78643K 27 0
temp 124 4734K 4798K 78643K 6424 0
kqueue 12 18K 30K 78643K 401 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 206 0 203 4 2 2 3 0 8 1
rtentry 112 112 0 1 4 0 4 4 0 8 0
unpcb 144 1002 0 989 13 6 7 10 0 8 6
syncache 296 16 0 16 3 3 0 1 0 8 0
tcpqe 32 279 0 279 3 3 0 1 0 8 0
tcpcb 776 622 0 609 22 15 7 15 0 8 5
arp 120 19 0 0 1 0 1 1 0 8 0
inpcb 368 1064 0 1044 19 11 8 14 0 8 6
nd6 48 24 0 0 1 0 1 1 0 8 0
kcovpl 48 8 0 0 1 0 1 1 0 8 0
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 454 0 0 29 0 29 29 0 8 0
art_table 32 455 0 0 4 0 4 4 0 8 0
art_node 16 111 0 10 1 0 1 1 0 8 0
sysvmsgpl 40 2 0 2 1 1 0 1 0 8 0
semupl 112 3 0 3 1 1 0 1 0 8 0
semapl 112 156 0 146 1 0 1 1 0 8 0
shmpl 112 128 0 0 4 0 4 4 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 3009 0 1579 90 0 90 90 0 8 0
ffsino 272 3009 0 1579 96 0 96 96 0 8 0
nchpl 144 4657 0 2991 63 0 63 63 0 8 0
uvmvnodes 80 3122 0 0 64 0 64 64 0 8 0
vnodes 216 3122 0 0 174 0 174 174 0 8 0
namei 1024 16279 0 16276 2 1 1 2 0 8 0
percpumem 16 42 0 0 1 0 1 1 0 8 0
kstatmem 264 22 0 0 2 0 2 2 0 8 0
scxspl 216 13405 0 13405 11 10 1 8 0 8 1
plimitpl 152 229 0 206 2 1 1 2 0 8 0
sigapl 424 1439 0 1388 7 0 7 7 0 8 0
futexpl 64 9811 0 9809 1 0 1 1 0 8 0
knotepl 120 124 0 0 4 0 4 4 0 8 0
kqueuepl 216 738 0 729 7 4 3 5 0 8 2
pipepl 320 372 0 344 8 0 8 8 0 8 5
fdescpl 496 1421 0 1388 7 1 6 6 0 8 0
filepl 152 9842 0 9602 24 7 17 19 0 8 7
lockfpl 104 218 0 216 1 0 1 1 0 8 0
lockfspl 48 92 0 90 1 0 1 1 0 8 0
sessionpl 144 23 0 7 1 0 1 1 0 8 0
pgrppl 48 36 0 20 1 0 1 1 0 8 0
ucredpl 104 2160 0 2142 1 0 1 1 0 8 0
zombiepl 144 1388 0 1388 1 0 1 1 0 8 1
processpl 1064 1439 0 1388 4 0 4 4 0 8 0
procpl 672 3957 0 3883 9 1 8 9 0 8 0
sosppl 168 19 0 19 2 1 1 1 0 8 1
sockpl 488 2279 0 2247 68 55 13 34 0 8 8
mcl64k 65536 8 0 0 1 0 1 1 0 8 0
mcl16k 16384 5 0 0 1 0 1 1 0 8 0
mcl12k 12288 9 0 0 1 0 1 1 0 8 0
mcl9k 9216 9 0 0 1 0 1 1 0 8 0
mcl8k 8192 17 0 0 3 0 3 3 0 8 0
mcl4k 4096 8 0 0 1 0 1 1 0 8 0
mcl2k2 2112 1 0 0 1 0 1 1 0 8 0
mcl2k 2048 282 0 0 36 0 36 36 0 8 0
mtagpl 96 4 0 0 1 0 1 1 0 8 0
mbufpl 256 1061 0 0 66 0 66 66 0 8 0
bufpl 288 5269 0 131 367 0 367 367 0 8 0
anonpl 24 349008 0 335962 121 14 107 107 0 186 11
amapchunkpl 152 28046 0 27293 38 5 33 35 0 158 1
amappl16 200 5206 0 4895 39 11 28 30 0 8 8
amappl15 192 9 0 9 1 1 0 1 0 8 0
amappl14 184 140 0 126 2 1 1 2 0 8 0
amappl13 176 3 0 3 1 1 0 1 0 8 0
amappl12 168 400 0 397 1 0 1 1 0 8 0
amappl11 160 48 0 38 1 0 1 1 0 8 0
amappl10 152 40 0 28 1 0 1 1 0 8 0
amappl9 144 961 0 959 1 0 1 1 0 8 0
amappl8 136 178 0 122 3 0 3 3 0 8 0
amappl7 128 52 0 36 1 0 1 1 0 8 0
amappl6 120 266 0 252 2 1 1 2 0 8 0
amappl5 112 99 0 90 1 0 1 1 0 8 0
amappl4 104 491 0 466 1 0 1 1 0 8 0
amappl3 96 3953 0 3896 2 0 2 2 0 8 0
amappl2 88 1770 0 1698 3 1 2 3 0 8 0
amappl1 80 35038 0 34325 22 4 18 21 0 8 1
amappl 88 9680 0 9476 8 2 6 6 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 130 0 0 3 0 3 3 0 8 0
uaddrrnd 24 1421 0 1388 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 1421 0 1388 1 0 1 1 0 8 0
vmmpekpl 168 17810 0 17750 3 0 3 3 0 8 0
vmmpepl 168 139292 0 136718 141 5 136 136 0 357 6
vmsppl 368 1420 0 1388 4 0 4 4 0 8 0
rwobjpl 56 44027 0 39375 70 0 70 70 0 8 0
pdppl 4096 2849 0 2776 123 42 81 91 0 8 8
pvpl 32 700432 0 681407 253 45 208 252 0 265 29
pmappl 248 1420 0 1388 4 1 3 3 0 8 0
extentpl 40 56 0 38 1 0 1 1 0 8 0
phpool 112 845 0 56 23 0 23 23 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(ffffffff8259ecd2) at panic+0x177 sys/kern/subr_prf.c:198
vop_generic_badop(ffff80002496e4e8) at vop_generic_badop+0x1b sys/kern/vfs_default.c:133
VOP_STRATEGY(fffffd8074956cc8,fffffd80667f2db0) at VOP_STRATEGY+0x9b sys/kern/vfs_vops.c:628
bwrite(fffffd80667f2db0) at bwrite+0x1f0 sys/kern/vfs_bio.c:760
VOP_BWRITE(fffffd80667f2db0) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:640
ufs_mkdir(ffff80002496e780) at ufs_mkdir+0x6b4 sys/ufs/ufs/ufs_vnops.c:1236
VOP_MKDIR(fffffd8068886450,ffff80002496e8e0,ffff80002496e910,ffff80002496e810) at VOP_MKDIR+0xbf sys/kern/vfs_vops.c:388
domkdirat(ffff8000ffff5500,ffffff9c,7f7fffff6310,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:3112
syscall(ffff80002496ea90) at syscall+0x438 mi_syscall sys/sys/syscall_mi.h:101 [inline]
syscall(ffff80002496ea90) at syscall+0x438 sys/arch/amd64/amd64/trap.c:599
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7fffff6380, count: -11
ddb{0}> machine ddbcpu 1
Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp
x86_ipi_db(ffff800020dd8ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393
x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
alltraps_kern_meltdown() at alltraps_kern_meltdown+0x68
savectx() at savectx+0xae
end of kernel
end trace frame: 0x7f7ffffc1360, count: 10
ddb{1}> trace
x86_ipi_db(ffff800020dd8ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393
x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
alltraps_kern_meltdown() at alltraps_kern_meltdown+0x68
savectx() at savectx+0xae
end of kernel
end trace frame: 0x7f7ffffc1360, count: -5


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

syzbot

unread,
Aug 8, 2024, 12:33:15 AMAug 8
to syzkaller-o...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages