panic: kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 951 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *113081 60577 0 0 0x4000000 0 syz-executor.1 300468 4776 0 0x2 0x480 1 syz-executor.1 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(ffffffff82208e6e,ffffffff821d1ce1,3b7,ffffffff821e7d46) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800024db8c58,4,ffff800024db8d28,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b2e900,840100,ffff800000b2e958,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b39000,ffff800000b2e900,ffff800024db9000,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b39000,ffff800000b2e900,ffff800024db9000,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800024db8ff0,ffff800000b39000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800024db8ff0,ffff800000b39000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806f6cf780,8020690c,ffff800024db8ff0,ffff800020ace518) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ace518,ffff800024db9108,ffff800024db9150) at sys_ioctl+0x5b9 syscall(ffff800024db91d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024db91d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,cb8cc9f8010) at Xsyscall+0x128 end of kernel end trace frame: 0xcbbb5dc36d0, 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 kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 951 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(ffffffff82208e6e,ffffffff821d1ce1,3b7,ffffffff821e7d46) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800024db8c58,4,ffff800024db8d28,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b2e900,840100,ffff800000b2e958,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b39000,ffff800000b2e900,ffff800024db9000,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b39000,ffff800000b2e900,ffff800024db9000,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800024db8ff0,ffff800000b39000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800024db8ff0,ffff800000b39000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806f6cf780,8020690c,ffff800024db8ff0,ffff800020ace518) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ace518,ffff800024db9108,ffff800024db9150) at sys_ioctl+0x5b9 syscall(ffff800024db91d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024db91d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,cb8cc9f8010) at Xsyscall+0x128 end of kernel end trace frame: 0xcbbb5dc36d0, count: -12 ddb{0}> show registers rdi 0xffffffff81823987 db_enter+0x17 rsi 0x3898 __ALIGN_SIZE+0x2898 rbp 0xffff800024db8a70 rbx 0xffff800024db8b20 rdx 0x3899 __ALIGN_SIZE+0x2899 rcx 0xffff800021b98000 rax 0xffff800021b98000 r8 0xffffffff81cd62ff kprintf+0x16f r9 0x1 r10 0x25 r11 0xbb87a1ae8a5db64 r12 0x3000000008 r13 0xffff800024db8a80 r14 0x100 r15 0x1 rip 0xffffffff81823988 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800024db8a60 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=113081 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020ace2a0,0xffffffff826651a0 process=0xffff800020add180 user=0xffff800024db4000, vmspace=0xfffffd807f00a2e0 estcpu=30, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 60577 128931 4776 0 2 0 syz-executor.1 *60577 113081 4776 0 7 0x4000000 syz-executor.1 827 393539 15703 0 2 0 syz-executor.0 827 447933 15703 0 3 0x4000080 fsleep syz-executor.0 15703 383556 65397 0 3 0x82 nanosleep syz-executor.0 4776 300468 65397 0 7 0x482 syz-executor.1 7898 250634 1 0 3 0x100083 ttyin getty 12890 457953 0 0 3 0x14200 acct acct 56056 201324 0 0 3 0x14200 bored sosplice 65397 455541 27490 0 3 0x82 thrsleep syz-fuzzer 65397 27397 27490 0 3 0x4000082 thrsleep syz-fuzzer 65397 171820 27490 0 3 0x4000082 thrsleep syz-fuzzer 65397 104139 27490 0 3 0x4000082 thrsleep syz-fuzzer 65397 353485 27490 0 3 0x4000082 thrsleep syz-fuzzer 65397 137179 27490 0 3 0x4000082 kqread syz-fuzzer 65397 195558 27490 0 3 0x4000082 thrsleep syz-fuzzer 65397 80372 27490 0 3 0x4000082 thrsleep syz-fuzzer 65397 42868 27490 0 3 0x4000082 thrsleep syz-fuzzer 65397 485583 27490 0 3 0x4000082 thrsleep syz-fuzzer 27490 90611 22586 0 3 0x10008a pause ksh 22586 508075 91772 0 3 0x92 select sshd 91772 510300 1 0 3 0x80 select sshd 3292 443665 26727 74 3 0x100092 bpf pflogd 26727 73920 1 0 3 0x80 netio pflogd 35057 164365 40587 73 3 0x100090 kqread syslogd 40587 84721 1 0 3 0x100082 netio syslogd 35357 221741 1 77 3 0x100090 poll dhclient 86016 71920 1 0 3 0x80 poll dhclient 46167 205581 0 0 2 0x14200 zerothread 4119 418481 0 0 3 0x14200 aiodoned aiodoned 33852 25633 0 0 3 0x14200 syncer update 24284 155659 0 0 3 0x14200 cleaner cleaner 42943 285808 0 0 3 0x14200 reaper reaper 95736 258932 0 0 3 0x14200 pgdaemon pagedaemon 83027 355677 0 0 3 0x14200 bored crynlk 66347 286343 0 0 3 0x14200 bored crypto 61902 34392 0 0 3 0x40014200 acpi0 acpi0 62898 34338 0 0 3 0x40014200 idle1 54661 514196 0 0 3 0x14200 bored softnet 97875 340364 0 0 3 0x14200 bored systqmp 68972 217163 0 0 3 0x14200 bored systq 72625 295664 0 0 3 0x40014200 bored softclock 6372 19351 0 0 3 0x40014200 idle0 15800 262777 0 0 2 0x40014200 smr 1 449573 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 60577 (syz-executor.1) thread 0xffff800020ace518 (113081) exclusive rwlock netlock r = 0 (0xffffffff824d6738) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 in_ioctl_sifaddr+0x69 #2 in_ioctl+0x1e7 sys/netinet/in.c:231 #3 ifioctl+0xb64 sys/net/if.c:2202 #4 sys_ioctl+0x5b9 #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 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82666748) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline] #1 syscall+0x400 sys/arch/amd64/amd64/trap.c:555 #2 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9670 6986K 14607K 78643K 25154 0 0 pcb 13 10K 12K 78643K 1046 0 0 rtable 121 13K 13K 78643K 3722 0 0 ifaddr 102 25K 29K 78643K 1126 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1702 0 0 iov 0 0K 32K 78643K 1088 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1211 76K 77K 78643K 7080 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 90 0 0 VM map 2 1K 1K 78643K 35 0 0 sem 12 0K 1K 78643K 1814 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 5763 0 0 sigio 0 0K 0K 78643K 679 0 0 proc 62 63K 95K 78643K 2241 0 0 subproc 32 2K 2K 78643K 510 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 1366 0 0 in_multi 30 2K 2K 78643K 575 0 0 ether_multi 1 0K 0K 78643K 27 0 0 mrt 0 0K 0K 78643K 32 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 102 450K 450K 78643K 102 0 0 exec 0 0K 1K 78643K 1211 0 0 pfkey data 0 0K 4K 78643K 5 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 129 23K 32K 78643K 20792 0 0 UVM aobj 130 4K 4K 78643K 142 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 1137 0 0 NDP 26 0K 1K 78643K 356 0 0 temp 266 3564K 4201K 78643K 108625 0 0 kqueue 0 0K 0K 78643K 43 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 133 0 127 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 376 0 374 1 0 1 1 0 8 0 rtentry 112 613 0 567 2 0 2 2 0 8 0 unpcb 120 2409 0 2399 3 2 1 2 0 8 0 syncache 264 30 0 30 14 13 1 1 0 8 1 tcpqe 32 6180 0 6180 3 3 0 2 0 8 0 tcpcb 544 3684 0 3680 31 30 1 13 0 8 0 inpcb 280 13290 0 13282 28 26 2 9 0 8 1 rttmr 72 11 0 10 4 3 1 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 1 0 1 1 1 0 1 0 8 0 nd6 48 77 0 74 2 1 1 1 0 8 0 pkpcb 40 27 0 27 11 10 1 1 0 8 1 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 165 0 164 15 14 1 1 0 8 0 pffrag 232 71 0 71 19 18 1 1 0 482 1 pffrnode 88 71 0 71 19 18 1 1 0 8 1 pffrent 40 169 0 169 19 18 1 1 0 8 1 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 377 0 312 1 0 1 1 0 8 0 pfstkey 112 378 0 313 3 1 2 3 0 8 0 pfstate 328 378 0 313 8 2 6 7 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 10 0 9 7 6 1 3 0 8 0 art_heap4 256 2433 0 2169 35 16 19 19 0 8 0 art_table 32 2443 0 2178 4 1 3 3 0 8 0 art_node 16 603 0 561 1 0 1 1 0 8 0 sysvmsgpl 40 22 0 12 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 1812 0 1802 1 0 1 1 0 8 0 shmpl 112 140 0 12 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 10034 0 8616 46 0 46 46 0 8 0 ffsino 272 10034 0 8616 95 0 95 95 0 8 0 nchpl 144 18966 0 18464 61 40 21 61 0 8 0 uvmvnodes 72 6431 0 0 117 0 117 117 0 8 0 vnodes 208 6431 0 0 339 0 339 339 0 8 0 namei 1024 66994 0 66994 4 3 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 33 0 33 13 12 1 1 0 8 1 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 59401 0 59401 42 39 3 7 0 8 3 plimitpl 152 500 0 492 1 0 1 1 0 8 0 sigapl 432 5882 0 5866 4 2 2 3 0 8 0 futexpl 56 123181 0 123180 3 2 1 1 0 8 0 knotepl 112 1950 0 1931 4 3 1 2 0 8 0 kqueuepl 104 2422 0 2419 10 9 1 4 0 8 0 pipepl 112 6290 0 6269 20 18 2 2 0 8 1 fdescpl 488 5883 0 5866 3 0 3 3 0 8 0 filepl 152 53579 0 53474 38 32 6 14 0 8 1 lockfpl 104 2163 0 2162 1 0 1 1 0 8 0 lockfspl 48 757 0 756 1 0 1 1 0 8 0 sessionpl 112 49 0 38 1 0 1 1 0 8 0 pgrppl 48 93 0 82 1 0 1 1 0 8 0 ucredpl 96 6874 0 6865 1 0 1 1 0 8 0 zombiepl 144 5866 0 5866 4 3 1 1 0 8 1 processpl 896 5900 0 5866 5 1 4 5 0 8 0 procpl 632 18593 0 18548 6 1 5 5 0 8 0 srpgc 64 42 0 42 15 15 0 1 0 8 0 sosppl 128 87 0 87 18 18 0 1 0 8 0 sockpl 384 16139 0 16119 53 49 4 14 0 8 2 mcl64k 65536 630 0 0 78 37 41 65 0 8 1 mcl16k 16384 21 0 0 3 1 2 3 0 8 0 mcl12k 12288 57 0 0 2 0 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 0 mcl8k 8192 33 0 0 4 1 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 11 0 0 1 0 1 1 0 8 0 mcl2k 2048 214 0 0 24 1 23 24 0 8 0 mtagpl 80 88 0 0 2 0 2 2 0 8 0 mbufpl 256 876 0 0 37 0 37 37 0 8 0 bufpl 256 25432 0 18384 441 0 441 441 0 8 0 anonpl 16 671373 0 654980 215 143 72 85 0 124 0 amapchunkpl 152 40800 0 40646 77 69 8 14 0 158 0 amappl16 192 31541 0 30631 218 171 47 58 0 8 0 amappl15 184 974 0 973 5 4 1 1 0 8 0 amappl14 176 1057 0 1054 2 1 1 1 0 8 0 amappl13 168 799 0 799 5 4 1 1 0 8 1 amappl12 160 445 0 442 2 1 1 1 0 8 0 amappl11 152 589 0 574 1 0 1 1 0 8 0 amappl10 144 582 0 577 1 0 1 1 0 8 0 amappl9 136 2089 0 2080 1 0 1 1 0 8 0 amappl8 128 1617 0 1575 2 0 2 2 0 8 0 amappl7 120 771 0 758 1 0 1 1 0 8 0 amappl6 112 527 0 515 1 0 1 1 0 8 0 amappl5 104 802 0 788 1 0 1 1 0 8 0 amappl4 96 5723 0 5686 1 0 1 1 0 8 0 amappl3 88 1637 0 1631 1 0 1 1 0 8 0 amappl2 80 45688 0 45611 4 2 2 3 0 8 0 amappl1 72 140298 0 139845 25 15 10 20 0 8 0 amappl 80 19348 0 19299 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 141 0 12 3 0 3 3 0 8 0 uaddrrnd 24 5916 0 5866 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5916 0 5866 1 0 1 1 0 8 0 vmmpekpl 168 54972 0 54939 2 0 2 2 0 8 0 vmmpepl 168 741863 0 739688 347 221 126 126 0 357 26 vmsppl 368 5882 0 5866 2 0 2 2 0 8 0 pdppl 4096 11839 0 11798 7 1 6 6 0 8 0 pvpl 32 1897418 0 1877178 435 249 186 205 0 265 19 pmappl 232 5915 0 5899 10 8 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 778 0 99 21 0 21 21 0 8 0