uvm_fault: igmp_leavegroup (3)

2 views
Skip to first unread message

syzbot

unread,
Dec 26, 2021, 7:54:20 PM12/26/21
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: b5f6de732cb5 zap doubled semicolon
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=12943045b00000
kernel config: https://syzkaller.appspot.com/x/.config?x=fe55924c11e64b0a
dashboard link: https://syzkaller.appspot.com/bug?extid=146823a676b7bea83649

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+146823...@syzkaller.appspotmail.com

uvm_fault(0xfffffd807cdc7770, 0x4, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at igmp_leavegroup+0x80: movl 0x4(%rax),%r12d
TID PID UID PRFLAGS PFLAGS CPU COMMAND
igmp_leavegroup(ffff800000c13600) at igmp_leavegroup+0x80 sys/netinet/igmp.c:521
in_delmulti(ffff800000c13600) at in_delmulti+0xb7 sys/netinet/in.c:920
ip_freemoptions(ffff800000be3510) at ip_freemoptions+0x4d sys/netinet/ip_output.c:1760
in_pcbdetach(fffffd8064606278) at in_pcbdetach+0xf3 sys/netinet/in_pcb.c:584
udp_detach(fffffd8064607568) at udp_detach+0x3b sys/netinet/udp_usrreq.c:1263
soclose(fffffd8064607568,0) at soclose+0x245 sys/kern/uipc_socket.c:361
soo_close(fffffd8067f60a68,ffff800026551ce0) at soo_close+0x40
fdrop(fffffd8067f60a68,ffff800026551ce0) at fdrop+0xc7 sys/kern/kern_descrip.c:1279
closef(fffffd8067f60a68,ffff800026551ce0) at closef+0x117 sys/kern/kern_descrip.c:1263
fdfree(ffff800026551ce0) at fdfree+0xf3 sys/kern/kern_descrip.c:1195
exit1(ffff800026551ce0,0,0,1) at exit1+0x35d sys/kern/kern_exit.c:202
sys_exit(ffff800026551ce0,ffff800027fb5a10,ffff800027fb5a70) at sys_exit+0x16 sys/kern/kern_exit.c:95
syscall(ffff800027fb5ae0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7fffffafc0, 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(0xfffffd807cdc7770, 0x4, 0, 1) -> e
ddb> trace
igmp_leavegroup(ffff800000c13600) at igmp_leavegroup+0x80 sys/netinet/igmp.c:521
in_delmulti(ffff800000c13600) at in_delmulti+0xb7 sys/netinet/in.c:920
ip_freemoptions(ffff800000be3510) at ip_freemoptions+0x4d sys/netinet/ip_output.c:1760
in_pcbdetach(fffffd8064606278) at in_pcbdetach+0xf3 sys/netinet/in_pcb.c:584
udp_detach(fffffd8064607568) at udp_detach+0x3b sys/netinet/udp_usrreq.c:1263
soclose(fffffd8064607568,0) at soclose+0x245 sys/kern/uipc_socket.c:361
soo_close(fffffd8067f60a68,ffff800026551ce0) at soo_close+0x40
fdrop(fffffd8067f60a68,ffff800026551ce0) at fdrop+0xc7 sys/kern/kern_descrip.c:1279
closef(fffffd8067f60a68,ffff800026551ce0) at closef+0x117 sys/kern/kern_descrip.c:1263
fdfree(ffff800026551ce0) at fdfree+0xf3 sys/kern/kern_descrip.c:1195
exit1(ffff800026551ce0,0,0,1) at exit1+0x35d sys/kern/kern_exit.c:202
sys_exit(ffff800026551ce0,ffff800027fb5a10,ffff800027fb5a70) at sys_exit+0x16 sys/kern/kern_exit.c:95
syscall(ffff800027fb5ae0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7fffffafc0, count: -14
ddb> show registers
rdi 0
rsi 0
rbp 0xffff800027fb5690
rbx 0
rdx 0
rcx 0x1
rax 0
r8 0
r9 0
r10 0x43ca74f62c71ff6
r11 0x1daef7eb4ce99143
r12 0
r13 0x3
r14 0xffff8000006b5000
r15 0xffff800000c13600
rip 0xffffffff817be7c0 igmp_leavegroup+0x80
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff800027fb5660
ss 0x10
igmp_leavegroup+0x80: movl 0x4(%rax),%r12d
ddb> show proc
PROC (syz-executor.3) pid=508401 stat=onproc
flags process=1008<EXITING,SINGLEEXIT> proc=2000<WEXIT>
pri=32, usrpri=83, nice=20
forw=0xffffffffffffffff, list=0xffff800026550000,0xffffffff829059d8
process=0xffff80002652a410 user=0xffff800027fb0000, vmspace=0xfffffd807cdc7770
estcpu=36, cpticks=3, pctcpu=0.0
user=0, sys=1, intr=0
ddb> ps
PID TID PPID UID S FLAGS WAIT COMMAND
83452 345929 1556 0 2 0 syz-executor.0
83452 306941 1556 0 3 0x4000080 fsleep syz-executor.0
92300 81531 16577 0 2 0 syz-executor.2
92300 463504 16577 0 3 0x4000080 fsleep syz-executor.2
16577 118530 92931 0 3 0x82 nanoslp syz-executor.2
68252 379315 92931 0 3 0x82 nanoslp syz-executor.3
1556 13783 92931 0 3 0x82 nanoslp syz-executor.0
20959 192358 92931 0 3 0x82 nanoslp syz-executor.1
74833 24682 0 0 3 0x14200 acct acct
81941 387448 1 0 3 0x100083 ttyin getty
26169 287729 0 0 3 0x14200 bored sosplice
86580 409604 0 0 3 0x14280 nfsidl nfsio
98030 175887 0 0 3 0x14280 nfsidl nfsio
94790 459376 0 0 3 0x14280 nfsidl nfsio
31232 421836 0 0 3 0x14280 nfsidl nfsio
69886 370441 0 0 3 0x14280 nfsidl nfsio
15258 205378 0 0 3 0x14280 nfsidl nfsio
92931 45570 38051 0 3 0x82 kqread syz-fuzzer
92931 128996 38051 0 3 0x4000082 thrsleep syz-fuzzer
92931 38400 38051 0 3 0x4000082 thrsleep syz-fuzzer
92931 44698 38051 0 3 0x4000082 thrsleep syz-fuzzer
92931 511446 38051 0 3 0x4000082 thrsleep syz-fuzzer
92931 327674 38051 0 3 0x4000082 thrsleep syz-fuzzer
92931 498792 38051 0 3 0x4000082 thrsleep syz-fuzzer
38051 61861 82794 0 3 0x10008a sigsusp ksh
82794 109686 65102 0 3 0x9a poll sshd
65102 489660 1 0 3 0x88 poll sshd
38501 253742 35134 73 3 0x100090 kqread syslogd
35134 377990 1 0 3 0x100082 netio syslogd
37606 203071 1 0 3 0x100080 kqread resolvd
64507 374227 27006 77 3 0x100092 kqread dhcpleased
64593 461807 27006 77 3 0x100092 kqread dhcpleased
27006 444400 1 0 3 0x80 kqread dhcpleased
95179 353255 0 0 3 0x14200 bored smr
82718 463842 0 0 2 0x14200 zerothread
30018 58876 0 0 3 0x14200 aiodoned aiodoned
44392 445635 0 0 3 0x14200 syncer update
80292 343771 0 0 3 0x14200 cleaner cleaner
76043 222692 0 0 3 0x14200 reaper reaper
74032 29860 0 0 3 0x14200 pgdaemon pagedaemon
90887 418884 0 0 3 0x14200 bored viomb
11501 156192 0 0 3 0x40014200 acpi0 acpi0
44086 30548 0 0 2 0x14200 softnet
76486 425910 0 0 3 0x14200 bored systqmp
89537 404724 0 0 3 0x14200 bored systq
28528 243077 0 0 3 0x40014200 bored softclock
55543 141125 0 0 3 0x40014200 idle0
1 471600 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 10183 6430K 7508K 78643K 49194 0
pcb 13 20K 25K 78643K 3748 0
rtable 205 28K 29K 78643K 6694 0
ifaddr 80 21K 22K 78643K 2283 0
sysctl 3 1K 1K 78643K 3 0
counters 24 17K 17K 78643K 250 0
ioctlops 0 0K 4K 78643K 13930 0
iov 0 0K 28K 78643K 1438 0
mount 1 1K 1K 78643K 1 0
log 0 0K 0K 78643K 4 0
vnodes 1532 96K 96K 78643K 12988 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 9K 78643K 134 0
VM map 2 0K 0K 78643K 2 0
sem 12 0K 0K 78643K 1509 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1697 195K 286K 78643K 12598 0
file desc 9 29K 41K 78643K 17959 0
sigio 0 0K 0K 78643K 235 0
proc 68 55K 71K 78643K 2089 0
subproc 52 3K 3K 78643K 667 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
ip_moptions 2 0K 0K 78643K 25956 0
in_multi 53 3K 3K 78643K 2241 0
ether_multi 1 0K 0K 78643K 214 0
mrt 1 0K 0K 78643K 21 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 163 731K 731K 78643K 163 0
exec 0 0K 2K 78643K 3247 0
pfkey data 0 0K 0K 78643K 3 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 447 948K 1311K 78643K 216619 0
UVM aobj 131 6K 6K 78643K 131 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 902 0
NDP 11 0K 1K 78643K 373 0
temp 108 4206K 4699K 78643K 116727 0
kqueue 10 14K 22K 78643K 551 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 1774 0 1771 19 18 1 3 0 8 0
rtentry 112 1080 0 1023 2 0 2 2 0 8 0
unpcb 128 11077 0 11064 89 88 1 7 0 8 0
syncache 296 52 0 52 15 15 0 1 0 8 0
tcpqe 32 284 20 284 2 2 0 1 0 8 0
tcpcb 736 4767 0 4755 207 205 2 21 0 8 0
arp 88 111 0 100 1 0 1 1 0 8 0
ipq 40 29 0 29 10 10 0 1 0 8 0
ipqe 40 700 0 700 10 10 0 1 0 8 0
inpcb 304 27651 0 27634 264 257 7 16 0 8 4
rttmr 72 7 0 7 2 2 0 1 0 8 0
ip6q 72 5 0 5 2 2 0 1 0 8 0
ip6af 40 6 0 6 2 2 0 1 0 8 0
nd6 48 218 0 206 1 0 1 1 0 8 0
pkpcb 40 51 0 51 7 7 0 1 0 8 0
kcovpl 48 51 0 47 1 0 1 1 0 8 0
ppxss 1152 61 0 61 11 11 0 1 0 8 0
pfstscr 40 115 0 115 4 4 0 1 0 8 0
pfosfp 40 5 0 4 2 1 1 1 0 8 0
pfosfpen 112 5 0 4 2 1 1 1 0 8 0
pfrktable 1344 1616 0 1587 19 16 3 3 0 8 0
pftag 88 501 0 232 6 0 6 6 0 8 0
pfqueue 264 1730 0 1351 27 1 26 26 0 8 0
pfstitem 24 42 0 42 1 1 0 1 0 8 0
pfstkey 112 194 0 194 4 4 0 1 0 8 0
pfstate 320 97 0 97 4 4 0 1 0 8 0
pfrule 1360 6626 0 6230 34 0 34 34 0 8 0
art_heap8 4096 6 0 5 4 3 1 3 0 8 0
art_heap4 256 3582 0 3339 39 23 16 20 0 8 0
art_table 32 3588 0 3344 5 2 3 3 0 8 0
art_node 16 755 0 707 1 0 1 1 0 8 0
sysvmsgpl 40 18 0 17 4 3 1 1 0 8 0
semapl 112 1507 0 1497 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 25331 0 23859 93 0 93 93 0 8 0
ffsino 240 25331 0 23859 87 0 87 87 0 8 0
nchpl 144 49674 0 48084 61 0 61 61 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 178460 0 178460 7 6 1 2 0 8 1
vcpupl 1984 304 0 0 38 0 38 38 0 8 0
vmpool 528 353 0 49 21 0 21 21 0 8 0
pfiaddrpl 120 851 0 598 8 0 8 8 0 8 0
scsiplug 72 15 0 15 5 5 0 1 0 8 0
scxspl 216 146921 0 146921 18 17 1 8 0 8 1
plimitpl 152 1586 0 1576 1 0 1 1 0 8 0
sigapl 424 18133 0 18092 8 2 6 7 0 8 0
futexpl 64 194822 0 194820 3 2 1 1 0 8 0
knotepl 112 7945 0 7895 4 2 2 4 0 8 0
kqueuepl 184 5479 0 5467 65 64 1 6 0 8 0
pipepl 304 2998 0 2982 85 83 2 11 0 8 0
fdescpl 432 18028 0 18008 3 0 3 3 0 8 0
filepl 120 134438 0 134290 183 175 8 13 0 8 3
lockfpl 104 6931 0 6929 12 11 1 2 0 8 0
lockfspl 48 2518 0 2516 1 0 1 1 0 8 0
sessionpl 144 71 0 59 1 0 1 1 0 8 0
pgrppl 48 105 0 93 1 0 1 1 0 8 0
ucredpl 96 9750 0 9740 1 0 1 1 0 8 0
zombiepl 144 18093 0 18091 1 0 1 1 0 8 0
processpl 1000 18133 0 18091 8 1 7 8 0 8 0
procpl 672 44058 0 44008 27 21 6 8 0 8 0
sosppl 168 90 0 90 16 16 0 1 0 8 0
sockpl 448 40588 0 40554 599 587 12 30 0 8 7
mcl64k 65536 2440 0 2440 24 23 1 1 0 8 1
mcl16k 16384 302 0 302 42 41 1 1 0 8 1
mcl12k 12288 462 0 462 46 45 1 1 0 8 1
mcl9k 9216 189 0 189 39 38 1 1 0 8 1
mcl8k 8192 2507 0 2507 26 25 1 1 0 8 1
mcl4k 4096 1527 0 1527 28 27 1 1 0 8 1
mcl2k2 2112 111 0 111 40 39 1 1 0 8 1
mcl2k 2048 127452 0 127398 44 36 8 18 0 8 0
mtagpl 96 2097 0 2097 24 24 0 10 0 8 0
mbufpl 256 410810 0 410601 1396 1379 17 577 0 8 0
bufpl 288 31279 0 24863 459 0 459 459 0 8 0
anonpl 24 4951002 0 4930028 388 238 150 173 0 188 7
amapchunkpl 152 570948 0 570291 1031 977 54 654 0 158 27
amappl16 200 50203 0 49190 176 119 57 67 0 8 0
amappl15 192 3872 0 3872 7 6 1 1 0 8 1
amappl14 184 4066 0 4063 1 0 1 1 0 8 0
amappl13 176 1344 0 1340 1 0 1 1 0 8 0
amappl12 168 1411 0 1407 1 0 1 1 0 8 0
amappl11 160 1954 0 1944 1 0 1 1 0 8 0
amappl10 152 2278 0 2272 1 0 1 1 0 8 0
amappl9 144 2644 0 2641 1 0 1 1 0 8 0
amappl8 136 5110 0 5035 4 1 3 3 0 8 0
amappl7 128 4027 0 4014 1 0 1 1 0 8 0
amappl6 120 2637 0 2614 1 0 1 1 0 8 0
amappl5 112 16500 0 16484 1 0 1 1 0 8 0
amappl4 104 8111 0 8087 1 0 1 1 0 8 0
amappl3 96 2926 0 2908 1 0 1 1 0 8 0
amappl2 88 4425 0 4374 2 0 2 2 0 8 0
amappl1 80 314225 0 313756 13 2 11 12 0 8 0
amappl 88 215150 0 214898 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 130 0 0 3 0 3 3 0 8 0
uaddrrnd 24 18381 0 18057 2 0 2 2 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 18381 0 18057 2 0 2 2 0 8 0
vmmpekpl 168 106956 0 106895 3 0 3 3 0 8 0
vmmpepl 168 1617458 0 1614149 548 377 171 174 0 357 23
vmsppl 272 18380 0 18057 25 3 22 22 0 8 0
rwobjpl 24 380319 0 372357 59 9 50 50 0 8 0
pdppl 4096 36768 0 36418 454 102 352 352 0 8 2
pvpl 32 8059866 0 8040447 598 378 220 239 0 265 32
pmappl 216 18380 0 18057 18 0 18 18 0 8 0
extentpl 40 57 0 38 1 0 1 1 0 8 0
phpool 112 3574 0 2462 64 32 32 45 0 8 0
ddb> machine ddbcpu 0
No such command
ddb> trace
igmp_leavegroup(ffff800000c13600) at igmp_leavegroup+0x80 sys/netinet/igmp.c:521
in_delmulti(ffff800000c13600) at in_delmulti+0xb7 sys/netinet/in.c:920
ip_freemoptions(ffff800000be3510) at ip_freemoptions+0x4d sys/netinet/ip_output.c:1760
in_pcbdetach(fffffd8064606278) at in_pcbdetach+0xf3 sys/netinet/in_pcb.c:584
udp_detach(fffffd8064607568) at udp_detach+0x3b sys/netinet/udp_usrreq.c:1263
soclose(fffffd8064607568,0) at soclose+0x245 sys/kern/uipc_socket.c:361
soo_close(fffffd8067f60a68,ffff800026551ce0) at soo_close+0x40
fdrop(fffffd8067f60a68,ffff800026551ce0) at fdrop+0xc7 sys/kern/kern_descrip.c:1279
closef(fffffd8067f60a68,ffff800026551ce0) at closef+0x117 sys/kern/kern_descrip.c:1263
fdfree(ffff800026551ce0) at fdfree+0xf3 sys/kern/kern_descrip.c:1195
exit1(ffff800026551ce0,0,0,1) at exit1+0x35d sys/kern/kern_exit.c:202
sys_exit(ffff800026551ce0,ffff800027fb5a10,ffff800027fb5a70) at sys_exit+0x16 sys/kern/kern_exit.c:95
syscall(ffff800027fb5ae0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7fffffafc0, count: -14
ddb> machine ddbcpu 1
No such command
ddb> trace
igmp_leavegroup(ffff800000c13600) at igmp_leavegroup+0x80 sys/netinet/igmp.c:521
in_delmulti(ffff800000c13600) at in_delmulti+0xb7 sys/netinet/in.c:920
ip_freemoptions(ffff800000be3510) at ip_freemoptions+0x4d sys/netinet/ip_output.c:1760
in_pcbdetach(fffffd8064606278) at in_pcbdetach+0xf3 sys/netinet/in_pcb.c:584
udp_detach(fffffd8064607568) at udp_detach+0x3b sys/netinet/udp_usrreq.c:1263
soclose(fffffd8064607568,0) at soclose+0x245 sys/kern/uipc_socket.c:361
soo_close(fffffd8067f60a68,ffff800026551ce0) at soo_close+0x40
fdrop(fffffd8067f60a68,ffff800026551ce0) at fdrop+0xc7 sys/kern/kern_descrip.c:1279
closef(fffffd8067f60a68,ffff800026551ce0) at closef+0x117 sys/kern/kern_descrip.c:1263
fdfree(ffff800026551ce0) at fdfree+0xf3 sys/kern/kern_descrip.c:1195
exit1(ffff800026551ce0,0,0,1) at exit1+0x35d sys/kern/kern_exit.c:202
sys_exit(ffff800026551ce0,ffff800027fb5a10,ffff800027fb5a70) at sys_exit+0x16 sys/kern/kern_exit.c:95
syscall(ffff800027fb5ae0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7fffffafc0, count: -14


---
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.
Reply all
Reply to author
Forward
0 new messages