panic: kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 954 Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *400249 9067 0 0 0x4000000 0K syz-executor.3 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82794866) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8280f4b3,ffffffff827c25ac,3ba,ffffffff827e2964) at __assert+0x29 sys/kern/subr_prf.c:157 rtrequest(1,ffff80002bc07168,8,ffff80002bc07210,0) at rtrequest+0xb67 sys/net/route.c:954 rt_ifa_add(ffff800000d64b00,40004,ffff800000d64b68,0) at rt_ifa_add+0x1ac sys/net/route.c:1134 in_ifinit(ffff8000212928d0,ffff800000d64b00,ffff80002bc07330,1) at in_ifinit+0x3bf pppx_add_session(ffff800000cf4c00,ffff800000cc0400) at pppx_add_session+0x35e sys/net/if_pppx.c:731 VOP_IOCTL(fffffd806758acf8,82907003,ffff800000cc0400,1,fffffd807f7d6548,ffff80002120d428) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:264 vn_ioctl(fffffd805438ba20,82907003,ffff800000cc0400,ffff80002120d428) at vn_ioctl+0xc0 sys/kern/vfs_vnops.c:525 sys_ioctl(ffff80002120d428,ffff80002bc07670,ffff80002bc076c0) at sys_ioctl+0x4a2 syscall(ffff80002bc07740) at syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002bc07740) at syscall+0x606 sys/arch/amd64/amd64/trap.c:632 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xeccdcf39520, count: 3 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 "cifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 954 ddb{0}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82794866) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8280f4b3,ffffffff827c25ac,3ba,ffffffff827e2964) at __assert+0x29 sys/kern/subr_prf.c:157 rtrequest(1,ffff80002bc07168,8,ffff80002bc07210,0) at rtrequest+0xb67 sys/net/route.c:954 rt_ifa_add(ffff800000d64b00,40004,ffff800000d64b68,0) at rt_ifa_add+0x1ac sys/net/route.c:1134 in_ifinit(ffff8000212928d0,ffff800000d64b00,ffff80002bc07330,1) at in_ifinit+0x3bf pppx_add_session(ffff800000cf4c00,ffff800000cc0400) at pppx_add_session+0x35e sys/net/if_pppx.c:731 VOP_IOCTL(fffffd806758acf8,82907003,ffff800000cc0400,1,fffffd807f7d6548,ffff80002120d428) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:264 vn_ioctl(fffffd805438ba20,82907003,ffff800000cc0400,ffff80002120d428) at vn_ioctl+0xc0 sys/kern/vfs_vnops.c:525 sys_ioctl(ffff80002120d428,ffff80002bc07670,ffff80002bc076c0) at sys_ioctl+0x4a2 syscall(ffff80002bc07740) at syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002bc07740) at syscall+0x606 sys/arch/amd64/amd64/trap.c:632 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xeccdcf39520, count: -12 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002bc06f60 rbx 0xffffffff82becb8f cpu_info_full_primary+0x2b8f rdx 0xffff800000d84ec0 rcx 0 rax 0xffff80002120d428 r8 0 r9 0x8080808080808080 r10 0x7360331bc818a9c r11 0xb47bfbe9715d7703 r12 0xffffffff82bec990 cpu_info_full_primary+0x2990 r13 0 r14 0 r15 0x1 rip 0xffffffff82302fbc db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002bc06f50 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.3) pid=400249 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff80002120d998,0xffff80002120c3e8 process=0xffff80002e48d0e0 user=0xffff80002bc02000, vmspace=0xfffffd80089fe8e8 estcpu=33, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 29494 444446 41057 0 3 0x80 nanoslp syz-executor.2 29494 206047 41057 0 3 0x4000080 fsleep syz-executor.2 29494 458592 41057 0 3 0x4000080 fsleep syz-executor.2 9067 192603 25474 0 2 0 syz-executor.3 * 9067 400249 25474 0 7 0x4000000 syz-executor.3 20202 452706 44855 0 3 0x82 nanoslp syz-executor.5 25474 279783 44855 0 2 0x482 syz-executor.3 37245 315197 1 0 3 0x100083 ttyin getty 78464 432817 44855 0 2 0x482 syz-executor.6 26666 376790 44855 0 2 0x482 syz-executor.1 41057 162179 44855 0 2 0x482 syz-executor.2 77215 103698 44855 0 2 0x2 syz-executor.7 23981 489980 44855 0 3 0x82 nanoslp syz-executor.4 15647 81952 0 0 3 0x14280 nfsidl nfsio 39539 382129 0 0 3 0x14280 nfsidl nfsio 94686 194829 0 0 3 0x14280 nfsidl nfsio 42878 306384 0 0 3 0x14280 nfsidl nfsio 74260 39204 0 0 3 0x14280 nfsidl nfsio 68955 373124 0 0 3 0x14280 nfsidl nfsio 13926 125101 0 0 3 0x14280 nfsidl nfsio 70799 99370 0 0 3 0x14280 nfsidl nfsio 62509 492751 0 0 3 0x14280 nfsidl nfsio 2334 44841 0 0 3 0x14280 nfsidl nfsio 70976 248151 0 0 3 0x14280 nfsidl nfsio 44937 87009 0 0 3 0x14280 nfsidl nfsio 2954 428519 0 0 3 0x14280 nfsidl nfsio 31573 228413 0 0 3 0x14280 nfsidl nfsio 72645 168532 0 0 3 0x14280 nfsidl nfsio 19664 262435 0 0 3 0x14280 nfsidl nfsio 95667 132015 0 0 3 0x14280 nfsidl nfsio 74326 68596 0 0 3 0x14280 nfsidl nfsio 45535 90036 0 0 3 0x14280 nfsidl nfsio 18212 408082 0 0 3 0x14280 nfsidl nfsio 30246 365487 1 0 3 0 vmmaplk syz-executor.1 30246 483010 1 0 3 0x4000000 vmmaplk syz-executor.1 30246 74263 1 0 3 0x4000000 vmmaplk syz-executor.1 78412 343742 1 0 3 0 vmmaplk syz-executor.4 78412 58999 1 0 3 0x4000000 vmmaplk syz-executor.4 71419 330287 0 0 3 0x14200 bored sosplice 44855 370860 397 0 3 0x82 thrsleep syz-fuzzer 44855 386079 397 0 3 0x4000082 nanoslp syz-fuzzer 44855 306259 397 0 3 0x4000082 wait syz-fuzzer 44855 135735 397 0 3 0x4000082 wait syz-fuzzer 44855 170758 397 0 3 0x4000082 thrsleep syz-fuzzer 44855 126091 397 0 3 0x4000082 kqread syz-fuzzer 44855 427581 397 0 3 0x4000082 thrsleep syz-fuzzer 44855 262562 397 0 3 0x4000082 wait syz-fuzzer 44855 345815 397 0 3 0x4000082 thrsleep syz-fuzzer 44855 339432 397 0 3 0x4000082 wait syz-fuzzer 44855 446743 397 0 3 0x4000082 thrsleep syz-fuzzer 44855 75329 397 0 3 0x4000082 wait syz-fuzzer 44855 57019 397 0 3 0x4000082 wait syz-fuzzer 44855 37520 397 0 3 0x4000082 wait syz-fuzzer 44855 179361 397 0 3 0x4000082 wait syz-fuzzer 44855 356404 397 0 3 0x4000082 thrsleep syz-fuzzer 397 233682 63296 0 3 0x10008a sigsusp ksh 63296 304523 55214 0 3 0x9a kqread sshd 55214 30700 1 0 3 0x88 kqread sshd 46407 40981 24886 74 3 0x1100092 bpf pflogd 24886 154237 1 0 3 0x80 netio pflogd 76509 423000 77877 73 3 0x1100090 kqread syslogd 77877 501906 1 0 3 0x100082 netio syslogd 53184 508149 1 0 2 0x100080 resolvd 52717 111244 0 0 3 0x14200 bored smr 8385 392994 0 0 2 0x14200 zerothread 56475 237038 0 0 3 0x14200 aiodoned aiodoned 86251 345157 0 0 3 0x14200 syncer update 99459 182238 0 0 3 0x14200 cleaner cleaner 14648 227647 0 0 3 0x14200 reaper reaper 40825 361385 0 0 3 0x14200 pgdaemon pagedaemon 48856 493615 0 0 3 0x14200 bored viomb 21200 476474 0 0 3 0x40014200 acpi0 acpi0 26344 399853 0 0 7 0x40014200 idle1 35291 130128 0 0 3 0x14200 bored softnet3 1772 376684 0 0 3 0x14200 bored softnet2 81558 138394 0 0 3 0x14200 bored softnet1 62675 479660 0 0 3 0x14200 bored softnet0 20385 315235 0 0 3 0x14200 bored systqmp 67057 143554 0 0 3 0x14200 bored systq 36781 321897 0 0 2 0x40014200 softclock 30662 244727 0 0 3 0x40014200 idle0 1 300258 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10219 6507K 8097K 78643K 15117 0 pcb 13 22K 26K 78643K 2907 0 rtable 195 16K 17K 78643K 3637 0 ifaddr 81 29K 31K 78643K 1610 0 sysctl 3 1K 3K 78643K 6 0 counters 64 36K 36K 78643K 1364 0 ioctlops 1 1K 4K 78643K 11234 0 iov 0 0K 32K 78643K 3009 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1567 98K 98K 78643K 11707 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 168 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 3925 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 14 49K 85K 78643K 17820 0 sigio 1 0K 0K 78643K 273 0 proc 66 67K 127K 78643K 2800 0 subproc 130 8K 8K 78643K 814 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1050 0 in_multi 75 5K 6K 78643K 1430 0 ether_multi 1 0K 0K 78643K 95 0 mrt 1 0K 0K 78643K 72 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 247 1102K 1102K 78643K 247 0 exec 0 0K 1K 78643K 3593 0 pfkey data 0 0K 0K 78643K 6 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 8 62K 64K 78643K 10 0 UVM amap 461 129K 143K 78643K 168907 0 UVM aobj 131 7K 7K 78643K 131 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 1K 78643K 732 0 NDP 14 0K 1K 78643K 553 0 temp 146 5859K 5987K 78643K 160000 0 kqueue 6 10K 24K 78643K 1300 0 SYN cache 2 0K 20K 78643K 5 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 1439 0 1438 13 12 1 3 0 8 0 rtentry 112 1271 0 1191 4 0 4 4 0 8 0 unpcb 144 17572 0 17564 153 152 1 11 0 8 0 syncache 296 56 0 56 17 17 0 1 0 8 0 tcpqe 32 243 32909 243 3 3 0 1 0 8 0 tcpcb 776 4173 0 4165 140 132 8 21 0 8 6 arp 120 156 0 142 1 0 1 1 0 8 0 inpcb 368 15493 0 15485 250 234 16 19 0 8 14 nd6 136 272 0 255 1 0 1 1 0 8 0 pkpcb 40 39 0 39 8 8 0 1 0 8 0 kcovpl 48 60 0 50 1 0 1 1 0 8 0 mppekey 1024 11 0 11 4 4 0 1 0 8 0 ppxss 1256 433 0 431 32 31 1 1 0 8 0 pppxif 1456 144 0 142 24 23 1 1 0 8 0 pffrag 232 101 0 97 7 6 1 1 0 482 0 pffrnode 88 101 0 97 7 6 1 1 0 8 0 pffrent 40 280 0 276 7 6 1 1 0 8 0 pfosfp 40 1431 0 1007 5 0 5 5 0 8 0 pfosfpen 112 1431 0 716 21 0 21 21 0 8 0 pfstitem 24 538 0 516 1 0 1 1 0 8 0 pfstkey 128 538 0 516 4 2 2 2 0 8 0 pfstate 384 538 0 516 17 12 5 5 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 rttmr 136 18 0 18 5 5 0 1 0 8 0 art_heap8 4096 6 0 5 6 5 1 2 0 8 0 art_heap4 256 5954 0 5583 69 39 30 31 0 8 0 art_table 32 5960 0 5588 4 0 4 4 0 8 0 art_node 16 1248 0 1182 1 0 1 1 0 8 0 sysvmsgpl 40 51 0 11 1 0 1 1 0 8 0 semapl 112 3923 0 3913 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 25333 0 23814 96 0 96 96 0 8 0 ffsino 272 25333 0 23814 102 0 102 102 0 8 0 nchpl 144 49635 0 49058 63 39 24 63 0 8 0 rtmask 32 8 0 8 2 2 0 1 0 8 0 uvmvnodes 80 8592 0 0 176 0 176 176 0 8 0 vnodes 216 8592 0 0 478 0 478 478 0 8 0 namei 1024 186775 0 186774 15 14 1 2 0 8 0 percpumem 16 695 0 650 1 0 1 1 0 8 0 kstatmem 264 716 0 688 3 0 3 3 0 8 0 scsiplug 72 26 0 26 9 9 0 1 0 8 0 scxspl 216 165870 0 165870 38 37 1 8 0 8 1 plimitpl 152 2500 0 2483 1 0 1 1 0 8 0 sigapl 424 18084 0 18018 10 2 8 8 0 8 0 futexpl 64 177058 0 177056 14 13 1 1 0 8 0 knotepl 120 1251 0 0 18 4 14 14 0 8 0 kqueuepl 216 3699 0 3629 70 65 5 6 0 8 1 pipepl 320 4026 0 3997 126 123 3 9 0 8 0 fdescpl 496 18015 0 17991 5 1 4 5 0 8 0 filepl 152 133869 0 133555 290 271 19 25 0 8 2 lockfpl 104 4389 0 4388 8 7 1 2 0 8 0 lockfspl 48 972 0 971 1 0 1 1 0 8 0 sessionpl 144 83 0 65 1 0 1 1 0 8 0 pgrppl 48 370 0 352 1 0 1 1 0 8 0 ucredpl 104 14077 0 14068 1 0 1 1 0 8 0 zombiepl 144 18023 0 18018 4 3 1 1 0 8 0 processpl 1072 18084 0 18018 5 0 5 5 0 8 0 procpl 696 45865 0 45778 37 27 10 11 0 8 0 srpgc 96 62 0 62 25 24 1 1 0 8 1 sosppl 168 177 0 177 29 29 0 1 0 8 0 sockpl 488 34666 0 34649 772 748 24 36 0 8 20 mcl64k 65536 14 0 0 2 0 2 2 0 8 0 mcl16k 16384 24 0 0 3 1 2 3 0 8 0 mcl12k 12288 12 0 0 2 0 2 2 0 8 0 mcl9k 9216 7 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 18 0 0 3 0 3 3 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 523 0 0 63 22 41 63 0 8 0 mtagpl 96 43 0 0 2 0 2 2 0 8 0 mbufpl 256 1966 0 0 104 0 104 104 0 8 1 bufpl 288 33960 0 25368 614 0 614 614 0 8 0 anonpl 24 1957759 0 1939918 336 203 133 177 0 186 4 amapchunkpl 152 549857 0 548790 222 169 53 78 0 158 1 amappl16 200 38743 0 38008 251 207 44 44 0 8 3 amappl15 192 19 0 18 1 0 1 1 0 8 0 amappl14 184 376 0 358 3 1 2 2 0 8 1 amappl13 176 50 0 48 1 0 1 1 0 8 0 amappl12 168 19452 0 19427 3 1 2 2 0 8 0 amappl11 160 117 0 108 1 0 1 1 0 8 0 amappl10 152 90 0 75 1 0 1 1 0 8 0 amappl9 144 304 0 304 16 16 0 2 0 8 0 amappl8 136 1236 0 1036 8 0 8 8 0 8 0 amappl7 128 127 0 108 1 0 1 1 0 8 0 amappl6 120 710 0 680 2 1 1 2 0 8 0 amappl5 112 637 0 631 1 0 1 1 0 8 0 amappl4 104 1606 0 1559 3 1 2 3 0 8 0 amappl3 96 104678 0 104604 4 1 3 3 0 8 0 amappl2 88 18838 0 18780 3 1 2 3 0 8 0 amappl1 80 76052 0 75594 23 11 12 23 0 8 0 amappl 88 167412 0 167170 7 0 7 7 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 18015 0 17991 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 18015 0 17991 1 0 1 1 0 8 0 vmmpekpl 168 133024 0 132951 4 0 4 4 0 8 0 vmmpepl 168 1082131 0 1079590 464 319 145 147 0 357 13 vmsppl 456 18014 0 17991 5 1 4 5 0 8 0 rwobjpl 56 259215 0 248623 177 25 152 152 0 8 0 pdppl 4096 36038 0 35982 1045 979 66 80 0 8 10 pvpl 32 5443067 0 5419853 755 530 225 366 0 265 16 pmappl 248 18014 0 17991 3 1 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 2417 0 1331 32 0 32 32 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82794866) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8280f4b3,ffffffff827c25ac,3ba,ffffffff827e2964) at __assert+0x29 sys/kern/subr_prf.c:157 rtrequest(1,ffff80002bc07168,8,ffff80002bc07210,0) at rtrequest+0xb67 sys/net/route.c:954 rt_ifa_add(ffff800000d64b00,40004,ffff800000d64b68,0) at rt_ifa_add+0x1ac sys/net/route.c:1134 in_ifinit(ffff8000212928d0,ffff800000d64b00,ffff80002bc07330,1) at in_ifinit+0x3bf pppx_add_session(ffff800000cf4c00,ffff800000cc0400) at pppx_add_session+0x35e sys/net/if_pppx.c:731 VOP_IOCTL(fffffd806758acf8,82907003,ffff800000cc0400,1,fffffd807f7d6548,ffff80002120d428) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:264 vn_ioctl(fffffd805438ba20,82907003,ffff800000cc0400,ffff80002120d428) at vn_ioctl+0xc0 sys/kern/vfs_vnops.c:525 sys_ioctl(ffff80002120d428,ffff80002bc07670,ffff80002bc076c0) at sys_ioctl+0x4a2 syscall(ffff80002bc07740) at syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002bc07740) at syscall+0x606 sys/arch/amd64/amd64/trap.c:632 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xeccdcf39520, count: -12 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp x86_ipi_db(ffff800020d58ff0) at x86_ipi_db+0x1e 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(ffff800020d58ff0) at sched_idle+0x427 sys/kern/kern_sched.c:175 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff800020d58ff0) at x86_ipi_db+0x1e 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(ffff800020d58ff0) at sched_idle+0x427 sys/kern/kern_sched.c:175 end trace frame: 0x0, count: -5