uvm_fault: igmp_leavegroup (5)

2 views
Skip to first unread message

syzbot

unread,
Apr 10, 2024, 3:04:23 AMApr 10
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 1e30b36946b4 whirlpool_test: avoid calling arc4random_unif..
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=138c1199180000
kernel config: https://syzkaller.appspot.com/x/.config?x=7058272de1526588
dashboard link: https://syzkaller.appspot.com/bug?extid=2f24ed6c8ddb2d6bb22c

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/8d2cb392b417/disk-1e30b369.raw.xz
bsd.gdb: https://storage.googleapis.com/syzbot-assets/23dd5abe1da1/bsd-1e30b369.gdb.xz
kernel image: https://storage.googleapis.com/syzbot-assets/0147b24094e0/kernel-1e30b369.xz

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

login: uvm_fault(0xfffffd806b8caa68, 0x4, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at igmp_leavegroup+0xaf: movl 0x4(%rax),%r12d
TID PID UID PRFLAGS PFLAGS CPU COMMAND
igmp_leavegroup(ffff800000e38280,ffff8000006ac000) at igmp_leavegroup+0xaf sys/netinet/igmp.c:512
in_delmulti(ffff800000e38280) at in_delmulti+0xd3 sys/netinet/in.c:908
ip_freemoptions(ffff8000006bc420) at ip_freemoptions+0x5d sys/netinet/ip_output.c:1737
in_pcbdetach(fffffd80771fe008) at in_pcbdetach+0x97 sys/netinet/in_pcb.c:606
udp_detach(ffff800000e2a258) at udp_detach+0x3f sys/netinet/udp_usrreq.c:1139
soclose(ffff800000e2a258,0) at soclose+0x83 pru_detach sys/sys/protosw.h:283 [inline]
soclose(ffff800000e2a258,0) at soclose+0x83 sys/kern/uipc_socket.c:410
soo_close(fffffd8068a4b308,ffff80002ccbea68) at soo_close+0x44
fdrop(fffffd8068a4b308,ffff80002ccbea68) at fdrop+0xd5 sys/kern/kern_descrip.c:1274
closef(fffffd8068a4b308,ffff80002ccbea68) at closef+0x120 sys/kern/kern_descrip.c:1258
fdfree(ffff80002ccbea68) at fdfree+0xe4 sys/kern/kern_descrip.c:1190
exit1(ffff80002ccbea68,0,0,1) at exit1+0x38a sys/kern/kern_exit.c:199
sys_exit(ffff80002ccbea68,ffff80002a480540,ffff80002a480490) at sys_exit+0x1a sys/kern/kern_exit.c:89
syscall(ffff80002a480540) at syscall+0x854 mi_syscall sys/sys/syscall_mi.h:180 [inline]
syscall(ffff80002a480540) at syscall+0x854 sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x76cb346233d0, count: 1
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: uvm_fault(0xfffffd806b8caa68, 0x4, 0, 1) -> e
ddb{0}> trace
igmp_leavegroup(ffff800000e38280,ffff8000006ac000) at igmp_leavegroup+0xaf sys/netinet/igmp.c:512
in_delmulti(ffff800000e38280) at in_delmulti+0xd3 sys/netinet/in.c:908
ip_freemoptions(ffff8000006bc420) at ip_freemoptions+0x5d sys/netinet/ip_output.c:1737
in_pcbdetach(fffffd80771fe008) at in_pcbdetach+0x97 sys/netinet/in_pcb.c:606
udp_detach(ffff800000e2a258) at udp_detach+0x3f sys/netinet/udp_usrreq.c:1139
soclose(ffff800000e2a258,0) at soclose+0x83 pru_detach sys/sys/protosw.h:283 [inline]
soclose(ffff800000e2a258,0) at soclose+0x83 sys/kern/uipc_socket.c:410
soo_close(fffffd8068a4b308,ffff80002ccbea68) at soo_close+0x44
fdrop(fffffd8068a4b308,ffff80002ccbea68) at fdrop+0xd5 sys/kern/kern_descrip.c:1274
closef(fffffd8068a4b308,ffff80002ccbea68) at closef+0x120 sys/kern/kern_descrip.c:1258
fdfree(ffff80002ccbea68) at fdfree+0xe4 sys/kern/kern_descrip.c:1190
exit1(ffff80002ccbea68,0,0,1) at exit1+0x38a sys/kern/kern_exit.c:199
sys_exit(ffff80002ccbea68,ffff80002a480540,ffff80002a480490) at sys_exit+0x1a sys/kern/kern_exit.c:89
syscall(ffff80002a480540) at syscall+0x854 mi_syscall sys/sys/syscall_mi.h:180 [inline]
syscall(ffff80002a480540) at syscall+0x854 sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x76cb346233d0, count: -14
ddb{0}> show registers
rdi 0
rsi 0
rbp 0xffff80002a4800e0
rbx 0xc
rdx 0
rcx 0xffff80002ccbea68
rax 0
r8 0xffffffffffffffff
r9 0x32a00 acpi_pdirpa+0x1e871
r10 0x511c0741e2ae995
r11 0x965e5f4ad267e8b2
r12 0
r13 0x3
r14 0xffff800000e38280
r15 0xffff8000006ac000
rip 0xffffffff81f993ef igmp_leavegroup+0xaf
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff80002a4800b0
ss 0x10
igmp_leavegroup+0xaf: movl 0x4(%rax),%r12d
ddb{0}> show proc
PROC (syz-executor.0) tid=93848 pid=37973 tcnt=1 stat=onproc
flags process=8001008<EXITING,SINGLEEXIT> proc=2000<WEXIT>
runpri=32, usrpri=78, slppri=32, nice=20
wchan=0x0, wmesg=, ps_single=0xffff80002ccbea68
forw=0xffffffffffffffff, list=0xffff8000fffeea78,0xffff80002a156fb0
process=0xffff80002a159638 user=0xffff80002a47b000, vmspace=0xfffffd806b8caa68
estcpu=28, cpticks=1, pctcpu=0.5, user=0, sys=0, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
10923 102233 35824 0 3 0x8000082 piperd syz-executor.1
81109 517363 46291 0 3 0x8000080 nanoslp syz-executor.2
81109 353302 46291 0 3 0xc000080 msgwait syz-executor.2
81109 295062 46291 0 3 0xc000080 fsleep syz-executor.2
97211 488387 79657 0 3 0x8000080 nanoslp syz-executor.7
97211 61294 79657 0 3 0xc000080 dtread syz-executor.7
97211 144748 79657 0 3 0xc000080 fsleep syz-executor.7
49687 151211 1 0 3 0x18100083 ttyin getty
79657 360298 35824 0 3 0x8000082 nanoslp syz-executor.7
70844 465324 0 0 3 0x14200 acct acct
48196 202784 0 0 3 0x14200 bored sosplice
85140 480998 0 0 3 0x14280 nfsidl nfsio
67289 228084 0 0 3 0x14280 nfsidl nfsio
61680 77603 0 0 3 0x14280 nfsidl nfsio
76813 71234 0 0 3 0x14280 nfsidl nfsio
59097 183429 0 0 3 0x14280 nfsidl nfsio
69867 47815 0 0 3 0x14280 nfsidl nfsio
6083 311961 0 0 3 0x14280 nfsidl nfsio
65812 393298 0 0 3 0x14280 nfsidl nfsio
67752 44701 0 0 3 0x14280 nfsidl nfsio
3015 190666 0 0 3 0x14280 nfsidl nfsio
51404 26461 0 0 3 0x14280 nfsidl nfsio
2168 391151 0 0 3 0x14280 nfsidl nfsio
68446 400861 0 0 3 0x14280 nfsidl nfsio
39127 96369 0 0 3 0x14280 nfsidl nfsio
64853 500570 0 0 3 0x14280 nfsidl nfsio
45156 44896 0 0 3 0x14280 nfsidl nfsio
69293 164930 0 0 3 0x14280 nfsidl nfsio
2826 300803 0 0 3 0x14280 nfsidl nfsio
86956 236483 0 0 3 0x14280 nfsidl nfsio
77577 178713 0 0 3 0x14280 nfsidl nfsio
83155 97797 35824 0 3 0x8000082 piperd syz-executor.6
92315 435241 35824 0 3 0x8000082 piperd syz-executor.4
37063 325674 35824 0 3 0x8000082 piperd syz-executor.3
46291 59026 35824 0 3 0x8000082 nanoslp syz-executor.2
14715 506893 35824 0 3 0x8000082 nanoslp syz-executor.0
35824 39322 88102 0 3 0x1a000082 wait syz-fuzzer
35824 451790 88102 0 3 0x1e000082 nanoslp syz-fuzzer
35824 381716 88102 0 3 0x1e000082 thrsleep syz-fuzzer
35824 265186 88102 0 3 0x1e000082 wait syz-fuzzer
35824 344188 88102 0 3 0x1e000082 kqread syz-fuzzer
35824 491356 88102 0 3 0x1e000082 thrsleep syz-fuzzer
35824 404947 88102 0 3 0x1e000082 thrsleep syz-fuzzer
35824 425395 88102 0 3 0x1e000082 wait syz-fuzzer
35824 380280 88102 0 3 0x1e000082 wait syz-fuzzer
35824 331207 88102 0 3 0x1e000082 wait syz-fuzzer
35824 462242 88102 0 3 0x1e000082 thrsleep syz-fuzzer
35824 154220 88102 0 3 0x1e000082 wait syz-fuzzer
35824 268456 88102 0 3 0x1e000082 thrsleep syz-fuzzer
35824 69182 88102 0 3 0x1e000082 thrsleep syz-fuzzer
35824 232666 88102 0 3 0x1e000082 wait syz-fuzzer
35824 308581 88102 0 3 0x1e000082 thrsleep syz-fuzzer
88102 155002 23940 0 3 0x810008a sigsusp ksh
23940 139533 99726 0 3 0x1800009a kqread sshd
99726 419112 1 0 3 0x18000088 kqread sshd
31755 369351 15351 74 3 0x19100092 bpf pflogd
15351 1897 1 0 3 0x18000080 sbwait pflogd
44736 253252 94754 73 3 0x19100090 kqread syslogd
94754 48876 1 0 3 0x18100082 sbwait syslogd
7929 70924 1 0 3 0x18100080 kqread resolvd
76765 99910 77362 77 3 0x18100092 kqread dhcpleased
8266 480632 77362 77 3 0x18100092 kqread dhcpleased
77362 29457 1 0 3 0x18000080 kqread dhcpleased
23071 388045 0 0 3 0x14200 bored smr
75673 499897 0 0 3 0x14200 pgzero zerothread
69068 73161 0 0 3 0x14200 aiodoned aiodoned
25067 253762 0 0 3 0x14200 syncer update
74884 70452 0 0 3 0x14200 cleaner cleaner
67394 212798 0 0 3 0x14200 reaper reaper
34955 196180 0 0 3 0x14200 pgdaemon pagedaemon
49116 417174 0 0 3 0x14200 bored viomb
97863 353594 0 0 3 0x40014200 acpi0 acpi0
21324 413449 0 0 7 0x40014200 idle1
60744 1968 0 0 3 0x14200 bored softnet3
19777 514289 0 0 3 0x14200 bored softnet2
10878 196834 0 0 3 0x14200 bored softnet1
39562 315861 0 0 3 0x14200 bored softnet0
89947 182745 0 0 3 0x14200 bored systqmp
12115 167683 0 0 3 0x14200 bored systq
17447 400809 0 0 3 0x14200 tmoslp softclockmp
58159 430713 0 0 3 0x40014200 tmoslp softclock
34732 41033 0 0 3 0x40014200 idle0
1 190372 0 0 3 0x8000082 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10188 6511K 6733K 166960K 11455 0
pcb 15 12K 13K 166960K 70 0
rtable 168 9K 10K 166960K 526 0
pf 37 10K 10K 166960K 67 0
ifaddr 36 13K 15K 166960K 73 0
ifgroup 64 2K 2K 166960K 95 0
sysctl 2 0K 0K 166960K 2 0
counters 68 36K 37K 166960K 86 0
ioctlops 0 0K 4K 166960K 1528 0
iov 0 0K 16K 166960K 39 0
mount 1 1K 1K 166960K 1 0
log 0 0K 0K 166960K 4 0
vnodes 1375 87K 87K 166960K 1562 0
UFS quota 1 32K 32K 166960K 1 0
UFS mount 5 36K 36K 166960K 5 0
shm 2 1K 9K 166960K 9 0
VM map 2 1K 1K 166960K 2 0
sem 12 0K 0K 166960K 28 0
dirhash 12 2K 2K 166960K 15 0
ACPI 1697 195K 286K 166960K 12548 0
file desc 12 41K 85K 166960K 583 0
sigio 0 0K 0K 166960K 7 0
proc 72 91K 128K 166960K 675 0
subproc 91 5K 6K 166960K 156 0
NFS srvsock 1 0K 0K 166960K 1 0
NFS daemon 1 16K 16K 166960K 1 0
ip_moptions 2 0K 0K 166960K 61 0
in_multi 62 4K 7K 166960K 161 0
ether_multi 1 0K 0K 166960K 2 0
mrt 0 0K 0K 166960K 3 0
ISOFS mount 1 32K 32K 166960K 1 0
MSDOSFS mount 1 16K 16K 166960K 1 0
ttys 49 228K 228K 166960K 49 0
exec 0 0K 1K 166960K 461 0
tdb 3 0K 0K 166960K 3 0
VM swap 8 62K 64K 166960K 10 0
UVM amap 274 85K 95K 166960K 7425 0
UVM aobj 5 2K 2K 166960K 5 0
pinsyscall 36 72K 108K 166960K 1867 0
memdesc 1 4K 4K 166960K 1 0
crypto data 1 1K 1K 166960K 1 0
ip6_options 0 0K 1K 166960K 26 0
NDP 16 0K 2K 166960K 48 0
temp 53 6807K 6874K 166960K 12697 0
kqueue 12 18K 26K 166960K 88 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 67 0 64 1 0 1 1 0 8 0
rtentry 112 166 0 93 4 0 4 4 0 8 0
unpcb 144 385 0 368 3 1 2 2 0 8 1
syncache 336 6 0 6 1 1 0 1 0 8 0
tcpqe 32 142 0 142 2 2 0 1 0 8 0
tcpcb 808 161 0 153 2 0 2 2 0 8 0
arp 120 27 0 17 1 0 1 1 0 8 0
inpcb 392 657 0 646 9 0 9 9 0 8 7
nd6 136 40 0 25 1 0 1 1 0 8 0
pkpcb 40 1 0 1 1 1 0 1 0 8 0
kcovpl 48 12 0 5 1 0 1 1 0 8 0
ppxss 1168 3 0 3 2 1 1 1 0 8 1
pffrag 232 4 0 0 1 0 1 1 0 482 0
pffrnode 88 4 0 0 1 0 1 1 0 8 0
pffrent 40 6 0 2 1 0 1 1 0 8 0
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 47 0 11 1 0 1 1 0 8 0
pfstkey 128 47 0 11 2 0 2 2 0 8 0
pfstate 376 47 0 11 4 0 4 4 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 690 0 365 29 3 26 29 0 8 5
art_table 32 691 0 365 4 0 4 4 0 8 0
art_node 16 165 0 99 1 0 1 1 0 8 0
sysvmsgpl 40 3 0 3 1 0 1 1 0 8 1
semupl 112 2 0 2 1 1 0 1 0 8 0
semapl 112 26 0 16 1 0 1 1 0 8 0
shmpl 112 2 0 0 1 0 1 1 0 8 0
dirhash 1024 19 0 2 3 0 3 3 0 8 0
dino2pl 256 2191 0 666 96 0 96 96 0 8 0
ffsino 272 2191 0 666 103 0 103 103 0 8 0
nchpl 144 3063 0 1327 67 0 67 67 0 8 0
uvmvnodes 80 2427 0 0 50 0 50 50 0 8 0
vnodes 216 2427 0 0 135 0 135 135 0 8 0
namei 1024 10253 0 10253 3 2 1 3 0 8 1
percpumem 16 57 0 9 1 0 1 1 0 8 0
vcpupl 2048 34 0 0 5 0 5 5 0 8 0
vmpool 696 34 0 0 4 0 4 4 0 8 0
kstatmem 264 46 0 18 3 0 3 3 0 8 0
scxspl 216 10897 0 10897 10 8 2 8 1 8 2
plimitpl 152 74 0 59 1 0 1 1 0 8 0
sigapl 424 915 0 850 9 0 9 9 0 8 0
futexpl 64 5699 0 5697 1 0 1 1 0 8 0
knotepl 120 164 0 0 5 0 5 5 0 8 0
kqueuepl 216 190 0 182 1 0 1 1 0 8 0
pipepl 320 206 0 181 3 0 3 3 0 8 0
fdescpl 496 875 0 850 5 0 5 5 0 8 0
filepl 152 4368 0 4144 13 0 13 13 0 8 3
lockfpl 104 92 0 90 1 0 1 1 0 8 0
lockfspl 48 42 0 40 1 0 1 1 0 8 0
sessionpl 144 29 0 13 1 0 1 1 0 8 0
pgrppl 48 36 0 19 1 0 1 1 0 8 0
ucredpl 104 376 0 363 1 0 1 1 0 8 0
zombiepl 144 851 0 850 1 0 1 1 0 8 0
processpl 1136 915 0 850 6 0 6 6 0 8 0
procpl 656 1435 0 1351 9 0 9 9 0 8 0
srpgc 96 6 0 6 2 1 1 1 0 8 1
sosppl 168 9 0 9 2 1 1 1 0 8 1
sockpl 584 1121 0 1090 9 0 9 9 0 8 6
mcl64k 65536 5 0 0 1 0 1 1 0 8 0
mcl16k 16384 5 0 0 1 0 1 1 0 8 0
mcl12k 12288 5 0 0 1 0 1 1 0 8 0
mcl9k 9216 1 0 0 1 0 1 1 0 8 0
mcl8k 8192 6 0 0 1 0 1 1 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 369 0 0 47 0 47 47 0 8 0
mtagpl 96 7 0 0 1 0 1 1 0 8 0
mbufpl 256 387 0 0 25 0 25 25 0 8 0
bufpl 280 5192 0 189 358 0 358 358 0 8 0
anonpl 24 280228 0 274612 68 4 64 67 0 186 13
amapchunkpl 152 23974 0 23384 31 0 31 31 0 158 2
amappl16 200 8234 0 8098 27 12 15 23 0 8 6
amappl15 192 14 0 14 1 1 0 1 0 8 0
amappl14 184 172 0 156 2 1 1 2 0 8 0
amappl13 176 13 0 13 1 1 0 1 0 8 0
amappl12 168 1622 0 1591 4 2 2 3 0 8 0
amappl11 160 80 0 66 1 0 1 1 0 8 0
amappl10 152 60 0 52 1 0 1 1 0 8 0
amappl9 144 449 0 447 1 0 1 1 0 8 0
amappl8 136 188 0 134 3 0 3 3 0 8 0
amappl7 128 77 0 64 1 0 1 1 0 8 0
amappl6 120 478 0 460 2 1 1 2 0 8 0
amappl5 112 195 0 180 1 0 1 1 0 8 0
amappl4 104 600 0 557 3 1 2 3 0 8 0
amappl3 96 4162 0 4096 3 0 3 3 0 8 0
amappl2 88 1267 0 1196 4 2 2 4 0 8 0
amappl1 80 11693 0 11161 23 10 13 23 0 8 0
amappl 88 6804 0 6631 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 4 0 0 1 0 1 1 0 8 0
uaddrrnd 24 909 0 850 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 909 0 850 1 0 1 1 0 8 0
vmmpekpl 168 11194 0 11129 4 0 4 4 0 8 0
vmmpepl 168 76177 0 74298 121 12 109 121 0 357 14
vmsppl 440 908 0 850 9 1 8 8 0 8 0
rwobjpl 56 29467 0 25890 54 2 52 52 0 8 0
pdppl 4096 1825 0 1734 138 37 101 103 0 8 10
pvpl 32 49100 0 0 396 0 396 396 0 265 0
pmappl 248 908 0 850 5 0 5 5 0 8 0
extentpl 40 56 0 38 1 0 1 1 0 8 0
phpool 112 471 0 46 13 0 13 13 0 8 0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
igmp_leavegroup(ffff800000e38280,ffff8000006ac000) at igmp_leavegroup+0xaf sys/netinet/igmp.c:512
in_delmulti(ffff800000e38280) at in_delmulti+0xd3 sys/netinet/in.c:908
ip_freemoptions(ffff8000006bc420) at ip_freemoptions+0x5d sys/netinet/ip_output.c:1737
in_pcbdetach(fffffd80771fe008) at in_pcbdetach+0x97 sys/netinet/in_pcb.c:606
udp_detach(ffff800000e2a258) at udp_detach+0x3f sys/netinet/udp_usrreq.c:1139
soclose(ffff800000e2a258,0) at soclose+0x83 pru_detach sys/sys/protosw.h:283 [inline]
soclose(ffff800000e2a258,0) at soclose+0x83 sys/kern/uipc_socket.c:410
soo_close(fffffd8068a4b308,ffff80002ccbea68) at soo_close+0x44
fdrop(fffffd8068a4b308,ffff80002ccbea68) at fdrop+0xd5 sys/kern/kern_descrip.c:1274
closef(fffffd8068a4b308,ffff80002ccbea68) at closef+0x120 sys/kern/kern_descrip.c:1258
fdfree(ffff80002ccbea68) at fdfree+0xe4 sys/kern/kern_descrip.c:1190
exit1(ffff80002ccbea68,0,0,1) at exit1+0x38a sys/kern/kern_exit.c:199
sys_exit(ffff80002ccbea68,ffff80002a480540,ffff80002a480490) at sys_exit+0x1a sys/kern/kern_exit.c:89
syscall(ffff80002a480540) at syscall+0x854 mi_syscall sys/sys/syscall_mi.h:180 [inline]
syscall(ffff80002a480540) at syscall+0x854 sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x76cb346233d0, count: -14
ddb{0}> machine ddbcpu 1
Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp
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
acpicpu_idle() at acpicpu_idle+0x2f1 sys/dev/acpi/acpicpu.c:1206
sched_idle(ffff800029cebff0) at sched_idle+0x41d sys/kern/kern_sched.c:183
end trace frame: 0x0, count: 10
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
acpicpu_idle() at acpicpu_idle+0x2f1 sys/dev/acpi/acpicpu.c:1206
sched_idle(ffff800029cebff0) at sched_idle+0x41d sys/kern/kern_sched.c:183
end trace frame: 0x0, 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.

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

syzbot

unread,
Apr 10, 2024, 11:09:22 PMApr 10
to syzkaller-o...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: d11f3b71804f When rewriting an ELF header (i.e. in strip a..
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=11d815bd180000
kernel config: https://syzkaller.appspot.com/x/.config?x=1bc15e68cd2a49e5
dashboard link: https://syzkaller.appspot.com/bug?extid=2f24ed6c8ddb2d6bb22c
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=169d2cf3180000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1288db75180000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/2f191a96b5f8/disk-d11f3b71.raw.xz
bsd.gdb: https://storage.googleapis.com/syzbot-assets/9fd39a0f760d/bsd-d11f3b71.gdb.xz
kernel image: https://storage.googleapis.com/syzbot-assets/6bb55bcdc663/kernel-d11f3b71.xz

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

uvm_fault(0xfffffd80074a6158, 0x4, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at igmp_leavegroup+0xaf: movl 0x4(%rax),%r12d
TID PID UID PRFLAGS PFLAGS CPU COMMAND
igmp_leavegroup(ffff800000dcbe00,ffff8000006ab000) at igmp_leavegroup+0xaf sys/netinet/igmp.c:512
in_delmulti(ffff800000dcbe00) at in_delmulti+0xd3 sys/netinet/in.c:908
ip_freemoptions(ffff8000006ba790) at ip_freemoptions+0x5d sys/netinet/ip_output.c:1737
in_pcbdetach(fffffd806ed65168) at in_pcbdetach+0x97 sys/netinet/in_pcb.c:606
udp_detach(fffffd806e5f4948) at udp_detach+0x3f sys/netinet/udp_usrreq.c:1139
soclose(fffffd806e5f4948,0) at soclose+0x80 pru_detach sys/sys/protosw.h:283 [inline]
soclose(fffffd806e5f4948,0) at soclose+0x80 sys/kern/uipc_socket.c:411
soo_close(fffffd807251a350,ffff80002a5d71f8) at soo_close+0x44
fdrop(fffffd807251a350,ffff80002a5d71f8) at fdrop+0xd5 sys/kern/kern_descrip.c:1274
closef(fffffd807251a350,ffff80002a5d71f8) at closef+0x11b sys/kern/kern_descrip.c:1258
fdfree(ffff80002a5d71f8) at fdfree+0xe3 sys/kern/kern_descrip.c:1190
exit1(ffff80002a5d71f8,0,0,1) at exit1+0x371 sys/kern/kern_exit.c:199
sys_exit(ffff80002a5d71f8,ffff80002a6650e0,ffff80002a665030) at sys_exit+0x1a sys/kern/kern_exit.c:89
syscall(ffff80002a6650e0) at syscall+0x72a sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f5796969dd0, count: 1
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: uvm_fault(0xfffffd80074a6158, 0x4, 0, 1) -> e
ddb> trace
igmp_leavegroup(ffff800000dcbe00,ffff8000006ab000) at igmp_leavegroup+0xaf sys/netinet/igmp.c:512
in_delmulti(ffff800000dcbe00) at in_delmulti+0xd3 sys/netinet/in.c:908
ip_freemoptions(ffff8000006ba790) at ip_freemoptions+0x5d sys/netinet/ip_output.c:1737
in_pcbdetach(fffffd806ed65168) at in_pcbdetach+0x97 sys/netinet/in_pcb.c:606
udp_detach(fffffd806e5f4948) at udp_detach+0x3f sys/netinet/udp_usrreq.c:1139
soclose(fffffd806e5f4948,0) at soclose+0x80 pru_detach sys/sys/protosw.h:283 [inline]
soclose(fffffd806e5f4948,0) at soclose+0x80 sys/kern/uipc_socket.c:411
soo_close(fffffd807251a350,ffff80002a5d71f8) at soo_close+0x44
fdrop(fffffd807251a350,ffff80002a5d71f8) at fdrop+0xd5 sys/kern/kern_descrip.c:1274
closef(fffffd807251a350,ffff80002a5d71f8) at closef+0x11b sys/kern/kern_descrip.c:1258
fdfree(ffff80002a5d71f8) at fdfree+0xe3 sys/kern/kern_descrip.c:1190
exit1(ffff80002a5d71f8,0,0,1) at exit1+0x371 sys/kern/kern_exit.c:199
sys_exit(ffff80002a5d71f8,ffff80002a6650e0,ffff80002a665030) at sys_exit+0x1a sys/kern/kern_exit.c:89
syscall(ffff80002a6650e0) at syscall+0x72a sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f5796969dd0, count: -14
ddb> show registers
rdi 0
rsi 0
rbp 0xffff80002a664c80
rbx 0x3
rdx 0
rcx 0x1
rax 0
r8 0x90
r9 0x1
r10 0x9ef3a67c3d6258f9
r11 0xd1c026ab436aaa58
r12 0
r13 0x3
r14 0xffff800000dcbe00
r15 0xffff8000006ab000
rip 0xffffffff8212401f igmp_leavegroup+0xaf
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff80002a664c50
ss 0x10
igmp_leavegroup+0xaf: movl 0x4(%rax),%r12d
ddb> show proc
PROC (syz-executor3315967969) tid=99242 pid=92189 tcnt=1 stat=onproc
flags process=8000008<EXITING> proc=2000<WEXIT>
runpri=51, usrpri=51, slppri=24, nice=20
wchan=0x0, wmesg=, ps_single=0x0
forw=0xffffffffffffffff, list=0xffff80002a5d6f68,0xffffffff82d9cde0
process=0xffff8000ffff6e20 user=0xffff80002a660000, vmspace=0xfffffd80074a6158
estcpu=1, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0
ddb> ps
PID TID PPID UID S FLAGS WAIT COMMAND
79311 228595 28555 0 3 0x8000082 nanoslp syz-executor3315967969
28555 345265 44603 0 3 0x810008a sigsusp ksh
44603 462161 80234 0 3 0x1800009a kqread sshd
64025 473238 1 0 3 0x18100083 ttyin getty
80234 163259 1 0 3 0x18000088 kqread sshd
80326 431857 99520 73 3 0x19100090 kqread syslogd
99520 413985 1 0 3 0x18100082 sbwait syslogd
91323 230560 1 0 3 0x18100080 kqread resolvd
3039 338423 48347 77 3 0x18100092 kqread dhcpleased
23154 137822 48347 77 3 0x18100092 kqread dhcpleased
48347 393370 1 0 3 0x18000080 kqread dhcpleased
25344 469061 0 0 3 0x14200 bored smr
94621 30141 0 0 2 0x14200 zerothread
35860 162655 0 0 3 0x14200 aiodoned aiodoned
99344 270525 0 0 3 0x14200 syncer update
74942 463036 0 0 3 0x14200 cleaner cleaner
17363 160214 0 0 3 0x14200 reaper reaper
54375 41460 0 0 3 0x14200 pgdaemon pagedaemon
3953 40450 0 0 3 0x14200 bored viomb
36774 152891 0 0 3 0x40014200 acpi0 acpi0
12615 119697 0 0 3 0x14200 bored softnet3
42500 74475 0 0 3 0x14200 bored softnet2
72144 87449 0 0 3 0x14200 bored softnet1
22866 352107 0 0 3 0x14200 bored softnet0
68329 503570 0 0 3 0x14200 bored systqmp
76706 189639 0 0 3 0x14200 bored systq
10716 115604 0 0 3 0x40014200 tmoslp softclock
19542 418354 0 0 3 0x40014200 idle0
1 122511 0 0 3 0x8000082 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 10131 6381K 6412K 166960K 11209 0
pcb 15 10K 10K 166960K 15 0
rtable 58 1K 2K 166960K 110 0
pf 12 6K 6K 166960K 12 0
ifaddr 11 5K 5K 166960K 11 0
ifgroup 17 1K 1K 166960K 17 0
counters 22 16K 16K 166960K 22 0
ioctlops 0 0K 2K 166960K 21 0
mount 1 1K 1K 166960K 1 0
log 0 0K 0K 166960K 4 0
vnodes 1259 79K 79K 166960K 1275 0
UFS quota 1 32K 32K 166960K 1 0
UFS mount 5 36K 36K 166960K 5 0
shm 2 1K 1K 166960K 2 0
VM map 2 1K 1K 166960K 2 0
sem 2 0K 0K 166960K 2 0
dirhash 12 2K 2K 166960K 12 0
ACPI 1697 195K 286K 166960K 12548 0
file desc 1 0K 0K 166960K 1 0
proc 55 58K 59K 166960K 246 0
NFS srvsock 1 0K 0K 166960K 1 0
NFS daemon 1 16K 16K 166960K 1 0
ip_moptions 2 0K 0K 166960K 2 0
in_multi 12 0K 0K 166960K 12 0
ether_multi 1 0K 0K 166960K 1 0
ISOFS mount 1 32K 32K 166960K 1 0
MSDOSFS mount 1 16K 16K 166960K 1 0
ttys 25 122K 122K 166960K 25 0
exec 0 0K 1K 166960K 243 0
tdb 3 0K 0K 166960K 3 0
VM swap 8 62K 64K 166960K 10 0
UVM amap 96 4K 6K 166960K 2242 0
UVM aobj 3 2K 2K 166960K 3 0
pinsyscall 22 44K 48K 166960K 840 0
memdesc 1 4K 4K 166960K 1 0
crypto data 1 1K 1K 166960K 1 0
NDP 3 0K 0K 166960K 3 0
temp 1 6788K 6852K 166960K 2789 0
kqueue 11 16K 18K 166960K 24 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 20 0 17 1 0 1 1 0 8 0
rtentry 112 23 0 1 1 0 1 1 0 8 0
unpcb 144 34 0 20 1 0 1 1 0 8 0
syncache 336 5 0 5 1 0 1 1 0 8 1
tcpqe 32 209 0 209 1 0 1 1 0 8 1
tcpcb 808 8 0 5 1 0 1 1 0 8 0
arp 88 2 0 0 1 0 1 1 0 8 0
inpcb 360 28 0 20 1 0 1 1 0 8 0
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 96 0 0 6 0 6 6 0 8 0
art_table 32 97 0 0 1 0 1 1 0 8 0
art_node 16 22 0 2 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 1502 0 40 92 0 92 92 0 8 0
ffsino 240 1502 0 40 86 0 86 86 0 8 0
nchpl 144 1686 0 47 61 0 61 61 0 8 0
uvmvnodes 80 1511 0 0 31 0 31 31 0 8 0
vnodes 216 1511 0 0 84 0 84 84 0 8 0
namei 1024 4341 0 4341 1 0 1 1 0 8 1
kstatmem 264 6 0 0 1 0 1 1 0 8 0
scxspl 216 5155 0 5155 2 0 2 2 1 8 2
plimitpl 152 16 0 10 1 0 1 1 0 8 0
sigapl 424 309 0 279 4 0 4 4 0 8 0
knotepl 120 3657 0 3628 2 0 2 2 0 8 1
kqueuepl 184 21 0 13 1 0 1 1 0 8 0
pipepl 288 87 0 84 1 0 1 1 0 8 0
fdescpl 432 293 0 279 2 0 2 2 0 8 0
filepl 120 1134 0 1077 2 0 2 2 0 8 0
lockfpl 104 6 0 4 1 0 1 1 0 8 0
lockfspl 48 4 0 2 1 0 1 1 0 8 0
sessionpl 144 17 0 9 1 0 1 1 0 8 0
pgrppl 48 17 0 9 1 0 1 1 0 8 0
ucredpl 104 66 0 56 1 0 1 1 0 8 0
zombiepl 144 280 0 279 1 0 1 1 0 8 0
processpl 1072 309 0 279 3 0 3 3 0 8 0
procpl 656 309 0 279 3 0 3 3 0 8 0
sockpl 472 82 0 57 4 0 4 4 0 8 0
mcl8k 8192 4 0 4 1 0 1 1 0 8 1
mcl4k 4096 10 0 10 1 0 1 1 0 8 1
mcl2k 2048 12334 0 12291 31 17 14 31 0 8 8
mtagpl 96 4 0 4 1 0 1 1 0 8 1
mbufpl 256 19845 0 19797 16 4 12 16 0 8 7
bufpl 280 2510 0 95 173 0 173 173 0 8 0
anonpl 24 184012 0 182235 23 0 23 23 0 188 11
amapchunkpl 152 8474 0 8342 7 0 7 7 0 158 1
amappl16 200 5344 0 5344 5 0 5 5 0 8 5
amappl15 192 11 0 11 1 0 1 1 0 8 1
amappl14 184 116 0 107 1 0 1 1 0 8 0
amappl13 176 10 0 10 1 0 1 1 0 8 1
amappl12 168 805 0 793 1 0 1 1 0 8 0
amappl11 160 84 0 74 1 0 1 1 0 8 0
amappl10 152 13 0 13 1 0 1 1 0 8 1
amappl9 144 157 0 157 1 0 1 1 0 8 1
amappl8 136 41 0 39 1 0 1 1 0 8 0
amappl7 128 15 0 14 1 0 1 1 0 8 0
amappl6 120 169 0 159 1 0 1 1 0 8 0
amappl5 112 119 0 107 1 0 1 1 0 8 0
amappl4 104 403 0 374 1 0 1 1 0 8 0
amappl3 96 2309 0 2285 1 0 1 1 0 8 0
amappl2 88 581 0 528 2 0 2 2 0 8 0
amappl1 80 8793 0 8392 10 0 10 10 0 8 1
amappl 88 1940 0 1890 2 0 2 2 0 92 0
dma4096 4096 1 0 1 1 0 1 1 0 8 1
dma1024 1024 1 0 0 1 0 1 1 0 8 0
dma256 256 6 0 6 1 0 1 1 0 8 1
dma128 128 253 0 253 1 0 1 1 0 8 1
dma64 64 6 0 6 1 0 1 1 0 8 1
dma32 32 7 0 7 1 0 1 1 0 8 1
dma16 16 18 0 17 1 0 1 1 0 8 0
aobjpl 72 2 0 0 1 0 1 1 0 8 0
uaddrrnd 24 293 0 279 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 293 0 279 1 0 1 1 0 8 0
vmmpekpl 168 5527 0 5511 1 0 1 1 0 8 0
vmmpepl 168 34636 0 33730 46 0 46 46 0 357 2
vmsppl 344 292 0 279 2 0 2 2 0 8 0
rwobjpl 24 19049 0 16941 14 0 14 14 0 8 1
pdppl 4096 592 0 558 48 14 34 40 0 8 0
pvpl 32 276129 0 272017 52 0 52 52 0 265 15
pmappl 216 292 0 279 1 0 1 1 0 8 0
extentpl 40 56 0 38 1 0 1 1 0 8 0
phpool 112 292 0 35 9 0 9 9 0 8 1
ddb> machine ddbcpu 0
No such command
ddb> trace
igmp_leavegroup(ffff800000dcbe00,ffff8000006ab000) at igmp_leavegroup+0xaf sys/netinet/igmp.c:512
in_delmulti(ffff800000dcbe00) at in_delmulti+0xd3 sys/netinet/in.c:908
ip_freemoptions(ffff8000006ba790) at ip_freemoptions+0x5d sys/netinet/ip_output.c:1737
in_pcbdetach(fffffd806ed65168) at in_pcbdetach+0x97 sys/netinet/in_pcb.c:606
udp_detach(fffffd806e5f4948) at udp_detach+0x3f sys/netinet/udp_usrreq.c:1139
soclose(fffffd806e5f4948,0) at soclose+0x80 pru_detach sys/sys/protosw.h:283 [inline]
soclose(fffffd806e5f4948,0) at soclose+0x80 sys/kern/uipc_socket.c:411
soo_close(fffffd807251a350,ffff80002a5d71f8) at soo_close+0x44
fdrop(fffffd807251a350,ffff80002a5d71f8) at fdrop+0xd5 sys/kern/kern_descrip.c:1274
closef(fffffd807251a350,ffff80002a5d71f8) at closef+0x11b sys/kern/kern_descrip.c:1258
fdfree(ffff80002a5d71f8) at fdfree+0xe3 sys/kern/kern_descrip.c:1190
exit1(ffff80002a5d71f8,0,0,1) at exit1+0x371 sys/kern/kern_exit.c:199
sys_exit(ffff80002a5d71f8,ffff80002a6650e0,ffff80002a665030) at sys_exit+0x1a sys/kern/kern_exit.c:89
syscall(ffff80002a6650e0) at syscall+0x72a sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f5796969dd0, count: -14
ddb> machine ddbcpu 1
No such command
ddb> trace
igmp_leavegroup(ffff800000dcbe00,ffff8000006ab000) at igmp_leavegroup+0xaf sys/netinet/igmp.c:512
in_delmulti(ffff800000dcbe00) at in_delmulti+0xd3 sys/netinet/in.c:908
ip_freemoptions(ffff8000006ba790) at ip_freemoptions+0x5d sys/netinet/ip_output.c:1737
in_pcbdetach(fffffd806ed65168) at in_pcbdetach+0x97 sys/netinet/in_pcb.c:606
udp_detach(fffffd806e5f4948) at udp_detach+0x3f sys/netinet/udp_usrreq.c:1139
soclose(fffffd806e5f4948,0) at soclose+0x80 pru_detach sys/sys/protosw.h:283 [inline]
soclose(fffffd806e5f4948,0) at soclose+0x80 sys/kern/uipc_socket.c:411
soo_close(fffffd807251a350,ffff80002a5d71f8) at soo_close+0x44
fdrop(fffffd807251a350,ffff80002a5d71f8) at fdrop+0xd5 sys/kern/kern_descrip.c:1274
closef(fffffd807251a350,ffff80002a5d71f8) at closef+0x11b sys/kern/kern_descrip.c:1258
fdfree(ffff80002a5d71f8) at fdfree+0xe3 sys/kern/kern_descrip.c:1190
exit1(ffff80002a5d71f8,0,0,1) at exit1+0x371 sys/kern/kern_exit.c:199
sys_exit(ffff80002a5d71f8,ffff80002a6650e0,ffff80002a665030) at sys_exit+0x1a sys/kern/kern_exit.c:89
syscall(ffff80002a6650e0) at syscall+0x72a sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f5796969dd0, count: -14


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
Reply all
Reply to author
Forward
0 new messages