syzbot
uvm_fault: ip_setmoptions
Status:
upstream: reported on 2026/08/28 13:32
Reported-by: syzbot+2edce6849b84e878432f@syzkaller.appspotmail.com
First crash: 1d05h, last: 1d05h
Sample crash report:
uvm_fault(0xfffff0806cf039b8, 0x0, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at ip_setmoptions+0xbc5: movq 0(%rax,%r12,8),%r14
TID PID UID PRFLAGS PFLAGS CPU COMMAND
275531 79894 32767 0x1010 0x2000 1K syz-executor
* 70985 66465 32767 0x10 0x4000000 0 syz-executor
ip_setmoptions(c,fffff0800f245b70,fffff08060f5e700,0) at ip_setmoptions+0xbc5 sys/netinet/ip_output.c:1556
sosetopt(ffff80000170c620,0,c,fffff08060f5e700) at sosetopt+0x118 sys/kern/uipc_socket.c:-1
sys_setsockopt(ffff80003c3e3cb0,ffff80002a31e910,ffff80002a31e860) at sys_setsockopt+0x2ba sys/kern/uipc_syscalls.c:1233
syscall(ffff80002a31e910) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80002a31e910) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x3b3ce8b8fc0, count: 10
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(0xfffff0806cf039b8, 0x0, 0, 1) -> e
ddb{0}> show kasan
No such command
ddb{0}> trace
ip_setmoptions(c,fffff0800f245b70,fffff08060f5e700,0) at ip_setmoptions+0xbc5 sys/netinet/ip_output.c:1556
sosetopt(ffff80000170c620,0,c,fffff08060f5e700) at sosetopt+0x118 sys/kern/uipc_socket.c:-1
sys_setsockopt(ffff80003c3e3cb0,ffff80002a31e910,ffff80002a31e860) at sys_setsockopt+0x2ba sys/kern/uipc_syscalls.c:1233
syscall(ffff80002a31e910) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80002a31e910) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x3b3ce8b8fc0, count: -5
ddb{0}> show registers
rdi 0
rsi 0x5e43 __ALIGN_SIZE+0x4e43
rbp 0xffff80002a31e770
rbx 0x3
rdx 0xffff8000015f8900
rcx 0xffff80003c3e3cb0
rax 0
r8 0xfffff08060f5e700
r9 0
r10 0xe79e1bf8d16dec62
r11 0xdb694e93743e69bb
r12 0
r13 0
r14 0xffff800000c34000
r15 0xffff800000c43890
rip 0xffffffff81a1f945 ip_setmoptions+0xbc5
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff80002a31e6c0
ss 0x10
ip_setmoptions+0xbc5: movq 0(%rax,%r12,8),%r14
ddb{0}> show proc
PROC (syz-executor) tid=70985 pid=66465 tcnt=2 stat=onproc
flags process=10<SUGID> proc=4000000<THREAD>
runpri=32, usrpri=86, slppri=32, nice=20
wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0
forw=0xffffffffffffffff, list=0xffff80003c3e34e8,0xffffffff83aa0578
process=0xffff80003afcce90 user=0xffff80002a319000, vmspace=0xfffff0806cf039b8
estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0
ddb{0}> ps
PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND
99093 475078 14062 32767 2 0x10 0 syz-executor
99093 278256 14062 32767 3 0x10 0x4000080 fsleep syz-executor
10000 254013 29238 0 2 0x2 0 syz-executor
79894 275531 23999 32767 7 0x1010 0x2000 syz-executor
79894 517292 23999 32767 2 0x1010 0x4080080 syz-executor
34129 312458 36326 32767 2 0x10 0 syz-executor
34129 377977 36326 32767 3 0x10 0x4000080 fsleep syz-executor
66465 407103 35365 32767 2 0x10 0 syz-executor
*66465 70985 35365 32767 7 0x10 0x4000000 syz-executor
4975 310745 29238 0 2 0x2 0 syz-executor
23999 153831 68275 32767 2 0x10 0 syz-executor
68275 519941 29238 0 3 0x2 0x80 wait syz-executor
25459 171511 40245 32767 2 0x10000010 0 syz-executor
40245 439482 29238 0 3 0x2 0x80 wait syz-executor
25559 126508 64948 32767 3 0x10 0x80 piperd syz-executor
64948 488456 29238 0 3 0x2 0x80 wait syz-executor
35365 399414 17845 32767 2 0x10 0xc80 syz-executor
17845 419879 29238 0 3 0x2 0x80 wait syz-executor
14062 276195 6556 32767 3 0x10 0x80 nanoslp syz-executor
6556 500776 29238 0 3 0x2 0x80 wait syz-executor
36326 496699 8968 32767 3 0x10 0x80 nanoslp syz-executor
8968 122515 29238 0 3 0x2 0x80 wait syz-executor
29238 106148 24029 0 2 0x2 0 syz-executor
24029 320678 64716 0 3 0x100002 0x88 sigsusp ksh
64716 273044 24547 0 3 0x10 0x88 kqread sshd-session
24547 368817 68047 0 3 0x12 0x80 kqread sshd-session
7049 462626 1 0 3 0x100003 0x80 ttyin getty
68047 38860 1 0 3 0 0x88 kqread sshd
1617 193461 93640 73 3 0x1100010 0x80 kqread syslogd
93640 412074 1 0 3 0x100002 0x80 sbwait syslogd
7484 323238 1 0 3 0x100000 0x80 kqread resolvd
34998 478693 60808 77 3 0x100012 0x80 kqread dhcpleased
85319 399953 60808 77 3 0x100012 0x80 kqread dhcpleased
60808 514549 1 0 3 0 0x80 kqread dhcpleased
37778 349165 0 0 2 0x14000 0x40000200 smr
56079 183431 0 0 2 0x14000 0x200 zerothread
53894 109499 0 0 3 0x14000 0x200 aiodoned aiodoned
62849 257189 0 0 3 0x14000 0x200 syncer update
73790 150078 0 0 3 0x14000 0x200 cleaner cleaner
34312 317045 0 0 3 0x14000 0x200 reaper reaper
63064 506648 0 0 3 0x14000 0x200 pgdaemon pagedaemon
76024 369980 0 0 3 0x14000 0x200 bored viomb
24530 401676 0 0 3 0x14000 0x40000200 acpi0 acpi0
67311 199110 0 0 3 0x14000 0x40000200 idle1
96856 328940 0 0 3 0x14000 0x200 bored softnet1
64061 237346 0 0 3 0x14000 0x200 bored softnet0
56459 34768 0 0 3 0x14000 0x200 smrbar systqmp
67305 425965 0 0 3 0x14000 0x200 bored systq
92569 446529 0 0 2 0x14000 0x200 softclockmp
48191 97993 0 0 3 0x14000 0x40000200 tmoslp softclock
34109 191717 0 0 3 0x14000 0x40000200 idle0
1 436419 0 0 3 0x2 0x80 wait init
0 0 -1 0 3 0x10000 0x200 scheduler swapper
ddb{0}> show all locks
Process 66465 (syz-executor) thread 0xffff80003c3e3cb0 (70985)
exclusive rwlock netlock r = 0 (0xffffffff83980e00)
#0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160
#1 rw_do_enter_write+0x419 sys/kern/kern_rwlock.c:320
#2 sosetopt+0xf2 sys/kern/uipc_socket.c:1899
#3 sys_setsockopt+0x2ba sys/kern/uipc_syscalls.c:1233
#4 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline]
#4 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791
#5 Xsyscall+0x128
Process 56459 (systqmp) thread 0xffff800045ffe7c8 (34768)
shared rwlock systqmp r = 0 (0xffffffff839a6bd8)
#0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160
#1 taskq_thread+0x12a sys/kern/kern_task.c:442
#2 proc_trampoline+0x10
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 11077 12018K 12034K 166960K 12266 0
pcb 17 12K 12K 166960K 17 0
rtable 195 5K 7K 166960K 1262 0
pf 27 16K 16K 166960K 91 0
ifaddr 35 6K 8K 166960K 168 0
ifgroup 42 1K 2K 166960K 170 0
sysctl 1 1K 9K 166960K 5 0
counters 66 36K 37K 166960K 130 0
ioctlops 0 0K 4K 166960K 138 0
iov 0 0K 12K 166960K 77 0
mount 1 1K 1K 166960K 1 0
log 0 0K 0K 166960K 4 0
vnodes 1288 81K 81K 166960K 1752 0
UFS quota 1 32K 32K 166960K 1 0
UFS mount 5 36K 36K 166960K 5 0
shm 2 1K 5K 166960K 9 0
VM map 2 1K 1K 166960K 2 0
sem 27 3K 3K 166960K 28 0
dirhash 12 2K 2K 166960K 18 0
ACPI 1734 201K 291K 166960K 11964 0
file desc 20 73K 121K 166960K 950 0
sigio 0 0K 0K 166960K 1 0
proc 58 99K 147K 166960K 1374 0
subproc 60 3K 4K 166960K 429 0
NFS srvsock 1 0K 0K 166960K 1 0
NFS daemon 1 16K 16K 166960K 1 0
ip_moptions 2 0K 0K 166960K 55 0
in_multi 78 5K 6K 166960K 441 0
ether_multi 1 0K 0K 166960K 4 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 259 1155K 1155K 166960K 259 0
exec 0 0K 1K 166960K 784 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 211 150K 200K 166960K 8635 0
UVM aobj 11 4K 4K 166960K 14 0
pinsyscall 41 82K 112K 166960K 2860 0
memdesc 1 4K 4K 166960K 1 0
crypto data 1 1K 1K 166960K 1 0
ip6_options 0 0K 0K 166960K 33 0
NDP 9 0K 2K 166960K 117 0
temp 41 9124K 9142K 166960K 9283 0
kqueue 14 22K 29K 166960K 113 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 28 0 0 1 0 1 1 0 8 0
rtpcb 120 113 0 110 1 0 1 1 0 8 0
rtentry 176 444 0 355 6 0 6 6 0 8 1
unpcb 144 466 0 451 4 0 4 4 0 8 3
syncache 336 11 0 11 1 0 1 1 0 8 1
tcpqe 32 3 0 3 1 0 1 1 0 8 1
tcpcb 736 230 0 221 7 0 7 7 0 8 5
arp 136 78 0 64 1 0 1 1 0 8 0
ipq 40 3 0 0 1 0 1 1 0 8 0
ipqe 40 5 0 1 1 0 1 1 0 8 0
inpcb 328 784 0 771 7 0 7 7 0 8 5
ip6q 80 1 0 0 1 0 1 1 0 8 0
ip6af 40 1 0 0 1 0 1 1 0 8 0
nd6 152 117 0 99 1 0 1 1 0 8 0
kcovpl 48 47 0 41 1 0 1 1 0 8 0
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 1798 0 1382 30 0 30 30 0 8 1
art_table 40 1799 0 1382 5 0 5 5 0 8 0
art_node 32 444 0 353 1 0 1 1 0 8 0
sysvmsgpl 40 5 0 2 1 0 1 1 0 8 0
semupl 112 4 0 4 1 0 1 1 0 8 1
semapl 72 26 0 1 1 0 1 1 0 8 0
shmpl 112 11 0 3 1 0 1 1 0 8 0
dirhash 1024 21 0 4 3 0 3 3 0 8 0
dino2pl 256 2018 0 473 97 0 97 97 0 8 0
ffsino 296 2018 0 473 119 0 119 119 0 8 0
nchpl 144 2613 0 819 67 0 67 67 0 8 0
vnodes 216 2456 0 0 137 0 137 137 0 8 0
namei 1024 12351 0 12351 2 1 1 2 0 8 1
percpumem 16 81 0 32 1 0 1 1 0 8 0
kstatmem 264 85 0 64 2 0 2 2 0 8 0
scxspl 216 8486 0 8486 4 3 1 3 1 8 1
plimitpl 152 305 0 282 2 0 2 2 0 8 0
sigapl 424 1169 0 1120 7 0 7 7 0 8 0
knotepl 120 292 0 0 9 0 9 9 0 8 0
kqueuepl 224 152 0 142 3 0 3 3 0 8 2
pipepl 344 336 0 309 4 0 4 4 0 8 0
fdescpl 528 1153 0 1121 3 0 3 3 0 8 0
filepl 160 5726 0 5529 15 0 15 15 0 8 3
lockfpl 104 134 0 131 1 0 1 1 0 8 0
lockfspl 48 42 0 39 1 0 1 1 0 8 0
sessionpl 144 84 0 70 1 0 1 1 0 8 0
pgrppl 48 137 0 115 1 0 1 1 0 8 0
ucredpl 104 1283 0 1266 1 0 1 1 0 8 0
zombiepl 144 1121 0 1120 1 0 1 1 0 8 0
processpl 1232 1169 0 1120 5 0 5 5 0 8 0
procpl 664 1722 0 1669 7 0 7 7 0 8 1
sosppl 176 1 0 1 1 1 0 1 0 8 0
sockpl 752 1364 0 1333 11 0 11 11 0 8 6
mcl64k 65536 4 0 0 1 0 1 1 0 8 0
mcl16k 16384 3 0 0 1 0 1 1 0 8 0
mcl12k 12288 1 0 0 1 0 1 1 0 8 0
mcl8k 8192 4 0 0 1 0 1 1 0 8 0
mcl4k 4096 126 0 0 16 0 16 16 0 8 0
mcl2k 2048 35 0 0 5 0 5 5 0 8 0
mextrefs 64 31 0 0 1 0 1 1 0 8 0
mtagpl 96 1 0 0 1 0 1 1 0 8 0
mbufpl 256 287 0 0 18 0 18 18 0 8 0
bufpl 272 2839 0 102 183 0 183 183 0 8 0
anonpl 32 7669 0 0 62 0 62 62 0 247 0
amapchunkpl 152 24497 0 24043 35 0 35 35 0 158 13
amappl16 200 2121 0 2104 17 7 10 14 0 8 7
amappl15 192 9 0 8 1 0 1 1 0 8 0
amappl14 184 762 0 761 1 0 1 1 0 8 0
amappl13 176 233 0 223 1 0 1 1 0 8 0
amappl12 168 1516 0 1485 2 0 2 2 0 8 0
amappl11 160 17 0 17 1 1 0 1 0 8 0
amappl10 152 70 0 60 1 0 1 1 0 8 0
amappl9 144 275 0 274 1 0 1 1 0 8 0
amappl8 136 211 0 209 1 0 1 1 0 8 0
amappl7 128 218 0 206 1 0 1 1 0 8 0
amappl6 120 450 0 449 1 0 1 1 0 8 0
amappl5 112 108 0 100 1 0 1 1 0 8 0
amappl4 104 378 0 362 1 0 1 1 0 8 0
amappl3 96 4447 0 4360 5 1 4 4 0 8 1
amappl2 88 1234 0 1161 3 0 3 3 0 8 0
amappl1 80 18119 0 17575 16 0 16 16 0 8 1
amappl 88 7306 0 7156 6 0 6 6 0 92 1
uvmvnodes 80 110 0 0 3 0 3 3 0 8 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 13 0 3 1 0 1 1 0 8 0
uaddrrnd 24 1153 0 1121 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 1153 0 1121 1 0 1 1 0 8 0
vmmpekpl 168 11963 0 11907 4 0 4 4 0 8 0
vmmpepl 168 85520 0 83723 106 0 106 106 0 357 16
vmsppl 488 1152 0 1121 7 1 6 6 0 8 0
rwobjpl 80 26938 0 26011 27 1 26 26 0 8 0
pdppl 4096 2313 0 2242 127 48 79 95 0 8 8
pvpl 32 16009 0 0 130 0 130 130 0 265 0
pmappl 256 1152 0 1121 4 1 3 3 0 8 0
extentpl 40 46 0 28 1 0 1 1 0 8 0
phpool 112 500 0 52 14 0 14 14 0 8 0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
ip_setmoptions(c,fffff0800f245b70,fffff08060f5e700,0) at ip_setmoptions+0xbc5 sys/netinet/ip_output.c:1556
sosetopt(ffff80000170c620,0,c,fffff08060f5e700) at sosetopt+0x118 sys/kern/uipc_socket.c:-1
sys_setsockopt(ffff80003c3e3cb0,ffff80002a31e910,ffff80002a31e860) at sys_setsockopt+0x2ba sys/kern/uipc_syscalls.c:1233
syscall(ffff80002a31e910) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80002a31e910) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x3b3ce8b8fc0, count: -5
ddb{0}> machine ddbcpu 1
* Struck through repros no longer work on HEAD.