panic: unhandled af (2)

已查看 0 次
跳至第一个未读帖子

syzbot

未读,
2020年6月1日 12:41:192020/6/1
收件人 syzkaller-o...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 235b1081 Revert "Ignore new Rxblock ack agreements until t..
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=122275d2100000
kernel config: https://syzkaller.appspot.com/x/.config?x=bf87b6915a88cd0d
dashboard link: https://syzkaller.appspot.com/bug?extid=6fef0091252d57113bfb

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

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

panic: unhandled af 22
Stopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
398428 24793 0 0 0 1 syz-executor.0
* 32304 93893 0 0x14000 0x200 0K softnet
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff82208938) at panic+0x15c sys/kern/subr_prf.c:207
unhandled_af(16) at unhandled_af+0x16
pf_build_tcp(ffffffff82652468,16,fffffd806ece81d0,fffffd806ece81c0,0,0) at pf_build_tcp+0x3c8
pf_remove_state(fffffd806ece9148) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline]
pf_remove_state(fffffd806ece9148) at pf_remove_state+0x9a sys/net/pf.c:1382
pf_purge_expired_states(1) at pf_purge_expired_states+0x1ed
pf_purge(ffffffff826a96d8) at pf_purge+0x3f sys/net/pf.c:1278
taskq_thread(ffff80000002b080) at taskq_thread+0x9c sys/kern/kern_task.c:369
end trace frame: 0x0, count: 7
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
unhandled af 22
ddb{0}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff82208938) at panic+0x15c sys/kern/subr_prf.c:207
unhandled_af(16) at unhandled_af+0x16
pf_build_tcp(ffffffff82652468,16,fffffd806ece81d0,fffffd806ece81c0,0,0) at pf_build_tcp+0x3c8
pf_remove_state(fffffd806ece9148) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline]
pf_remove_state(fffffd806ece9148) at pf_remove_state+0x9a sys/net/pf.c:1382
pf_purge_expired_states(1) at pf_purge_expired_states+0x1ed
pf_purge(ffffffff826a96d8) at pf_purge+0x3f sys/net/pf.c:1278
taskq_thread(ffff80000002b080) at taskq_thread+0x9c sys/kern/kern_task.c:369
end trace frame: 0x0, count: -8
ddb{0}> show registers
rdi 0
rsi 0x1
rbp 0xffff800020e39b60
rbx 0xffff800020e39c10
rdx 0x8b
rcx 0x2
rax 0x1
r8 0xffffffff814a3bdf kprintf+0x16f
r9 0x1
r10 0x2
r11 0x1672a7e14901de07
r12 0x3000000008
r13 0xffff800020e39b70
r14 0x100
r15 0x1
rip 0xffffffff81bf1358 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff800020e39b50
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb{0}> show proc
PROC (softnet) pid=32304 stat=onproc
flags process=14000<NOZOMBIE,SYSTEM> proc=200<SYSTEM>
pri=50, usrpri=50, nice=20
forw=0xffffffffffffffff, list=0xffff800020e19110,0xffff800020e18c40
process=0xffff800020e1b338 user=0xffff800020e34000, vmspace=0xffffffff826b1ea8
estcpu=0, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
24793 398428 94568 0 7 0 syz-executor.0
24793 288486 94568 0 3 0x4000080 fsleep syz-executor.0
29754 192129 87383 0 2 0 syz-executor.1
29754 353139 87383 0 3 0x4000080 fsleep syz-executor.1
94568 356230 63356 0 2 0x2 syz-executor.0
87383 386639 63356 0 2 0x482 syz-executor.1
63356 225814 85548 0 3 0x82 thrsleep syz-fuzzer
63356 428778 85548 0 3 0x4000082 nanosleep syz-fuzzer
63356 58407 85548 0 3 0x4000082 thrsleep syz-fuzzer
63356 139371 85548 0 3 0x4000082 thrsleep syz-fuzzer
63356 147163 85548 0 3 0x4000082 thrsleep syz-fuzzer
63356 444509 85548 0 2 0x4000002 syz-fuzzer
63356 103484 85548 0 3 0x4000082 thrsleep syz-fuzzer
63356 147798 85548 0 3 0x4000082 thrsleep syz-fuzzer
63356 94386 85548 0 3 0x4000082 thrsleep syz-fuzzer
63356 211444 85548 0 3 0x4000082 kqread syz-fuzzer
85548 210512 66166 0 3 0x10008a pause ksh
66166 78623 59892 0 3 0x92 select sshd
97363 448578 1 0 3 0x100083 ttyin getty
59892 503241 1 0 3 0x80 select sshd
85362 104031 85561 74 3 0x100092 bpf pflogd
85561 387996 1 0 3 0x80 netio pflogd
5598 156045 5373 73 3 0x100090 kqread syslogd
5373 10417 1 0 3 0x100082 netio syslogd
82303 438300 1 77 3 0x100090 poll dhclient
13344 439336 1 0 3 0x80 poll dhclient
39580 109000 0 0 3 0x14200 bored smr
96174 113004 0 0 2 0x14200 zerothread
90965 321489 0 0 3 0x14200 aiodoned aiodoned
55892 381814 0 0 3 0x14200 syncer update
28349 487452 0 0 3 0x14200 cleaner cleaner
81676 437829 0 0 3 0x14200 reaper reaper
46253 330282 0 0 3 0x14200 pgdaemon pagedaemon
81118 6542 0 0 3 0x14200 bored crynlk
83601 24956 0 0 3 0x14200 bored crypto
55401 378773 0 0 3 0x40014200 acpi0 acpi0
31548 85516 0 0 3 0x40014200 idle1
*93893 32304 0 0 7 0x14200 softnet
37695 137641 0 0 3 0x14200 bored systqmp
23682 242159 0 0 3 0x14200 bored systq
18240 137352 0 0 3 0x40014200 bored softclock
60241 454177 0 0 3 0x40014200 idle0
1 292529 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
Process 93893 (softnet) thread 0xffff800020e18ea0 (32304)
exclusive rwlock netlock r = 0 (0xffffffff82507458)
#0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline]
#0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164
#1 pf_purge+0x27 sys/net/pf.c:1273
#2 taskq_thread+0x9c sys/kern/kern_task.c:369
#3 proc_trampoline+0x1c
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82691818)
#0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline]
#0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164
#1 pf_purge+0x1b sys/net/pf.c:1264
#2 taskq_thread+0x9c sys/kern/kern_task.c:369
#3 proc_trampoline+0x1c
shared rwlock softnet r = 0 (0xffff80000002b0e0)
#0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline]
#0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164
#1 taskq_thread+0x8f sys/kern/kern_task.c:368
#2 proc_trampoline+0x1c
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 9488 6412K 6786K 78643K 11484 0
pcb 13 8K 8K 78643K 51 0
rtable 114 12K 13K 78643K 340 0
ifaddr 64 14K 15K 78643K 267 0
counters 43 33K 34K 78643K 63 0
ioctlops 0 0K 4K 78643K 2253 0
iov 0 0K 12K 78643K 13 0
mount 1 1K 1K 78643K 1 0
vnodes 1220 77K 77K 78643K 1371 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 5K 78643K 3 0
VM map 2 1K 1K 78643K 2 0
sem 12 0K 0K 78643K 21 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1824 197K 290K 78643K 13058 0
file desc 6 17K 25K 78643K 901 0
proc 61 63K 95K 78643K 480 0
subproc 32 2K 2K 78643K 51 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
ip_moptions 0 0K 0K 78643K 30 0
in_multi 62 3K 3K 78643K 90 0
ether_multi 1 0K 0K 78643K 7 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 31 148K 148K 78643K 31 0
exec 0 0K 1K 78643K 242 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 123 39K 55K 78643K 3223 0
UVM aobj 8 2K 2K 78643K 8 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 24 0
NDP 8 0K 0K 78643K 24 0
temp 94 3036K 3100K 78643K 5742 0
kqueue 3 4K 6K 78643K 11 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 8 0 2 1 0 1 1 0 8 0
plcache 128 20 0 0 1 0 1 1 0 8 0
rtpcb 80 41 0 39 1 0 1 1 0 8 0
rtentry 112 56 0 12 2 0 2 2 0 8 0
unpcb 120 451 0 441 1 0 1 1 0 8 0
syncache 264 7 0 7 2 2 0 1 0 8 0
tcpqe 32 107 0 107 1 1 0 1 0 8 0
tcpcb 544 77 0 73 1 0 1 1 0 8 0
inpcb 280 449 0 442 2 1 1 2 0 8 0
nd6 48 9 0 3 1 0 1 1 0 8 0
ppxss 1128 2 0 2 1 1 0 1 0 8 0
pfstscr 40 425 0 423 5 4 1 1 0 8 0
pffrag 232 2 0 2 1 1 0 1 0 482 0
pffrnode 88 2 0 2 1 1 0 1 0 8 0
pffrent 40 4 0 4 1 1 0 1 0 8 0
pfosfp 40 846 0 423 5 0 5 5 0 8 0
pfosfpen 112 1428 0 714 21 0 21 21 0 8 0
pfstitem 24 255 0 250 1 0 1 1 0 8 0
pfstkey 112 953 0 949 1 0 1 1 0 8 0
pfstate 328 612 0 608 3 2 1 3 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 232 0 44 12 0 12 12 0 8 0
art_table 32 233 0 44 2 0 2 2 0 8 0
art_node 16 55 0 15 1 0 1 1 0 8 0
sysvmsgpl 40 17 0 2 1 0 1 1 0 8 0
semapl 112 19 0 9 1 0 1 1 0 8 0
shmpl 112 6 0 0 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 2340 0 934 89 1 88 89 0 8 0
ffsino 272 2340 0 934 95 1 94 95 0 8 0
nchpl 144 3665 0 2070 60 0 60 60 0 8 0
uvmvnodes 72 2515 0 0 46 0 46 46 0 8 0
vnodes 208 2515 0 0 133 0 133 133 0 8 0
namei 1024 10714 0 10714 1 0 1 1 0 8 1
percpumem 16 42 0 10 1 0 1 1 0 8 0
vcpupl 1984 2 0 0 1 0 1 1 0 8 0
vmpool 560 4 0 2 1 0 1 1 0 8 0
scxspl 192 12185 0 12185 7 6 1 6 0 8 1
plimitpl 152 24 0 16 1 0 1 1 0 8 0
sigapl 424 1113 0 1081 4 0 4 4 0 8 0
futexpl 56 9247 0 9245 1 0 1 1 0 8 0
knotepl 112 81 0 62 1 0 1 1 0 8 0
kqueuepl 144 20 0 18 1 0 1 1 0 8 0
pipelkpl 48 93 0 83 1 0 1 1 0 8 0
pipepl 120 186 0 167 1 0 1 1 0 8 0
fdescpl 496 1098 0 1081 3 0 3 3 0 8 0
filepl 152 5593 0 5491 9 4 5 5 0 8 1
lockfpl 104 30 0 29 1 0 1 1 0 8 0
lockfspl 48 12 0 11 1 0 1 1 0 8 0
sessionpl 112 19 0 8 1 0 1 1 0 8 0
pgrppl 48 21 0 10 1 0 1 1 0 8 0
ucredpl 96 839 0 829 1 0 1 1 0 8 0
zombiepl 144 1081 0 1081 1 0 1 1 0 8 1
processpl 984 1113 0 1081 5 0 5 5 0 8 1
procpl 624 2410 0 2367 4 0 4 4 0 8 0
sockpl 400 941 0 922 5 2 3 4 0 8 1
mcl64k 65536 4 0 0 1 0 1 1 0 8 0
mcl16k 16384 1 0 0 1 0 1 1 0 8 0
mcl12k 12288 3 0 0 1 0 1 1 0 8 0
mcl9k 9216 1 0 0 1 0 1 1 0 8 0
mcl8k 8192 1 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 192 0 0 23 7 16 23 0 8 0
mtagpl 80 29 0 0 1 0 1 1 0 8 0
mbufpl 256 296 0 0 13 0 13 13 0 8 0
bufpl 280 4441 0 134 308 0 308 308 0 8 0
anonpl 16 95781 0 82607 70 10 60 69 0 124 0
amapchunkpl 152 5433 0 5284 21 14 7 20 0 158 0
amappl16 192 4999 0 4201 47 7 40 47 0 8 0
amappl15 184 3 0 0 1 0 1 1 0 8 0
amappl14 176 24 0 20 1 0 1 1 0 8 0
amappl13 168 44 0 40 1 0 1 1 0 8 0
amappl12 160 11 0 10 1 0 1 1 0 8 0
amappl11 152 60 0 45 1 0 1 1 0 8 0
amappl10 144 468 0 461 1 0 1 1 0 8 0
amappl9 136 385 0 384 1 0 1 1 0 8 0
amappl8 128 369 0 336 2 0 2 2 0 8 0
amappl7 120 540 0 524 1 0 1 1 0 8 0
amappl6 112 31 0 24 1 0 1 1 0 8 0
amappl5 104 990 0 973 1 0 1 1 0 8 0
amappl4 96 506 0 474 1 0 1 1 0 8 0
amappl3 88 105 0 100 1 0 1 1 0 8 0
amappl2 80 7737 0 7659 2 0 2 2 0 8 0
amappl1 72 30952 0 30491 23 13 10 18 0 8 0
amappl 80 2673 0 2626 2 0 2 2 0 84 0
dma4096 4096 1 0 1 1 1 0 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 7 0 0 1 0 1 1 0 8 0
uaddrrnd 24 1102 0 1083 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 1102 0 1083 1 0 1 1 0 8 0
vmmpekpl 168 10364 0 10329 2 0 2 2 0 8 0
vmmpepl 168 133730 0 131663 127 35 92 116 0 357 2
vmsppl 368 1101 0 1083 2 0 2 2 0 8 0
pdppl 4096 2212 0 2168 6 0 6 6 0 8 0
pvpl 32 505922 0 489510 194 45 149 168 0 265 0
pmappl 232 1101 0 1083 2 0 2 2 0 8 0
extentpl 40 53 0 36 1 0 1 1 0 8 0
phpool 112 263 0 14 8 0 8 8 0 8 0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff82208938) at panic+0x15c sys/kern/subr_prf.c:207
unhandled_af(16) at unhandled_af+0x16
pf_build_tcp(ffffffff82652468,16,fffffd806ece81d0,fffffd806ece81c0,0,0) at pf_build_tcp+0x3c8
pf_remove_state(fffffd806ece9148) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline]
pf_remove_state(fffffd806ece9148) at pf_remove_state+0x9a sys/net/pf.c:1382
pf_purge_expired_states(1) at pf_purge_expired_states+0x1ed
pf_purge(ffffffff826a96d8) at pf_purge+0x3f sys/net/pf.c:1278
taskq_thread(ffff80000002b080) at taskq_thread+0x9c sys/kern/kern_task.c:369
end trace frame: 0x0, count: -8
ddb{0}> machine ddbcpu 1
Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp
x86_ipi_db(ffff800020e00ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352
x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
__mp_lock(ffffffff82691610) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff82691610) at __mp_lock+0x127 sys/kern/kern_lock.c:147
pageflttrap(ffff8000231898f0,1) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180
usertrap(ffff8000231898f0) at usertrap+0x21a sys/arch/amd64/amd64/trap.c:384
recall_trap() at recall_trap+0x8
end of kernel
end trace frame: 0x7f7ffffed080, count: 8
ddb{1}> trace
x86_ipi_db(ffff800020e00ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352
x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
__mp_lock(ffffffff82691610) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff82691610) at __mp_lock+0x127 sys/kern/kern_lock.c:147
pageflttrap(ffff8000231898f0,1) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180
usertrap(ffff8000231898f0) at usertrap+0x21a sys/arch/amd64/amd64/trap.c:384
recall_trap() at recall_trap+0x8
end of kernel
end trace frame: 0x7f7ffffed080, count: -7


