uvm_fault: pf_addr_compare

0 views
Skip to first unread message

syzbot

unread,
Jan 20, 2021, 4:59:22 PM1/20/21
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 19b9c9ad Make sure to enforce matching dstid as initiator...
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=1354e53f500000
kernel config: https://syzkaller.appspot.com/x/.config?x=bf87b6915a88cd0d
dashboard link: https://syzkaller.appspot.com/bug?extid=c6d2f2ad34b822bce98a

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

uvm_fault(0xfffffd8008492450, 0xc, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at pf_addr_compare+0x47: movl 0xc(%r15),%r12d
ddb{1}>
ddb{1}> set $lines = 0
ddb{1}> set $maxwidth = 0
ddb{1}> show panic
kernel page fault
uvm_fault(0xfffffd8008492450, 0xc, 0, 1) -> e
pf_addr_compare(0,ffff8000222c8e40,18) at pf_addr_compare+0x47 sys/net/pf.c:333
end trace frame: 0xffff8000222c8e00, count: 0
ddb{1}> trace
pf_addr_compare(0,ffff8000222c8e40,18) at pf_addr_compare+0x47 sys/net/pf.c:333
pflog_packet(ffff8000222c8e28,8,ffffffff828bff88,0,0,0) at pflog_packet+0x3e7 sys/net/if_pflog.c:236
pf_test(18,1,ffff800000ae5000,ffff8000222c90f8) at pf_test+0xfd2 sys/net/pf.c:7206
ip6_input_if(ffff8000222c90f8,ffff8000222c9104,29,0,ffff800000ae5000) at ip6_input_if+0x945 sys/netinet6/ip6_input.c:300
ipv6_input(ffff800000ae5000,fffffd807f007b00) at ipv6_input+0x48 sys/netinet6/ip6_input.c:171
tun_dev_write(5d00,ffff8000222c93e8,ffff8000212a6000,2) at tun_dev_write+0x204 sys/net/if_tun.c:870
spec_write(ffff8000222c9240) at spec_write+0xd4 sys/kern/spec_vnops.c:309
VOP_WRITE(fffffd8079b09248,ffff8000222c93e8,11,fffffd807f7b78a0) at VOP_WRITE+0xc6 sys/kern/vfs_vops.c:274
vn_write(fffffd806cb65e50,ffff8000222c93e8,0) at vn_write+0x14e sys/kern/vfs_vnops.c:414
dofilewritev(ffff800021278fc0,f0,ffff8000222c93e8,0,ffff8000222c94d0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365
sys_write(ffff800021278fc0,ffff8000222c9480,ffff8000222c94d0) at sys_write+0x83 sys/kern/sys_generic.c:285
syscall(ffff8000222c9550) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000222c9550) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xf9717292e40, count: -13
ddb{1}> show registers
rdi 0x18
rsi 0xffffffff8270a410 __sancov_gen_cov_switch_values.133
rbp 0xffff8000222c8d00
rbx 0x18
rdx 0xffff800000af8ec0
rcx 0x2
rax 0xffff800021278fc0
r8 0xffffffff819cefab pf_addr_compare+0x3b
r9 0x1
r10 0x7f172fc25ccc9acd
r11 0xa70fa74c38b2052f
r12 0x18
r13 0xffff800000044ac0
r14 0xffff8000222c8e40
r15 0
rip 0xffffffff819cefb7 pf_addr_compare+0x47
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff8000222c8cb0
ss 0x10
pf_addr_compare+0x47: movl 0xc(%r15),%r12d
ddb{1}> show proc
PROC (syz-executor.0) pid=334764 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=78, usrpri=78, nice=20
forw=0xffffffffffffffff, list=0xffff800021278000,0xffff8000212782b0
process=0xffff800021236e78 user=0xffff8000222c4000, vmspace=0xfffffd8008492450
estcpu=36, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb{1}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
32210 30409 86477 0 7 0 syz-executor.1
32210 215882 86477 0 2 0x4000000 syz-executor.1
31261 483756 87666 0 2 0 syz-executor.0
*31261 334764 87666 0 7 0x4000000 syz-executor.0
86477 364560 7274 0 3 0x82 nanoslp syz-executor.1
87666 160960 7274 0 3 0x82 nanoslp syz-executor.0
7274 338534 44454 0 3 0x82 thrsleep syz-fuzzer
7274 242616 44454 0 3 0x4000082 thrsleep syz-fuzzer
7274 52124 44454 0 3 0x4000082 thrsleep syz-fuzzer
7274 209269 44454 0 3 0x4000082 thrsleep syz-fuzzer
7274 51491 44454 0 3 0x4000082 thrsleep syz-fuzzer
7274 229388 44454 0 3 0x4000082 nanoslp syz-fuzzer
7274 360701 44454 0 3 0x4000082 thrsleep syz-fuzzer
7274 3222 44454 0 3 0x4000082 thrsleep syz-fuzzer
44454 63469 94507 0 3 0x10008a sigsusp ksh
94507 265951 99440 0 3 0x92 select sshd
24701 494953 1 0 3 0x100083 ttyin getty
99440 339172 1 0 3 0x80 select sshd
90970 431995 2702 74 3 0x100092 bpf pflogd
2702 231943 1 0 3 0x80 netio pflogd
69136 301465 54577 73 3 0x100090 kqread syslogd
54577 13226 1 0 3 0x100082 netio syslogd
49671 216968 1 77 3 0x100090 poll dhclient
38195 183903 1 0 3 0x80 poll dhclient
34350 415090 0 0 3 0x14200 bored smr
95587 225700 0 0 2 0x14200 zerothread
33026 494559 0 0 3 0x14200 aiodoned aiodoned
20095 332795 0 0 3 0x14200 syncer update
93570 256254 0 0 3 0x14200 cleaner cleaner
58062 122627 0 0 3 0x14200 reaper reaper
81073 250058 0 0 3 0x14200 pgdaemon pagedaemon
17934 464775 0 0 3 0x14200 bored crynlk
43215 379269 0 0 3 0x14200 bored crypto
32119 173441 0 0 3 0x14200 bored viomb
36625 200182 0 0 3 0x40014200 acpi0 acpi0
53000 56469 0 0 3 0x40014200 idle1
96762 128759 0 0 3 0x14200 bored softnet
14152 68215 0 0 3 0x14200 bored systqmp
63147 173168 0 0 3 0x14200 bored systq
39279 296609 0 0 3 0x40014200 bored softclock
91622 473569 0 0 3 0x40014200 idle0
1 458772 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{1}> show all locks
Process 31261 (syz-executor.0) thread 0xffff800021278fc0 (334764)
exclusive rwlock netlock r = 0 (0xffffffff826b8e70)
#0 witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline]
#0 witness_lock+0x4b0 sys/kern/subr_witness.c:1176
#1 tun_dev_write+0x1f9 sys/net/if_tun.c:869
#2 spec_write+0xd4 sys/kern/spec_vnops.c:309
#3 VOP_WRITE+0xc6 sys/kern/vfs_vops.c:274
#4 vn_write+0x14e sys/kern/vfs_vnops.c:414
#5 dofilewritev+0x1ab sys/kern/sys_generic.c:365
#6 sys_write+0x83 sys/kern/sys_generic.c:285
#7 syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#7 syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590
#8 Xsyscall+0x128
exclusive kernel_lock &kernel_lock r = 1 (0xffffffff828b9f28)
#0 witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline]
#0 witness_lock+0x4b0 sys/kern/subr_witness.c:1176
#1 vn_write+0x42 sys/kern/vfs_vnops.c:399
#2 dofilewritev+0x1ab sys/kern/sys_generic.c:365
#3 sys_write+0x83 sys/kern/sys_generic.c:285
#4 syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#4 syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590
#5 Xsyscall+0x128
ddb{1}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 9492 6427K 6747K 78643K 11014 0
pcb 13 8K 8K 78643K 33 0
rtable 105 3K 3K 78643K 201 0
ifaddr 49 11K 11K 78643K 50 0
counters 44 34K 34K 78643K 44 0
ioctlops 0 0K 4K 78643K 1469 0
iov 0 0K 12K 78643K 20 0
mount 1 1K 1K 78643K 1 0
vnodes 1218 77K 77K 78643K 1350 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 1K 78643K 2 0
VM map 2 1K 1K 78643K 2 0
sem 2 0K 0K 78643K 2 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1697 195K 286K 78643K 12598 0
file desc 6 17K 25K 78643K 376 0
proc 59 63K 95K 78643K 476 0
subproc 32 2K 2K 78643K 34 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
ip_moptions 0 0K 0K 78643K 33 0
in_multi 33 2K 2K 78643K 55 0
ether_multi 1 0K 0K 78643K 9 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 37 175K 175K 78643K 37 0
exec 0 0K 2K 78643K 358 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 94 21K 21K 78643K 1531 0
UVM aobj 3 2K 2K 78643K 3 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 80 0
NDP 7 0K 0K 78643K 11 0
temp 71 3972K 4036K 78643K 3322 0
kqueue 3 4K 8K 78643K 16 0
SYN cache 2 16K 16K 78643K 2 0
ddb{1}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
arp 64 6 0 0 1 0 1 1 0 8 0
plcache 128 20 0 0 1 0 1 1 0 8 0
rtpcb 120 19 0 17 1 0 1 1 0 8 0
rtentry 112 45 0 1 2 0 2 2 0 8 0
unpcb 120 40 0 30 1 0 1 1 0 8 0
syncache 296 4 0 4 1 1 0 1 0 8 0
tcpqe 32 122 0 122 2 2 0 1 0 8 0
tcpcb 736 96 0 91 6 1 5 5 0 8 4
inpcb 296 200 0 192 1 0 1 1 0 8 0
nd6 48 6 0 0 1 0 1 1 0 8 0
kcovpl 48 2 0 0 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 13 0 5 1 0 1 1 0 8 0
pfstkey 112 13 0 5 1 0 1 1 0 8 0
pfstate 328 13 0 5 2 0 2 2 0 8 0
pfrule 1360 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 189 0 0 12 0 12 12 0 8 0
art_table 32 190 0 0 2 0 2 2 0 8 0
art_node 16 44 0 4 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 1891 0 488 88 0 88 88 0 8 0
ffsino 272 1891 0 488 94 0 94 94 0 8 0
nchpl 144 2505 0 900 60 0 60 60 0 8 0
uvmvnodes 72 2019 0 0 37 0 37 37 0 8 0
vnodes 224 2019 0 0 119 0 119 119 0 8 0
namei 1024 6377 0 6377 1 0 1 1 0 8 1
percpumem 16 33 0 0 1 0 1 1 0 8 0
scxspl 216 7242 0 7242 9 8 1 8 0 8 1
plimitpl 152 23 0 15 1 0 1 1 0 8 0
sigapl 424 592 0 559 4 0 4 4 0 8 0
futexpl 56 2316 0 2316 1 0 1 1 0 8 1
knotepl 112 82 0 62 1 0 1 1 0 8 0
kqueuepl 168 103 0 101 1 0 1 1 0 8 0
pipepl 336 84 0 73 2 0 2 2 0 8 1
fdescpl 496 576 0 559 4 1 3 3 0 8 0
filepl 152 2203 0 2101 5 0 5 5 0 8 0
lockfpl 104 103 0 102 1 0 1 1 0 8 0
lockfspl 48 24 0 23 1 0 1 1 0 8 0
sessionpl 144 18 0 7 1 0 1 1 0 8 0
pgrppl 48 18 0 7 1 0 1 1 0 8 0
ucredpl 96 162 0 153 1 0 1 1 0 8 0
zombiepl 144 559 0 559 1 0 1 1 0 8 1
processpl 1080 592 0 559 3 0 3 3 0 8 0
procpl 672 1028 0 986 4 0 4 4 0 8 0
sockpl 432 259 0 239 3 0 3 3 0 8 0
mcl12k 12288 1 0 0 1 0 1 1 0 8 0
mcl9k 9216 8 0 0 1 0 1 1 0 8 0
mcl8k 8192 2 0 0 1 0 1 1 0 8 0
mcl4k 4096 2 0 0 1 0 1 1 0 8 0
mcl2k 2048 142 0 0 16 0 16 16 0 8 0
mtagpl 96 45 0 0 2 0 2 2 0 8 0
mbufpl 256 349 0 0 21 0 21 21 0 8 0
bufpl 280 3723 0 181 253 0 253 253 0 8 0
anonpl 24 47873 0 42950 33 2 31 31 0 186 1
amapchunkpl 152 2264 0 2095 9 2 7 8 0 158 0
amappl16 200 1250 0 1093 9 0 9 9 0 8 0
amappl15 192 2 0 0 1 0 1 1 0 8 0
amappl14 184 24 0 19 1 0 1 1 0 8 0
amappl13 176 27 0 24 1 0 1 1 0 8 0
amappl12 168 4 0 3 1 0 1 1 0 8 0
amappl11 160 220 0 200 2 1 1 2 0 8 0
amappl10 152 15 0 10 1 0 1 1 0 8 0
amappl9 144 201 0 199 1 0 1 1 0 8 0
amappl8 136 116 0 89 1 0 1 1 0 8 0
amappl7 128 425 0 414 1 0 1 1 0 8 0
amappl6 120 70 0 59 1 0 1 1 0 8 0
amappl5 112 1428 0 1408 1 0 1 1 0 8 0
amappl4 104 283 0 254 2 1 1 2 0 8 0
amappl3 96 150 0 141 1 0 1 1 0 8 0
amappl2 88 3730 0 3653 3 1 2 3 0 8 0
amappl1 80 24918 0 24428 27 15 12 21 0 8 0
amappl 88 1274 0 1222 2 0 2 2 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 64 2 0 0 1 0 1 1 0 8 0
uaddrrnd 24 576 0 559 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 576 0 559 1 0 1 1 0 8 0
vmmpekpl 168 7186 0 7154 2 0 2 2 0 8 0
vmmpepl 168 76823 0 75376 83 18 65 77 0 357 2
vmsppl 368 575 0 559 2 0 2 2 0 8 0
rwobjpl 56 18201 0 17350 24 11 13 19 0 8 0
pdppl 4096 1159 0 1118 57 16 41 45 0 8 0
pvpl 32 223017 0 214975 117 19 98 117 0 265 31
pmappl 232 575 0 559 2 1 1 2 0 8 0
extentpl 40 58 0 40 1 0 1 1 0 8 0
phpool 112 310 0 20 9 0 9 9 0 8 0
ddb{1}> machine ddbcpu 0
Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp
ddb{0}> trace
x86_ipi_db(ffffffff82771ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352
x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
copyout() at copyout+0x49
syscall(ffff800023ed5c40) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800023ed5c40) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffcfe40, count: -6
ddb{0}> machine ddbcpu 1
Stopped at pf_addr_compare+0x47: movl 0xc(%r15),%r12d
ddb{1}> trace
pf_addr_compare(0,ffff8000222c8e40,18) at pf_addr_compare+0x47 sys/net/pf.c:333
pflog_packet(ffff8000222c8e28,8,ffffffff828bff88,0,0,0) at pflog_packet+0x3e7 sys/net/if_pflog.c:236
pf_test(18,1,ffff800000ae5000,ffff8000222c90f8) at pf_test+0xfd2 sys/net/pf.c:7206
ip6_input_if(ffff8000222c90f8,ffff8000222c9104,29,0,ffff800000ae5000) at ip6_input_if+0x945 sys/netinet6/ip6_input.c:300
ipv6_input(ffff800000ae5000,fffffd807f007b00) at ipv6_input+0x48 sys/netinet6/ip6_input.c:171
tun_dev_write(5d00,ffff8000222c93e8,ffff8000212a6000,2) at tun_dev_write+0x204 sys/net/if_tun.c:870
spec_write(ffff8000222c9240) at spec_write+0xd4 sys/kern/spec_vnops.c:309
VOP_WRITE(fffffd8079b09248,ffff8000222c93e8,11,fffffd807f7b78a0) at VOP_WRITE+0xc6 sys/kern/vfs_vops.c:274
vn_write(fffffd806cb65e50,ffff8000222c93e8,0) at vn_write+0x14e sys/kern/vfs_vnops.c:414
dofilewritev(ffff800021278fc0,f0,ffff8000222c93e8,0,ffff8000222c94d0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365
sys_write(ffff800021278fc0,ffff8000222c9480,ffff8000222c94d0) at sys_write+0x83 sys/kern/sys_generic.c:285
syscall(ffff8000222c9550) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000222c9550) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xf9717292e40, count: -13


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

syzbot

unread,
Jan 20, 2021, 5:46:28 PM1/20/21
to syzkaller-o...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 19b9c9ad Make sure to enforce matching dstid as initiator...
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=1411d7e7500000
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=125b26a4d00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1065a184d00000

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

login: uvm_fault(0xfffffd806e94ba18, 0x0, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at pf_addr_compare+0x6b: movl 0(%r15),%r15d
ddb{0}>
ddb{0}> set $lines = 0
ddb{0}> set $maxwidth = 0
ddb{0}> show panic
kernel page fault
uvm_fault(0xfffffd806e94ba18, 0x0, 0, 1) -> e
pf_addr_compare(0,ffff800021256be0,2) at pf_addr_compare+0x6b sys/net/pf.c:326
end trace frame: 0xffff800021256ba0, count: 0
ddb{0}> trace
pf_addr_compare(0,ffff800021256be0,2) at pf_addr_compare+0x6b sys/net/pf.c:326
pflog_packet(ffff800021256bc8,3,ffffffff828bff88,0,0,0) at pflog_packet+0x3e7 sys/net/if_pflog.c:236
pf_test(2,2,ffff80000017b2a8,ffff800021256dc8) at pf_test+0xfd2 sys/net/pf.c:7206
ip_output(fffffd807eada100,0,fffffd806f6d13e8,20,0,fffffd806f6d1378) at ip_output+0xc6b sys/netinet/ip_output.c:422
rip_output(fffffd807eada100,fffffd806fc08888,ffff800021256ed0,f) at rip_output+0x251 sys/netinet/raw_ip.c:289
rip_usrreq(fffffd806fc08888,9,fffffd807eada100,0,0,ffff8000ffff6550) at rip_usrreq+0x4bf sys/netinet/raw_ip.c:538
sosend(fffffd806fc08888,0,ffff800021257170,0,0,0) at sosend+0x601 sys/kern/uipc_socket.c:554
dofilewritev(ffff8000ffff6550,3,ffff800021257170,0,ffff800021257260) at dofilewritev+0x1ab sys/kern/sys_generic.c:365
sys_writev(ffff8000ffff6550,ffff800021257218,ffff800021257260) at sys_writev+0xa7 sys/kern/sys_generic.c:312
syscall(ffff8000212572e0) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000212572e0) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7fffff9590, count: -11
ddb{0}> show registers
rdi 0x2
rsi 0xffffffff8270a410 __sancov_gen_cov_switch_values.133
rbp 0xffff800021256aa0
rbx 0x2
rdx 0x8b
rcx 0x2
rax 0x1
r8 0xffffffff819cefab pf_addr_compare+0x3b
r9 0x1
r10 0xbfeea783ee078cf6
r11 0x5395cd02196f263a
r12 0x2
r13 0xffff800000044a00
r14 0xffff800021256be0
r15 0
rip 0xffffffff819cefdb pf_addr_compare+0x6b
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff800021256a50
ss 0x10
pf_addr_compare+0x6b: movl 0(%r15),%r15d
ddb{0}> show proc
PROC (syz-executor0962) pid=95066 stat=onproc
flags process=2<EXEC,8ORPHAN> proc=0
pri=54, usrpri=54, nice=20
forw=0xffffffffffffffff, list=0xffff8000ffff7510,0xffffffff828c8868
process=0xffff800021237b20 user=0xffff800021252000, vmspace=0xfffffd806e94ba18
estcpu=4, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
*71008 95066 6592 0 7 0x2 syz-executor0962
6592 451455 70728 0 3 0x10008a sigsusp ksh
70728 263584 57502 0 7 0x12 sshd
63795 59588 1 0 3 0x100083 ttyin getty
57502 516612 1 0 3 0x80 select sshd
12668 315291 26638 74 3 0x100092 bpf pflogd
26638 129489 1 0 3 0x80 netio pflogd
25675 185112 35318 73 3 0x100090 kqread syslogd
35318 138855 1 0 3 0x100082 netio syslogd
41221 44019 1 77 3 0x100090 poll dhclient
73078 43653 1 0 3 0x80 poll dhclient
87927 502450 0 0 3 0x14200 bored smr
26478 371514 0 0 3 0x14200 pgzero zerothread
46467 443684 0 0 3 0x14200 aiodoned aiodoned
3239 34033 0 0 3 0x14200 syncer update
43826 217996 0 0 3 0x14200 cleaner cleaner
14136 55430 0 0 3 0x14200 reaper reaper
60937 365219 0 0 3 0x14200 pgdaemon pagedaemon
48456 303693 0 0 3 0x14200 bored crynlk
37316 77970 0 0 3 0x14200 bored crypto
83068 263323 0 0 3 0x14200 bored viomb
65536 49758 0 0 3 0x40014200 acpi0 acpi0
7360 116311 0 0 3 0x40014200 idle1
56808 370491 0 0 3 0x14200 bored softnet
42468 107045 0 0 3 0x14200 bored systqmp
3645 331484 0 0 3 0x14200 bored systq
74213 149573 0 0 3 0x40014200 bored softclock
87377 478903 0 0 3 0x40014200 idle0
1 399919 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
Process 71008 (syz-executor0962) thread 0xffff8000ffff6550 (95066)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828b9f28)
#0 witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline]
#0 witness_lock+0x4b0 sys/kern/subr_witness.c:1176
#1 kpageflttrap+0x23f sys/arch/amd64/amd64/trap.c:277
#2 kerntrap+0xef sys/arch/amd64/amd64/trap.c:321
#3 alltraps_kern_meltdown+0x7b
#4 pf_addr_compare+0x6b sys/net/pf.c:326
#5 pflog_packet+0x3e7 sys/net/if_pflog.c:236
#6 pf_test+0xfd2 sys/net/pf.c:7206
#7 ip_output+0xc6b sys/netinet/ip_output.c:422
#8 rip_output+0x251 sys/netinet/raw_ip.c:289
#9 rip_usrreq+0x4bf sys/netinet/raw_ip.c:538
#10 sosend+0x601 sys/kern/uipc_socket.c:554
#11 dofilewritev+0x1ab sys/kern/sys_generic.c:365
#12 sys_writev+0xa7 sys/kern/sys_generic.c:312
#13 syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#13 syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590
#14 Xsyscall+0x128
exclusive rwlock netlock r = 0 (0xffffffff826b8e70)
#0 witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline]
#0 witness_lock+0x4b0 sys/kern/subr_witness.c:1176
#1 solock+0x5a sys/kern/uipc_socket2.c:282
#2 sosend+0x4e5 sys/kern/uipc_socket.c:542
#3 dofilewritev+0x1ab sys/kern/sys_generic.c:365
#4 sys_writev+0xa7 sys/kern/sys_generic.c:312
#5 syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#5 syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590
#6 Xsyscall+0x128
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 9475 6411K 6412K 78643K 10565 0
pcb 13 8K 8K 78643K 15 0
rtable 61 2K 2K 78643K 127 0
ifaddr 29 8K 8K 78643K 30 0
counters 40 33K 33K 78643K 40 0
ioctlops 0 0K 4K 78643K 1467 0
mount 1 1K 1K 78643K 1 0
vnodes 1183 74K 75K 78643K 1188 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 1K 78643K 2 0
VM map 2 1K 1K 78643K 2 0
sem 2 0K 0K 78643K 2 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1697 195K 286K 78643K 12598 0
file desc 1 0K 0K 78643K 1 0
proc 59 63K 71K 78643K 367 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
in_multi 11 0K 0K 78643K 11 0
ether_multi 1 0K 0K 78643K 1 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 19 95K 95K 78643K 19 0
exec 0 0K 2K 78643K 302 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 36 2K 2K 78643K 594 0
UVM aobj 3 2K 2K 78643K 3 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
NDP 4 0K 0K 78643K 4 0
temp 23 3969K 4033K 78643K 1688 0
kqueue 2 2K 2K 78643K 2 0
SYN cache 2 16K 16K 78643K 2 0
ddb{0}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
arp 64 2 0 0 1 0 1 1 0 8 0
plcache 128 20 0 0 1 0 1 1 0 8 0
rtpcb 120 15 0 13 1 0 1 1 0 8 0
rtentry 112 23 0 1 1 0 1 1 0 8 0
unpcb 120 29 0 19 1 0 1 1 0 8 0
syncache 296 5 0 5 2 1 1 1 0 8 1
tcpcb 736 8 0 5 1 0 1 1 0 8 0
inpcb 296 30 0 23 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 8 0 0 1 0 1 1 0 8 0
pfstkey 112 8 0 0 1 0 1 1 0 8 0
pfstate 328 8 0 0 1 0 1 1 0 8 0
pfrule 1360 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 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 1398 0 16 87 0 87 87 0 8 0
ffsino 272 1398 0 16 93 0 93 93 0 8 0
nchpl 144 1572 0 33 59 1 58 58 0 8 0
uvmvnodes 72 1408 0 0 26 0 26 26 0 8 0
vnodes 224 1408 0 0 83 0 83 83 0 8 0
namei 1024 3780 0 3780 2 1 1 1 0 8 1
percpumem 16 31 0 0 1 0 1 1 0 8 0
scxspl 216 3397 0 3397 2 1 1 2 0 8 1
plimitpl 152 14 0 8 1 0 1 1 0 8 0
sigapl 424 221 0 192 4 0 4 4 0 8 0
knotepl 112 5 0 0 1 0 1 1 0 8 0
kqueuepl 168 1 0 0 1 0 1 1 0 8 0
pipepl 336 64 0 60 2 1 1 1 0 8 0
fdescpl 496 205 0 192 3 0 3 3 0 8 0
filepl 152 958 0 909 2 0 2 2 0 8 0
lockfpl 104 5 0 4 1 0 1 1 0 8 0
lockfspl 48 3 0 2 1 0 1 1 0 8 0
sessionpl 144 18 0 9 1 0 1 1 0 8 0
pgrppl 48 18 0 9 1 0 1 1 0 8 0
ucredpl 96 62 0 53 1 0 1 1 0 8 0
zombiepl 144 192 0 192 2 1 1 1 0 8 1
processpl 1080 221 0 192 3 0 3 3 0 8 0
procpl 672 221 0 192 3 0 3 3 0 8 0
sockpl 432 74 0 55 4 1 3 3 0 8 0
mcl4k 4096 4 0 0 1 0 1 1 0 8 0
mcl2k 2048 76 0 0 10 0 10 10 0 8 0
mtagpl 96 1 0 0 1 0 1 1 0 8 0
mbufpl 256 88 0 0 6 0 6 6 0 8 0
bufpl 280 1992 0 112 135 0 135 135 0 8 0
anonpl 24 19693 0 18465 10 2 8 10 0 186 0
amapchunkpl 152 527 0 490 3 1 2 3 0 158 0
amappl16 200 84 0 79 1 0 1 1 0 8 0
amappl15 192 1 0 0 1 0 1 1 0 8 0
amappl14 184 22 0 19 1 0 1 1 0 8 0
amappl13 176 14 0 13 2 1 1 1 0 8 0
amappl12 168 2 0 2 2 1 1 1 0 8 1
amappl11 160 51 0 36 1 0 1 1 0 8 0
amappl10 152 7 0 5 1 0 1 1 0 8 0
amappl9 144 228 0 227 1 0 1 1 0 8 0
amappl8 136 59 0 58 1 0 1 1 0 8 0
amappl7 128 210 0 209 1 0 1 1 0 8 0
amappl6 120 55 0 48 1 0 1 1 0 8 0
amappl5 112 355 0 338 1 0 1 1 0 8 0
amappl4 104 277 0 256 1 0 1 1 0 8 0
amappl3 96 105 0 98 1 0 1 1 0 8 0
amappl2 88 853 0 801 2 0 2 2 0 8 0
amappl1 80 14229 0 13808 17 7 10 17 0 8 0
amappl 88 403 0 383 1 0 1 1 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 64 2 0 0 1 0 1 1 0 8 0
uaddrrnd 24 205 0 192 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 205 0 192 1 0 1 1 0 8 0
vmmpekpl 168 5579 0 5561 1 0 1 1 0 8 0
vmmpepl 168 29762 0 28941 47 8 39 47 0 357 0
vmsppl 368 204 0 192 2 0 2 2 0 8 0
rwobjpl 56 7608 0 7062 14 5 9 13 0 8 1
pdppl 4096 417 0 384 51 18 33 39 0 8 0
pvpl 32 80689 0 77706 32 4 28 28 0 265 1
pmappl 232 204 0 192 1 0 1 1 0 8 0
extentpl 40 58 0 40 1 0 1 1 0 8 0
phpool 112 270 0 23 8 0 8 8 0 8 0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
pf_addr_compare(0,ffff800021256be0,2) at pf_addr_compare+0x6b sys/net/pf.c:326
pflog_packet(ffff800021256bc8,3,ffffffff828bff88,0,0,0) at pflog_packet+0x3e7 sys/net/if_pflog.c:236
pf_test(2,2,ffff80000017b2a8,ffff800021256dc8) at pf_test+0xfd2 sys/net/pf.c:7206
ip_output(fffffd807eada100,0,fffffd806f6d13e8,20,0,fffffd806f6d1378) at ip_output+0xc6b sys/netinet/ip_output.c:422
rip_output(fffffd807eada100,fffffd806fc08888,ffff800021256ed0,f) at rip_output+0x251 sys/netinet/raw_ip.c:289
rip_usrreq(fffffd806fc08888,9,fffffd807eada100,0,0,ffff8000ffff6550) at rip_usrreq+0x4bf sys/netinet/raw_ip.c:538
sosend(fffffd806fc08888,0,ffff800021257170,0,0,0) at sosend+0x601 sys/kern/uipc_socket.c:554
dofilewritev(ffff8000ffff6550,3,ffff800021257170,0,ffff800021257260) at dofilewritev+0x1ab sys/kern/sys_generic.c:365
sys_writev(ffff8000ffff6550,ffff800021257218,ffff800021257260) at sys_writev+0xa7 sys/kern/sys_generic.c:312
syscall(ffff8000212572e0) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000212572e0) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7fffff9590, count: -11
ddb{0}> machine ddbcpu 1
Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp
ddb{1}> trace
x86_ipi_db(ffff800020d68ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352
x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
__mp_lock(ffffffff828b9d20) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff828b9d20) at __mp_lock+0x122 sys/kern/kern_lock.c:147
syscall(ffff8000211f88e0) at syscall+0x3fd mi_syscall sys/sys/syscall_mi.h:93 [inline]
syscall(ffff8000211f88e0) at syscall+0x3fd sys/arch/amd64/amd64/trap.c:590
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffde9f0, count: -6
ddb{1}>

Reply all
Reply to author
Forward
0 new messages