panic: kernel diagnostic assertion "rt->rt_ifa->ifa_ifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 848 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *437608 41893 0 0 0x4000000 0K syz-executor.1 468691 22860 0 0 0x4000000 1 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff82205bea,ffffffff821ce864,350,ffffffff821a64b5) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800022ba52e8,83,ffff800022ba5388,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800022ba53f8,ffff800000adb988,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc(ffff800000adb988,1,0) at rtalloc+0x85 rt_match sys/net/route.c:244 [inline] rtalloc(ffff800000adb988,1,0) at rtalloc+0x85 sys/net/route.c:372 ifa_ifwithroute(fe04c626,ffff800000adb960,ffff800000adb988,5) at ifa_ifwithroute+0x10d sys/net/rtsock.c:1176 rtm_getifa(ffff800022ba55b0,5) at rtm_getifa+0x1e3 rtm_output(ffff800000adb900,ffff800022ba5650,ffff800022ba55b0,1b,5) at rtm_output+0x5ce sys/net/rtsock.c:897 route_output(fffffd806d3fea00,fffffd806f6d5900,0,0) at route_output+0x60b sys/net/rtsock.c:819 route_usrreq(fffffd806f6d5900,9,fffffd806d3fea00,0,0,ffff800020ab1650) at route_usrreq+0x363 sys/net/rtsock.c:275 sosend(fffffd806f6d5900,0,ffff800022ba5830,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 sendit(ffff800020ab1650,4,ffff800022ba5910,0,ffff800022ba59f0) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800020ab1650,ffff800022ba59a8,ffff800022ba59f0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 end trace frame: 0xffff800022ba5a60, count: 0 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 kernel diagnostic assertion "rt->rt_ifa->ifa_ifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 848 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff82205bea,ffffffff821ce864,350,ffffffff821a64b5) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(b,ffff800022ba52e8,83,ffff800022ba5388,0) at rtrequest+0xbd2 sys/net/route.c:951 rt_clone(ffff800022ba53f8,ffff800000adb988,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc(ffff800000adb988,1,0) at rtalloc+0x85 rt_match sys/net/route.c:244 [inline] rtalloc(ffff800000adb988,1,0) at rtalloc+0x85 sys/net/route.c:372 ifa_ifwithroute(fe04c626,ffff800000adb960,ffff800000adb988,5) at ifa_ifwithroute+0x10d sys/net/rtsock.c:1176 rtm_getifa(ffff800022ba55b0,5) at rtm_getifa+0x1e3 rtm_output(ffff800000adb900,ffff800022ba5650,ffff800022ba55b0,1b,5) at rtm_output+0x5ce sys/net/rtsock.c:897 route_output(fffffd806d3fea00,fffffd806f6d5900,0,0) at route_output+0x60b sys/net/rtsock.c:819 route_usrreq(fffffd806f6d5900,9,fffffd806d3fea00,0,0,ffff800020ab1650) at route_usrreq+0x363 sys/net/rtsock.c:275 sosend(fffffd806f6d5900,0,ffff800022ba5830,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 sendit(ffff800020ab1650,4,ffff800022ba5910,0,ffff800022ba59f0) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800020ab1650,ffff800022ba59a8,ffff800022ba59f0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800022ba5a70) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022ba5a70) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffffd8,0,6,334364e8010) at Xsyscall+0x128 end of kernel end trace frame: 0x33714647b70, count: -16 ddb{0}> show registers rdi 0xffffffff81800b47 db_enter+0x17 rsi 0x4f86 __ALIGN_SIZE+0x3f86 rbp 0xffff800022ba5100 rbx 0xffff800022ba51b0 rdx 0x4f87 __ALIGN_SIZE+0x3f87 rcx 0xffff800021960000 rax 0xffff800021960000 r8 0xffffffff8149825f kprintf+0x16f r9 0x1 r10 0x25 r11 0x1e03f57ff394794c r12 0x3000000008 r13 0xffff800022ba5110 r14 0x100 r15 0x1 rip 0xffffffff81800b48 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022ba50f0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=437608 stat=onproc flags process=0 proc=4000000 pri=76, usrpri=76, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab1160,0xffffffff82662210 process=0xffff800020adc000 user=0xffff800022ba0000, vmspace=0xfffffd807f00a450 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 41893 379891 18749 0 2 0 syz-executor.1 *41893 437608 18749 0 7 0x4000000 syz-executor.1 22860 330960 14611 0 2 0 syz-executor.0 22860 468691 14611 0 7 0x4000000 syz-executor.0 14611 184273 907 0 2 0x482 syz-executor.0 18749 221096 907 0 2 0x482 syz-executor.1 23581 494399 0 0 3 0x14200 bored sosplice 907 315545 16611 0 3 0x82 thrsleep syz-fuzzer 907 85180 16611 0 3 0x4000082 thrsleep syz-fuzzer 907 25219 16611 0 3 0x4000082 thrsleep syz-fuzzer 907 245306 16611 0 3 0x4000082 kqread syz-fuzzer 907 221069 16611 0 3 0x4000082 thrsleep syz-fuzzer 907 174533 16611 0 3 0x4000082 thrsleep syz-fuzzer 907 513559 16611 0 3 0x4000082 thrsleep syz-fuzzer 907 178837 16611 0 3 0x4000082 thrsleep syz-fuzzer 907 246846 16611 0 3 0x4000082 thrsleep syz-fuzzer 907 78832 16611 0 3 0x4000082 thrsleep syz-fuzzer 16611 186535 88452 0 3 0x10008a pause ksh 88452 337761 12707 0 3 0x92 select sshd 77389 30964 1 0 3 0x100083 ttyin getty 12707 64468 1 0 3 0x80 select sshd 86105 378643 68712 74 3 0x100092 bpf pflogd 68712 453592 1 0 3 0x80 netio pflogd 39317 210535 72177 73 3 0x100090 kqread syslogd 72177 482962 1 0 3 0x100082 netio syslogd 68322 465067 1 77 3 0x100090 poll dhclient 10477 90412 1 0 3 0x80 poll dhclient 83109 482291 0 0 2 0x14200 zerothread 96996 264771 0 0 3 0x14200 aiodoned aiodoned 99803 213532 0 0 3 0x14200 syncer update 61478 294555 0 0 3 0x14200 cleaner cleaner 23207 448195 0 0 3 0x14200 reaper reaper 57745 440108 0 0 3 0x14200 pgdaemon pagedaemon 87375 126483 0 0 3 0x14200 bored crynlk 20258 354036 0 0 3 0x14200 bored crypto 73847 319422 0 0 3 0x40014200 acpi0 acpi0 43875 457335 0 0 3 0x40014200 idle1 36341 263430 0 0 3 0x14200 bored softnet 14669 349973 0 0 3 0x14200 bored systqmp 8123 128147 0 0 3 0x14200 bored systq 44156 139512 0 0 3 0x40014200 bored softclock 21073 9472 0 0 3 0x40014200 idle0 31799 38064 0 0 3 0x14200 bored smr 1 97558 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 41893 (syz-executor.1) thread 0xffff800020ab1650 (437608) exclusive rwlock netlock r = 0 (0xffffffff8250cdb8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rtm_output+0x5c3 sys/net/rtsock.c:897 #2 route_output+0x60b sys/net/rtsock.c:819 #3 route_usrreq+0x363 sys/net/rtsock.c:275 #4 sosend+0x645 sys/kern/uipc_socket.c:524 #5 sendit+0x52b sys/kern/uipc_syscalls.c:662 #6 sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 #7 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #7 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #8 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 1 (0xffffffff82624c28) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 solock+0x66 sys/kern/uipc_socket2.c:292 #2 sosend+0x51b sys/kern/uipc_socket.c:512 #3 sendit+0x52b sys/kern/uipc_syscalls.c:662 #4 sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #6 Xsyscall+0x128 Process 22860 (syz-executor.0) thread 0xffff800020ab1160 (468691) exclusive rrwlock inode r = 0 (0xfffffd806ebd1a28) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 ufs_ihashins+0x45 sys/ufs/ufs/ufs_ihash.c:140 #4 ffs_vget+0x13e sys/ufs/ffs/ffs_vfsops.c:1352 #5 ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392 #6 ufs_makeinode+0xaa sys/ufs/ufs/ufs_vnops.c:1832 #7 ufs_symlink+0x47 sys/ufs/ufs/ufs_vnops.c:1384 #8 VOP_SYMLINK+0xdd sys/kern/vfs_vops.c:498 #9 dosymlinkat+0x161 sys/kern/vfs_syscalls.c:1739 #10 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #10 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #11 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806d9000a8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:574 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 dosymlinkat+0xbb sys/kern/vfs_syscalls.c:1725 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9554 6428K 7174K 78643K 12393 0 0 pcb 13 10K 12K 78643K 191 0 0 rtable 104 4K 4K 78643K 615 0 0 ifaddr 72 15K 15K 78643K 161 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1511 0 0 iov 0 0K 28K 78643K 1843 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1227 77K 77K 78643K 1851 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 13 0 0 VM map 9 4K 4K 78643K 11 0 0 sem 12 1K 1K 78643K 166 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 1442 0 0 sigio 0 0K 0K 78643K 34 0 0 proc 60 63K 95K 78643K 684 0 0 subproc 32 2K 2K 78643K 102 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 55 0 0 in_multi 24 1K 2K 78643K 111 0 0 ether_multi 1 0K 0K 78643K 9 0 0 mrt 0 0K 0K 78643K 7 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 54 238K 238K 78643K 54 0 0 exec 0 0K 1K 78643K 352 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 134 75K 76K 78643K 5235 0 0 UVM aobj 102 4K 4K 78643K 102 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 141 0 0 NDP 16 0K 0K 78643K 48 0 0 temp 184 3560K 3635K 78643K 12513 0 0 kqueue 0 0K 0K 78643K 6 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 22 0 15 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 96 0 93 1 0 1 1 0 8 0 rtentry 112 119 0 79 2 0 2 2 0 8 0 unpcb 120 464 0 454 1 0 1 1 0 8 0 syncache 264 7 0 7 3 3 0 1 0 8 0 tcpcb 544 577 0 573 17 16 1 13 0 8 0 inpcb 280 1236 0 1229 13 11 2 9 0 8 1 rttmr 72 2 0 2 1 1 0 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 3 0 3 1 1 0 1 0 8 0 nd6 48 14 0 12 1 0 1 1 0 8 0 pkpcb 40 6 0 6 2 2 0 1 0 8 0 swfcl 56 1 0 0 1 0 1 1 0 8 0 ppxss 1128 10 0 10 4 3 1 1 0 8 1 pffrag 232 22 0 22 3 3 0 1 0 482 0 pffrnode 88 22 0 22 3 3 0 1 0 8 0 pffrent 40 638 0 638 3 3 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 79 0 24 1 0 1 1 0 8 0 pfstkey 112 79 0 24 2 0 2 2 0 8 0 pfstate 328 79 0 24 5 0 5 5 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 482 0 295 18 6 12 15 0 8 0 art_table 32 483 0 295 2 0 2 2 0 8 0 art_node 16 117 0 80 1 0 1 1 0 8 0 sysvmsgpl 40 38 0 33 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 164 0 154 1 0 1 1 0 8 0 shmpl 112 100 0 0 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4136 0 2728 46 0 46 46 0 8 0 ffsino 272 4136 0 2728 94 0 94 94 0 8 0 nchpl 144 7697 0 6097 60 0 60 60 0 8 0 uvmvnodes 72 4653 0 0 85 0 85 85 0 8 0 vnodes 208 4653 0 0 245 0 245 245 0 8 0 namei 1024 26402 0 26400 1 0 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 7 0 0 1 0 1 1 0 8 0 vmpool 552 9 0 2 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 0 1 1 0 8 1 scxspl 192 19401 0 19401 11 10 1 7 0 8 1 plimitpl 152 55 0 47 1 0 1 1 0 8 0 sigapl 432 1628 0 1612 3 1 2 3 0 8 0 futexpl 56 35149 0 35149 1 0 1 1 0 8 1 knotepl 112 203 0 184 2 1 1 2 0 8 0 kqueuepl 104 284 0 282 4 3 1 4 0 8 0 pipepl 112 604 0 585 1 0 1 1 0 8 0 fdescpl 488 1629 0 1612 3 0 3 3 0 8 0 filepl 152 10899 0 10796 17 11 6 14 0 8 2 lockfpl 104 303 0 302 1 0 1 1 0 8 0 lockfspl 48 118 0 117 1 0 1 1 0 8 0 sessionpl 112 22 0 11 1 0 1 1 0 8 0 pgrppl 48 44 0 33 1 0 1 1 0 8 0 ucredpl 96 690 0 681 1 0 1 1 0 8 0 zombiepl 144 1613 0 1613 1 0 1 1 0 8 1 processpl 896 1646 0 1613 4 0 4 4 0 8 0 procpl 632 4215 0 4171 6 1 5 5 0 8 1 srpgc 64 6 0 6 2 1 1 1 0 8 1 sosppl 128 32 0 32 3 2 1 1 0 8 1 sockpl 384 1812 0 1792 21 16 5 14 0 8 3 mcl64k 65536 18 0 0 3 0 3 3 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 10 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 14 0 0 2 0 2 2 0 8 0 mcl4k 4096 8 0 0 1 0 1 1 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 166 0 0 20 0 20 20 0 8 0 mtagpl 80 42 0 0 1 0 1 1 0 8 0 mbufpl 256 316 0 0 19 0 19 19 0 8 0 bufpl 256 9562 0 2504 442 0 442 442 0 8 0 anonpl 16 158807 0 139202 94 9 85 89 0 124 3 amapchunkpl 152 8668 0 8512 18 10 8 14 0 158 0 amappl16 192 7363 0 6252 68 11 57 67 0 8 1 amappl15 184 2 0 1 1 0 1 1 0 8 0 amappl14 176 270 0 262 1 0 1 1 0 8 0 amappl13 168 324 0 324 2 2 0 1 0 8 0 amappl12 160 17 0 15 2 1 1 1 0 8 0 amappl11 152 104 0 89 1 0 1 1 0 8 0 amappl10 144 562 0 557 1 0 1 1 0 8 0 amappl9 136 919 0 914 1 0 1 1 0 8 0 amappl8 128 498 0 462 2 0 2 2 0 8 0 amappl7 120 601 0 595 1 0 1 1 0 8 0 amappl6 112 85 0 76 1 0 1 1 0 8 0 amappl5 104 185 0 170 1 0 1 1 0 8 0 amappl4 96 2533 0 2501 1 0 1 1 0 8 0 amappl3 88 456 0 448 1 0 1 1 0 8 0 amappl2 80 12174 0 12093 3 1 2 3 0 8 0 amappl1 72 44223 0 43764 25 15 10 20 0 8 0 amappl 80 4548 0 4495 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 17 0 17 1 1 0 1 0 8 0 aobjpl 64 101 0 0 2 0 2 2 0 8 0 uaddrrnd 24 1638 0 1612 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1638 0 1612 1 0 1 1 0 8 0 vmmpekpl 168 15423 0 15385 3 1 2 2 0 8 0 vmmpepl 168 207195 0 204809 175 32 143 143 0 357 38 vmsppl 368 1628 0 1612 2 0 2 2 0 8 0 pdppl 4096 3283 0 3235 7 0 7 7 0 8 1 pvpl 32 464463 0 441508 217 11 206 210 0 265 16 pmappl 232 1637 0 1614 2 0 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 637 0 25 18 0 18 18 0 8 0