/panic: kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/main/kernel/sys/net/route.c", line 1078 Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *426024 22158 0 0x8000000 0x4000000 0 syz-executor.1 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8292c28e) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828e1baf,ffffffff828940b0,436,ffffffff82858367) at __assert+0x29 sys/kern/subr_prf.c:157 rtrequest(1,ffff8000378a8a48,4,ffff8000378a8b18,0) at rtrequest+0xb49 sys/net/route.c:1078 rt_ifa_add(ffff800000e4d600,840100,ffff800000e4d658,0) at rt_ifa_add+0x2b3 sys/net/route.c:1273 in_ifinit(ffff800000dd8800,ffff800000e4d600,ffff800000e4d658,1) at in_ifinit+0x368 in_insert_prefix sys/netinet/in.c:770 [inline] in_ifinit(ffff800000dd8800,ffff800000e4d600,ffff800000e4d658,1) at in_ifinit+0x368 sys/netinet/in.c:703 in_ioctl_change_ifaddr(8040691a,ffff8000378a8d80,ffff800000dd8800) at in_ioctl_change_ifaddr+0x67a sys/netinet/in.c:504 ifioctl(fffffd80679ded80,8040691a,ffff8000378a8d80,ffff80002a6aef88) at ifioctl+0x104c pru_control sys/sys/protosw.h:377 [inline] ifioctl(fffffd80679ded80,8040691a,ffff8000378a8d80,ffff80002a6aef88) at ifioctl+0x104c sys/net/if.c:2449 sys_ioctl(ffff80002a6aef88,ffff8000378a8f60,ffff8000378a8eb0) at sys_ioctl+0x4a5 syscall(ffff8000378a8f60) at syscall+0x72a sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfdfad0cba50, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/main/kernel/sys/net/route.c", line 1078 ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8292c28e) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828e1baf,ffffffff828940b0,436,ffffffff82858367) at __assert+0x29 sys/kern/subr_prf.c:157 rtrequest(1,ffff8000378a8a48,4,ffff8000378a8b18,0) at rtrequest+0xb49 sys/net/route.c:1078 rt_ifa_add(ffff800000e4d600,840100,ffff800000e4d658,0) at rt_ifa_add+0x2b3 sys/net/route.c:1273 in_ifinit(ffff800000dd8800,ffff800000e4d600,ffff800000e4d658,1) at in_ifinit+0x368 in_insert_prefix sys/netinet/in.c:770 [inline] in_ifinit(ffff800000dd8800,ffff800000e4d600,ffff800000e4d658,1) at in_ifinit+0x368 sys/netinet/in.c:703 in_ioctl_change_ifaddr(8040691a,ffff8000378a8d80,ffff800000dd8800) at in_ioctl_change_ifaddr+0x67a sys/netinet/in.c:504 ifioctl(fffffd80679ded80,8040691a,ffff8000378a8d80,ffff80002a6aef88) at ifioctl+0x104c pru_control sys/sys/protosw.h:377 [inline] ifioctl(fffffd80679ded80,8040691a,ffff8000378a8d80,ffff80002a6aef88) at ifioctl+0x104c sys/net/if.c:2449 sys_ioctl(ffff80002a6aef88,ffff8000378a8f60,ffff8000378a8eb0) at sys_ioctl+0x4a5 syscall(ffff8000378a8f60) at syscall+0x72a sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfdfad0cba50, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000378a8870 rbx 0xffff8000006bad20 rdx 0xffff800000dc8d40 rcx 0 rax 0xffff80002a6aef88 r8 0 r9 0x8080808080808080 r10 0xef42c35aa6af1996 r11 0xa9800b9506a1ddca r12 0 r13 0x10000 __ALIGN_SIZE+0xf000 r14 0 r15 0x1 rip 0xffffffff81d7c04c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff8000378a8860 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) tid=426024 pid=22158 tcnt=2 stat=onproc flags process=8000000 proc=4000000 runpri=32, usrpri=59, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002a6af4a8,0xffffffff82e24af0 process=0xffff8000378890e0 user=0xffff8000378a4000, vmspace=0xfffffd80697a7168 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 22158 127303 66503 0 2 0x8000000 syz-executor.1 *22158 426024 66503 0 7 0xc000000 syz-executor.1 26729 340541 3212 0 2 0x8000000 syz-executor.5 26729 423291 3212 0 3 0xc000080 fsleep syz-executor.5 1928 62625 56651 0 2 0x8000000 syz-executor.2 1928 328308 56651 0 3 0xc000080 ttyin syz-executor.2 26774 182422 90351 0 2 0x8000000 syz-executor.7 26774 261362 90351 0 3 0xc000080 fsleep syz-executor.7 12212 13350 97540 0 2 0x8000000 syz-executor.3 12212 111186 97540 0 3 0xc000080 fsleep syz-executor.3 6328 428984 56235 60928 2 0x8000010 syz-executor.0 6328 66708 56235 60928 2 0xc000010 syz-executor.0 6328 335382 56235 60928 3 0xc000090 fsleep syz-executor.0 16507 349788 32180 0 2 0x8000480 syz-executor.6 16507 97517 32180 0 3 0xc000080 kqpoll syz-executor.6 72871 139518 0 0 3 0x14280 nfsidl nfsio 43796 101820 0 0 3 0x14280 nfsidl nfsio 6921 303107 0 0 3 0x14280 nfsidl nfsio 22216 299457 0 0 3 0x14280 nfsidl nfsio 57759 138758 0 0 3 0x14280 nfsidl nfsio 92705 515388 0 0 3 0x14280 nfsidl nfsio 20636 91786 0 0 3 0x14280 nfsidl nfsio 84651 1069 0 0 3 0x14280 nfsidl nfsio 81122 77585 0 0 3 0x14280 nfsidl nfsio 20391 220111 0 0 3 0x14280 nfsidl nfsio 56687 340690 0 0 3 0x14280 nfsidl nfsio 705 150377 0 0 3 0x14280 nfsidl nfsio 50765 475730 0 0 3 0x14280 nfsidl nfsio 90431 408848 0 0 3 0x14280 nfsidl nfsio 46542 182963 0 0 3 0x14280 nfsidl nfsio 49542 91899 0 0 3 0x14280 nfsidl nfsio 97779 293631 0 0 3 0x14280 nfsidl nfsio 81402 442504 0 0 3 0x14280 nfsidl nfsio 47156 80738 0 0 3 0x14280 nfsidl nfsio 45885 382061 0 0 3 0x14280 nfsidl nfsio 35713 474882 0 0 3 0x14200 bored sosplice 90351 50316 24385 0 2 0x8000482 syz-executor.7 3212 142661 24385 0 2 0x8000482 syz-executor.5 32180 98326 24385 0 3 0x8000082 nanoslp syz-executor.6 97540 9065 24385 0 3 0x8000082 nanoslp syz-executor.3 56235 467085 24385 0 2 0x8000482 syz-executor.0 66503 161919 24385 0 2 0x8000482 syz-executor.1 56651 411964 24385 0 2 0x8000482 syz-executor.2 24385 509192 18808 0 3 0x1a000082 wait syz-fuzzer 24385 29719 18808 0 3 0x1e000082 thrsleep syz-fuzzer 24385 325549 18808 0 3 0x1e000082 thrsleep syz-fuzzer 24385 289240 18808 0 3 0x1e000082 wait syz-fuzzer 24385 495245 18808 0 3 0x1e000082 wait syz-fuzzer 24385 227319 18808 0 3 0x1e000082 wait syz-fuzzer 24385 134820 18808 0 3 0x1e000082 wait syz-fuzzer 24385 413336 18808 0 3 0x1e000082 thrsleep syz-fuzzer 24385 37602 18808 0 3 0x1e000082 wait syz-fuzzer 24385 37734 18808 0 3 0x1e000082 wait syz-fuzzer 24385 186375 18808 0 3 0x1e000082 thrsleep syz-fuzzer 24385 210208 18808 0 3 0x1e000082 wait syz-fuzzer 24385 453824 18808 0 3 0x1e000082 kqread syz-fuzzer 18808 145319 26315 0 3 0x810008a sigsusp ksh 26315 77420 71709 0 3 0x1800009a kqread sshd 58776 356343 1 0 3 0x18100083 ttyin getty 71709 504291 1 0 3 0x18000088 kqread sshd 54975 100322 43117 73 3 0x19100090 kqread syslogd 43117 154930 1 0 3 0x18100082 sbwait syslogd 41109 45339 1 0 3 0x18100080 kqread resolvd 68926 414392 81120 77 3 0x18100092 kqread dhcpleased 58933 362219 81120 77 3 0x18100092 kqread dhcpleased 81120 41357 1 0 3 0x18000080 kqread dhcpleased 77805 105111 0 0 3 0x14200 bored smr 91833 191725 0 0 2 0x14200 zerothread 511 359787 0 0 3 0x14200 aiodoned aiodoned 72847 412134 0 0 3 0x14200 syncer update 33429 349124 0 0 3 0x14200 cleaner cleaner 99281 323568 0 0 3 0x14200 reaper reaper 84476 117188 0 0 3 0x14200 pgdaemon pagedaemon 23765 60156 0 0 3 0x14200 bored viomb 26493 379073 0 0 3 0x40014200 acpi0 acpi0 58330 235659 0 0 3 0x14200 bored softnet3 42306 114725 0 0 3 0x14200 bored softnet2 33511 1709 0 0 3 0x14200 bored softnet1 15701 324363 0 0 3 0x14200 bored softnet0 49713 77256 0 0 3 0x14200 bored systqmp 54676 119241 0 0 3 0x14200 bored systq 10491 80243 0 0 2 0x40014200 softclock 75646 107890 0 0 3 0x40014200 idle0 1 422935 0 0 3 0x8000082 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10168 6468K 6984K 166960K 11687 0 pcb 15 12K 14K 166960K 27 0 rtable 221 6K 7K 166960K 454 0 pf 29 8K 9K 166960K 32 0 ifaddr 44 11K 11K 166960K 55 0 ifgroup 50 2K 2K 166960K 55 0 counters 30 17K 17K 166960K 31 0 ioctlops 0 0K 2K 166960K 33 0 iov 0 0K 16K 166960K 16 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1366 86K 86K 166960K 1511 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 12 1K 1K 166960K 19 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 17 61K 73K 166960K 336 0 sigio 0 0K 0K 166960K 3 0 proc 58 59K 83K 166960K 477 0 subproc 104 6K 6K 166960K 104 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 17 0 in_multi 98 7K 7K 166960K 103 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 61 281K 281K 166960K 61 0 exec 0 0K 1K 166960K 378 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 291 79K 81K 166960K 5068 0 UVM aobj 7 2K 2K 166960K 8 0 pinsyscall 37 74K 100K 166960K 1453 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 8 0 NDP 11 0K 1K 166960K 28 0 temp 47 6797K 6861K 166960K 8094 0 kqueue 13 20K 28K 166960K 67 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 49 0 46 1 0 1 1 0 8 0 rtentry 112 154 0 52 4 0 4 4 0 8 0 unpcb 144 151 0 136 1 0 1 1 0 8 0 syncache 336 9 0 9 1 0 1 1 0 8 1 tcpqe 32 115 0 115 1 0 1 1 0 8 1 tcpcb 808 186 0 170 11 1 10 11 0 8 8 arp 88 31 0 18 1 0 1 1 0 8 0 inpcb 360 412 0 388 11 1 10 11 0 8 7 nd6 104 25 0 0 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 499 0 41 29 0 29 29 0 8 0 art_table 32 500 0 41 4 0 4 4 0 8 0 art_node 16 150 0 59 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 6 1 0 1 1 0 8 0 semupl 112 3 0 3 1 0 1 1 0 8 1 semapl 112 11 0 1 1 0 1 1 0 8 0 shmpl 112 5 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1906 0 394 96 0 96 96 0 8 0 ffsino 240 1906 0 394 90 0 90 90 0 8 0 nchpl 144 2441 0 673 66 0 66 66 0 8 0 uvmvnodes 80 2107 0 0 43 0 43 43 0 8 0 vnodes 216 2107 0 0 118 0 118 118 0 8 0 namei 1024 7917 0 7917 3 0 3 3 0 8 3 vcpupl 2048 1 0 0 1 0 1 1 0 8 0 vmpool 664 1 0 0 1 0 1 1 0 8 0 kstatmem 264 24 0 2 2 0 2 2 0 8 0 scxspl 216 8606 0 8606 3 0 3 3 1 8 3 plimitpl 152 56 0 41 1 0 1 1 0 8 0 sigapl 424 654 0 589 8 0 8 8 0 8 0 futexpl 64 3450 0 3446 1 0 1 1 0 8 0 knotepl 120 6032 0 5951 3 0 3 3 0 8 0 kqueuepl 184 85 0 75 1 0 1 1 0 8 0 pipepl 288 158 0 130 3 0 3 3 0 8 0 fdescpl 432 617 0 589 4 0 4 4 0 8 0 filepl 120 2896 0 2643 12 0 12 12 0 8 4 lockfpl 104 53 0 51 1 0 1 1 0 8 0 lockfspl 48 27 0 25 1 0 1 1 0 8 0 sessionpl 144 23 0 7 1 0 1 1 0 8 0 pgrppl 48 23 0 7 1 0 1 1 0 8 0 ucredpl 104 227 0 216 1 0 1 1 0 8 0 zombiepl 144 590 0 589 1 0 1 1 0 8 0 processpl 1072 654 0 589 5 0 5 5 0 8 0 procpl 656 964 0 879 9 0 9 9 0 8 1 sosppl 168 14 0 7 1 0 1 1 0 8 0 sockpl 488 615 0 573 17 4 13 17 0 8 7 mcl64k 65536 8 0 8 1 0 1 1 0 8 1 mcl16k 16384 4 0 4 1 0 1 1 0 8 1 mcl12k 12288 9 0 9 1 0 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 24 0 24 1 0 1 1 0 8 1 mcl4k 4096 48 0 48 1 0 1 1 0 8 1 mcl2k2 2112 4 0 4 1 0 1 1 0 8 1 mcl2k 2048 15689 0 15647 31 17 14 31 0 8 7 mtagpl 96 17 0 5 1 0 1 1 0 8 0 mbufpl 256 30595 0 30458 19 5 14 17 0 8 0 bufpl 280 4605 0 181 316 0 316 316 0 8 0 anonpl 24 212498 0 207001 59 0 59 59 0 188 20 amapchunkpl 152 17164 0 16471 37 0 37 37 0 158 10 amappl16 200 5690 0 5594 18 4 14 18 0 8 8 amappl15 192 15 0 15 1 0 1 1 0 8 1 amappl14 184 144 0 133 2 0 2 2 0 8 1 amappl13 176 14 0 14 1 0 1 1 0 8 1 amappl12 168 1274 0 1242 2 0 2 2 0 8 0 amappl11 160 51 0 41 1 0 1 1 0 8 0 amappl10 152 41 0 31 1 0 1 1 0 8 0 amappl9 144 180 0 180 1 0 1 1 0 8 1 amappl8 136 106 0 70 2 0 2 2 0 8 0 amappl7 128 46 0 41 1 0 1 1 0 8 0 amappl6 120 343 0 329 2 0 2 2 0 8 0 amappl5 112 165 0 152 1 0 1 1 0 8 0 amappl4 104 496 0 466 2 0 2 2 0 8 1 amappl3 96 3809 0 3721 3 0 3 3 0 8 0 amappl2 88 1014 0 943 4 0 4 4 0 8 2 amappl1 80 10278 0 9777 22 2 20 22 0 8 8 amappl 88 4521 0 4321 5 0 5 5 0 92 0 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 0 1 1 0 8 1 dma128 128 253 0 253 1 0 1 1 0 8 1 dma64 64 6 0 6 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 7 0 1 1 0 1 1 0 8 0 uaddrrnd 24 618 0 589 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 618 0 589 1 0 1 1 0 8 0 vmmpekpl 168 9526 0 9474 3 0 3 3 0 8 0 vmmpepl 168 58128 0 56260 118 0 118 118 0 357 36 vmsppl 344 617 0 589 3 0 3 3 0 8 0 rwobjpl 24 24148 0 20984 20 0 20 20 0 8 0 pdppl 4096 1242 0 1179 84 19 65 68 0 8 2 pvpl 32 462453 0 451299 389 42 347 389 0 265 253 pmappl 216 617 0 589 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 379 0 42 10 0 10 10 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8292c28e) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828e1baf,ffffffff828940b0,436,ffffffff82858367) at __assert+0x29 sys/kern/subr_prf.c:157 rtrequest(1,ffff8000378a8a48,4,ffff8000378a8b18,0) at rtrequest+0xb49 sys/net/route.c:1078 rt_ifa_add(ffff800000e4d600,840100,ffff800000e4d658,0) at rt_ifa_add+0x2b3 sys/net/route.c:1273 in_ifinit(ffff800000dd8800,ffff800000e4d600,ffff800000e4d658,1) at in_ifinit+0x368 in_insert_prefix sys/netinet/in.c:770 [inline] in_ifinit(ffff800000dd8800,ffff800000e4d600,ffff800000e4d658,1) at in_ifinit+0x368 sys/netinet/in.c:703 in_ioctl_change_ifaddr(8040691a,ffff8000378a8d80,ffff800000dd8800) at in_ioctl_change_ifaddr+0x67a sys/netinet/in.c:504 ifioctl(fffffd80679ded80,8040691a,ffff8000378a8d80,ffff80002a6aef88) at ifioctl+0x104c pru_control sys/sys/protosw.h:377 [inline] ifioctl(fffffd80679ded80,8040691a,ffff8000378a8d80,ffff80002a6aef88) at ifioctl+0x104c sys/net/if.c:2449 sys_ioctl(ffff80002a6aef88,ffff8000378a8f60,ffff8000378a8eb0) at sys_ioctl+0x4a5 syscall(ffff8000378a8f60) at syscall+0x72a sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfdfad0cba50, count: -11 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8292c28e) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828e1baf,ffffffff828940b0,436,ffffffff82858367) at __assert+0x29 sys/kern/subr_prf.c:157 rtrequest(1,ffff8000378a8a48,4,ffff8000378a8b18,0) at rtrequest+0xb49 sys/net/route.c:1078 rt_ifa_add(ffff800000e4d600,840100,ffff800000e4d658,0) at rt_ifa_add+0x2b3 sys/net/route.c:1273 in_ifinit(ffff800000dd8800,ffff800000e4d600,ffff800000e4d658,1) at in_ifinit+0x368 in_insert_prefix sys/netinet/in.c:770 [inline] in_ifinit(ffff800000dd8800,ffff800000e4d600,ffff800000e4d658,1) at in_ifinit+0x368 sys/netinet/in.c:703 in_ioctl_change_ifaddr(8040691a,ffff8000378a8d80,ffff800000dd8800) at in_ioctl_change_ifaddr+0x67a sys/netinet/in.c:504 ifioctl(fffffd80679ded80,8040691a,ffff8000378a8d80,ffff80002a6aef88) at ifioctl+0x104c pru_control sys/sys/protosw.h:377 [inline] ifioctl(fffffd80679ded80,8040691a,ffff8000378a8d80,ffff80002a6aef88) at ifioctl+0x104c sys/net/if.c:2449 sys_ioctl(ffff80002a6aef88,ffff8000378a8f60,ffff8000378a8eb0) at sys_ioctl+0x4a5 syscall(ffff8000378a8f60) at syscall+0x72a sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfdfad0cba50, count: -11