uvm_fault: ip6_freemoptions

2 views
Skip to first unread message

syzbot

unread,
Jul 17, 2026, 2:37:30 AMJul 17
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 5f0b8e1b9eb7 sync
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=1251db46580000
kernel config: https://syzkaller.appspot.com/x/.config?x=1bc15e68cd2a49e5
dashboard link: https://syzkaller.appspot.com/bug?extid=06aeb6036c2434fc1cd8

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/4781e0ca5ca9/disk-5f0b8e1b.raw.xz
bsd.gdb: https://storage.googleapis.com/syzbot-assets/56b7c8f5c7fc/bsd-5f0b8e1b.gdb.xz
kernel image: https://storage.googleapis.com/syzbot-assets/117b9c9406eb/kernel-5f0b8e1b.xz

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

uvm_fault(0xfffff4806d2b4748, 0x4008, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at ip6_freemoptions+0x65: movq 0x8(%r15),%r13
TID PID UID PRFLAGS PFLAGS CPU COMMAND
ip6_freemoptions(ffff800000c57660) at ip6_freemoptions+0x65 sys/netinet6/ip6_output.c:2147
in_pcbdetach(fffff4806d0c2150) at in_pcbdetach+0x122 sys/netinet/in_pcb.c:608
udp_detach(ffff8000016008b0) at udp_detach+0x5a sys/netinet/udp_usrreq.c:1158
soclose(ffff8000016008b0,0) at soclose+0xad pru_detach sys/sys/protosw.h:281 [inline]
soclose(ffff8000016008b0,0) at soclose+0xad sys/kern/uipc_socket.c:403
soo_close(fffff4806dd691f0,ffff80002f0b0d10) at soo_close+0x56 sys/kern/sys_socket.c:-1
fdrop(fffff4806dd691f0,ffff80002f0b0d10) at fdrop+0x121 sys/kern/kern_descrip.c:1281
closef(fffff4806dd691f0,ffff80002f0b0d10) at closef+0x190 sys/kern/kern_descrip.c:1265
fdfree(ffff80002f0b0d10) at fdfree+0x115 sys/kern/kern_descrip.c:1196
exit1(ffff80002f0b0d10,0,0,1) at exit1+0x595 sys/kern/kern_exit.c:215
sys_exit(ffff80002f0b0d10,ffff80003c907430,ffff80003c907380) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff80003c907430) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80003c907430) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7d93d5e98250, count: 3
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(0xfffff4806d2b4748, 0x4008, 0, 1) -> e
ddb> show kasan
No such command
ddb> trace
ip6_freemoptions(ffff800000c57660) at ip6_freemoptions+0x65 sys/netinet6/ip6_output.c:2147
in_pcbdetach(fffff4806d0c2150) at in_pcbdetach+0x122 sys/netinet/in_pcb.c:608
udp_detach(ffff8000016008b0) at udp_detach+0x5a sys/netinet/udp_usrreq.c:1158
soclose(ffff8000016008b0,0) at soclose+0xad pru_detach sys/sys/protosw.h:281 [inline]
soclose(ffff8000016008b0,0) at soclose+0xad sys/kern/uipc_socket.c:403
soo_close(fffff4806dd691f0,ffff80002f0b0d10) at soo_close+0x56 sys/kern/sys_socket.c:-1
fdrop(fffff4806dd691f0,ffff80002f0b0d10) at fdrop+0x121 sys/kern/kern_descrip.c:1281
closef(fffff4806dd691f0,ffff80002f0b0d10) at closef+0x190 sys/kern/kern_descrip.c:1265
fdfree(ffff80002f0b0d10) at fdfree+0x115 sys/kern/kern_descrip.c:1196
exit1(ffff80002f0b0d10,0,0,1) at exit1+0x595 sys/kern/kern_exit.c:215
sys_exit(ffff80002f0b0d10,ffff80003c907430,ffff80003c907380) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff80003c907430) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80003c907430) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7d93d5e98250, count: -12
ddb> show registers
rdi 0xffff800000c57660
rsi 0
rbp 0xffff80003c9070a0
rbx 0x3
rdx 0
rcx 0xe5d32955d765590b
rax 0xffff80002f0b0d10
r8 0xffffffffffffffff
r9 0
r10 0x8abf9ff24fed91b1
r11 0x2f62b6976fdd0560
r12 0xffff8000015fb900
r13 0x100
r14 0xffff800000c57660
r15 0x4000 __ALIGN_SIZE+0x3000
rip 0xffffffff8206f0f5 ip6_freemoptions+0x65
cs 0x8
rflags 0x10206 __ALIGN_SIZE+0xf206
rsp 0xffff80003c907060
ss 0x10
ip6_freemoptions+0x65: movq 0x8(%r15),%r13
ddb> show proc
PROC (syz-executor) tid=471519 pid=10383 tcnt=0 stat=onproc
flags process=1008<EXITING,SINGLEEXIT> proc=2000<WEXIT>
runpri=32, usrpri=50, slppri=32, nice=20
wchan=0x0, wmesg=, ps_single=0xffff80002f0b0d10 scnt=-1 ecnt=1
forw=0xffffffffffffffff, list=0xffff80002f0b0018,0xffff80002f0b0558
process=0xffff8000314b7618 user=0xffff80003c902000, vmspace=0xfffff4806d2b4748
estcpu=4, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0
ddb> ps
PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND
85982 398734 66356 0 2 0 0 syz-executor
32631 110455 30355 0 2 0x1000000 0 syz-executor
32631 395354 30355 0 3 0x1000000 0x4000080 fsleep syz-executor
83938 349978 75986 0 2 0 0 syz-executor
83938 252672 75986 0 3 0 0x4000080 fsleep syz-executor
45784 255896 80269 0 2 0 0 syz-executor
45784 24376 80269 0 3 0 0x4000080 fsleep syz-executor
10010 490667 48058 0 2 0x10 0 syz-executor
10010 107926 48058 0 3 0x10 0x4000080 fsleep syz-executor
79903 51996 11245 0 2 0 0 syz-executor
79903 141479 11245 0 2 0 0x4000000 syz-executor
80269 484753 23235 0 3 0x2 0x80 nanoslp syz-executor
20674 117204 23235 0 2 0x2 0 syz-executor
48058 278880 23235 0 3 0x2 0x80 nanoslp syz-executor
11245 71711 23235 0 3 0x2 0x80 nanoslp syz-executor
89440 447459 23235 0 3 0x2 0x80 nanoslp syz-executor
66356 482047 23235 0 3 0x2 0x80 nanoslp syz-executor
30355 245567 23235 0 3 0x2 0x80 nanoslp syz-executor
75986 241397 23235 0 2 0x2 0xc80 syz-executor
23235 487104 93570 0 2 0x2 0 syz-executor
93570 427737 47432 0 3 0x100002 0x88 sigsusp ksh
47432 91242 89848 0 3 0x10 0x88 kqread sshd-session
89848 420964 55804 0 3 0x12 0x80 kqread sshd-session
90626 421415 1 0 3 0x100003 0x80 ttyin getty
55804 243825 1 0 3 0 0x88 kqread sshd
18166 46821 73160 73 3 0x1100010 0x80 kqread syslogd
73160 161838 1 0 3 0x100002 0x80 sbwait syslogd
74888 223624 1 0 3 0x100000 0x80 kqread resolvd
80643 72868 43380 77 3 0x100012 0x80 kqread dhcpleased
79653 37606 43380 77 3 0x100012 0x80 kqread dhcpleased
43380 204164 1 0 3 0 0x80 kqread dhcpleased
57134 514689 0 0 2 0x14000 0x200 smr
19170 409720 0 0 2 0x14000 0x200 zerothread
30421 332098 0 0 3 0x14000 0x200 aiodoned aiodoned
83931 7133 0 0 3 0x14000 0x200 syncer update
24296 479119 0 0 3 0x14000 0x200 cleaner cleaner
93248 184022 0 0 3 0x14000 0x200 reaper reaper
46340 465230 0 0 3 0x14000 0x200 pgdaemon pagedaemon
78561 468903 0 0 3 0x14000 0x200 bored viomb
59182 292585 0 0 3 0x14000 0x40000200 acpi0 acpi0
29040 111053 0 0 3 0x14000 0x200 bored softnet0
44243 205291 0 0 3 0x14000 0x200 smrbar systqmp
66589 274312 0 0 3 0x14000 0x200 bored systq
48608 175290 0 0 2 0x14000 0x40000200 softclock
98766 66440 0 0 3 0x14000 0x40000200 idle0
1 204836 0 0 3 0x2 0x80 wait init
0 0 -1 0 3 0x10000 0x200 scheduler swapper
ddb> show all locks
No such command
ddb> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 11037 12184K 12184K 166960K 12126 0
pcb 17 12K 12K 166960K 24 0
rtable 243 7K 7K 166960K 373 0
pf 30 12K 13K 166960K 33 0
ifaddr 42 7K 7K 166960K 44 0
ifgroup 50 2K 2K 166960K 50 0
sysctl 1 1K 9K 166960K 5 0
counters 33 17K 17K 166960K 33 0
ioctlops 0 0K 4K 166960K 33 0
mount 1 1K 1K 166960K 1 0
log 0 0K 0K 166960K 4 0
vnodes 1295 82K 82K 166960K 1363 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 1734 201K 291K 166960K 11964 0
file desc 17 61K 89K 166960K 149 0
proc 61 67K 83K 166960K 499 0
subproc 72 4K 4K 166960K 72 0
NFS srvsock 1 0K 0K 166960K 1 0
NFS daemon 1 16K 16K 166960K 1 0
ip_moptions 1 0K 0K 166960K 1 0
in_multi 99 7K 7K 166960K 99 0
ether_multi 1 0K 0K 166960K 1 0
mrt 0 0K 0K 166960K 1 0
ISOFS mount 1 32K 32K 166960K 1 0
MSDOSFS mount 1 16K 16K 166960K 1 0
ttys 37 175K 175K 166960K 37 0
exec 0 0K 1K 166960K 369 0
fusefs mount 1 32K 32K 166960K 1 0
tdb 3 0K 0K 166960K 3 0
VM swap 8 62K 64K 166960K 10 0
UVM amap 206 150K 159K 166960K 3012 0
UVM aobj 3 2K 2K 166960K 3 0
pinsyscall 38 76K 92K 166960K 1259 0
memdesc 1 4K 4K 166960K 1 0
crypto data 1 1K 1K 166960K 1 0
ip6_options 0 0K 0K 166960K 1 0
NDP 27 2K 2K 166960K 27 0
temp 33 9102K 9108K 166960K 3626 0
kqueue 14 22K 22K 166960K 27 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 41 0 36 1 0 1 1 0 8 0
rtentry 136 112 0 2 4 0 4 4 0 8 0
unpcb 144 46 0 29 1 0 1 1 0 8 0
syncache 336 4 0 4 1 0 1 1 0 8 1
tcpcb 736 11 0 7 1 0 1 1 0 8 0
arp 96 18 0 0 1 0 1 1 0 8 0
ipq 40 1 0 0 1 0 1 1 0 8 0
ipqe 40 1 0 0 1 0 1 1 0 8 0
inpcb 328 69 0 60 2 0 2 2 0 8 0
nd6 112 24 0 0 1 0 1 1 0 8 0
kcovpl 48 8 0 0 1 0 1 1 0 8 0
pfrule 1360 1 0 1 1 0 1 1 0 8 1
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 452 0 0 29 0 29 29 0 8 0
art_table 40 453 0 0 5 0 5 5 0 8 0
art_node 32 111 0 8 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 1573 0 108 92 0 92 92 0 8 0
ffsino 256 1573 0 108 92 0 92 92 0 8 0
nchpl 144 1784 0 87 63 0 63 63 0 8 0
vnodes 216 1662 0 0 93 0 93 93 0 8 0
namei 1024 5239 0 5239 2 0 2 2 0 8 2
kstatmem 264 23 0 0 2 0 2 2 0 8 0
scxspl 216 6029 0 6029 4 0 4 4 1 8 4
plimitpl 152 30 0 12 1 0 1 1 0 8 0
sigapl 424 447 0 405 6 0 6 6 0 8 0
knotepl 120 2270 0 2223 2 0 2 2 0 8 0
kqueuepl 184 26 0 15 1 0 1 1 0 8 0
pipepl 304 123 0 96 3 0 3 3 0 8 0
fdescpl 448 434 0 405 5 0 5 5 0 8 1
filepl 120 1495 0 1275 7 0 7 7 0 8 0
lockfpl 104 15 0 10 1 0 1 1 0 8 0
lockfspl 48 10 0 5 1 0 1 1 0 8 0
sessionpl 144 23 0 15 1 0 1 1 0 8 0
pgrppl 48 32 0 16 1 0 1 1 0 8 0
ucredpl 104 85 0 73 1 0 1 1 0 8 0
zombiepl 144 406 0 405 1 0 1 1 0 8 0
processpl 1152 447 0 405 4 0 4 4 0 8 0
procpl 664 468 0 421 5 0 5 5 0 8 0
sockpl 552 156 0 125 3 0 3 3 0 8 0
mcl8k 8192 4 0 4 1 0 1 1 0 8 1
mcl4k 4096 2493 0 2443 13 0 13 13 0 8 6
mcl2k 2048 119 0 118 1 0 1 1 0 8 0
mextrefs 64 42 0 41 1 0 1 1 0 8 0
mtagpl 96 4 0 4 1 0 1 1 0 8 1
mbufpl 256 4249 0 4124 10 0 10 10 0 8 1
bufpl 272 2243 0 102 143 0 143 143 0 8 0
anonpl 24 99160 0 96182 23 0 23 23 0 187 3
amapchunkpl 152 8410 0 7991 19 0 19 19 0 158 1
amappl16 200 1993 0 1975 5 0 5 5 0 8 3
amappl15 192 4 0 4 1 0 1 1 0 8 1
amappl14 184 412 0 411 1 0 1 1 0 8 0
amappl13 176 117 0 107 1 0 1 1 0 8 0
amappl12 168 672 0 645 2 0 2 2 0 8 0
amappl11 160 9 0 9 1 0 1 1 0 8 1
amappl10 152 57 0 47 1 0 1 1 0 8 0
amappl9 144 289 0 289 1 0 1 1 0 8 1
amappl8 136 114 0 113 1 0 1 1 0 8 0
amappl7 128 159 0 148 1 0 1 1 0 8 0
amappl6 120 151 0 150 1 0 1 1 0 8 0
amappl5 112 97 0 90 1 0 1 1 0 8 0
amappl4 104 264 0 248 1 0 1 1 0 8 0
amappl3 96 1471 0 1374 3 0 3 3 0 8 0
amappl2 88 523 0 473 2 0 2 2 0 8 0
amappl1 80 10214 0 9668 13 0 13 13 0 8 0
amappl 88 2318 0 2174 4 0 4 4 0 92 0
uvmvnodes 80 96 0 0 2 0 2 2 0 8 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 434 0 405 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 434 0 405 1 0 1 1 0 8 0
vmmpekpl 168 5506 0 5474 2 0 2 2 0 8 0
vmmpepl 168 37591 0 35866 79 0 79 79 0 357 1
vmsppl 368 433 0 405 4 0 4 4 0 8 1
rwobjpl 40 14454 0 13557 11 0 11 11 0 8 1
pdppl 4096 874 0 810 92 14 78 78 0 8 14
pvpl 32 222407 0 214301 71 0 71 71 0 265 1
pmappl 216 433 0 405 2 0 2 2 0 8 0
extentpl 40 46 0 28 1 0 1 1 0 8 0
phpool 112 494 0 14 14 0 14 14 0 8 0
ddb> machine ddbcpu 0
No such command
ddb> trace
ip6_freemoptions(ffff800000c57660) at ip6_freemoptions+0x65 sys/netinet6/ip6_output.c:2147
in_pcbdetach(fffff4806d0c2150) at in_pcbdetach+0x122 sys/netinet/in_pcb.c:608
udp_detach(ffff8000016008b0) at udp_detach+0x5a sys/netinet/udp_usrreq.c:1158
soclose(ffff8000016008b0,0) at soclose+0xad pru_detach sys/sys/protosw.h:281 [inline]
soclose(ffff8000016008b0,0) at soclose+0xad sys/kern/uipc_socket.c:403
soo_close(fffff4806dd691f0,ffff80002f0b0d10) at soo_close+0x56 sys/kern/sys_socket.c:-1
fdrop(fffff4806dd691f0,ffff80002f0b0d10) at fdrop+0x121 sys/kern/kern_descrip.c:1281
closef(fffff4806dd691f0,ffff80002f0b0d10) at closef+0x190 sys/kern/kern_descrip.c:1265
fdfree(ffff80002f0b0d10) at fdfree+0x115 sys/kern/kern_descrip.c:1196
exit1(ffff80002f0b0d10,0,0,1) at exit1+0x595 sys/kern/kern_exit.c:215
sys_exit(ffff80002f0b0d10,ffff80003c907430,ffff80003c907380) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff80003c907430) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80003c907430) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7d93d5e98250, count: -12
ddb> machine ddbcpu 1
No such command
ddb> trace
ip6_freemoptions(ffff800000c57660) at ip6_freemoptions+0x65 sys/netinet6/ip6_output.c:2147
in_pcbdetach(fffff4806d0c2150) at in_pcbdetach+0x122 sys/netinet/in_pcb.c:608
udp_detach(ffff8000016008b0) at udp_detach+0x5a sys/netinet/udp_usrreq.c:1158
soclose(ffff8000016008b0,0) at soclose+0xad pru_detach sys/sys/protosw.h:281 [inline]
soclose(ffff8000016008b0,0) at soclose+0xad sys/kern/uipc_socket.c:403
soo_close(fffff4806dd691f0,ffff80002f0b0d10) at soo_close+0x56 sys/kern/sys_socket.c:-1
fdrop(fffff4806dd691f0,ffff80002f0b0d10) at fdrop+0x121 sys/kern/kern_descrip.c:1281
closef(fffff4806dd691f0,ffff80002f0b0d10) at closef+0x190 sys/kern/kern_descrip.c:1265
fdfree(ffff80002f0b0d10) at fdfree+0x115 sys/kern/kern_descrip.c:1196
exit1(ffff80002f0b0d10,0,0,1) at exit1+0x595 sys/kern/kern_exit.c:215
sys_exit(ffff80002f0b0d10,ffff80003c907430,ffff80003c907380) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff80003c907430) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80003c907430) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7d93d5e98250, count: -12


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