protection_fault: ifaof_ifpforaddr

0 views
Skip to first unread message

syzbot

unread,
Apr 11, 2024, 9:28:24 AMApr 11
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 123b2274d92c Remove parentheses after return
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=1228ae33180000
kernel config: https://syzkaller.appspot.com/x/.config?x=7058272de1526588
dashboard link: https://syzkaller.appspot.com/bug?extid=b6d1ab5a16cb8b3cab5f

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/98bb61e3546e/disk-123b2274.raw.xz
bsd.gdb: https://storage.googleapis.com/syzbot-assets/b2bb4406b335/bsd-123b2274.gdb.xz
kernel image: https://storage.googleapis.com/syzbot-assets/e5c4cfe737ce/kernel-123b2274.xz

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

login: ./file0 a ./file0 ���� �� � I 0�?�*�v3�)�� D�} ./file0 �� kernel: protection fault trap, code=0
Stopped at ifaof_ifpforaddr+0x80: movq 0(%r14),%rbx
ddb{0}>
ddb{0}> set $lines = 0
ddb{0}> set $maxwidth = 0
ddb{0}> show panic
the kernel did not panic
ddb{0}> trace
ifaof_ifpforaddr(ffff800000d92060,ffff8000006ac000) at ifaof_ifpforaddr+0x80 sys/net/if.c:1595
ifa_ifwithroute(fe101c33,ffff800000d92060,ffff800000d92088,5) at ifa_ifwithroute+0x16e sys/net/rtsock.c:1256
rtm_getifa(ffff8000373adbc0,5) at rtm_getifa+0x1ec
rtm_output(ffff800000d92000,ffff8000373adc68,ffff8000373adbc0,6,5) at rtm_output+0x586 sys/net/rtsock.c:955
route_output(fffffd807b31bf00,ffff800000e8db00) at route_output+0x6a7 sys/net/rtsock.c:864
route_send(ffff800000e8db00,fffffd807b31bf00,0,0) at route_send+0x8f sys/net/rtsock.c:340
sosend(ffff800000e8db00,0,ffff8000373ade18,0,0,0) at sosend+0x663
sendit(ffff80002a284808,5,ffff8000373adf10,0,ffff8000373adfc0) at sendit+0x54c sys/kern/uipc_syscalls.c:786
sys_sendto(ffff80002a284808,ffff8000373ae070,ffff8000373adfc0) at sys_sendto+0x84 sys/kern/uipc_syscalls.c:564
syscall(ffff8000373ae070) at syscall+0x8cf mi_syscall sys/sys/syscall_mi.h:180 [inline]
syscall(ffff8000373ae070) at syscall+0x8cf sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x2cebd90470, count: -11
ddb{0}> show registers
rdi 0x23
rsi 0x21
rbp 0xffff8000373ada60
rbx 0xffff800000d92060
rdx 0xffff800000e93b00
rcx 0xffff80002a284808
rax 0x21
r8 0x5
r9 0
r10 0x6fc8a9a17cff4a6b
r11 0x15cef92070001cc8
r12 0x2
r13 0xffff800000d92060
r14 0xdeadbeefdeadbeef
r15 0xffff8000006ac000
rip 0xffffffff81958210 ifaof_ifpforaddr+0x80
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff8000373ad9f0
ss 0x10
ifaof_ifpforaddr+0x80: movq 0(%r14),%rbx
ddb{0}> show proc
PROC (syz-executor.3) tid=458353 pid=14814 tcnt=2 stat=onproc
flags process=8000000 proc=4000000<THREAD>
runpri=32, usrpri=79, slppri=32, nice=20
wchan=0x0, wmesg=, ps_single=0x0
forw=0xffffffffffffffff, list=0xffff80002a2842e8,0xffff80002a285778
process=0xffff800031566c88 user=0xffff8000373a9000, vmspace=0xfffffd8067414378
estcpu=29, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
14284 504527 86919 0 2 0x8000000 syz-executor.5
93473 277842 76883 0 7 0x8000000 syz-executor.6
93473 505561 76883 0 2 0xc000000 syz-executor.6
14814 453397 89179 0 2 0x8000000 syz-executor.3
*14814 458353 89179 0 7 0xc000000 syz-executor.3
94013 85857 96803 0 2 0x8000000 syz-executor.4
94013 766 96803 0 3 0xc000080 fsleep syz-executor.4
10594 230995 42186 0 2 0x8000000 syz-executor.2
10594 135342 42186 0 3 0xc000080 fsleep syz-executor.2
51200 42021 5044 0 2 0x8000000 syz-executor.0
51200 358015 5044 0 3 0xc000080 fsleep syz-executor.0
48985 50690 45126 0 2 0x8000000 syz-executor.7
48985 240284 45126 0 3 0xc000080 fsleep syz-executor.7
36487 2317 1 0 3 0x8000080 nanoslp init
76883 371754 15112 0 2 0x8000482 syz-executor.6
42186 88013 15112 0 2 0x8000482 syz-executor.2
96803 483437 15112 0 2 0x8000482 syz-executor.4
5044 23839 15112 0 3 0x8000082 nanoslp syz-executor.0
86919 57948 15112 0 3 0x8000082 nanoslp syz-executor.5
89179 369453 15112 0 2 0x8000482 syz-executor.3
45126 143804 15112 0 3 0x8000082 nanoslp syz-executor.7
19358 306579 0 0 3 0x14200 acct acct
75620 285216 0 0 3 0x14200 bored sosplice
15112 522128 92202 0 3 0x1a000082 thrsleep syz-fuzzer
15112 100097 92202 0 3 0x1e000082 nanoslp syz-fuzzer
15112 138894 92202 0 3 0x1e000082 thrsleep syz-fuzzer
15112 408571 92202 0 3 0x1e000082 wait syz-fuzzer
15112 187823 92202 0 3 0x1e000082 wait syz-fuzzer
15112 401379 92202 0 3 0x1e000082 kqread syz-fuzzer
15112 243420 92202 0 3 0x1e000082 wait syz-fuzzer
15112 152754 92202 0 3 0x1e000082 wait syz-fuzzer
15112 224989 92202 0 3 0x1e000082 thrsleep syz-fuzzer
15112 260774 92202 0 3 0x1e000082 thrsleep syz-fuzzer
15112 294427 92202 0 3 0x1e000082 wait syz-fuzzer
15112 443256 92202 0 3 0x1e000082 thrsleep syz-fuzzer
15112 270853 92202 0 3 0x1e000082 thrsleep syz-fuzzer
15112 219190 92202 0 2 0x1e000002 syz-fuzzer
15112 410953 92202 0 3 0x1e000082 wait syz-fuzzer
15112 223764 92202 0 3 0x1e000082 wait syz-fuzzer
92202 100672 47323 0 3 0x810008a sigsusp ksh
47323 386086 33881 0 3 0x1800009a kqread sshd
33881 124496 1 0 3 0x18000088 kqread sshd
76157 4315 84219 74 3 0x19100092 bpf pflogd
84219 259836 1 0 3 0x18000080 sbwait pflogd
29212 267559 92835 73 3 0x19100090 kqread syslogd
92835 268430 1 0 3 0x18100082 sbwait syslogd
5306 196219 1 0 3 0x18100080 kqread resolvd
88657 201505 11381 77 3 0x18100092 kqread dhcpleased
55704 347823 11381 77 3 0x18100092 kqread dhcpleased
11381 366587 1 0 3 0x18000080 kqread dhcpleased
68445 389562 0 0 3 0x14200 bored smr
49915 494898 0 0 2 0x14200 zerothread
13299 404675 0 0 3 0x14200 aiodoned aiodoned
25696 258232 0 0 3 0x14200 syncer update
35322 439874 0 0 3 0x14200 cleaner cleaner
73078 335095 0 0 3 0x14200 reaper reaper
60038 290324 0 0 3 0x14200 pgdaemon pagedaemon
84531 224559 0 0 3 0x14200 bored viomb
96949 118161 0 0 3 0x40014200 acpi0 acpi0
32098 15413 0 0 3 0x40014200 idle1
15625 92014 0 0 3 0x14200 bored softnet3
10038 274871 0 0 3 0x14200 bored softnet2
76007 48889 0 0 3 0x14200 bored softnet1
68991 239950 0 0 3 0x14200 bored softnet0
45189 199252 0 0 3 0x14200 bored systqmp
98890 182358 0 0 3 0x14200 bored systq
6972 173310 0 0 3 0x14200 tmoslp softclockmp
88711 226594 0 0 2 0x40014200 softclock
69725 116726 0 0 3 0x40014200 idle0
1 417419 0 0 3 0x8000082 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
Process 14814 (syz-executor.3) thread 0xffff80002a284808 (458353)
exclusive rwlock netlock r = 0 (0xffffffff82cd3690)
#0 witness_lock+0x446 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0 witness_lock+0x446 sys/kern/subr_witness.c:1187
#1 rtm_output+0x579 sys/net/rtsock.c:955
#2 route_output+0x6a7 sys/net/rtsock.c:864
#3 route_send+0x8f sys/net/rtsock.c:340
#4 sosend+0x663
#5 sendit+0x54c sys/kern/uipc_syscalls.c:786
#6 sys_sendto+0x84 sys/kern/uipc_syscalls.c:564
#7 syscall+0x8cf mi_syscall sys/sys/syscall_mi.h:180 [inline]
#7 syscall+0x8cf sys/arch/amd64/amd64/trap.c:577
#8 Xsyscall+0x128
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10210 6498K 6743K 166960K 13161 0
pcb 15 16K 18K 166960K 978 0
rtable 160 6K 8K 166960K 1886 0
pf 32 9K 10K 166960K 234 0
ifaddr 34 13K 16K 166960K 248 0
ifgroup 52 2K 2K 166960K 394 0
sysctl 3 0K 0K 166960K 9 0
counters 62 36K 36K 166960K 240 0
ioctlops 0 0K 4K 166960K 2033 0
iov 0 0K 20K 166960K 454 0
mount 1 1K 1K 166960K 1 0
log 0 0K 0K 166960K 4 0
vnodes 1381 87K 88K 166960K 3787 0
UFS quota 1 32K 32K 166960K 1 0
UFS mount 5 36K 36K 166960K 5 0
shm 2 1K 9K 166960K 166 0
VM map 2 1K 1K 166960K 2 0
sem 12 0K 0K 166960K 488 0
dirhash 12 2K 3K 166960K 105 0
ACPI 1697 195K 286K 166960K 12548 0
file desc 16 57K 89K 166960K 5012 0
sigio 1 0K 0K 166960K 112 0
proc 66 79K 128K 166960K 2101 0
subproc 91 5K 8K 166960K 596 0
NFS srvsock 1 0K 0K 166960K 1 0
NFS daemon 1 16K 16K 166960K 1 0
ip_moptions 0 0K 0K 166960K 670 0
in_multi 58 4K 7K 166960K 618 0
ether_multi 1 0K 0K 166960K 36 0
mrt 1 0K 0K 166960K 18 0
ISOFS mount 1 32K 32K 166960K 1 0
MSDOSFS mount 1 16K 16K 166960K 1 0
ttys 229 1023K 1023K 166960K 229 0
exec 0 0K 1K 166960K 1376 0
pfkey data 0 0K 0K 166960K 4 0
tdb 3 0K 0K 166960K 3 0
VM swap 8 62K 64K 166960K 10 0
UVM amap 356 181K 190K 166960K 47159 0
UVM aobj 131 8K 8K 166960K 138 0
pinsyscall 39 78K 108K 166960K 7142 0
memdesc 1 4K 4K 166960K 1 0
crypto data 1 1K 1K 166960K 1 0
ip6_options 0 0K 1K 166960K 369 0
NDP 11 0K 1K 166960K 184 0
temp 74 6815K 7312K 166960K 131647 0
kqueue 12 18K 27K 166960K 602 0
SYN cache 2 16K 16K 166960K 2 0
ddb{0}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
plcache 128 24 0 0 1 0 1 1 0 8 0
rtpcb 120 754 0 750 9 8 1 3 0 8 0
rtentry 112 643 0 575 4 0 4 4 0 8 0
unpcb 144 4548 0 4531 32 26 6 7 0 8 5
syncache 336 4 0 4 1 1 0 1 0 8 0
tcpqe 32 44 0 44 1 1 0 1 0 8 0
tcpcb 808 1779 0 1773 50 46 4 14 0 8 3
arp 120 119 0 105 1 0 1 1 0 8 0
inpcb 392 6131 0 6121 76 72 4 15 0 8 3
nd6 136 134 0 117 1 0 1 1 0 8 0
pkpcb 40 25 0 25 12 12 0 1 0 8 0
kcovpl 48 45 0 38 1 0 1 1 0 8 0
ppxss 1168 15 0 15 10 9 1 1 0 8 1
pffrag 232 25 0 25 3 3 0 1 0 482 0
pffrnode 88 25 0 25 3 3 0 1 0 8 0
pffrent 40 519 0 519 3 2 1 1 0 8 1
pfosfp 40 1428 0 1005 5 0 5 5 0 8 0
pfosfpen 112 1428 0 714 21 0 21 21 0 8 0
pfstitem 24 258 0 230 1 0 1 1 0 8 0
pfstkey 128 258 0 230 3 1 2 2 0 8 0
pfstate 376 258 0 230 7 3 4 6 0 8 0
pfrule 1344 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 2115 0 1846 43 20 23 31 0 8 0
art_table 32 2116 0 1846 5 1 4 4 0 8 0
art_node 16 565 0 509 1 0 1 1 0 8 0
sysvmsgpl 40 15 0 10 1 0 1 1 0 8 0
semupl 112 4 0 4 1 1 0 1 0 8 0
semapl 112 485 0 475 1 0 1 1 0 8 0
shmpl 112 135 0 7 4 0 4 4 0 8 0
dirhash 1024 79 0 62 3 0 3 3 0 8 0
dino2pl 256 9687 0 8118 100 1 99 99 0 8 0
ffsino 272 9687 0 8118 106 0 106 106 0 8 0
nchpl 144 16819 0 15087 67 1 66 67 0 8 0
uvmvnodes 80 8175 0 0 167 0 167 167 0 8 0
vnodes 216 8175 0 0 455 0 455 455 0 8 0
namei 1024 58903 0 58903 7 6 1 2 0 8 1
percpumem 16 134 0 89 1 0 1 1 0 8 0
vcpupl 2048 21 0 3 3 0 3 3 0 8 0
vmpool 696 49 0 31 4 2 2 2 0 8 0
kstatmem 264 200 0 178 2 0 2 2 0 8 0
scsiplug 72 3 0 3 3 3 0 1 0 8 0
scxspl 216 70876 0 70876 25 24 1 8 1 8 1
plimitpl 152 485 0 471 1 0 1 1 0 8 0
sigapl 424 5279 0 5230 9 1 8 9 0 8 0
futexpl 64 62702 0 62698 7 6 1 1 0 8 0
knotepl 120 656 0 0 11 0 11 11 0 8 0
kqueuepl 216 1129 0 1121 2 1 1 2 0 8 0
pipepl 320 909 0 883 21 18 3 9 0 8 0
fdescpl 496 5239 0 5210 5 0 5 5 0 8 0
filepl 152 35062 0 34833 58 43 15 20 0 8 3
lockfpl 104 1587 0 1585 2 1 1 2 0 8 0
lockfspl 48 516 0 514 1 0 1 1 0 8 0
sessionpl 144 65 0 50 1 0 1 1 0 8 0
pgrppl 48 146 0 131 1 0 1 1 0 8 0
ucredpl 104 5941 0 5919 1 0 1 1 0 8 0
zombiepl 144 5230 0 5230 4 3 1 1 0 8 1
processpl 1136 5279 0 5230 6 0 6 6 0 8 0
procpl 656 11852 0 11782 12 4 8 9 0 8 0
srpgc 96 29 0 29 9 9 0 1 0 8 0
sosppl 168 97 0 97 15 14 1 1 0 8 1
sockpl 568 11501 0 11470 88 78 10 17 0 8 7
mcl64k 65536 21 0 0 3 1 2 3 0 8 0
mcl16k 16384 7 0 0 1 0 1 1 0 8 0
mcl12k 12288 17 0 0 2 0 2 2 0 8 0
mcl9k 9216 12 0 0 1 0 1 1 0 8 0
mcl8k 8192 17 0 0 3 0 3 3 0 8 0
mcl4k 4096 17 0 0 3 0 3 3 0 8 0
mcl2k2 2112 8 0 0 1 0 1 1 0 8 0
mcl2k 2048 504 0 0 41 2 39 41 0 8 0
mtagpl 96 13 0 0 1 0 1 1 0 8 0
mbufpl 256 1240 0 0 65 0 65 65 0 8 0
bufpl 280 17207 0 9002 587 0 587 587 0 8 0
anonpl 24 744938 0 738408 162 92 70 105 0 186 0
amapchunkpl 152 149670 0 149009 89 57 32 55 0 158 0
amappl16 200 17937 0 17820 128 111 17 23 0 8 8
amappl15 192 10 0 10 1 1 0 1 0 8 0
amappl14 184 300 0 284 3 1 2 2 0 8 0
amappl13 176 25 0 24 1 0 1 1 0 8 0
amappl12 168 6592 0 6554 5 2 3 3 0 8 0
amappl11 160 73 0 58 1 0 1 1 0 8 0
amappl10 152 107 0 93 1 0 1 1 0 8 0
amappl9 144 191 0 191 11 10 1 1 0 8 1
amappl8 136 795 0 664 7 1 6 6 0 8 0
amappl7 128 137 0 121 1 0 1 1 0 8 0
amappl6 120 889 0 864 4 2 2 2 0 8 0
amappl5 112 359 0 343 1 0 1 1 0 8 0
amappl4 104 1012 0 961 2 0 2 2 0 8 0
amappl3 96 29180 0 29099 4 1 3 4 0 8 0
amappl2 88 6074 0 5993 4 2 2 4 0 8 0
amappl1 80 29586 0 29071 23 9 14 23 0 8 0
amappl 88 45871 0 45668 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 5288 0 5241 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 5288 0 5241 1 0 1 1 0 8 0
vmmpekpl 168 41242 0 41177 4 0 4 4 0 8 0
vmmpepl 168 340923 0 338831 172 59 113 122 0 357 4
vmsppl 440 5287 0 5241 10 4 6 6 0 8 0
rwobjpl 56 95212 0 85682 152 13 139 139 0 8 0
pdppl 4096 10583 0 10500 336 253 83 88 0 8 0
pvpl 32 45435 0 0 367 0 367 367 0 265 0
pmappl 248 5287 0 5241 4 0 4 4 0 8 1
extentpl 40 56 0 38 1 0 1 1 0 8 0
phpool 112 779 0 341 13 0 13 13 0 8 0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
ifaof_ifpforaddr(ffff800000d92060,ffff8000006ac000) at ifaof_ifpforaddr+0x80 sys/net/if.c:1595
ifa_ifwithroute(fe101c33,ffff800000d92060,ffff800000d92088,5) at ifa_ifwithroute+0x16e sys/net/rtsock.c:1256
rtm_getifa(ffff8000373adbc0,5) at rtm_getifa+0x1ec
rtm_output(ffff800000d92000,ffff8000373adc68,ffff8000373adbc0,6,5) at rtm_output+0x586 sys/net/rtsock.c:955
route_output(fffffd807b31bf00,ffff800000e8db00) at route_output+0x6a7 sys/net/rtsock.c:864
route_send(ffff800000e8db00,fffffd807b31bf00,0,0) at route_send+0x8f sys/net/rtsock.c:340
sosend(ffff800000e8db00,0,ffff8000373ade18,0,0,0) at sosend+0x663
sendit(ffff80002a284808,5,ffff8000373adf10,0,ffff8000373adfc0) at sendit+0x54c sys/kern/uipc_syscalls.c:786
sys_sendto(ffff80002a284808,ffff8000373ae070,ffff8000373adfc0) at sys_sendto+0x84 sys/kern/uipc_syscalls.c:564
syscall(ffff8000373ae070) at syscall+0x8cf mi_syscall sys/sys/syscall_mi.h:180 [inline]
syscall(ffff8000373ae070) at syscall+0x8cf sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x2cebd90470, count: -11
ddb{0}> machine ddbcpu 1
Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp
ddb{1}> trace
x86_ipi_db(ffff800029cebff0) at x86_ipi_db+0x1e 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+0x27
end of kernel
end trace frame: 0x7572925f5650, count: -3


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