panic: kernel diagnostic assertion "ifa == rt->rt_ifa" failed: file "/syzkaller/managers/multicore/kernel/sys/netinet6/nd6.c", line 954 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *109118 20232 0 0 0x4000000 0K syz-executor.5 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff8258741b) at panic+0x177 sys/kern/subr_prf.c:202 __assert(ffffffff825fc523,ffffffff825f266d,3ba,ffffffff8259b7f1) at __assert+0x25 sys/kern/subr_prf.c:161 nd6_rtrequest(ffff800000e33800,b,fffffd8067aac398) at nd6_rtrequest+0x8c3 sys/netinet6/nd6.c:954 rtrequest(b,ffff800027ab6118,83,ffff800027ab61b8,0) at rtrequest+0xa1c sys/net/route.c:981 rt_clone(ffff800027ab6220,ffff800027ab6290,0) at rt_clone+0x78 sys/net/route.c:265 rtalloc(ffff800027ab6290,1,0) at rtalloc+0x8d rt_match sys/net/route.c:243 [inline] rtalloc(ffff800027ab6290,1,0) at rtalloc+0x8d sys/net/route.c:371 ip6_setmoptions(c,fffffd806f67adf8,fffffd80680ca900,0) at ip6_setmoptions+0x5e2 sys/netinet6/ip6_output.c:2013 sys_setsockopt(ffff80002e36a008,ffff800027ab63a8,ffff800027ab6400) at sys_setsockopt+0x1fd sys/kern/uipc_syscalls.c:968 syscall(ffff800027ab6470) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800027ab6470) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75b17c728b0, count: 4 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 "ifa == rt->rt_ifa" failed: file "/syzkaller/managers/multicore/kernel/sys/netinet6/nd6.c", line 954 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff8258741b) at panic+0x177 sys/kern/subr_prf.c:202 __assert(ffffffff825fc523,ffffffff825f266d,3ba,ffffffff8259b7f1) at __assert+0x25 sys/kern/subr_prf.c:161 nd6_rtrequest(ffff800000e33800,b,fffffd8067aac398) at nd6_rtrequest+0x8c3 sys/netinet6/nd6.c:954 rtrequest(b,ffff800027ab6118,83,ffff800027ab61b8,0) at rtrequest+0xa1c sys/net/route.c:981 rt_clone(ffff800027ab6220,ffff800027ab6290,0) at rt_clone+0x78 sys/net/route.c:265 rtalloc(ffff800027ab6290,1,0) at rtalloc+0x8d rt_match sys/net/route.c:243 [inline] rtalloc(ffff800027ab6290,1,0) at rtalloc+0x8d sys/net/route.c:371 ip6_setmoptions(c,fffffd806f67adf8,fffffd80680ca900,0) at ip6_setmoptions+0x5e2 sys/netinet6/ip6_output.c:2013 sys_setsockopt(ffff80002e36a008,ffff800027ab63a8,ffff800027ab6400) at sys_setsockopt+0x1fd sys/kern/uipc_syscalls.c:968 syscall(ffff800027ab6470) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800027ab6470) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75b17c728b0, count: -11 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800027ab5e60 rbx 0xffffffff82922bff cpu_info_full_primary+0x2bff rdx 0xffff800000becc40 rcx 0 rax 0xffff80002e36a008 r8 0 r9 0x8080808080808080 r10 0x57ae39ce6915e6ef r11 0xc76fcbf11a27fe6d r12 0xffffffff82922a00 cpu_info_full_primary+0x2a00 r13 0 r14 0 r15 0x1 rip 0xffffffff822ade58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800027ab5e50 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.5) pid=109118 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=84, nice=20 forw=0xffffffffffffffff, list=0xffff80002e36b268,0xffff8000ffff4a90 process=0xffff8000fffed0b8 user=0xffff800027ab1000, vmspace=0xfffffd805cc085c0 estcpu=34, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 15840 430465 92074 0 2 0 syz-executor.2 15840 318093 92074 0 3 0x4000080 fsleep syz-executor.2 77740 126532 70921 0 2 0 syz-executor.6 77740 231228 70921 0 3 0x4000080 fsleep syz-executor.6 73361 54753 85223 0 2 0 syz-executor.3 73361 270613 85223 0 3 0x4000080 fsleep syz-executor.3 93753 260563 92292 0 2 0 syz-executor.4 93753 411262 92292 0 3 0x4000080 fsleep syz-executor.4 60792 283369 13835 0 2 0 syz-executor.0 60792 127777 13835 0 3 0x4000080 fsleep syz-executor.0 20232 138411 41560 0 2 0 syz-executor.5 *20232 109118 41560 0 7 0x4000000 syz-executor.5 95480 124429 8121 0 2 0x482 syz-executor.7 70921 192431 8121 0 2 0x482 syz-executor.6 85223 245855 8121 0 3 0x82 nanoslp syz-executor.3 92003 428524 8121 0 3 0x82 nanoslp syz-executor.1 70344 425158 1 0 3 0x100083 ttyin getty 13835 148397 8121 0 3 0x82 nanoslp syz-executor.0 92074 75596 8121 0 3 0x82 nanoslp syz-executor.2 92292 147937 8121 0 3 0x82 nanoslp syz-executor.4 41560 372295 8121 0 3 0x82 nanoslp syz-executor.5 60204 148418 0 0 3 0x14200 acct acct 72852 316328 0 0 3 0x14200 bored sosplice 8121 110457 953 0 3 0x82 thrsleep syz-fuzzer 8121 173834 953 0 3 0x4000082 thrsleep syz-fuzzer 8121 498832 953 0 3 0x4000082 kqread syz-fuzzer 8121 121288 953 0 3 0x4000082 thrsleep syz-fuzzer 8121 207531 953 0 3 0x4000082 thrsleep syz-fuzzer 8121 126884 953 0 3 0x4000082 thrsleep syz-fuzzer 8121 295684 953 0 3 0x4000082 thrsleep syz-fuzzer 8121 422463 953 0 3 0x4000082 thrsleep syz-fuzzer 8121 369659 953 0 3 0x4000082 thrsleep syz-fuzzer 953 148011 73035 0 3 0x10008a sigsusp ksh 73035 215307 20608 0 3 0x9a kqread sshd 20608 424857 1 0 3 0x88 kqread sshd 61677 144294 49344 74 3 0x1100092 bpf pflogd 49344 28354 1 0 3 0x80 netio pflogd 69215 38427 39664 73 3 0x1100090 kqread syslogd 39664 84904 1 0 3 0x100082 netio syslogd 48394 59770 1 0 3 0x100080 kqread resolvd 36547 444636 2227 77 3 0x100092 kqread dhcpleased 67735 265452 2227 77 3 0x100092 kqread dhcpleased 2227 224143 1 0 3 0x80 kqread dhcpleased 93900 367715 0 0 3 0x14200 bored smr 53707 431424 0 0 2 0x14200 zerothread 30451 203095 0 0 3 0x14200 aiodoned aiodoned 85594 291673 0 0 3 0x14200 syncer update 15036 378481 0 0 3 0x14200 cleaner cleaner 78145 279310 0 0 3 0x14200 reaper reaper 51139 18725 0 0 3 0x14200 pgdaemon pagedaemon 58200 265062 0 0 3 0x14200 bored viomb 95271 6906 0 0 3 0x40014200 acpi0 acpi0 82542 162307 0 0 7 0x40014200 idle1 24193 316975 0 0 3 0x14200 bored softnet 45425 260374 0 0 3 0x14200 bored systqmp 9159 46601 0 0 3 0x14200 bored systq 42211 309064 0 0 2 0x40014200 softclock 46918 111567 0 0 3 0x40014200 idle0 1 469997 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 20232 (syz-executor.5) thread 0xffff80002e36a008 (109118) exclusive rwlock netlock r = 0 (0xffffffff829850b0) #0 witness_lock+0x44d #1 solock+0x86 sys/kern/uipc_socket2.c:295 #2 sys_setsockopt+0x1e2 sys/kern/uipc_syscalls.c:967 #3 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #3 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #4 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 1 (0xffffffff829c5130) #0 witness_lock+0x44d #1 syscall+0x3ef mi_syscall sys/sys/syscall_mi.h:93 [inline] #1 syscall+0x3ef sys/arch/amd64/amd64/trap.c:585 #2 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10235 6521K 8938K 78643K 31166 0 pcb 14 22K 26K 78643K 9823 0 rtable 222 16K 25K 78643K 4886 0 ifaddr 105 23K 25K 78643K 2183 0 sysctl 2 0K 4K 78643K 6 0 counters 58 35K 36K 78643K 298 0 ioctlops 0 0K 8K 78643K 5396 0 iov 0 0K 32K 78643K 1406 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1559 97K 98K 78643K 7471 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 169 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 1717 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 16 57K 85K 78643K 12959 0 sigio 1 0K 0K 78643K 47 0 proc 71 87K 111K 78643K 1866 0 subproc 104 6K 6K 78643K 549 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 1 0K 0K 78643K 768 0 in_multi 92 6K 6K 78643K 959 0 ether_multi 1 0K 0K 78643K 159 0 mrt 1 0K 0K 78643K 47 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 295 1314K 1314K 78643K 295 0 exec 0 0K 2K 78643K 2621 0 pfkey data 0 0K 1K 78643K 3 0 tdb 3 0K 0K 78643K 3 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 596 869K 874K 78643K 165625 0 UVM aobj 131 4K 4K 78643K 131 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 1 0K 1K 78643K 3855 0 NDP 16 0K 1K 78643K 237 0 temp 177 4769K 4857K 78643K 113613 0 kqueue 12 18K 28K 78643K 631 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 plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 757 0 754 10 9 1 3 0 8 0 rtentry 112 685 0 592 4 1 3 4 0 8 0 unpcb 136 5052 0 5037 65 62 3 6 0 8 2 syncache 296 43 0 43 16 16 0 1 0 8 0 tcpqe 32 57 0 57 7 7 0 1 0 8 0 tcpcb 736 3444 0 3436 115 113 2 19 0 8 1 arp 120 100 0 82 1 0 1 1 0 8 0 inpcb 304 31394 0 31382 286 277 9 21 0 8 8 rttmr 72 12 0 12 4 4 0 1 0 8 0 nd6 48 167 0 148 1 0 1 1 0 8 0 pkpcb 40 53 0 53 9 9 0 1 0 8 0 kcovpl 48 42 0 34 1 0 1 1 0 8 0 ppxss 1248 40 0 40 13 13 0 1 0 8 0 pfstscr 40 127 0 127 7 7 0 1 0 8 0 pffrag 232 68 0 67 5 4 1 1 0 482 0 pffrnode 88 64 0 63 5 4 1 1 0 8 0 pffrent 40 287 0 286 6 5 1 1 0 8 0 pfosfp 40 1439 0 1014 5 0 5 5 0 8 0 pfosfpen 112 1439 0 719 21 0 21 21 0 8 0 pfrktable 1344 1363 0 1361 9 8 1 2 0 8 0 pftag 88 26 0 18 1 0 1 1 0 8 0 pfqueue 264 74 0 74 3 3 0 1 0 8 0 pfstitem 24 51 0 49 1 0 1 1 0 8 0 pfstkey 112 350 0 348 1 0 1 1 0 8 0 pfstate 320 193 0 191 2 1 1 2 0 8 0 pfrule 1360 1372 0 1354 24 22 2 20 0 8 0 art_heap8 4096 2 0 1 2 1 1 2 0 8 0 art_heap4 256 3203 0 2808 48 17 31 31 0 8 0 art_table 32 3205 0 2809 4 0 4 4 0 8 0 art_node 16 683 0 600 1 0 1 1 0 8 0 sysvmsgpl 40 98 0 58 1 0 1 1 0 8 0 semapl 112 1715 0 1705 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 18414 0 16938 93 0 93 93 0 8 0 ffsino 272 18414 0 16938 99 0 99 99 0 8 0 nchpl 144 34968 0 33341 63 0 63 63 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 224 5926 0 0 349 0 349 349 0 8 0 namei 1024 119716 0 119716 6 5 1 2 0 8 1 percpumem 16 161 0 120 1 0 1 1 0 8 0 vcpupl 2048 120 0 1 15 0 15 15 0 8 0 vmpool 560 141 0 22 9 0 9 9 0 8 0 pfiaddrpl 120 404 0 395 4 3 1 1 0 8 0 scsiplug 72 5 0 5 2 2 0 1 0 8 0 scxspl 216 107976 0 107976 22 21 1 8 0 8 1 plimitpl 152 1450 0 1435 1 0 1 1 0 8 0 sigapl 424 13215 0 13168 8 1 7 8 0 8 0 futexpl 64 126761 0 126756 8 7 1 1 0 8 0 knotepl 120 766 0 0 8 0 8 8 0 8 0 kqueuepl 216 2124 0 2115 48 47 1 5 0 8 0 pipepl 336 2280 0 2251 58 52 6 8 0 8 3 fdescpl 496 13179 0 13150 5 1 4 5 0 8 0 filepl 152 97541 0 97293 155 138 17 22 0 8 7 lockfpl 104 3443 0 3441 8 7 1 2 0 8 0 lockfspl 48 940 0 938 1 0 1 1 0 8 0 sessionpl 144 60 0 43 1 0 1 1 0 8 0 pgrppl 48 653 0 636 1 0 1 1 0 8 0 ucredpl 96 10249 0 10237 1 0 1 1 0 8 0 zombiepl 144 13170 0 13168 2 1 1 1 0 8 0 processpl 1064 13215 0 13168 5 0 5 5 0 8 0 procpl 672 37400 0 37339 28 21 7 9 0 8 0 srpgc 96 55 0 55 14 13 1 1 0 8 1 sosppl 168 120 0 120 17 17 0 1 0 8 0 sockpl 480 37405 0 37373 671 657 14 46 0 8 8 mcl64k 65536 34 0 0 3 0 3 3 0 8 0 mcl16k 16384 17 0 0 3 1 2 3 0 8 0 mcl12k 12288 27 0 0 2 0 2 2 0 8 0 mcl9k 9216 22 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 26 0 0 4 1 3 3 0 8 0 mcl2k2 2112 10 0 0 1 0 1 1 0 8 0 mcl2k 2048 282 0 0 19 4 15 19 0 8 0 mtagpl 96 692 0 0 12 0 12 12 0 8 0 mbufpl 256 1197 0 0 52 0 52 52 0 8 0 bufpl 288 21791 0 15455 453 0 453 453 0 8 0 anonpl 24 3951528 0 3931328 508 350 158 205 0 186 12 amapchunkpl 152 407883 0 406925 161 120 41 71 0 158 0 amappl16 200 43144 0 42389 255 207 48 53 0 8 8 amappl15 192 1823 0 1818 1 0 1 1 0 8 0 amappl14 184 3084 0 3079 1 0 1 1 0 8 0 amappl13 176 1263 0 1257 1 0 1 1 0 8 0 amappl12 168 1765 0 1758 2 1 1 1 0 8 0 amappl11 160 1549 0 1534 1 0 1 1 0 8 0 amappl10 152 1532 0 1527 1 0 1 1 0 8 0 amappl9 144 907 0 903 1 0 1 1 0 8 0 amappl8 136 3592 0 3430 6 0 6 6 0 8 0 amappl7 128 2248 0 2230 1 0 1 1 0 8 0 amappl6 120 779 0 750 3 2 1 2 0 8 0 amappl5 112 11465 0 11447 1 0 1 1 0 8 0 amappl4 104 5064 0 5026 4 2 2 2 0 8 0 amappl3 96 3048 0 3033 1 0 1 1 0 8 0 amappl2 88 3587 0 3527 3 1 2 3 0 8 0 amappl1 80 241057 0 240466 26 12 14 19 0 8 0 amappl 88 164112 0 163767 10 1 9 9 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 72 130 0 0 3 0 3 3 0 8 0 uaddrrnd 24 13320 0 13172 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 13320 0 13172 1 0 1 1 0 8 0 vmmpekpl 168 98775 0 98709 4 0 4 4 0 8 0 vmmpepl 168 1211851 0 1208725 412 247 165 165 0 357 20 vmsppl 368 13319 0 13172 15 1 14 14 0 8 0 rwobjpl 56 301356 0 293367 138 21 117 117 0 8 0 pdppl 4096 26647 0 26463 688 500 188 188 0 8 4 pvpl 32 6598198 0 6574504 776 533 243 334 0 265 19 pmappl 248 13319 0 13172 11 1 10 10 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 1706 0 719 29 0 29 29 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:440 panic(ffffffff8258741b) at panic+0x177 sys/kern/subr_prf.c:202 __assert(ffffffff825fc523,ffffffff825f266d,3ba,ffffffff8259b7f1) at __assert+0x25 sys/kern/subr_prf.c:161 nd6_rtrequest(ffff800000e33800,b,fffffd8067aac398) at nd6_rtrequest+0x8c3 sys/netinet6/nd6.c:954 rtrequest(b,ffff800027ab6118,83,ffff800027ab61b8,0) at rtrequest+0xa1c sys/net/route.c:981 rt_clone(ffff800027ab6220,ffff800027ab6290,0) at rt_clone+0x78 sys/net/route.c:265 rtalloc(ffff800027ab6290,1,0) at rtalloc+0x8d rt_match sys/net/route.c:243 [inline] rtalloc(ffff800027ab6290,1,0) at rtalloc+0x8d sys/net/route.c:371 ip6_setmoptions(c,fffffd806f67adf8,fffffd80680ca900,0) at ip6_setmoptions+0x5e2 sys/netinet6/ip6_output.c:2013 sys_setsockopt(ffff80002e36a008,ffff800027ab63a8,ffff800027ab6400) at sys_setsockopt+0x1fd sys/kern/uipc_syscalls.c:968 syscall(ffff800027ab6470) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800027ab6470) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75b17c728b0, count: -11 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020ce8ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800020ce8ff0) at sched_idle+0x417 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff800020ce8ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800020ce8ff0) at sched_idle+0x417 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: -5