panic: kernel diagnostic assertion "rdomain == rtable_l2(rdomain)" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 1312
Stopped at db_enter+0x25: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*243216 88727 0 0 0x4000000 0 syz-executor
136803 35934 0 0 0 1 syz-executor
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff834c72bd) at panic+0x1e5 sys/kern/subr_prf.c:198
__assert(ffffffff83502841,ffffffff8348ca17,520,ffffffff835663e1) at __assert+0x29 sys/kern/subr_prf.c:-1
rt_ifa_del(ffff80000164a300,800100,ffff80000164a368,ce) at rt_ifa_del+0x4bd
in_ioctl_set_ifaddr(8020690c,ffff8000327a34a0,ffff800001606000) at in_ioctl_set_ifaddr+0x2a1 in_remove_prefix sys/netinet/in.c:810 [inline]
in_ioctl_set_ifaddr(8020690c,ffff8000327a34a0,ffff800001606000) at in_ioctl_set_ifaddr+0x2a1 in_ifscrub sys/netinet/in.c:636 [inline]
in_ioctl_set_ifaddr(8020690c,ffff8000327a34a0,ffff800001606000) at in_ioctl_set_ifaddr+0x2a1 sys/netinet/in.c:404
ifioctl(ffff800010fde5f8,8020690c,ffff8000327a34a0,ffff80003c3bafb0) at ifioctl+0x1714 pru_control sys/sys/protosw.h:353 [inline]
ifioctl(ffff800010fde5f8,8020690c,ffff8000327a34a0,ffff80003c3bafb0) at ifioctl+0x1714 sys/net/if.c:2554
sys_ioctl(ffff80003c3bafb0,ffff8000327a3680,ffff8000327a35d0) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1
syscall(ffff8000327a3680) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff8000327a3680) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x806010b72d0, count: 6
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: kernel diagnostic assertion "rdomain == rtable_l2(rdomain)" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 1312
ddb{0}> show kasan
No such command
ddb{0}> trace
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff834c72bd) at panic+0x1e5 sys/kern/subr_prf.c:198
__assert(ffffffff83502841,ffffffff8348ca17,520,ffffffff835663e1) at __assert+0x29 sys/kern/subr_prf.c:-1
rt_ifa_del(ffff80000164a300,800100,ffff80000164a368,ce) at rt_ifa_del+0x4bd
in_ioctl_set_ifaddr(8020690c,ffff8000327a34a0,ffff800001606000) at in_ioctl_set_ifaddr+0x2a1 in_remove_prefix sys/netinet/in.c:810 [inline]
in_ioctl_set_ifaddr(8020690c,ffff8000327a34a0,ffff800001606000) at in_ioctl_set_ifaddr+0x2a1 in_ifscrub sys/netinet/in.c:636 [inline]
in_ioctl_set_ifaddr(8020690c,ffff8000327a34a0,ffff800001606000) at in_ioctl_set_ifaddr+0x2a1 sys/netinet/in.c:404
ifioctl(ffff800010fde5f8,8020690c,ffff8000327a34a0,ffff80003c3bafb0) at ifioctl+0x1714 pru_control sys/sys/protosw.h:353 [inline]
ifioctl(ffff800010fde5f8,8020690c,ffff8000327a34a0,ffff80003c3bafb0) at ifioctl+0x1714 sys/net/if.c:2554
sys_ioctl(ffff80003c3bafb0,ffff8000327a3680,ffff8000327a35d0) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1
syscall(ffff8000327a3680) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff8000327a3680) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x806010b72d0, count: -9
ddb{0}> show registers
rdi 0
rsi 0x1
rbp 0xffff8000327a3110
rbx 0xffffffff83970e0f cpu_info_full_primary+0x2e0f
rdx 0xffff8000016058c0
rcx 0xffff80003c3bafb0
rax 0xffffffff8396fff0 cpu_info_full_primary+0x1ff0
r8 0x101010101010101
r9 0x8080808080808080
r10 0x630054f994134fb0
r11 0xa1f75737ef3677b3
r12 0xffffffff83970c10 cpu_info_full_primary+0x2c10
r13 0
r14 0
r15 0x1
rip 0xffffffff83093515 db_enter+0x25
cs 0x8
rflags 0x246
rsp 0xffff8000327a3100
ss 0x10
db_enter+0x25: addq $0x8,%rsp
ddb{0}> show proc
PROC (syz-executor) tid=243216 pid=88727 tcnt=3 stat=onproc
flags process=0 proc=4000000<THREAD>
runpri=86, usrpri=86, slppri=16, nice=20
wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0
forw=0xffffffffffffffff, list=0xffff80003c3bb778,0xffffffff83ab8140
process=0xffff80002a37f038 user=0xffff80003279e000, vmspace=0xfffff8006cf23018
estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0
ddb{0}> ps
PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND
88727 502160 77877 0 2 0 0 syz-executor
88727 470051 77877 0 3 0 0x4000080 ttyin syz-executor
*88727 243216 77877 0 7 0 0x4000000 syz-executor
57297 171545 92766 0 2 0 0 syz-executor
57297 77586 92766 0 3 0 0x4000080 fsleep syz-executor
57297 349378 92766 0 3 0 0x4000080 fsleep syz-executor
649 219150 95416 0 2 0 0 syz-executor
649 345028 95416 0 3 0 0x4000080 fsleep syz-executor
38823 507115 7265 0 3 0 0x80 nanoslp syz-executor
38823 111213 7265 0 3 0 0x4000080 fsleep syz-executor
38823 393504 7265 0 3 0 0x4000080 fsleep syz-executor
38823 70802 7265 0 3 0 0x4000080 fsleep syz-executor
82002 116929 77702 0 3 0 0x80 nanoslp syz-executor
82002 396805 77702 0 3 0 0x4000080 ttyin syz-executor
82002 278098 77702 0 3 0 0x4000080 fsleep syz-executor
79013 260964 50976 0 3 0 0x80 nanoslp syz-executor
79013 246996 50976 0 3 0 0x4000080 fsleep syz-executor
79013 263832 50976 0 3 0 0x4000080 fsleep syz-executor
79013 194415 50976 0 3 0 0x4000080 bell syz-executor
35934 136803 78639 0 7 0 0 syz-executor
35934 448784 78639 0 3 0 0x4000080 msgwait syz-executor
35934 478274 78639 0 3 0 0x4000080 fsleep syz-executor
35934 462164 78639 0 3 0 0x4000080 fsleep syz-executor
92766 382051 7885 0 2 0x2 0xc80 syz-executor
7265 374811 7885 0 3 0x2 0x80 nanoslp syz-executor
77877 459483 7885 0 2 0x2 0xc80 syz-executor
78639 269724 7885 0 2 0x2 0xc80 syz-executor
77702 185406 7885 0 3 0x2 0x80 nanoslp syz-executor
95416 267365 7885 0 3 0x2 0x80 nanoslp syz-executor
50976 376180 7885 0 3 0x2 0x80 nanoslp syz-executor
7885 495426 87168 0 3 0x2 0x80 wait syz-executor
87168 60414 90736 0 3 0x100002 0x88 sigsusp ksh
90736 92886 75077 0 3 0x10 0x88 kqread sshd-session
75077 524071 68184 0 3 0x12 0x80 kqread sshd-session
5879 334111 1 0 3 0x100003 0x80 ttyin getty
68184 519141 1 0 3 0 0x88 kqread sshd
57292 47738 27930 74 3 0x1100012 0x80 bpf pflogd
27930 263708 1 0 3 0 0x80 sbwait pflogd
78126 397581 3469 73 3 0x1100010 0x80 kqread syslogd
3469 156112 1 0 3 0x100002 0x80 sbwait syslogd
27540 396006 1 0 3 0x100000 0x80 kqread resolvd
59193 283047 88450 77 3 0x100012 0x80 kqread dhcpleased
75540 257384 88450 77 3 0x100012 0x80 kqread dhcpleased
88450 379007 1 0 3 0 0x80 kqread dhcpleased
34522 48376 0 0 3 0x14000 0x200 bored smr
4046 72000 0 0 2 0x14000 0x200 zerothread
13933 363863 0 0 3 0x14000 0x200 aiodoned aiodoned
88316 242993 0 0 3 0x14000 0x200 syncer update
92197 443735 0 0 3 0x14000 0x200 cleaner cleaner
47371 429959 0 0 3 0x14000 0x200 reaper reaper
16762 180819 0 0 3 0x14000 0x200 pgdaemon pagedaemon
14553 379060 0 0 3 0x14000 0x200 bored viomb
42946 332912 0 0 3 0x14000 0x40000200 acpi0 acpi0
68387 412305 0 0 3 0x14000 0x40000200 idle1
53126 446094 0 0 3 0x14000 0x200 bored softnet1
12198 304363 0 0 3 0x14000 0x200 bored softnet0
4733 66802 0 0 3 0x14000 0x200 bored systqmp
25936 206138 0 0 3 0x14000 0x200 bored systq
56686 213616 0 0 3 0x14000 0x200 tmoslp softclockmp
42165 417409 0 0 3 0x14000 0x40000200 tmoslp softclock
53196 98208 0 0 3 0x14000 0x40000200 idle0
1 420553 0 0 3 0x2 0x80 wait init
0 0 -1 0 3 0x10000 0x200 scheduler swapper
ddb{0}> show all locks
Process 88727 (syz-executor) thread 0xffff80003c3bafb0 (243216)
exclusive rwlock netlock r = 0 (0xffffffff8394de20)
#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 in_ioctl_set_ifaddr+0xbb sys/netinet/in.c:376
#3 ifioctl+0x1714 pru_control sys/sys/protosw.h:353 [inline]
#3 ifioctl+0x1714 sys/net/if.c:2554
#4 sys_ioctl+0x674 sys/kern/sys_generic.c:-1
#5 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline]
#5 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791
#6 Xsyscall+0x128
exclusive kernel_lock &kernel_lock r = 1 (0xffffffff83a66580)
#0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160
#1 ifioctl+0x47f if_unit sys/net/if.c:-1 [inline]
#1 ifioctl+0x47f sys/net/if.c:2195
#2 sys_ioctl+0x674 sys/kern/sys_generic.c:-1
#3 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline]
#3 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791
#4 Xsyscall+0x128
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 11073 12092K 12145K 166960K 12216 0
pcb 18 12K 12K 166960K 23 0
rtable 245 17K 17K 166960K 469 0
pf 40 18K 25K 166960K 101 0
ifaddr 42 7K 7K 166960K 59 0
ifgroup 59 2K 2K 166960K 71 0
sysctl 3 1K 9K 166960K 7 0
counters 72 37K 37K 166960K 80 0
ioctlops 0 0K 4K 166960K 1505 0
iov 0 0K 12K 166960K 1 0
mount 1 1K 1K 166960K 1 0
log 0 0K 0K 166960K 4 0
vnodes 1305 82K 82K 166960K 1427 0
UFS quota 1 32K 32K 166960K 1 0
UFS mount 5 36K 36K 166960K 5 0
shm 2 1K 5K 166960K 5 0
VM map 2 1K 1K 166960K 2 0
sem 5 0K 0K 166960K 5 0
dirhash 12 2K 2K 166960K 12 0
ACPI 1692 195K 286K 166960K 12470 0
file desc 17 61K 93K 166960K 214 0
proc 71 115K 180K 166960K 612 0
subproc 72 4K 4K 166960K 90 0
NFS srvsock 1 0K 0K 166960K 1 0
NFS daemon 1 16K 16K 166960K 1 0
ip_moptions 0 0K 0K 166960K 15 0
in_multi 88 5K 6K 166960K 128 0
ether_multi 1 0K 0K 166960K 3 0
mrt 1 0K 0K 166960K 5 0
ISOFS mount 1 32K 32K 166960K 1 0
MSDOSFS mount 1 16K 16K 166960K 1 0
ttys 103 466K 466K 166960K 103 0
exec 0 0K 1K 166960K 425 0
fusefs mount 1 32K 32K 166960K 1 0
pfkey data 0 0K 0K 166960K 1 0
tdb 3 0K 0K 166960K 3 0
VM swap 8 62K 64K 166960K 10 0
UVM amap 246 167K 176K 166960K 3784 0
UVM aobj 7 2K 2K 166960K 7 0
pinsyscall 42 84K 104K 166960K 1462 0
memdesc 1 4K 4K 166960K 1 0
crypto data 1 1K 1K 166960K 1 0
NDP 17 0K 2K 166960K 37 0
temp 35 9118K 9138K 166960K 4407 0
kqueue 14 22K 26K 166960K 39 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 48 0 45 1 0 1 1 0 8 0
rtentry 176 137 0 35 6 0 6 6 0 8 0
unpcb 144 69 0 48 1 0 1 1 0 8 0
syncache 336 4 0 4 1 0 1 1 0 8 1
tcpcb 736 17 0 13 1 0 1 1 0 8 0
arp 136 23 0 6 1 0 1 1 0 8 0
inpcb 328 107 0 98 2 0 2 2 0 8 1
nd6 152 30 0 9 1 0 1 1 0 8 0
pkpcb 40 2 0 1 1 0 1 1 0 8 0
kcovpl 48 10 0 2 1 0 1 1 0 8 0
ppxss 1192 2 0 2 1 0 1 1 0 8 1
pfstscr 40 2 0 2 1 0 1 1 0 8 1
pfosfp 40 1428 0 1005 5 0 5 5 0 8 0
pfosfpen 112 1428 0 714 21 0 21 21 0 8 0
pfrktable 1344 5 0 1 1 0 1 1 0 8 0
pfanchor 1288 7 0 5 1 0 1 1 0 8 0
pftag 88 3 0 1 1 0 1 1 0 8 0
pfstitem 24 32 0 0 1 0 1 1 0 8 0
pfstkey 128 36 0 4 2 0 2 2 0 8 0
pfstate 448 34 0 2 4 0 4 4 0 8 0
pfrule 1360 25 0 16 2 0 2 2 0 8 0
art_heap8 4096 2 0 0 2 0 2 2 0 8 0
art_heap4 256 549 0 132 29 0 29 29 0 8 2
art_table 40 551 0 132 5 0 5 5 0 8 0
art_node 32 137 0 44 1 0 1 1 0 8 0
semapl 72 3 0 0 1 0 1 1 0 8 0
shmpl 112 4 0 0 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 1643 0 168 93 0 93 93 0 8 0
ffsino 296 1643 0 168 114 0 114 114 0 8 0
nchpl 144 1916 0 200 64 0 64 64 0 8 0
vnodes 216 1784 0 0 100 0 100 100 0 8 0
namei 1024 6973 0 6973 2 0 2 2 0 8 2
percpumem 16 56 0 4 1 0 1 1 0 8 0
pfiaddrpl 120 1 0 0 1 0 1 1 0 8 0
kstatmem 264 39 0 8 3 0 3 3 0 8 0
scxspl 216 6474 0 6474 4 2 2 3 1 8 2
plimitpl 152 45 0 25 1 0 1 1 0 8 0
sigapl 424 539 0 492 7 0 7 7 0 8 1
knotepl 120 97 0 0 3 0 3 3 0 8 0
kqueuepl 224 44 0 30 1 0 1 1 0 8 0
pipepl 344 137 0 110 3 0 3 3 0 8 0
fdescpl 528 523 0 492 3 0 3 3 0 8 0
filepl 160 1950 0 1716 11 0 11 11 0 8 0
lockfpl 104 94 0 92 1 0 1 1 0 8 0
lockfspl 48 16 0 14 1 0 1 1 0 8 0
sessionpl 144 27 0 18 1 0 1 1 0 8 0
pgrppl 48 38 0 21 1 0 1 1 0 8 0
ucredpl 104 175 0 162 1 0 1 1 0 8 0
zombiepl 144 493 0 492 1 0 1 1 0 8 0
processpl 1232 539 0 492 5 0 5 5 0 8 1
procpl 664 639 0 576 6 0 6 6 0 8 0
sockpl 752 228 0 194 4 0 4 4 0 8 0
mcl64k 65536 4 0 0 1 0 1 1 0 8 0
mcl16k 16384 5 0 0 1 0 1 1 0 8 0
mcl12k 12288 1 0 0 1 0 1 1 0 8 0
mcl8k 8192 2 0 0 1 0 1 1 0 8 0
mcl4k 4096 121 0 0 16 0 16 16 0 8 0
mcl2k 2048 27 0 0 4 0 4 4 0 8 0
mextrefs 64 24 0 0 1 0 1 1 0 8 0
mtagpl 96 3 0 0 1 0 1 1 0 8 0
mbufpl 256 171 0 0 11 0 11 11 0 8 0
bufpl 272 2378 0 106 152 0 152 152 0 8 0
anonpl 32 5512 0 0 45 0 45 45 0 247 0
amapchunkpl 152 10421 0 9890 25 0 25 25 0 158 3
amappl16 200 1398 0 1376 5 1 4 5 0 8 2
amappl15 192 2 0 2 1 1 0 1 0 8 0
amappl14 184 469 0 468 1 0 1 1 0 8 0
amappl13 176 131 0 119 1 0 1 1 0 8 0
amappl12 168 791 0 761 2 0 2 2 0 8 0
amappl11 160 3 0 3 1 1 0 1 0 8 0
amappl10 152 66 0 52 1 0 1 1 0 8 0
amappl9 144 275 0 275 1 1 0 1 0 8 0
amappl8 136 109 0 107 1 0 1 1 0 8 0
amappl7 128 156 0 143 1 0 1 1 0 8 0
amappl6 120 174 0 172 1 0 1 1 0 8 0
amappl5 112 95 0 85 1 0 1 1 0 8 0
amappl4 104 304 0 284 1 0 1 1 0 8 0
amappl3 96 1871 0 1767 3 0 3 3 0 8 0
amappl2 88 647 0 569 2 0 2 2 0 8 0
amappl1 80 11064 0 10470 15 0 15 15 0 8 1
amappl 88 2988 0 2815 5 0 5 5 0 92 0
uvmvnodes 80 100 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 6 0 0 1 0 1 1 0 8 0
uaddrrnd 24 523 0 492 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 523 0 492 1 0 1 1 0 8 0
vmmpekpl 168 6317 0 6266 3 0 3 3 0 8 0
vmmpepl 168 42504 0 40580 88 0 88 88 0 357 1
vmsppl 488 522 0 492 5 0 5 5 0 8 0
rwobjpl 80 15284 0 14249 24 0 24 24 0 8 1
pdppl 4096 1053 0 984 107 32 75 85 0 8 6
pvpl 32 11511 0 0 93 0 93 93 0 265 0
pmappl 256 522 0 492 3 0 3 3 0 8 0
extentpl 40 45 0 27 1 0 1 1 0 8 0
phpool 112 436 0 34 12 0 12 12 0 8 0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff834c72bd) at panic+0x1e5 sys/kern/subr_prf.c:198
__assert(ffffffff83502841,ffffffff8348ca17,520,ffffffff835663e1) at __assert+0x29 sys/kern/subr_prf.c:-1
rt_ifa_del(ffff80000164a300,800100,ffff80000164a368,ce) at rt_ifa_del+0x4bd
in_ioctl_set_ifaddr(8020690c,ffff8000327a34a0,ffff800001606000) at in_ioctl_set_ifaddr+0x2a1 in_remove_prefix sys/netinet/in.c:810 [inline]
in_ioctl_set_ifaddr(8020690c,ffff8000327a34a0,ffff800001606000) at in_ioctl_set_ifaddr+0x2a1 in_ifscrub sys/netinet/in.c:636 [inline]
in_ioctl_set_ifaddr(8020690c,ffff8000327a34a0,ffff800001606000) at in_ioctl_set_ifaddr+0x2a1 sys/netinet/in.c:404
ifioctl(ffff800010fde5f8,8020690c,ffff8000327a34a0,ffff80003c3bafb0) at ifioctl+0x1714 pru_control sys/sys/protosw.h:353 [inline]
ifioctl(ffff800010fde5f8,8020690c,ffff8000327a34a0,ffff80003c3bafb0) at ifioctl+0x1714 sys/net/if.c:2554
sys_ioctl(ffff80003c3bafb0,ffff8000327a3680,ffff8000327a35d0) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1
syscall(ffff8000327a3680) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff8000327a3680) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x806010b72d0, count: -9
ddb{0}> machine ddbcpu 1