protection_fault: fill_file (2)

0 views
Skip to first unread message

syzbot

unread,
Mar 30, 2023, 6:04:47 PM3/30/23
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 1e5b016c5082 sync for __syscall removal
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=1436265dc80000
kernel config: https://syzkaller.appspot.com/x/.config?x=1bc15e68cd2a49e5
dashboard link: https://syzkaller.appspot.com/bug?extid=6101a5150e74dd0b5369

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/452af0b271ef/disk-1e5b016c.raw.xz
bsd.gdb: https://storage.googleapis.com/syzbot-assets/5145fa4f4c7c/bsd-1e5b016c.gdb.xz
kernel image: https://storage.googleapis.com/syzbot-assets/992507fc6105/kernel-1e5b016c.xz

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

kernel: protection fault trap, code=0
Stopped at fill_file+0xa36: movl 0x8(%rax),%eax
ddb>
ddb> set $lines = 0
ddb> set $maxwidth = 0
ddb> show panic
the kernel did not panic
ddb> trace
fill_file(ffff800000ec3c00,fffffd80733e6b50,fffffd8069b89040,4,0,ffff800027fc4008,9451bc532c11844c,683,ffff800021720dc0) at fill_file+0xa36 sys/kern/kern_sysctl.c:1307
sysctl_file(ffff8000216fc2d8,4,20000000,ffff8000216fc308,ffff800021720dc0) at sysctl_file+0xe87 sys/kern/kern_sysctl.c:1446
kern_sysctl(ffff8000216fc2d4,5,20000000,ffff8000216fc308,0,29,542739d34ce4d947) at kern_sysctl+0x107 sys/kern/kern_sysctl.c:455
sys_sysctl(ffff800021720dc0,ffff8000216fc378,ffff8000216fc3c0) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:250
syscall(ffff8000216fc440) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:625
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x5a237d6a380, count: -6
ddb> show registers
rdi 0xffff800021720dc4
rsi 0xffff800021720dc4
rbp 0xffff8000216fbe60
rbx 0
rdx 0
rcx 0x1
rax 0x5e4216af048702de
r8 0x32
r9 0
r10 0x9e165e3737827ccb
r11 0xf0e1daefe5856ea7
r12 0xfffffd8069b89040
r13 0x4
r14 0xffff800027fc4008
r15 0xffff800000ec3c00
rip 0xffffffff81674276 fill_file+0xa36
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff8000216fbd40
ss 0x10
fill_file+0xa36: movl 0x8(%rax),%eax
ddb> show proc
PROC (syz-executor.4) pid=475315 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=32, usrpri=85, nice=20
forw=0xffffffffffffffff, list=0xffff800021721330,0xffff800021736de0
process=0xffff800027fc4fc8 user=0xffff8000216f7000, vmspace=0xfffffd806f43ac20
estcpu=36, cpticks=0, pctcpu=0.0
user=0, sys=0, intr=0
ddb> ps
PID TID PPID UID S FLAGS WAIT COMMAND
15377 368546 1106 0 2 0 syz-executor.5
12824 328528 93561 0 2 0 syz-executor.2
12824 141336 93561 0 2 0x4000000 syz-executor.2
26959 125935 24052 0 2 0 syz-executor.1
26959 136502 24052 0 2 0x4000000 syz-executor.1
24198 230393 39033 0 2 0 syz-executor.4
24198 373848 39033 0 3 0x4000080 lockf syz-executor.4
*24198 475315 39033 0 7 0x4000000 syz-executor.4
24198 156891 39033 0 3 0x4000080 sysctllk syz-executor.4
23325 209403 3911 0 2 0 syz-executor.7
23325 465106 3911 0 3 0x4000080 netio syz-executor.7
23325 190046 3911 0 2 0x4000000 syz-executor.7
24572 360718 82626 0 2 0 syz-executor.3
24572 87445 82626 0 3 0x4000080 fsleep syz-executor.3
24572 132075 82626 0 2 0x4000000 syz-executor.3
46086 244122 17114 0 3 0x80 nanoslp syz-executor.0
46086 123058 17114 0 3 0x4000080 netcon syz-executor.0
46086 287622 17114 0 3 0x4000080 netcon syz-executor.0
1106 432530 93285 0 3 0x82 nanoslp syz-executor.5
82626 41828 93285 0 3 0x82 nanoslp syz-executor.3
24052 43688 93285 0 3 0x82 nanoslp syz-executor.1
93561 463516 93285 0 3 0x82 nanoslp syz-executor.2
39033 498248 93285 0 3 0x82 nanoslp syz-executor.4
3911 49934 93285 0 3 0x82 nanoslp syz-executor.7
44988 155271 1 0 3 0x100083 ttyin getty
17114 55811 93285 0 3 0x82 nanoslp syz-executor.0
61985 130827 93285 0 3 0x82 piperd syz-executor.6
65998 365244 0 0 3 0x14280 nfsidl nfsio
23976 332249 0 0 3 0x14280 nfsidl nfsio
84708 507532 0 0 3 0x14280 nfsidl nfsio
63939 227933 0 0 3 0x14280 nfsidl nfsio
35753 298570 0 0 3 0x14280 nfsidl nfsio
61392 226589 0 0 3 0x14280 nfsidl nfsio
61587 309606 0 0 3 0x14280 nfsidl nfsio
62865 511765 0 0 3 0x14280 nfsidl nfsio
327 233395 0 0 3 0x14280 nfsidl nfsio
54838 6670 0 0 3 0x14280 nfsidl nfsio
82386 222151 0 0 3 0x14280 nfsidl nfsio
27508 336951 0 0 3 0x14280 nfsidl nfsio
79974 230907 0 0 3 0x14280 nfsidl nfsio
59842 112999 0 0 3 0x14280 nfsidl nfsio
70754 228274 0 0 3 0x14280 nfsidl nfsio
62577 62714 0 0 3 0x14280 nfsidl nfsio
81983 342874 0 0 3 0x14280 nfsidl nfsio
38267 498494 0 0 3 0x14280 nfsidl nfsio
85129 52356 0 0 3 0x14280 nfsidl nfsio
61206 259980 0 0 3 0x14280 nfsidl nfsio
89846 518368 0 0 3 0x14200 bored sosplice
93285 197592 42022 0 3 0x82 wait syz-fuzzer
93285 123739 42022 0 3 0x4000082 thrsleep syz-fuzzer
93285 365973 42022 0 3 0x4000082 wait syz-fuzzer
93285 396704 42022 0 3 0x4000082 wait syz-fuzzer
93285 234906 42022 0 3 0x4000082 thrsleep syz-fuzzer
93285 12073 42022 0 3 0x4000082 wait syz-fuzzer
93285 49407 42022 0 3 0x4000082 thrsleep syz-fuzzer
93285 272629 42022 0 3 0x4000082 thrsleep syz-fuzzer
93285 339659 42022 0 3 0x4000082 wait syz-fuzzer
93285 435485 42022 0 3 0x4000082 wait syz-fuzzer
93285 420248 42022 0 3 0x4000082 thrsleep syz-fuzzer
93285 276519 42022 0 3 0x4000082 wait syz-fuzzer
93285 25663 42022 0 3 0x4000082 kqread syz-fuzzer
93285 132105 42022 0 3 0x4000082 wait syz-fuzzer
42022 388145 71704 0 3 0x10008a sigsusp ksh
71704 27667 73122 0 3 0x9a kqread sshd
73122 449551 1 0 3 0x88 kqread sshd
39148 365447 86903 73 3 0x1100090 kqread syslogd
86903 311517 1 0 3 0x100082 netio syslogd
41993 339361 1 0 3 0x100080 kqread resolvd
66603 48441 31088 77 3 0x100092 kqread dhcpleased
81024 386027 31088 77 3 0x100092 kqread dhcpleased
31088 498125 1 0 3 0x80 kqread dhcpleased
79543 101049 0 0 3 0x14200 bored smr
82353 318395 0 0 2 0x14200 zerothread
26679 106645 0 0 3 0x14200 aiodoned aiodoned
35047 220037 0 0 3 0x14200 syncer update
64474 31917 0 0 3 0x14200 cleaner cleaner
15310 303772 0 0 3 0x14200 reaper reaper
54319 418451 0 0 3 0x14200 pgdaemon pagedaemon
78425 394288 0 0 3 0x14200 bored viomb
59717 298095 0 0 3 0x40014200 acpi0 acpi0
35263 405913 0 0 3 0x14200 bored softnet
40236 224238 0 0 3 0x14200 bored softnet
62130 342987 0 0 3 0x14200 bored softnet
30842 494941 0 0 3 0x14200 bored softnet
33654 275425 0 0 3 0x14200 bored systqmp
86863 155904 0 0 3 0x14200 bored systq
79980 90981 0 0 2 0x40014200 softclock
99636 390965 0 0 3 0x40014200 idle0
1 34123 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 10255 6578K 7013K 78643K 37481 0
pcb 15 20K 23K 78643K 3279 0
rtable 214 17K 18K 78643K 4897 0
ifaddr 115 32K 33K 78643K 1622 0
sysctl 2 0K 2K 78643K 94 0
counters 30 17K 17K 78643K 549 0
ioctlops 0 0K 4K 78643K 1517 0
iov 0 0K 36K 78643K 2426 0
mount 1 1K 1K 78643K 1 0
log 0 0K 0K 78643K 4 0
vnodes 1679 105K 105K 78643K 13300 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 9K 78643K 155 0
VM map 2 1K 1K 78643K 2 0
sem 12 0K 0K 78643K 4124 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1697 195K 286K 78643K 12548 0
file desc 17 61K 69K 78643K 17438 0
sigio 0 0K 0K 78643K 332 0
proc 63 59K 84K 78643K 4091 0
subproc 104 6K 6K 78643K 1483 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
ip_moptions 0 0K 0K 78643K 1651 0
in_multi 87 5K 6K 78643K 1896 0
ether_multi 1 0K 0K 78643K 132 0
mrt 1 0K 0K 78643K 100 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 235 1049K 1049K 78643K 235 0
exec 0 0K 1K 78643K 3928 0
pfkey data 0 0K 0K 78643K 8 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 358 92K 106K 78643K 110124 0
UVM aobj 131 4K 4K 78643K 138 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 577 0
NDP 18 0K 1K 78643K 624 0
temp 155 5772K 71434K 78643K 185389 0
kqueue 13 20K 28K 78643K 1344 0
SYN cache 2 16K 16K 78643K 2 0
ddb> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
rtpcb 120 1352 0 1349 18 17 1 3 0 8 0
rtentry 112 1645 0 1559 6 3 3 4 0 8 0
unpcb 144 22892 0 22877 230 229 1 11 0 8 0
syncache 296 143 0 143 39 38 1 1 0 8 1
sackhl 24 2 0 2 2 2 0 1 0 8 0
tcpqe 32 98 301 98 6 6 0 1 0 8 0
tcpcb 776 6050 0 6036 248 246 2 15 0 8 0
arp 88 234 0 220 1 0 1 1 0 8 0
ipq 40 6 0 5 5 4 1 1 0 8 0
ipqe 40 17 0 16 5 4 1 1 0 8 0
inpcb 336 17216 0 17194 322 318 4 16 0 8 2
nd6 48 396 0 377 1 0 1 1 0 8 0
pkpcb 40 95 0 95 9 9 0 1 0 8 0
kcovpl 48 113 0 105 1 0 1 1 0 8 0
mppekey 1024 16 0 16 8 8 0 1 0 8 0
ppxss 1160 315 0 315 35 35 0 1 0 8 0
pppxif 1360 149 0 149 17 17 0 1 0 8 0
pfstscr 40 69 0 55 2 1 1 1 0 8 0
pfosfp 40 7 0 5 1 0 1 1 0 8 0
pfosfpen 112 7 0 5 1 0 1 1 0 8 0
pfanchor 1280 653 19 142 47 4 43 43 0 8 0
pfqueue 264 9 0 9 3 3 0 1 0 8 0
pfstitem 24 41 0 0 1 0 1 1 0 8 0
pfstkey 128 133 0 123 2 1 1 1 0 8 0
pfstate 352 68 0 46 4 1 3 3 0 8 0
rttmr 136 19 0 19 7 7 0 1 0 8 0
art_heap8 4096 12 0 11 12 11 1 2 0 8 0
art_heap4 256 7408 0 6993 105 76 29 30 0 8 0
art_table 32 7420 0 7004 4 0 4 4 0 8 0
art_node 16 1630 0 1555 1 0 1 1 0 8 0
sysvmsgpl 40 4 0 4 1 1 0 1 0 8 0
semapl 112 4122 0 4112 1 0 1 1 0 8 0
shmpl 112 135 0 7 4 0 4 4 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 23529 0 22047 93 0 93 93 0 8 0
ffsino 240 23529 0 22047 89 1 88 88 0 8 0
nchpl 144 47118 0 45473 63 1 62 63 0 8 0
rtmask 32 7 0 7 2 2 0 1 0 8 0
uvmvnodes 80 7338 0 0 150 0 150 150 0 8 0
vnodes 216 7338 0 0 408 0 408 408 0 8 0
namei 1024 190919 0 190919 22 21 1 3 0 8 1
vmpool 664 74 0 74 13 13 0 1 0 8 0
kstatmem 264 690 0 654 4 1 3 3 0 8 0
scsiplug 72 14 0 14 5 5 0 1 0 8 0
scxspl 216 163075 0 163075 51 50 1 8 0 8 1
plimitpl 152 2903 0 2888 1 0 1 1 0 8 0
sigapl 424 17608 0 17543 10 2 8 8 0 8 0
futexpl 64 177919 0 177918 23 22 1 1 0 8 0
knotepl 120 260842 0 260711 160 156 4 12 0 8 0
kqueuepl 184 3568 0 3559 55 52 3 6 0 8 2
pipepl 288 4995 0 4967 91 88 3 7 0 8 0
fdescpl 432 17489 0 17461 9 5 4 4 0 8 0
filepl 120 144601 0 144347 239 229 10 17 0 8 1
lockfpl 104 4903 0 4899 15 14 1 2 0 8 0
lockfspl 48 1431 0 1428 1 0 1 1 0 8 0
sessionpl 144 130 0 114 1 0 1 1 0 8 0
pgrppl 48 434 0 418 1 0 1 1 0 8 0
ucredpl 104 15762 0 15752 1 0 1 1 0 8 0
zombiepl 144 17543 0 17543 5 4 1 1 0 8 1
processpl 1008 17608 0 17543 12 3 9 9 0 8 0
procpl 696 42158 0 42069 25 16 9 10 0 8 0
sosppl 168 155 0 154 27 26 1 1 0 8 0
sockpl 456 41660 0 41619 1141 1135 6 37 0 8 0
mcl64k 65536 616 0 615 63 62 1 1 0 8 0
mcl16k 16384 348 0 345 58 57 1 1 0 8 0
mcl12k 12288 518 0 518 69 69 0 1 0 8 0
mcl9k 9216 236 0 236 55 55 0 1 0 8 0
mcl8k 8192 1259 0 1254 59 58 1 1 0 8 0
mcl4k 4096 1876 0 1872 49 48 1 1 0 8 0
mcl2k2 2112 116 0 116 52 52 0 1 0 8 0
mcl2k 2048 113007 0 112883 89 71 18 31 0 8 0
mtagpl 96 2606 0 2245 37 28 9 10 0 8 0
mbufpl 256 366586 0 365962 1386 1339 47 97 0 8 2
bufpl 288 30424 0 23034 528 0 528 528 0 8 0
anonpl 24 3285831 0 3269356 426 289 137 187 0 188 11
amapchunkpl 152 330371 0 329637 247 213 34 65 0 158 0
amappl16 200 25443 0 24773 123 87 36 48 0 8 0
amappl15 192 12 0 12 3 3 0 1 0 8 0
amappl14 184 635 0 620 2 1 1 2 0 8 0
amappl13 176 18 0 18 3 3 0 1 0 8 0
amappl12 168 1669 0 1667 1 0 1 1 0 8 0
amappl11 160 47 0 37 1 0 1 1 0 8 0
amappl10 152 154 0 145 1 0 1 1 0 8 0
amappl9 144 1020 0 1019 1 0 1 1 0 8 0
amappl8 136 764 0 667 4 0 4 4 0 8 0
amappl7 128 394 0 368 2 0 2 2 0 8 0
amappl6 120 697 0 676 2 1 1 2 0 8 0
amappl5 112 758 0 752 1 0 1 1 0 8 0
amappl4 104 2043 0 2011 2 1 1 2 0 8 0
amappl3 96 48430 0 48371 2 0 2 2 0 8 0
amappl2 88 18943 0 18866 3 1 2 3 0 8 0
amappl1 80 385766 0 385019 42 26 16 26 0 8 0
amappl 88 108357 0 108153 6 0 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 137 0 7 3 0 3 3 0 8 0
uaddrrnd 24 17563 0 17535 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 17563 0 17535 1 0 1 1 0 8 0
vmmpekpl 168 129833 0 129789 3 0 3 3 0 8 0
vmmpepl 168 1608222 0 1605242 540 394 146 161 0 357 6
vmsppl 344 17562 0 17535 3 0 3 3 0 8 0
rwobjpl 24 398809 0 389488 64 7 57 57 0 8 0
pdppl 4096 35132 0 35070 1245 1181 64 66 0 8 2
pvpl 32 6834774 0 6812369 979 742 237 360 0 265 25
pmappl 216 17562 0 17535 2 0 2 2 0 8 0
extentpl 40 56 0 38 1 0 1 1 0 8 0
phpool 112 4242 0 3358 27 0 27 27 0 8 0
ddb> machine ddbcpu 0
No such command
ddb> trace
fill_file(ffff800000ec3c00,fffffd80733e6b50,fffffd8069b89040,4,0,ffff800027fc4008,9451bc532c11844c,683,ffff800021720dc0) at fill_file+0xa36 sys/kern/kern_sysctl.c:1307
sysctl_file(ffff8000216fc2d8,4,20000000,ffff8000216fc308,ffff800021720dc0) at sysctl_file+0xe87 sys/kern/kern_sysctl.c:1446
kern_sysctl(ffff8000216fc2d4,5,20000000,ffff8000216fc308,0,29,542739d34ce4d947) at kern_sysctl+0x107 sys/kern/kern_sysctl.c:455
sys_sysctl(ffff800021720dc0,ffff8000216fc378,ffff8000216fc3c0) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:250
syscall(ffff8000216fc440) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:625
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x5a237d6a380, count: -6
ddb> machine ddbcpu 1
No such command
ddb> trace
fill_file(ffff800000ec3c00,fffffd80733e6b50,fffffd8069b89040,4,0,ffff800027fc4008,9451bc532c11844c,683,ffff800021720dc0) at fill_file+0xa36 sys/kern/kern_sysctl.c:1307
sysctl_file(ffff8000216fc2d8,4,20000000,ffff8000216fc308,ffff800021720dc0) at sysctl_file+0xe87 sys/kern/kern_sysctl.c:1446
kern_sysctl(ffff8000216fc2d4,5,20000000,ffff8000216fc308,0,29,542739d34ce4d947) at kern_sysctl+0x107 sys/kern/kern_sysctl.c:455
sys_sysctl(ffff800021720dc0,ffff8000216fc378,ffff8000216fc3c0) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:250
syscall(ffff8000216fc440) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:625
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x5a237d6a380, count: -6


---
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,
Jul 11, 2023, 1:45:44 PM7/11/23
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