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 344198 82601 0 0 0 0 syz-executor.1 *136696 82601 0 0 0x4000000 1K 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(ffffffff8220129a,ffffffff821c9fe0,3b7,ffffffff821dfd02) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800022baac18,0,ffff800022baab88,0) at rtrequest+0xbf1 sys/net/route.c:951 rtm_output(ffff800000b2da00,ffff800022baacc8,ffff800022baac18,0,0) at rtm_output+0x62f sys/net/rtsock.c:901 route_output(fffffd8068afd700,fffffd8079a26808,0,0) at route_output+0x7c4 sys/net/rtsock.c:819 route_usrreq(fffffd8079a26808,9,fffffd8068afd700,0,0,ffff800020ab0018) at route_usrreq+0x363 sys/net/rtsock.c:275 sosend(fffffd8079a26808,0,ffff800022baaeb0,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 sendit(ffff800020ab0018,3,ffff800022baaf90,0,ffff800022bab070) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800020ab0018,ffff800022bab028,ffff800022bab070) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800022bab0f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022bab0f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffffd8,0,6,e61948d1010) at Xsyscall+0x128 end of kernel end trace frame: 0xe642e6dadd0, 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(ffffffff8220129a,ffffffff821c9fe0,3b7,ffffffff821dfd02) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800022baac18,0,ffff800022baab88,0) at rtrequest+0xbf1 sys/net/route.c:951 rtm_output(ffff800000b2da00,ffff800022baacc8,ffff800022baac18,0,0) at rtm_output+0x62f sys/net/rtsock.c:901 route_output(fffffd8068afd700,fffffd8079a26808,0,0) at route_output+0x7c4 sys/net/rtsock.c:819 route_usrreq(fffffd8079a26808,9,fffffd8068afd700,0,0,ffff800020ab0018) at route_usrreq+0x363 sys/net/rtsock.c:275 sosend(fffffd8079a26808,0,ffff800022baaeb0,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 sendit(ffff800020ab0018,3,ffff800022baaf90,0,ffff800022bab070) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800020ab0018,ffff800022bab028,ffff800022bab070) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800022bab0f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022bab0f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffffd8,0,6,e61948d1010) at Xsyscall+0x128 end of kernel end trace frame: 0xe642e6dadd0, count: -12 ddb{1}> show registers rdi 0xffffffff817ded17 db_enter+0x17 rsi 0x3ef8 __ALIGN_SIZE+0x2ef8 rbp 0xffff800022baa990 rbx 0xffff800022baaa40 rdx 0x3ef9 __ALIGN_SIZE+0x2ef9 rcx 0xffff8000219a0000 rax 0xffff8000219a0000 r8 0xffffffff81dea5cf kprintf+0x16f r9 0x1 r10 0x25 r11 0x984333447e5fc223 r12 0x3000000008 r13 0xffff800022baa9a0 r14 0x100 r15 0x1 rip 0xffffffff817ded18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022baa980 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=136696 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab1650,0xffffffff826474e0 process=0xffff800020adce00 user=0xffff800022ba6000, vmspace=0xfffffd806e7e3008 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 82601 344198 35107 0 7 0 syz-executor.1 *82601 136696 35107 0 7 0x4000000 syz-executor.1 69797 6433 34471 0 2 0 syz-executor.0 69797 273298 34471 0 3 0x4000080 fsleep syz-executor.0 35107 166439 42810 0 3 0x82 nanosleep syz-executor.1 34471 213919 42810 0 3 0x82 nanosleep syz-executor.0 79025 21655 1 0 3 0x100083 ttyin getty 80867 59212 0 0 3 0x14200 bored sosplice 42810 357144 57270 0 3 0x82 thrsleep syz-fuzzer 42810 254559 57270 0 3 0x4000082 nanosleep syz-fuzzer 42810 82724 57270 0 3 0x4000082 thrsleep syz-fuzzer 42810 382562 57270 0 3 0x4000082 thrsleep syz-fuzzer 42810 509260 57270 0 3 0x4000082 thrsleep syz-fuzzer 42810 442884 57270 0 3 0x4000082 kqread syz-fuzzer 42810 214587 57270 0 3 0x4000082 thrsleep syz-fuzzer 42810 395302 57270 0 3 0x4000082 thrsleep syz-fuzzer 42810 451473 57270 0 3 0x4000082 thrsleep syz-fuzzer 42810 272000 57270 0 3 0x4000082 thrsleep syz-fuzzer 57270 449896 8986 0 3 0x10008a pause ksh 8986 171079 5821 0 3 0x92 select sshd 5821 360599 1 0 3 0x80 select sshd 22580 456303 84802 74 3 0x100092 bpf pflogd 84802 319449 1 0 3 0x80 netio pflogd 87526 176076 31285 73 3 0x100090 kqread syslogd 31285 63932 1 0 3 0x100082 netio syslogd 59567 339565 1 77 3 0x100090 poll dhclient 62041 71381 1 0 3 0x80 poll dhclient 86900 57256 0 0 2 0x14200 zerothread 62681 481132 0 0 3 0x14200 aiodoned aiodoned 88394 83223 0 0 3 0x14200 syncer update 1489 62432 0 0 3 0x14200 cleaner cleaner 97364 82078 0 0 3 0x14200 reaper reaper 46057 81423 0 0 3 0x14200 pgdaemon pagedaemon 21066 152904 0 0 3 0x14200 bored crynlk 10870 323594 0 0 3 0x14200 bored crypto 88047 54600 0 0 3 0x40014200 acpi0 acpi0 12148 233155 0 0 3 0x40014200 idle1 12391 209973 0 0 3 0x14200 bored softnet 95475 412656 0 0 3 0x14200 bored systqmp 9180 270256 0 0 3 0x14200 bored systq 90754 147309 0 0 3 0x40014200 bored softclock 8456 457819 0 0 3 0x40014200 idle0 45182 191150 0 0 3 0x14200 bored smr 1 132858 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 82601 (syz-executor.1) thread 0xffff800020ab0018 (136696) exclusive rwlock netlock r = 0 (0xffffffff824bbfd8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rtm_output+0x5c3 sys/net/rtsock.c:897 #2 route_output+0x7c4 sys/net/rtsock.c:819 #3 route_usrreq+0x363 sys/net/rtsock.c:275 #4 sosend+0x645 sys/kern/uipc_socket.c:524 #5 sendit+0x52b sys/kern/uipc_syscalls.c:662 #6 sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 #7 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #7 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #8 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff826474c0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 solock+0x66 sys/kern/uipc_socket2.c:292 #2 sosend+0x51b sys/kern/uipc_socket.c:512 #3 sendit+0x52b sys/kern/uipc_syscalls.c:662 #4 sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 #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 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9668 6519K 7612K 78643K 23006 0 0 pcb 13 12K 14K 78643K 3566 0 0 rtable 153 15K 15K 78643K 8203 0 0 ifaddr 118 33K 40K 78643K 2778 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2233 0 0 iov 0 0K 32K 78643K 3239 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 77K 78643K 11856 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 285 0 0 VM map 2 1K 1K 78643K 46 0 0 sem 9 1K 1K 78643K 9 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 25249 0 0 sigio 0 0K 0K 78643K 294 0 0 proc 62 63K 95K 78643K 6144 0 0 subproc 32 2K 2K 78643K 1565 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 2675 0 0 in_multi 36 2K 2K 78643K 1706 0 0 ether_multi 1 0K 0K 78643K 110 0 0 mrt 3 0K 0K 78643K 114 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 3206 0 0 pfkey data 0 0K 4K 78643K 10 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 141 24K 32K 78643K 86294 0 0 UVM aobj 130 4K 4K 78643K 156 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 4018 0 0 NDP 27 0K 1K 78643K 860 0 0 temp 279 3558K 4198K 78643K 344636 0 0 kqueue 0 0K 0K 78643K 148 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 197 0 190 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 1324 0 1321 1 0 1 1 0 8 0 rtentry 112 1050 0 996 2 0 2 2 0 8 0 unpcb 120 10938 0 10880 29 26 3 3 0 8 1 syncache 264 52 0 52 28 28 0 1 0 8 0 tcpqe 32 5985 0 5985 7 7 0 2 0 8 0 tcpcb 544 10556 0 10551 198 197 1 14 0 8 0 inpcb 280 24684 0 24674 210 208 2 13 0 8 1 rttmr 72 17 0 16 13 12 1 1 0 8 0 ip6q 72 4 0 4 4 4 0 1 0 8 0 ip6af 40 4 0 4 3 3 0 1 0 8 0 nd6 48 173 0 169 2 1 1 1 0 8 0 pkpcb 40 139 0 139 45 45 0 1 0 8 0 swfcl 56 9 0 0 1 0 1 1 0 8 0 ppxss 1128 449 0 449 61 61 0 1 0 8 0 pffrag 232 33 0 33 19 19 0 1 0 482 0 pffrnode 88 33 0 33 19 19 0 1 0 8 0 pffrent 40 80 0 80 21 21 0 1 0 8 0 pfosfp 40 846 0 846 5 5 0 5 0 8 0 pfosfpen 112 1428 0 1428 21 21 0 21 0 8 0 pfstitem 24 712 0 678 1 0 1 1 0 8 0 pfstkey 112 712 0 678 2 0 2 2 0 8 0 pfstate 328 712 0 677 7 3 4 4 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 7 0 6 7 6 1 3 0 8 0 art_heap4 256 4504 0 4193 50 30 20 21 0 8 0 art_table 32 4511 0 4199 6 3 3 3 0 8 0 art_node 16 1015 0 967 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 2 1 1 0 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 7 0 0 1 0 1 1 0 8 0 shmpl 112 154 0 26 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 39873 0 38378 49 0 49 49 0 8 0 ffsino 272 39873 0 38378 101 1 100 101 0 8 0 nchpl 144 90284 0 88540 66 1 65 65 0 8 0 uvmvnodes 72 9978 0 0 182 0 182 182 0 8 0 vnodes 208 9978 0 0 526 0 526 526 0 8 0 namei 1024 300095 0 300095 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 44 0 44 18 18 0 1 0 8 0 scsiplug 64 57 0 57 35 35 0 1 0 8 0 scxspl 192 220355 0 220355 103 102 1 7 0 8 1 plimitpl 152 2407 0 2399 1 0 1 1 0 8 0 sigapl 432 25187 0 25171 4 2 2 3 0 8 0 futexpl 56 496179 0 496178 3 2 1 1 0 8 0 knotepl 112 5080 0 5061 9 8 1 3 0 8 0 kqueuepl 104 8274 0 8272 49 48 1 4 0 8 0 pipepl 112 13960 0 13941 46 45 1 2 0 8 0 fdescpl 488 25188 0 25171 3 0 3 3 0 8 0 filepl 152 217600 0 217499 219 214 5 14 0 8 1 lockfpl 104 8286 0 8285 1 0 1 1 0 8 0 lockfspl 48 2551 0 2550 1 0 1 1 0 8 0 sessionpl 112 108 0 97 1 0 1 1 0 8 0 pgrppl 48 338 0 327 1 0 1 1 0 8 0 ucredpl 96 30471 0 30460 1 0 1 1 0 8 0 zombiepl 144 25176 0 25176 6 5 1 1 0 8 1 processpl 896 25209 0 25176 4 0 4 4 0 8 0 procpl 632 81064 0 81020 9 4 5 5 0 8 1 srpgc 64 180 0 180 63 63 0 1 0 8 0 sosppl 128 372 0 372 68 68 0 1 0 8 0 sockpl 384 37516 0 37447 308 295 13 24 0 8 5 mcl64k 65536 36 0 0 3 0 3 3 0 8 0 mcl16k 16384 49 0 0 6 3 3 3 0 8 0 mcl12k 12288 57 0 0 2 0 2 2 0 8 0 mcl9k 9216 41 0 0 2 0 2 2 0 8 0 mcl8k 8192 41 0 0 5 2 3 3 0 8 0 mcl4k 4096 33 0 0 3 0 3 3 0 8 0 mcl2k2 2112 18 0 0 2 0 2 2 0 8 0 mcl2k 2048 243 0 0 24 6 18 24 0 8 0 mtagpl 80 105 0 0 2 1 1 2 0 8 0 mbufpl 256 1445 0 0 37 9 28 31 0 8 0 bufpl 256 71792 0 61806 625 0 625 625 0 8 0 anonpl 16 2347572 0 2332948 437 364 73 82 0 124 0 amapchunkpl 152 160858 0 160745 190 184 6 19 0 158 0 amappl16 192 125446 0 124545 627 573 54 58 0 8 8 amappl15 184 2070 0 2068 8 7 1 1 0 8 0 amappl14 176 5433 0 5427 2 1 1 1 0 8 0 amappl13 168 679 0 679 15 15 0 1 0 8 0 amappl12 160 2433 0 2432 14 13 1 1 0 8 0 amappl11 152 3637 0 3622 1 0 1 1 0 8 0 amappl10 144 5180 0 5173 1 0 1 1 0 8 0 amappl9 136 5569 0 5563 1 0 1 1 0 8 0 amappl8 128 5218 0 5157 4 1 3 3 0 8 0 amappl7 120 5547 0 5537 1 0 1 1 0 8 0 amappl6 112 3403 0 3383 1 0 1 1 0 8 0 amappl5 104 3314 0 3299 1 0 1 1 0 8 0 amappl4 96 23171 0 23137 1 0 1 1 0 8 0 amappl3 88 6895 0 6890 1 0 1 1 0 8 0 amappl2 80 197313 0 197231 4 2 2 3 0 8 0 amappl1 72 557341 0 556878 25 15 10 20 0 8 0 amappl 80 82825 0 82786 1 0 1 1 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 dma64 64 259 0 259 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 155 0 26 3 0 3 3 0 8 0 uaddrrnd 24 25232 0 25171 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 25232 0 25171 1 0 1 1 0 8 0 vmmpekpl 168 199715 0 199685 2 0 2 2 0 8 0 vmmpepl 168 3097393 0 3095203 942 815 127 131 0 357 24 vmsppl 368 25187 0 25171 2 0 2 2 0 8 0 pdppl 4096 50471 0 50430 7 1 6 6 0 8 0 pvpl 32 6232868 0 6214890 985 814 171 196 0 265 6 pmappl 232 25231 0 25215 15 14 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1078 0 260 24 0 24 24 0 8 0