login: panic: kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/main/kernel/sys/net/route.c", line 946 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *299924 58765 0 0 0x4000000 0 syz-executor.3 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82584108) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff825f4fba,ffffffff825b58e7,3b2,ffffffff825cc412) at __assert+0x25 sys/kern/subr_prf.c:157 rtrequest(1,ffff80002e977a40,4,ffff80002e977b08,0) at rtrequest+0xc17 sys/net/route.c:946 rt_ifa_add(ffff800000ba3000,840100,ffff800000ba3058,0) at rt_ifa_add+0x260 sys/net/route.c:1126 in_ifinit(ffff800000bca800,ffff800000ba3000,ffff80002e977d70,1) at in_ifinit+0x35d in_insert_prefix sys/netinet/in.c:796 [inline] in_ifinit(ffff800000bca800,ffff800000ba3000,ffff80002e977d70,1) at in_ifinit+0x35d sys/netinet/in.c:729 in_ioctl_change_ifaddr(8040691a,ffff80002e977d60,ffff800000bca800,1) at in_ioctl_change_ifaddr+0x65e sys/netinet/in.c:526 ifioctl(fffffd806ef31ab8,8040691a,ffff80002e977d60,ffff800021722a90) at ifioctl+0x1152 pru_control sys/sys/protosw.h:365 [inline] ifioctl(fffffd806ef31ab8,8040691a,ffff80002e977d60,ffff800021722a90) at ifioctl+0x1152 sys/net/if.c:2345 sys_ioctl(ffff800021722a90,ffff80002e977e78,ffff80002e977ec0) at sys_ioctl+0x49e syscall(ffff80002e977f40) at syscall+0x446 sys/arch/amd64/amd64/trap.c:599 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb8552a7d980, 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 946 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82584108) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff825f4fba,ffffffff825b58e7,3b2,ffffffff825cc412) at __assert+0x25 sys/kern/subr_prf.c:157 rtrequest(1,ffff80002e977a40,4,ffff80002e977b08,0) at rtrequest+0xc17 sys/net/route.c:946 rt_ifa_add(ffff800000ba3000,840100,ffff800000ba3058,0) at rt_ifa_add+0x260 sys/net/route.c:1126 in_ifinit(ffff800000bca800,ffff800000ba3000,ffff80002e977d70,1) at in_ifinit+0x35d in_insert_prefix sys/netinet/in.c:796 [inline] in_ifinit(ffff800000bca800,ffff800000ba3000,ffff80002e977d70,1) at in_ifinit+0x35d sys/netinet/in.c:729 in_ioctl_change_ifaddr(8040691a,ffff80002e977d60,ffff800000bca800,1) at in_ioctl_change_ifaddr+0x65e sys/netinet/in.c:526 ifioctl(fffffd806ef31ab8,8040691a,ffff80002e977d60,ffff800021722a90) at ifioctl+0x1152 pru_control sys/sys/protosw.h:365 [inline] ifioctl(fffffd806ef31ab8,8040691a,ffff80002e977d60,ffff800021722a90) at ifioctl+0x1152 sys/net/if.c:2345 sys_ioctl(ffff800021722a90,ffff80002e977e78,ffff80002e977ec0) at sys_ioctl+0x49e syscall(ffff80002e977f40) at syscall+0x446 sys/arch/amd64/amd64/trap.c:599 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb8552a7d980, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002e977870 rbx 0x10000 __ALIGN_SIZE+0xf000 rdx 0xffff800000be8580 rcx 0 rax 0xffff800021722a90 r8 0 r9 0x8080808080808080 r10 0xd5ad88388e70b98b r11 0xace3388d593cd4e2 r12 0 r13 0xffff80002e977a40 r14 0 r15 0x1 rip 0xffffffff818efcf8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002e977860 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.3) pid=299924 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800021723cf0,0xffff8000ffff8018 process=0xffff80002cecd3b8 user=0xffff80002e972000, vmspace=0xfffffd806bac7ef0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 82625 365555 76126 0 2 0 syz-executor.7 82625 53984 76126 0 3 0x4000080 fsleep syz-executor.7 43913 382387 32706 0 2 0 syz-executor.1 43913 41344 32706 0 3 0x4000080 fsleep syz-executor.1 58765 246885 61793 0 2 0 syz-executor.3 *58765 299924 61793 0 7 0x4000000 syz-executor.3 32295 49883 76551 0 2 0 syz-executor.5 32295 347541 76551 0 3 0x4000080 fsleep syz-executor.5 14325 323976 1 0 3 0x100083 ttyin getty 16927 175638 67843 0 2 0x2 syz-executor.6 61793 507164 67843 0 2 0x482 syz-executor.3 76551 273731 67843 0 3 0x82 nanoslp syz-executor.5 27246 333261 67843 0 3 0x82 nanoslp syz-executor.0 31066 470585 67843 0 3 0x82 nanoslp syz-executor.4 76126 480275 67843 0 3 0x82 nanoslp syz-executor.7 86179 378612 0 0 3 0x14200 acct acct 96269 296735 0 0 3 0x14280 nfsidl nfsio 33755 414067 0 0 3 0x14280 nfsidl nfsio 34735 250045 0 0 3 0x14280 nfsidl nfsio 96127 284001 0 0 3 0x14280 nfsidl nfsio 20095 396546 0 0 3 0x14280 nfsidl nfsio 47299 11015 0 0 3 0x14280 nfsidl nfsio 17142 346535 0 0 3 0x14280 nfsidl nfsio 37104 90829 0 0 3 0x14280 nfsidl nfsio 69986 516849 0 0 3 0x14280 nfsidl nfsio 84672 62975 0 0 3 0x14280 nfsidl nfsio 43011 327903 0 0 3 0x14280 nfsidl nfsio 54584 95882 0 0 3 0x14280 nfsidl nfsio 92917 120788 0 0 3 0x14280 nfsidl nfsio 35885 259592 0 0 3 0x14280 nfsidl nfsio 89828 303960 0 0 3 0x14280 nfsidl nfsio 56656 246252 0 0 3 0x14280 nfsidl nfsio 10517 367511 0 0 3 0x14280 nfsidl nfsio 26751 316121 0 0 3 0x14280 nfsidl nfsio 22616 226004 0 0 3 0x14280 nfsidl nfsio 46022 266812 0 0 3 0x14280 nfsidl nfsio 18823 350959 0 0 3 0x14200 bored sosplice 32706 460202 67843 0 2 0x482 syz-executor.1 67843 221708 7598 0 3 0x82 wait syz-fuzzer 67843 446414 7598 0 3 0x4000082 nanoslp syz-fuzzer 67843 517539 7598 0 3 0x4000082 thrsleep syz-fuzzer 67843 363983 7598 0 3 0x4000082 thrsleep syz-fuzzer 67843 250649 7598 0 3 0x4000082 wait syz-fuzzer 67843 119934 7598 0 3 0x4000082 wait syz-fuzzer 67843 407375 7598 0 3 0x4000082 kqread syz-fuzzer 67843 7407 7598 0 3 0x4000082 wait syz-fuzzer 67843 134274 7598 0 3 0x4000082 thrsleep syz-fuzzer 67843 127685 7598 0 3 0x4000082 thrsleep syz-fuzzer 67843 142668 7598 0 3 0x4000082 wait syz-fuzzer 67843 163554 7598 0 3 0x4000082 wait syz-fuzzer 67843 345238 7598 0 3 0x4000082 wait syz-fuzzer 67843 8718 7598 0 3 0x4000082 wait syz-fuzzer 67843 17210 7598 0 3 0x4000082 thrsleep syz-fuzzer 7598 79928 83173 0 3 0x10008a sigsusp ksh 83173 103192 5259 0 3 0x9a kqread sshd 5259 63546 1 0 3 0x88 kqread sshd 77222 15764 39281 73 3 0x1100090 kqread syslogd 39281 99067 1 0 3 0x100082 netio syslogd 25897 100360 1 0 3 0x100080 kqread resolvd 28768 277842 55391 77 3 0x100092 kqread dhcpleased 69361 339525 55391 77 3 0x100092 kqread dhcpleased 55391 467569 1 0 3 0x80 kqread dhcpleased 92223 59605 0 0 3 0x14200 bored smr 78914 81136 0 0 2 0x14200 zerothread 21754 278786 0 0 3 0x14200 aiodoned aiodoned 40493 310388 0 0 3 0x14200 syncer update 97673 310943 0 0 3 0x14200 cleaner cleaner 9235 421663 0 0 3 0x14200 reaper reaper 56365 261803 0 0 3 0x14200 pgdaemon pagedaemon 16718 70865 0 0 3 0x14200 bored viomb 92474 331573 0 0 3 0x40014200 acpi0 acpi0 7110 502540 0 0 3 0x14200 bored softnet 94958 300311 0 0 3 0x14200 bored softnet 50696 235782 0 0 3 0x14200 bored softnet 57279 116387 0 0 3 0x14200 bored softnet 27074 109646 0 0 3 0x14200 bored systqmp 40157 466489 0 0 3 0x14200 bored systq 90706 221883 0 0 2 0x40014200 softclock 80444 87805 0 0 3 0x40014200 idle0 1 381418 0 0 3 0x82 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 10214 6430K 6882K 78643K 23067 0 pcb 13 18K 22K 78643K 10950 0 rtable 232 16K 16K 78643K 2601 0 ifaddr 95 23K 23K 78643K 904 0 sysctl 2 0K 0K 78643K 4 0 counters 27 17K 17K 78643K 315 0 ioctlops 0 0K 4K 78643K 1142 0 iov 0 0K 28K 78643K 1216 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1562 98K 98K 78643K 12178 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 52 0 VM map 2 0K 0K 78643K 2 0 sem 13 10K 20K 78643K 142 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 14 49K 77K 78643K 15889 0 sigio 0 0K 0K 78643K 211 0 proc 58 59K 75K 78643K 1675 0 subproc 104 6K 6K 78643K 533 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1463 0 in_multi 89 6K 6K 78643K 581 0 ether_multi 1 0K 0K 78643K 24 0 mrt 0 0K 0K 78643K 58 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 205 917K 917K 78643K 205 0 exec 0 0K 1K 78643K 1627 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 334 94K 108K 78643K 101176 0 UVM aobj 131 4K 4K 78643K 131 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 355 0 NDP 13 0K 1K 78643K 239 0 temp 132 4686K 5710K 78643K 384415 0 kqueue 12 18K 26K 78643K 794 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 624 0 621 10 9 1 3 0 8 0 rtentry 112 920 0 821 4 0 4 4 0 8 0 unpcb 144 23655 0 23642 173 172 1 15 0 8 0 syncache 296 42 0 42 12 12 0 1 0 8 0 tcpqe 32 205 32794 205 4 4 0 1 0 8 0 tcpcb 776 5107 0 5101 163 155 8 14 0 8 7 arp 88 159 0 141 1 0 1 1 0 8 0 ipq 40 68 0 68 2 2 0 1 0 8 0 ipqe 40 137 0 137 2 2 0 1 0 8 0 inpcb 336 28718 0 28709 287 280 7 15 0 8 6 nd6 48 134 0 112 1 0 1 1 0 8 0 pkpcb 40 3 0 3 1 1 0 1 0 8 0 kcovpl 48 41 0 33 1 0 1 1 0 8 0 mppekey 1024 7 0 7 2 2 0 1 0 8 0 ppxss 1160 189 0 189 20 20 0 1 0 8 0 pppxif 1352 146 0 146 14 14 0 1 0 8 0 pfstscr 40 161 0 148 1 0 1 1 0 8 0 pfosfp 40 73 0 72 1 0 1 1 0 8 0 pfosfpen 112 73 0 70 1 0 1 1 0 8 0 pfanchor 1280 1045 1599 533 43 0 43 43 0 8 0 pfstitem 24 240 0 214 1 0 1 1 0 8 0 pfstkey 128 322 0 101 8 0 8 8 0 8 0 pfstate 352 161 0 148 4 2 2 2 0 8 0 rttmr 136 15 0 15 5 5 0 1 0 8 0 art_heap8 4096 3 0 2 3 2 1 2 0 8 0 art_heap4 256 2835 0 2426 50 23 27 31 0 8 0 art_table 32 2838 0 2428 4 0 4 4 0 8 0 art_node 16 749 0 665 1 0 1 1 0 8 0 sysvmsgpl 40 31 0 18 1 0 1 1 0 8 0 semupl 112 7 0 7 1 1 0 1 0 8 0 semapl 112 64 0 53 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 24773 0 23332 91 0 91 91 0 8 0 ffsino 240 24773 0 23332 86 0 86 86 0 8 0 nchpl 144 49083 0 47447 63 1 62 63 0 8 0 rtmask 32 3 0 3 1 1 0 1 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 174129 0 174128 6 5 1 2 0 8 0 kstatmem 264 304 0 278 7 5 2 3 0 8 0 scsiplug 72 18 0 18 6 5 1 1 0 8 1 scxspl 216 128667 0 128667 16 15 1 8 0 8 1 plimitpl 152 1720 0 1705 1 0 1 1 0 8 0 sigapl 424 16144 0 16079 8 0 8 8 0 8 0 futexpl 64 288061 0 288058 1 0 1 1 0 8 0 knotepl 120 149143 0 149065 43 39 4 10 0 8 0 kqueuepl 184 3801 0 3793 31 30 1 4 0 8 0 pipepl 288 5344 0 5317 98 95 3 7 0 8 0 fdescpl 432 16106 0 16081 4 0 4 4 0 8 0 filepl 120 156128 0 155894 218 205 13 24 0 8 4 lockfpl 104 8400 0 8398 18 17 1 2 0 8 0 lockfspl 48 2696 0 2694 1 0 1 1 0 8 0 sessionpl 144 66 0 50 1 0 1 1 0 8 0 pgrppl 48 119 0 103 1 0 1 1 0 8 0 ucredpl 104 14971 0 14960 1 0 1 1 0 8 0 zombiepl 144 16082 0 16079 2 1 1 1 0 8 0 processpl 1008 16144 0 16079 11 2 9 9 0 8 0 procpl 672 38786 0 38703 32 24 8 9 0 8 0 sosppl 168 1276 0 1276 26 25 1 1 0 8 1 sockpl 456 53072 0 53047 1269 1257 12 60 0 8 8 mcl64k 65536 619 0 619 40 39 1 1 0 8 1 mcl16k 16384 2719 0 2719 28 27 1 1 0 8 1 mcl12k 12288 1320 0 1320 35 34 1 1 0 8 1 mcl9k 9216 268 0 268 31 31 0 1 0 8 0 mcl8k 8192 595 0 595 42 42 0 1 0 8 0 mcl4k 4096 3869 0 3869 13 12 1 1 0 8 1 mcl2k2 2112 50 0 50 30 30 0 1 0 8 0 mcl2k 2048 117597 0 117530 70 60 10 34 0 8 0 mtagpl 96 938 0 677 17 9 8 8 0 8 0 mbufpl 256 472159 0 471660 446 411 35 84 0 8 0 bufpl 288 29655 0 23247 459 0 459 459 0 8 0 anonpl 24 3429878 0 3413799 184 70 114 130 0 188 0 amapchunkpl 152 277895 0 277240 69 39 30 39 0 158 0 amappl16 200 60417 0 59871 107 75 32 45 0 8 0 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 273 0 262 2 0 2 2 0 8 0 amappl13 176 5 0 5 1 1 0 1 0 8 0 amappl12 168 805 0 802 1 0 1 1 0 8 0 amappl11 160 46 0 35 1 0 1 1 0 8 0 amappl10 152 73 0 62 1 0 1 1 0 8 0 amappl9 144 1028 0 1027 1 0 1 1 0 8 0 amappl8 136 490 0 390 4 0 4 4 0 8 0 amappl7 128 279 0 254 2 0 2 2 0 8 0 amappl6 120 404 0 388 1 0 1 1 0 8 0 amappl5 112 538 0 532 1 0 1 1 0 8 0 amappl4 104 3498 0 3468 1 0 1 1 0 8 0 amappl3 96 46022 0 45977 2 0 2 2 0 8 0 amappl2 88 17909 0 17837 3 1 2 3 0 8 0 amappl1 80 359383 0 358704 41 25 16 22 0 8 0 amappl 88 99657 0 99481 5 0 5 5 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 16106 0 16081 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 16106 0 16081 1 0 1 1 0 8 0 vmmpekpl 168 118844 0 118781 4 0 4 4 0 8 0 vmmpepl 168 1477769 0 1475188 335 204 131 172 0 357 0 vmsppl 272 16105 0 16081 4 2 2 3 0 8 0 rwobjpl 24 407436 0 399739 54 5 49 49 0 8 0 pdppl 4096 32218 0 32162 619 557 62 70 0 8 6 pvpl 32 6434973 0 6413554 431 233 198 254 0 265 0 pmappl 216 16105 0 16081 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 2350 0 1559 26 1 25 25 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82584108) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff825f4fba,ffffffff825b58e7,3b2,ffffffff825cc412) at __assert+0x25 sys/kern/subr_prf.c:157 rtrequest(1,ffff80002e977a40,4,ffff80002e977b08,0) at rtrequest+0xc17 sys/net/route.c:946 rt_ifa_add(ffff800000ba3000,840100,ffff800000ba3058,0) at rt_ifa_add+0x260 sys/net/route.c:1126 in_ifinit(ffff800000bca800,ffff800000ba3000,ffff80002e977d70,1) at in_ifinit+0x35d in_insert_prefix sys/netinet/in.c:796 [inline] in_ifinit(ffff800000bca800,ffff800000ba3000,ffff80002e977d70,1) at in_ifinit+0x35d sys/netinet/in.c:729 in_ioctl_change_ifaddr(8040691a,ffff80002e977d60,ffff800000bca800,1) at in_ioctl_change_ifaddr+0x65e sys/netinet/in.c:526 ifioctl(fffffd806ef31ab8,8040691a,ffff80002e977d60,ffff800021722a90) at ifioctl+0x1152 pru_control sys/sys/protosw.h:365 [inline] ifioctl(fffffd806ef31ab8,8040691a,ffff80002e977d60,ffff800021722a90) at ifioctl+0x1152 sys/net/if.c:2345 sys_ioctl(ffff800021722a90,ffff80002e977e78,ffff80002e977ec0) at sys_ioctl+0x49e syscall(ffff80002e977f40) at syscall+0x446 sys/arch/amd64/amd64/trap.c:599 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb8552a7d980, count: -11 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82584108) at panic+0x161 sys/kern/subr_prf.c:198 __assert(ffffffff825f4fba,ffffffff825b58e7,3b2,ffffffff825cc412) at __assert+0x25 sys/kern/subr_prf.c:157 rtrequest(1,ffff80002e977a40,4,ffff80002e977b08,0) at rtrequest+0xc17 sys/net/route.c:946 rt_ifa_add(ffff800000ba3000,840100,ffff800000ba3058,0) at rt_ifa_add+0x260 sys/net/route.c:1126 in_ifinit(ffff800000bca800,ffff800000ba3000,ffff80002e977d70,1) at in_ifinit+0x35d in_insert_prefix sys/netinet/in.c:796 [inline] in_ifinit(ffff800000bca800,ffff800000ba3000,ffff80002e977d70,1) at in_ifinit+0x35d sys/netinet/in.c:729 in_ioctl_change_ifaddr(8040691a,ffff80002e977d60,ffff800000bca800,1) at in_ioctl_change_ifaddr+0x65e sys/netinet/in.c:526 ifioctl(fffffd806ef31ab8,8040691a,ffff80002e977d60,ffff800021722a90) at ifioctl+0x1152 pru_control sys/sys/protosw.h:365 [inline] ifioctl(fffffd806ef31ab8,8040691a,ffff80002e977d60,ffff800021722a90) at ifioctl+0x1152 sys/net/if.c:2345 sys_ioctl(ffff800021722a90,ffff80002e977e78,ffff80002e977ec0) at sys_ioctl+0x49e syscall(ffff80002e977f40) at syscall+0x446 sys/arch/amd64/amd64/trap.c:599 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb8552a7d980, count: -11