panic: kernel diagnostic assertion "ifp != NULL" failed: file "/syzkaller/managers/setuid/kernel/sys/netinet/if_ether.c", line 759 Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 12788 11911 0 0x14000 0x200 0 reaper *344440 98242 0 0x14000 0x200 1 softclockmp db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827aedd8) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8282b4fe,ffffffff8287ba99,2f7,ffffffff8277adf0) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd8064396d98) at arptfree+0x132 sys/netinet/if_ether.c:759 arptimer(ffffffff82d921e8) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82d921e8) at timeout_run+0xd0 sys/kern/kern_timeout.c:665 softclock_thread_mp(ffff800021158aa0) at softclock_thread_mp+0xc4 sys/kern/kern_timeout.c:833 end trace frame: 0x0, count: 8 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 *cpu1: kernel diagnostic assertion "ifp != NULL" failed: file "/syzkaller/managers/setuid/kernel/sys/netinet/if_ether.c", line 759 ddb{1}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827aedd8) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8282b4fe,ffffffff8287ba99,2f7,ffffffff8277adf0) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd8064396d98) at arptfree+0x132 sys/netinet/if_ether.c:759 arptimer(ffffffff82d921e8) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82d921e8) at timeout_run+0xd0 sys/kern/kern_timeout.c:665 softclock_thread_mp(ffff800021158aa0) at softclock_thread_mp+0xc4 sys/kern/kern_timeout.c:833 end trace frame: 0x0, count: -7 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002116bd50 rbx 0xffff800020d49ba7 rdx 0 rcx 0xffff800021158aa0 rax 0xffff800020d48ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x1c7902457427b661 r11 0x8b999dcc0856a6d5 r12 0xffff800020d499a8 r13 0 r14 0 r15 0x1 rip 0xffffffff8106ab0c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002116bd40 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{1}> show proc PROC (softclockmp) tid=344440 pid=98242 tcnt=1 stat=onproc flags process=14000 proc=200 runpri=0, usrpri=50, slppri=0, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff800021158d48,0xffff800021158560 process=0xffff8000ffffd920 user=0xffff800021166000, vmspace=0xffffffff82ccc980 estcpu=0, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 55369 503831 14469 32767 3 0x3010 suspend syz-executor.2 55369 508171 14469 32767 2 0x4081090 syz-executor.2 55369 386114 14469 32767 2 0x4081090 syz-executor.2 60161 277529 22636 32767 3 0x90 piperd syz-executor.7 22636 338330 44825 0 3 0x82 wait syz-executor.7 93520 363107 17149 32767 3 0x90 piperd syz-executor.5 17149 420998 44825 0 3 0x82 wait syz-executor.5 24969 507553 60993 32767 3 0x90 piperd syz-executor.4 60993 482499 44825 0 3 0x82 wait syz-executor.4 14469 224331 58055 32767 3 0x90 nanoslp syz-executor.2 58055 463825 44825 0 3 0x82 wait syz-executor.2 6205 323030 98728 32767 3 0x90 piperd syz-executor.1 98728 381970 44825 0 3 0x82 wait syz-executor.1 54694 512817 11091 32767 3 0x90 piperd syz-executor.3 11091 89062 44825 0 3 0x82 wait syz-executor.3 6247 115837 44825 0 3 0x82 wait syz-executor.0 23044 82454 95640 32767 3 0x90 piperd syz-executor.6 95640 364084 44825 0 3 0x82 wait syz-executor.6 94077 414054 0 0 3 0x14200 bored sosplice 44825 13136 87716 0 3 0x2000082 wait syz-fuzzer 44825 512016 87716 0 3 0x6000082 thrsleep syz-fuzzer 44825 520282 87716 0 3 0x6000082 wait syz-fuzzer 44825 254917 87716 0 3 0x6000082 kqread syz-fuzzer 44825 41492 87716 0 3 0x6000082 wait syz-fuzzer 44825 135147 87716 0 3 0x6000082 thrsleep syz-fuzzer 44825 433568 87716 0 3 0x6000082 wait syz-fuzzer 44825 326355 87716 0 3 0x6000082 thrsleep syz-fuzzer 44825 295371 87716 0 3 0x6000082 thrsleep syz-fuzzer 44825 436923 87716 0 3 0x6000082 wait syz-fuzzer 44825 478586 87716 0 3 0x6000082 thrsleep syz-fuzzer 44825 467209 87716 0 3 0x6000082 thrsleep syz-fuzzer 44825 226488 87716 0 3 0x6000082 wait syz-fuzzer 44825 240454 87716 0 3 0x6000082 wait syz-fuzzer 44825 97 87716 0 3 0x6000082 wait syz-fuzzer 44825 371415 87716 0 3 0x6000082 thrsleep syz-fuzzer 87716 279202 30047 0 3 0x10008a sigsusp ksh 30047 384059 51811 0 3 0x9a kqread sshd 10546 69232 1 0 3 0x100083 ttyin getty 51811 336780 1 0 3 0x88 kqread sshd 7577 248714 98092 73 3 0x1100090 kqread syslogd 98092 172759 1 0 3 0x100082 netio syslogd 94832 91342 1 0 3 0x100080 kqread resolvd 56019 285416 95209 77 3 0x100092 kqread dhcpleased 41897 144021 95209 77 3 0x100092 kqread dhcpleased 95209 323356 1 0 3 0x80 kqread dhcpleased 34740 103768 0 0 3 0x14200 bored smr 3086 58046 0 0 3 0x14200 pgzero zerothread 8061 28772 0 0 3 0x14200 aiodoned aiodoned 74754 290732 0 0 3 0x14200 syncer update 57370 139703 0 0 3 0x14200 cleaner cleaner 11911 12788 0 0 7 0x14200 reaper 15937 198710 0 0 3 0x14200 pgdaemon pagedaemon 80526 174299 0 0 3 0x14200 bored viomb 26694 385885 0 0 3 0x40014200 acpi0 acpi0 26270 101214 0 0 3 0x40014200 idle1 79284 110543 0 0 3 0x14200 bored softnet3 91087 237834 0 0 3 0x14200 bored softnet2 88029 462193 0 0 3 0x14200 bored softnet1 40932 499274 0 0 3 0x14200 bored softnet0 3839 164511 0 0 3 0x14200 bored systqmp 72779 277481 0 0 3 0x14200 bored systq *98242 344440 0 0 7 0x14200 softclockmp 22459 437809 0 0 3 0x40014200 tmoslp softclock 39460 74075 0 0 3 0x40014200 idle0 1 296615 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 55369 (syz-executor.2) thread 0xffff800021298008 (503831) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82d6e180) #0 witness_lock+0x447 #1 syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] #1 syscall+0x5cd sys/arch/amd64/amd64/trap.c:623 #2 Xsyscall+0x128 Process 98242 (softclockmp) thread 0xffff800021158aa0 (344440) exclusive rwlock netlock r = 0 (0xffffffff82bfbed0) #0 witness_lock+0x447 #1 rw_enter+0x3c8 sys/kern/kern_rwlock.c:309 #2 arptimer+0x26 sys/netinet/if_ether.c:132 #3 timeout_run+0xd0 sys/kern/kern_timeout.c:665 #4 softclock_thread_mp+0xc4 sys/kern/kern_timeout.c:833 #5 proc_trampoline+0x10 shared rwlock timeout r = 0 (0xffffffff82b94090) #0 witness_lock+0x447 #1 timeout_run+0xbb sys/kern/kern_timeout.c:661 #2 softclock_thread_mp+0xc4 sys/kern/kern_timeout.c:833 #3 proc_trampoline+0x10 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10225 6414K 6421K 78643K 11482 0 pcb 13 16K 20K 78643K 19 0 rtable 246 7K 7K 78643K 3253 0 pf 29 8K 8K 78643K 147 0 ifaddr 44 16K 16K 78643K 288 0 ifgroup 50 2K 2K 78643K 286 0 sysctl 4 1K 1K 78643K 4 0 counters 60 35K 35K 78643K 178 0 ioctlops 0 0K 2K 78643K 342 0 iov 0 0K 32K 78643K 3286 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1279 80K 80K 78643K 5799 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 320 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 5788 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 19 69K 125K 78643K 24838 0 sigio 0 0K 0K 78643K 625 0 proc 56 78K 115K 78643K 3792 0 subproc 104 6K 6K 78643K 871 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1407 0 in_multi 99 7K 7K 78643K 938 0 ether_multi 1 0K 0K 78643K 38 0 mrt 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 271 1208K 1208K 78643K 271 0 exec 0 0K 1K 78643K 3712 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 462 94K 110K 78643K 244735 0 UVM aobj 131 4K 5K 78643K 157 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 671 0 NDP 11 0K 2K 78643K 204 0 temp 74 5924K 6052K 78643K 64794 0 kqueue 12 18K 29K 78643K 2118 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> 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 1841 0 1838 28 25 3 3 0 8 2 rtentry 112 813 0 697 4 0 4 4 0 8 0 unpcb 144 23829 0 23816 192 186 6 10 0 8 5 syncache 312 284 0 284 43 42 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 319 0 319 36 35 1 1 0 8 1 tcpcb 808 23233 0 23181 270 259 11 26 0 8 0 arp 120 142 0 123 1 0 1 1 0 8 0 ipq 40 38 0 37 13 12 1 1 0 8 0 ipqe 40 295 0 294 13 12 1 1 0 8 0 inpcb 368 39210 0 39155 305 292 13 25 0 8 4 nd6 136 248 0 219 7 5 2 2 0 8 0 kcovpl 48 67 0 59 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 3250 0 2781 37 7 30 31 0 8 0 art_table 32 3251 0 2781 4 0 4 4 0 8 0 art_node 16 812 0 706 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 1 0 1 0 8 0 semapl 112 5784 0 5774 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 dino2pl 256 33939 0 32473 92 0 92 92 0 8 0 ffsino 272 33939 0 32473 99 0 99 99 0 8 0 nchpl 144 66426 0 64786 63 0 63 63 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 215769 0 215769 9 8 1 3 0 8 1 percpumem 16 102 0 59 1 0 1 1 0 8 0 kstatmem 264 140 0 118 2 0 2 2 0 8 0 scxspl 216 209855 0 209855 72 68 4 8 1 8 4 plimitpl 152 3987 0 3964 37 35 2 2 0 8 1 sigapl 424 25019 0 24970 8 1 7 8 0 8 0 futexpl 64 215020 0 215018 5 4 1 1 0 8 0 knotepl 120 1209 0 0 17 0 17 17 0 8 0 kqueuepl 216 5407 0 5399 114 111 3 8 0 8 2 pipepl 320 6179 0 6151 157 154 3 11 0 8 0 fdescpl 496 25000 0 24970 7 2 5 6 0 8 0 filepl 152 170950 0 170717 258 243 15 23 0 8 6 lockfpl 104 3459 0 3457 1 0 1 1 0 8 0 lockfspl 48 941 0 939 1 0 1 1 0 8 0 sessionpl 144 82 0 66 1 0 1 1 0 8 0 pgrppl 48 574 0 558 1 0 1 1 0 8 0 ucredpl 104 22380 0 22362 1 0 1 1 0 8 0 zombiepl 144 24972 0 24970 1 0 1 1 0 8 0 processpl 1072 25019 0 24970 5 1 4 5 0 8 0 procpl 680 68981 0 68914 33 25 8 9 0 8 1 sosppl 168 436 0 436 23 22 1 1 0 8 1 sockpl 488 65711 0 65638 989 968 21 50 0 8 8 mcl64k 65536 41 0 0 3 0 3 3 0 8 0 mcl16k 16384 31 0 0 3 0 3 3 0 8 0 mcl12k 12288 22 0 0 2 0 2 2 0 8 0 mcl9k 9216 20 0 0 2 0 2 2 0 8 0 mcl8k 8192 54 0 0 4 1 3 3 0 8 0 mcl4k 4096 47 0 0 3 0 3 3 0 8 0 mcl2k2 2112 17 0 0 2 0 2 2 0 8 0 mcl2k 2048 667 0 0 39 17 22 36 0 8 0 mtagpl 96 15 0 0 1 0 1 1 0 8 0 mbufpl 256 2741 0 0 113 0 113 113 0 8 0 bufpl 288 47969 0 41648 452 0 452 452 0 8 0 anonpl 24 2736758 0 2725061 351 231 120 122 0 186 19 amapchunkpl 152 792585 0 791798 199 159 40 52 0 158 0 amappl16 200 67594 0 67275 452 422 30 43 0 8 8 amappl15 192 20 0 20 2 2 0 1 0 8 0 amappl14 184 378 0 364 2 1 1 2 0 8 0 amappl13 176 44 0 43 1 0 1 1 0 8 0 amappl12 168 26533 0 26496 3 0 3 3 0 8 0 amappl11 160 54 0 44 1 0 1 1 0 8 0 amappl10 152 93 0 80 1 0 1 1 0 8 0 amappl9 144 415 0 415 17 16 1 1 0 8 1 amappl8 136 1333 0 1090 10 1 9 9 0 8 0 amappl7 128 417 0 393 2 0 2 2 0 8 0 amappl6 120 1375 0 1357 1 0 1 1 0 8 0 amappl5 112 613 0 605 1 0 1 1 0 8 0 amappl4 104 1199 0 1169 3 2 1 3 0 8 0 amappl3 96 150044 0 149963 40 36 4 5 0 8 1 amappl2 88 26829 0 26747 10 7 3 3 0 8 0 amappl1 80 98495 0 97973 22 10 12 22 0 8 0 amappl 88 242989 0 242754 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 156 0 26 3 0 3 3 0 8 0 uaddrrnd 24 25000 0 24970 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 25000 0 24970 1 0 1 1 0 8 0 vmmpekpl 168 196888 0 196830 4 0 4 4 0 8 0 vmmpepl 168 1479297 0 1476930 356 218 138 147 0 357 5 vmsppl 464 24999 0 24970 7 2 5 6 0 8 0 rwobjpl 56 375010 0 367450 138 23 115 115 0 8 4 pdppl 4096 50008 0 49940 877 795 82 98 0 8 14 pvpl 32 7319255 0 7301823 761 541 220 363 0 265 43 pmappl 248 24999 0 24970 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 2389 0 1448 28 0 28 28 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp x86_ipi_db(ffffffff82c17ff0) 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+0x27 __mp_lock(ffffffff82d6df78) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82d6df78) at __mp_lock+0x122 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x52 sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x27 __mp_lock(ffffffff82d6df78) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82d6df78) at __mp_lock+0x122 sys/kern/kern_lock.c:147 reaper(ffff8000211a3548) at reaper+0x160 sys/kern/kern_exit.c:446 end trace frame: 0x0, count: 7 ddb{0}> trace x86_ipi_db(ffffffff82c17ff0) 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+0x27 __mp_lock(ffffffff82d6df78) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82d6df78) at __mp_lock+0x122 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x52 sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x27 __mp_lock(ffffffff82d6df78) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82d6df78) at __mp_lock+0x122 sys/kern/kern_lock.c:147 reaper(ffff8000211a3548) at reaper+0x160 sys/kern/kern_exit.c:446 end trace frame: 0x0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x1c: addq $0x8,%rsp db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827aedd8) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8282b4fe,ffffffff8287ba99,2f7,ffffffff8277adf0) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd8064396d98) at arptfree+0x132 sys/netinet/if_ether.c:759 arptimer(ffffffff82d921e8) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82d921e8) at timeout_run+0xd0 sys/kern/kern_timeout.c:665 softclock_thread_mp(ffff800021158aa0) at softclock_thread_mp+0xc4 sys/kern/kern_timeout.c:833 end trace frame: 0x0, count: 8 ddb{1}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827aedd8) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8282b4fe,ffffffff8287ba99,2f7,ffffffff8277adf0) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd8064396d98) at arptfree+0x132 sys/netinet/if_ether.c:759 arptimer(ffffffff82d921e8) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82d921e8) at timeout_run+0xd0 sys/kern/kern_timeout.c:665 softclock_thread_mp(ffff800021158aa0) at softclock_thread_mp+0xc4 sys/kern/kern_timeout.c:833 end trace frame: 0x0, count: -7