---
This bug 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 bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

未读,
2020年6月1日 13:06:172020/6/1
收件人 syzkaller-o...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: 235b1081 Revert "Ignore new Rxblock ack agreements until t..
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=17bf126a100000
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1520dfe2100000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15a2eb91100000

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

login: panic: unhandled af 22
Stopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
399491 4160 0 0x2 0x480 1 syz-executor2422
*397338 3323 0 0x14000 0x200 0K softnet
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff82208938) at panic+0x15c sys/kern/subr_prf.c:207
unhandled_af(16) at unhandled_af+0x16
pf_build_tcp(ffffffff82652468,16,fffffd806e6b8860,fffffd806e6b8850,0,0) at pf_build_tcp+0x3c8
pf_remove_state(fffffd806ed39000) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline]
pf_remove_state(fffffd806ed39000) at pf_remove_state+0x9a sys/net/pf.c:1382
pf_purge_expired_states(2) at pf_purge_expired_states+0x1ed
pf_purge(ffffffff826a96d8) at pf_purge+0x3f sys/net/pf.c:1278
taskq_thread(ffff80000002b080) at taskq_thread+0x9c sys/kern/kern_task.c:369
end trace frame: 0x0, count: 7
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
unhandled af 22
ddb{0}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff82208938) at panic+0x15c sys/kern/subr_prf.c:207
unhandled_af(16) at unhandled_af+0x16
pf_build_tcp(ffffffff82652468,16,fffffd806e6b8860,fffffd806e6b8850,0,0) at pf_build_tcp+0x3c8
pf_remove_state(fffffd806ed39000) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline]
pf_remove_state(fffffd806ed39000) at pf_remove_state+0x9a sys/net/pf.c:1382
pf_purge_expired_states(2) at pf_purge_expired_states+0x1ed
pf_purge(ffffffff826a96d8) at pf_purge+0x3f sys/net/pf.c:1278
taskq_thread(ffff80000002b080) at taskq_thread+0x9c sys/kern/kern_task.c:369
end trace frame: 0x0, count: -8
ddb{0}> show registers
rdi 0
rsi 0x1
rbp 0xffff800020e39b80
rbx 0xffff800020e39c30
rdx 0x8b
rcx 0x2
rax 0x1
r8 0xffffffff814a3bdf kprintf+0x16f
r9 0x1
r10 0x2
r11 0xe71589ee515710c4
r12 0x3000000008
r13 0xffff800020e39b90
r14 0x100
r15 0x1
rip 0xffffffff81bf1358 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff800020e39b70
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb{0}> show proc
PROC (softnet) pid=397338 stat=onproc
flags process=14000<NOZOMBIE,SYSTEM> proc=200<SYSTEM>
pri=32, usrpri=50, nice=20
forw=0xffffffffffffffff, list=0xffff800020e189c0,0xffff800020e184f0
process=0xffff800020e1a000 user=0xffff800020e34000, vmspace=0xffffffff826b1ea8
estcpu=0, cpticks=0, pctcpu=0.0
user=0, sys=0, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
4160 399491 44996 0 7 0x482 syz-executor2422
44996 177244 33823 0 3 0x10008a pause ksh
33823 472295 22604 0 3 0x92 select sshd
63740 440271 1 0 3 0x100083 ttyin getty
22604 86554 1 0 3 0x80 select sshd
85895 116923 86050 74 3 0x100092 bpf pflogd
86050 464412 1 0 3 0x80 netio pflogd
33036 365794 32403 73 3 0x100090 kqread syslogd
32403 291365 1 0 3 0x100082 netio syslogd
46088 303383 1 77 3 0x100090 poll dhclient
48958 97392 1 0 3 0x80 poll dhclient
28834 110829 0 0 3 0x14200 bored smr
74193 392404 0 0 3 0x14200 pgzero zerothread
96076 398861 0 0 3 0x14200 aiodoned aiodoned
5242 330060 0 0 3 0x14200 syncer update
89163 207880 0 0 3 0x14200 cleaner cleaner
14696 524226 0 0 3 0x14200 reaper reaper
91349 15455 0 0 3 0x14200 pgdaemon pagedaemon
87020 511568 0 0 3 0x14200 bored crynlk
95623 321451 0 0 3 0x14200 bored crypto
70111 395081 0 0 3 0x40014200 acpi0 acpi0
40786 500454 0 0 3 0x40014200 idle1
* 3323 397338 0 0 7 0x14200 softnet
2878 140328 0 0 3 0x14200 bored systqmp
67755 458837 0 0 3 0x14200 bored systq
15615 479380 0 0 3 0x40014200 bored softclock
55884 72165 0 0 3 0x40014200 idle0
1 121876 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
Process 3323 (softnet) thread 0xffff800020e18750 (397338)
exclusive rwlock netlock r = 0 (0xffffffff82507458)
#0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline]
#0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164
#1 pf_purge+0x27 sys/net/pf.c:1273
#2 taskq_thread+0x9c sys/kern/kern_task.c:369
#3 proc_trampoline+0x1c
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82691818)
#0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline]
#0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164
#1 pf_purge+0x1b sys/net/pf.c:1264
#2 taskq_thread+0x9c sys/kern/kern_task.c:369
#3 proc_trampoline+0x1c
shared rwlock softnet r = 0 (0xffff80000002b0e0)
#0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline]
#0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164
#1 taskq_thread+0x8f sys/kern/kern_task.c:368
#2 proc_trampoline+0x1c
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 9463 6393K 6394K 78643K 10556 0
pcb 13 8K 8K 78643K 13 0
rtable 61 2K 2K 78643K 127 0
ifaddr 30 8K 8K 78643K 31 0
counters 39 33K 33K 78643K 39 0
ioctlops 0 0K 4K 78643K 1584 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 1824 197K 290K 78643K 13058 0
file desc 1 0K 0K 78643K 1 0
proc 59 63K 71K 78643K 358 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 1K 78643K 177 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 60 3K 4K 78643K 913 0
UVM aobj 2 2K 2K 78643K 2 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
NDP 4 0K 0K 78643K 4 0
temp 24 3029K 3093K 78643K 1671 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 80 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 264 5 0 5 2 1 1 1 0 8 1
tcpcb 544 8 0 5 1 0 1 1 0 8 0
inpcb 280 29 0 23 1 0 1 1 0 8 0
pfosfp 40 846 0 423 5 0 5 5 0 8 0
pfosfpen 112 1428 0 714 21 0 21 21 0 8 0
pfstitem 24 10 0 0 1 0 1 1 0 8 0
pfstkey 112 126 0 116 1 0 1 1 0 8 0
pfstate 328 126 0 116 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 97 0 0 7 0 7 7 0 8 0
art_table 32 98 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 1400 0 16 87 0 87 87 0 8 0
ffsino 272 1400 0 16 93 0 93 93 0 8 0
nchpl 144 1574 0 32 58 0 58 58 0 8 0
uvmvnodes 72 1410 0 0 26 0 26 26 0 8 0
vnodes 208 1410 0 0 75 0 75 75 0 8 0
namei 1024 3894 0 3894 2 1 1 1 0 8 1
percpumem 16 30 0 0 1 0 1 1 0 8 0
scxspl 192 2974 0 2974 9 2 7 7 0 8 7
plimitpl 152 14 0 8 1 0 1 1 0 8 0
sigapl 424 337 0 309 4 0 4 4 0 8 0
knotepl 112 5 0 0 1 0 1 1 0 8 0
kqueuepl 144 1 0 0 1 0 1 1 0 8 0
pipelkpl 48 64 0 60 2 1 1 1 0 8 0
pipepl 120 128 0 121 2 1 1 1 0 8 0
fdescpl 496 322 0 309 3 0 3 3 0 8 0
filepl 152 1078 0 1030 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 112 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 309 0 308 2 1 1 1 0 8 0
processpl 984 337 0 308 4 0 4 4 0 8 0
procpl 624 337 0 308 3 0 3 3 0 8 0
sockpl 400 73 0 55 2 0 2 2 0 8 0
mcl4k 4096 4 0 0 1 0 1 1 0 8 0
mcl2k 2048 89 0 0 10 0 10 10 0 8 0
mtagpl 80 1 0 0 1 0 1 1 0 8 0
mbufpl 256 116 0 0 6 0 6 6 0 8 0
bufpl 280 1890 0 91 129 0 129 129 0 8 0
anonpl 16 19919 0 18707 8 3 5 7 0 124 0
amapchunkpl 152 642 0 604 2 0 2 2 0 158 0
amappl16 192 198 0 195 1 0 1 1 0 8 0
amappl15 184 1 0 0 1 0 1 1 0 8 0
amappl14 176 22 0 19 1 0 1 1 0 8 0
amappl13 168 14 0 13 2 1 1 1 0 8 0
amappl12 160 9 0 9 1 1 0 1 0 8 0
amappl11 152 49 0 34 1 0 1 1 0 8 0
amappl10 144 8 0 6 1 0 1 1 0 8 0
amappl9 136 225 0 223 1 0 1 1 0 8 0
amappl8 128 232 0 231 1 0 1 1 0 8 0
amappl7 120 94 0 85 1 0 1 1 0 8 0
amappl6 112 14 0 14 2 2 0 1 0 8 0
amappl5 104 261 0 246 1 0 1 1 0 8 0
amappl4 96 462 0 436 1 0 1 1 0 8 0
amappl3 88 96 0 90 1 0 1 1 0 8 0
amappl2 80 748 0 697 3 1 2 2 0 8 0
amappl1 72 14370 0 13958 15 5 10 15 0 8 0
amappl 80 526 0 505 1 0 1 1 0 84 0
dma4096 4096 1 0 1 1 1 0 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 1 0 0 1 0 1 1 0 8 0
uaddrrnd 24 322 0 309 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 322 0 309 1 0 1 1 0 8 0
vmmpekpl 168 5690 0 5668 2 0 2 2 0 8 0
vmmpepl 168 30947 0 30131 50 11 39 48 0 357 0
vmsppl 368 321 0 309 2 0 2 2 0 8 0
pdppl 4096 652 0 618 6 0 6 6 0 8 0
pvpl 32 81835 0 78897 34 6 28 28 0 265 3
pmappl 232 321 0 309 1 0 1 1 0 8 0
extentpl 40 53 0 36 1 0 1 1 0 8 0
phpool 112 228 0 4 7 0 7 7 0 8 0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff82208938) at panic+0x15c sys/kern/subr_prf.c:207
unhandled_af(16) at unhandled_af+0x16
pf_build_tcp(ffffffff82652468,16,fffffd806e6b8860,fffffd806e6b8850,0,0) at pf_build_tcp+0x3c8
pf_remove_state(fffffd806ed39000) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline]
pf_remove_state(fffffd806ed39000) at pf_remove_state+0x9a sys/net/pf.c:1382
pf_purge_expired_states(2) at pf_purge_expired_states+0x1ed
pf_purge(ffffffff826a96d8) at pf_purge+0x3f sys/net/pf.c:1278
taskq_thread(ffff80000002b080) at taskq_thread+0x9c sys/kern/kern_task.c:369
end trace frame: 0x0, count: -8
ddb{0}> machine ddbcpu 1
Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp
x86_ipi_db(ffff800020e00ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352
x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
__mp_lock(ffffffff82691610) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff82691610) at __mp_lock+0x127 sys/kern/kern_lock.c:147
__mp_acquire_count(ffffffff82691610,1) at __mp_acquire_count+0x51 sys/kern/kern_lock.c:227
mi_switch() at mi_switch+0x392 sys/kern/sched_bsd.c:435
sleep_finish(ffff800020f13510,1) at sleep_finish+0x113 sys/kern/kern_synch.c:418
sleep_finish_all(ffff800020f13510,1) at sleep_finish_all+0x32 sleep_finish_timeout sys/kern/kern_synch.c:447 [inline]
sleep_finish_all(ffff800020f13510,1) at sleep_finish_all+0x32 sys/kern/kern_synch.c:393
tsleep(ffffffff826116dc,120,ffffffff821ef4d2,2) at tsleep+0x1cc sys/kern/kern_synch.c:155
sys_nanosleep(ffff800020ed0eb0,ffff800020f13640,ffff800020f13690) at sys_nanosleep+0x205 sys/kern/kern_time.c:297
syscall(ffff800020f13710) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800020f13710) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffe2600, count: 3
ddb{1}> trace
x86_ipi_db(ffff800020e00ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352
x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
__mp_lock(ffffffff82691610) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff82691610) at __mp_lock+0x127 sys/kern/kern_lock.c:147
__mp_acquire_count(ffffffff82691610,1) at __mp_acquire_count+0x51 sys/kern/kern_lock.c:227
mi_switch() at mi_switch+0x392 sys/kern/sched_bsd.c:435
sleep_finish(ffff800020f13510,1) at sleep_finish+0x113 sys/kern/kern_synch.c:418
sleep_finish_all(ffff800020f13510,1) at sleep_finish_all+0x32 sleep_finish_timeout sys/kern/kern_synch.c:447 [inline]
sleep_finish_all(ffff800020f13510,1) at sleep_finish_all+0x32 sys/kern/kern_synch.c:393
tsleep(ffffffff826116dc,120,ffffffff821ef4d2,2) at tsleep+0x1cc sys/kern/kern_synch.c:155
sys_nanosleep(ffff800020ed0eb0,ffff800020f13640,ffff800020f13690) at sys_nanosleep+0x205 sys/kern/kern_time.c:297
syscall(ffff800020f13710) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800020f13710) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffe2600, count: -12
ddb{1}>

回复全部
回复作者
转发
0 个新帖子