g ÃmNg ÃmNpanic: 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 171520 21571 0 0 0 0 syz-executor.0 *473230 21571 0 0 0x4000000 1K 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(ffffffff8220735e,ffffffff821d2abb,3b7,ffffffff821e8cf1) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800022b9cb48,4,ffff800022b9cc18,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b68a00,840100,ffff800000b68a58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000ae1800,ffff800000b68a00,ffff800022b9cef0,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000ae1800,ffff800000b68a00,ffff800022b9cef0,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800022b9cee0,ffff800000ae1800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800022b9cee0,ffff800000ae1800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd80616747f8,8020690c,ffff800022b9cee0,ffff800020abfb40) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abfb40,ffff800022b9cff8,ffff800022b9d040) at sys_ioctl+0x5b9 syscall(ffff800022b9d0c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022b9d0c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,94fe4480010) at Xsyscall+0x128 end of kernel end trace frame: 0x9521d24a4b0, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 951 ddb{1}> 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(ffffffff8220735e,ffffffff821d2abb,3b7,ffffffff821e8cf1) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800022b9cb48,4,ffff800022b9cc18,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b68a00,840100,ffff800000b68a58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000ae1800,ffff800000b68a00,ffff800022b9cef0,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000ae1800,ffff800000b68a00,ffff800022b9cef0,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800022b9cee0,ffff800000ae1800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800022b9cee0,ffff800000ae1800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd80616747f8,8020690c,ffff800022b9cee0,ffff800020abfb40) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abfb40,ffff800022b9cff8,ffff800022b9d040) at sys_ioctl+0x5b9 syscall(ffff800022b9d0c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022b9d0c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,94fe4480010) at Xsyscall+0x128 end of kernel end trace frame: 0x9521d24a4b0, count: -12 ddb{1}> show registers rdi 0xffffffff818f92d7 db_enter+0x17 rsi 0x3ebd __ALIGN_SIZE+0x2ebd rbp 0xffff800022b9c960 rbx 0xffff800022b9ca10 rdx 0x3ebe __ALIGN_SIZE+0x2ebe rcx 0xffff800020b52000 rax 0xffff800020b52000 r8 0xffffffff81a1583f kprintf+0x16f r9 0x1 r10 0x25 r11 0xafbe4c16f7173f71 r12 0x3000000008 r13 0xffff800022b9c970 r14 0x100 r15 0x1 rip 0xffffffff818f92d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022b9c950 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=473230 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020abeee8,0xffffffff82623870 process=0xffff800020adc700 user=0xffff800022b98000, vmspace=0xfffffd807f00bb80 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 21571 171520 5764 0 7 0 syz-executor.0 *21571 473230 5764 0 7 0x4000000 syz-executor.0 9098 27162 2104 0 3 0x2 biowait syz-executor.1 5764 234858 2104 0 3 0x82 nanosleep syz-executor.0 3754 394299 1 0 3 0x100083 ttyopn getty 56658 55716 0 0 3 0x14200 bored sosplice 2104 506676 86974 0 3 0x82 nanosleep syz-fuzzer 2104 17125 86974 0 3 0x4000082 nanosleep syz-fuzzer 2104 463745 86974 0 3 0x4000082 thrsleep syz-fuzzer 2104 448709 86974 0 3 0x4000082 thrsleep syz-fuzzer 2104 242990 86974 0 3 0x4000082 thrsleep syz-fuzzer 2104 480675 86974 0 3 0x4000082 thrsleep syz-fuzzer 2104 47274 86974 0 3 0x4000082 thrsleep syz-fuzzer 2104 99110 86974 0 3 0x4000082 kqread syz-fuzzer 2104 426629 86974 0 3 0x4000082 thrsleep syz-fuzzer 2104 523114 86974 0 3 0x4000082 thrsleep syz-fuzzer 86974 245686 50997 0 3 0x10008a pause ksh 50997 505941 31050 0 3 0x92 select sshd 31050 269091 1 0 3 0x80 select sshd 50344 6839 71650 74 3 0x100092 bpf pflogd 71650 420448 1 0 3 0x80 netio pflogd 39734 43119 76333 73 3 0x100090 kqread syslogd 76333 345798 1 0 3 0x100082 netio syslogd 90169 458168 1 77 3 0x100090 poll dhclient 59599 158952 1 0 3 0x80 poll dhclient 75218 80257 0 0 3 0x14200 pgzero zerothread 25256 31583 0 0 3 0x14200 aiodoned aiodoned 70587 183966 0 0 3 0x14200 syncer update 22519 506948 0 0 3 0x14200 cleaner cleaner 93599 165282 0 0 3 0x14200 reaper reaper 7741 298175 0 0 3 0x14200 pgdaemon pagedaemon 18845 336037 0 0 3 0x14200 bored crynlk 65819 184619 0 0 3 0x14200 bored crypto 59833 282854 0 0 3 0x40014200 acpi0 acpi0 56349 481335 0 0 3 0x40014200 idle1 84792 64245 0 0 3 0x14200 bored softnet 56100 497445 0 0 3 0x14200 bored systqmp 55033 221834 0 0 3 0x14200 bored systq 45606 95647 0 0 3 0x40014200 bored softclock 55074 53067 0 0 3 0x40014200 idle0 2741 65528 0 0 3 0x14200 bored smr 1 363165 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 21571 (syz-executor.0) thread 0xffff800020abfb40 (473230) exclusive rwlock netlock r = 0 (0xffffffff824ec648) #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 (0xffffffff82624790) #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 Process 9098 (syz-executor.1) thread 0xffff800020abe780 (27162) exclusive rrwlock inode r = 0 (0xfffffd806ec950a0) #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_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1164 #7 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 #8 domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 #9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #10 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806e5501b8) #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:562 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 domkdirat+0x75 sys/kern/vfs_syscalls.c:2968 #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9618 7103K 15272K 78643K 23719 0 0 pcb 13 10K 12K 78643K 1461 0 0 rtable 111 9K 9K 78643K 3918 0 0 ifaddr 95 25K 28K 78643K 1328 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1661 0 0 iov 0 0K 28K 78643K 1180 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1198 75K 77K 78643K 6573 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 81 0 0 VM map 2 1K 1K 78643K 27 0 0 sem 12 0K 0K 78643K 3139 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 7047 0 0 sigio 0 0K 0K 78643K 25 0 0 proc 62 63K 95K 78643K 2412 0 0 subproc 32 2K 2K 78643K 581 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 459 0 0 in_multi 26 1K 2K 78643K 712 0 0 ether_multi 1 0K 0K 78643K 40 0 0 mrt 1 0K 0K 78643K 33 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 204 901K 901K 78643K 204 0 0 exec 0 0K 1K 78643K 1113 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 130 23K 32K 78643K 25247 0 0 UVM aobj 130 7K 7K 78643K 139 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 1624 0 0 NDP 21 0K 0K 78643K 416 0 0 temp 236 3565K 4205K 78643K 160629 0 0 kqueue 0 0K 0K 78643K 63 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 100 0 95 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 603 0 562 2 0 2 2 0 8 0 unpcb 120 2477 0 2462 7 6 1 2 0 8 0 syncache 264 26 0 26 15 15 0 1 0 8 0 tcpqe 32 6514 0 6514 1 1 0 1 0 8 0 tcpcb 544 2230 0 2226 15 14 1 13 0 8 0 inpcb 280 9280 0 9272 27 25 2 9 0 8 1 rttmr 72 9 0 8 2 1 1 1 0 8 0 nd6 48 96 0 93 3 2 1 1 0 8 0 pkpcb 40 7 0 7 4 4 0 1 0 8 0 swfcl 56 8 0 0 1 0 1 1 0 8 0 ppxss 1128 226 0 226 15 14 1 1 0 8 1 pffrag 232 97 0 97 22 22 0 1 0 482 0 pffrnode 88 97 0 97 22 22 0 1 0 8 0 pffrent 40 855 0 855 21 21 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 396 0 347 1 0 1 1 0 8 0 pfstkey 112 398 0 349 4 2 2 3 0 8 0 pfstate 328 398 0 349 11 5 6 7 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 17 0 16 10 9 1 3 0 8 0 art_heap4 256 2719 0 2467 37 17 20 20 0 8 4 art_table 32 2736 0 2483 3 0 3 3 0 8 0 art_node 16 598 0 561 1 0 1 1 0 8 0 sysvmsgpl 40 340 0 337 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 3137 0 3127 1 0 1 1 0 8 0 shmpl 112 137 0 9 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 12164 0 10745 46 0 46 46 0 8 0 ffsino 272 12164 0 10745 95 0 95 95 0 8 0 nchpl 144 26682 0 26225 61 40 21 61 0 8 0 uvmvnodes 72 6087 0 0 111 0 111 111 0 8 0 vnodes 208 6087 0 0 321 0 321 321 0 8 0 namei 1024 85055 0 85054 2 1 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 25 0 25 8 8 0 1 0 8 0 scsiplug 64 9 0 9 6 6 0 1 0 8 0 scxspl 192 72879 0 72878 45 44 1 7 0 8 0 plimitpl 152 500 0 492 1 0 1 1 0 8 0 sigapl 432 7153 0 7138 3 1 2 3 0 8 0 futexpl 56 141105 0 141105 1 0 1 1 0 8 1 knotepl 112 1367 0 1348 1 0 1 1 0 8 0 kqueuepl 104 1461 0 1459 4 3 1 4 0 8 0 pipepl 112 6062 0 6043 25 23 2 2 0 8 1 fdescpl 488 7154 0 7138 3 0 3 3 0 8 0 filepl 152 61503 0 61402 44 36 8 14 0 8 4 lockfpl 104 2305 0 2304 1 0 1 1 0 8 0 lockfspl 48 754 0 753 1 0 1 1 0 8 0 sessionpl 112 52 0 41 1 0 1 1 0 8 0 pgrppl 48 104 0 93 1 0 1 1 0 8 0 ucredpl 96 9436 0 9427 1 0 1 1 0 8 0 zombiepl 144 7143 0 7143 3 2 1 1 0 8 1 processpl 896 7175 0 7143 4 0 4 4 0 8 0 procpl 632 22756 0 22714 7 2 5 5 0 8 1 srpgc 64 47 0 47 18 17 1 1 0 8 1 sosppl 128 90 0 90 17 17 0 1 0 8 0 sockpl 384 12373 0 12348 44 39 5 15 0 8 1 mcl64k 65536 281 0 0 34 0 34 34 0 8 0 mcl16k 16384 21 0 0 3 1 2 3 0 8 0 mcl12k 12288 45 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 23 0 0 3 0 3 3 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 158 0 0 16 0 16 16 0 8 0 mtagpl 80 108 0 0 2 0 2 2 0 8 0 mbufpl 256 886 0 0 32 2 30 32 0 8 0 bufpl 256 30092 0 23044 441 0 441 441 0 8 0 anonpl 16 816945 0 800216 260 176 84 85 0 124 12 amapchunkpl 152 48599 0 48487 77 70 7 12 0 158 0 amappl16 192 40786 0 39824 247 189 58 61 0 8 8 amappl15 184 266 0 266 1 1 0 1 0 8 0 amappl14 176 1544 0 1543 2 1 1 1 0 8 0 amappl13 168 895 0 894 7 6 1 1 0 8 0 amappl12 160 818 0 816 1 0 1 1 0 8 0 amappl11 152 349 0 334 1 0 1 1 0 8 0 amappl10 144 733 0 729 1 0 1 1 0 8 0 amappl9 136 2062 0 2054 1 0 1 1 0 8 0 amappl8 128 1563 0 1515 2 0 2 2 0 8 0 amappl7 120 877 0 869 1 0 1 1 0 8 0 amappl6 112 338 0 317 1 0 1 1 0 8 0 amappl5 104 1163 0 1149 1 0 1 1 0 8 0 amappl4 96 6161 0 6127 1 0 1 1 0 8 0 amappl3 88 3126 0 3120 1 0 1 1 0 8 0 amappl2 80 55654 0 55580 3 1 2 3 0 8 0 amappl1 72 169290 0 168861 25 15 10 20 0 8 0 amappl 80 23637 0 23599 2 1 1 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 138 0 9 3 0 3 3 0 8 0 uaddrrnd 24 7179 0 7138 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7179 0 7138 1 0 1 1 0 8 0 vmmpekpl 168 66845 0 66814 2 0 2 2 0 8 0 vmmpepl 168 906328 0 904207 465 339 126 136 0 357 23 vmsppl 368 7153 0 7138 2 0 2 2 0 8 0 pdppl 4096 14365 0 14326 7 1 6 6 0 8 0 pvpl 32 2108666 0 2088694 541 341 200 204 0 265 32 pmappl 232 7178 0 7163 11 10 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 707 0 48 20 1 19 19 0 8 0