kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons:. Mon Feb 1 01:00:10 PST 2021 OpenBSD/amd64 (ci-openbsd-multicore-9.c.syzkaller.internal) (tty00) Warning: Permanently added '10.128.0.138' (ECDSA) to the list of known hosts. 2021/02/01 01:00:23 parsed 1 programs 2021/02/01 01:00:27 executed programs: 0 login: panic: kernel diagnostic assertion "frag->fr_firstoff[index] != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/pf_norm.c", line 445 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 22828 74437 0 0 0x4000000 0 syz-executor.0 329621 12245 0 0x2 0 1 syz-executor.0 db_enter() at db_enter+0x18 panic(ffffffff823bccba) at panic+0x15e __assert(ffffffff8242c052,ffffffff824492a2,1bd,ffffffff823aebf1) at __assert+0x2b pf_frent_remove(fffffd806b0f7d98,fffffd806b0a4ed8) at pf_frent_remove+0x2a4 pf_fillup_fragment(ffff8000212af4f0,0,fffffd806b0a4e88,ffff8000212af73e) at pf_fillup_fragment+0xbeb pf_reassemble(ffff8000212af668,1,ffff8000212af73e) at pf_reassemble+0xda pf_normalize_ip(ffff8000212af628,ffff8000212af73e) at pf_normalize_ip+0x11d pf_test(2,1,ffff800000ae5000,ffff8000212af848) at pf_test+0x30c ip_input_if(ffff8000212af848,ffff8000212af854,4,0,ffff800000ae5000) at ip_input_if+0x578 ipv4_input(ffff800000ae5000,fffffd807f008200) at ipv4_input+0x48 tun_dev_write(5d00,ffff8000212afb38,11,2) at tun_dev_write+0x204 spec_write(ffff8000212af990) at spec_write+0xd4 VOP_WRITE(fffffd806e289328,ffff8000212afb38,11,fffffd807f7b7ae0) at VOP_WRITE+0xc6 vn_write(fffffd806cd08ee8,ffff8000212afb38,0) at vn_write+0x14e end trace frame: 0xffff8000212afb20, count: 0 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 "frag->fr_firstoff[index] != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/pf_norm.c", line 445 ddb{0}> trace db_enter() at db_enter+0x18 panic(ffffffff823bccba) at panic+0x15e __assert(ffffffff8242c052,ffffffff824492a2,1bd,ffffffff823aebf1) at __assert+0x2b pf_frent_remove(fffffd806b0f7d98,fffffd806b0a4ed8) at pf_frent_remove+0x2a4 pf_fillup_fragment(ffff8000212af4f0,0,fffffd806b0a4e88,ffff8000212af73e) at pf_fillup_fragment+0xbeb pf_reassemble(ffff8000212af668,1,ffff8000212af73e) at pf_reassemble+0xda pf_normalize_ip(ffff8000212af628,ffff8000212af73e) at pf_normalize_ip+0x11d pf_test(2,1,ffff800000ae5000,ffff8000212af848) at pf_test+0x30c ip_input_if(ffff8000212af848,ffff8000212af854,4,0,ffff800000ae5000) at ip_input_if+0x578 ipv4_input(ffff800000ae5000,fffffd807f008200) at ipv4_input+0x48 tun_dev_write(5d00,ffff8000212afb38,11,2) at tun_dev_write+0x204 spec_write(ffff8000212af990) at spec_write+0xd4 VOP_WRITE(fffffd806e289328,ffff8000212afb38,11,fffffd807f7b7ae0) at VOP_WRITE+0xc6 vn_write(fffffd806cd08ee8,ffff8000212afb38,0) at vn_write+0x14e dofilewritev(ffff80002123d500,f0,ffff8000212afb38,0,ffff8000212afc20) at dofilewritev+0x1ab sys_write(ffff80002123d500,ffff8000212afbd0,ffff8000212afc20) at sys_write+0x83 syscall(ffff8000212afca0) at syscall+0x4a1 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdedc7f57150, count: -18 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff8000212af310 rbx 0xffff8000212af320 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81303675 kprintf+0x145 r9 0x1 r10 0xdb5370867d7abee3 r11 0x54cf983c7815c18 r12 0x3000000008 r13 0xffff8000212af3c0 r14 0x100 r15 0x1 rip 0xffffffff812aa9b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000212af300 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=22828 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff80002123cfc0,0xffffffff828bb158 process=0xffff800021234cb8 user=0xffff8000212aa000, vmspace=0xfffffd8008496000 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 74437 26837 12245 0 2 0 syz-executor.0 *74437 22828 12245 0 7 0x4000000 syz-executor.0 12245 329621 64759 0 7 0x2 syz-executor.0 64759 241603 10447 0 3 0x82 thrsleep syz-execprog 64759 483044 10447 0 3 0x4000082 thrsleep syz-execprog 64759 361059 10447 0 3 0x4000082 thrsleep syz-execprog 64759 464821 10447 0 3 0x4000082 thrsleep syz-execprog 64759 118997 10447 0 3 0x4000082 kqread syz-execprog 64759 157375 10447 0 3 0x4000082 thrsleep syz-execprog 64759 141489 10447 0 3 0x4000082 thrsleep syz-execprog 10447 361606 53974 0 3 0x10008a sigsusp ksh 53974 376090 5264 0 3 0x92 select sshd 32864 446448 1 0 3 0x100083 ttyin getty 5264 500348 1 0 3 0x80 select sshd 49831 281352 34244 74 3 0x100092 bpf pflogd 34244 519156 1 0 3 0x80 netio pflogd 9131 386064 59870 73 3 0x100090 kqread syslogd 59870 205442 1 0 3 0x100082 netio syslogd 39253 177076 1 77 3 0x100090 poll dhclient 66786 145160 1 0 3 0x80 poll dhclient 32659 166016 0 0 3 0x14200 bored smr 49387 524041 0 0 3 0x14200 pgzero zerothread 30667 193957 0 0 3 0x14200 aiodoned aiodoned 99354 167774 0 0 3 0x14200 syncer update 74628 277384 0 0 3 0x14200 cleaner cleaner 89200 167298 0 0 3 0x14200 reaper reaper 2220 274171 0 0 3 0x14200 pgdaemon pagedaemon 49140 382571 0 0 3 0x14200 bored crynlk 87337 147243 0 0 3 0x14200 bored crypto 34555 83953 0 0 3 0x14200 bored viomb 37988 73177 0 0 3 0x40014200 acpi0 acpi0 10218 376706 0 0 3 0x40014200 idle1 8908 502652 0 0 3 0x14200 bored softnet 55080 105122 0 0 3 0x14200 bored systqmp 67511 19501 0 0 3 0x14200 bored systq 63497 339500 0 0 3 0x40014200 bored softclock 74719 6219 0 0 3 0x40014200 idle0 1 222903 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 74437 (syz-executor.0) thread 0xffff80002123d500 (22828) exclusive rwlock netlock r = 0 (0xffffffff826ff250) #0 witness_lock+0x4b0 #1 tun_dev_write+0x1f9 #2 spec_write+0xd4 #3 VOP_WRITE+0xc6 #4 vn_write+0x14e #5 dofilewritev+0x1ab #6 sys_write+0x83 #7 syscall+0x4a1 #8 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828bbd40) #0 witness_lock+0x4b0 #1 vn_write+0x42 #2 dofilewritev+0x1ab #3 sys_write+0x83 #4 syscall+0x4a1 #5 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9478 6414K 6414K 78643K 10568 0 pcb 13 8K 8K 78643K 13 0 rtable 83 2K 2K 78643K 163 0 ifaddr 37 9K 9K 78643K 38 0 counters 42 33K 33K 78643K 42 0 ioctlops 0 0K 4K 78643K 1468 0 mount 1 1K 1K 78643K 1 0 vnodes 1183 74K 75K 78643K 1188 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 2 0K 0K 78643K 2 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 3 8K 12K 78643K 19 0 proc 59 63K 83K 78643K 407 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 22 1K 1K 78643K 22 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 19 95K 95K 78643K 19 0 exec 0 0K 2K 78643K 339 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 61 11K 11K 78643K 703 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 7 0K 0K 78643K 7 0 temp 28 3969K 4033K 78643K 1903 0 kqueue 3 4K 4K 78643K 3 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 4 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 120 17 0 15 1 0 1 1 0 8 0 rtentry 112 34 0 1 1 0 1 1 0 8 0 unpcb 120 29 0 19 1 0 1 1 0 8 0 syncache 296 5 0 5 1 0 1 1 0 8 1 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 736 8 0 4 1 0 1 1 0 8 0 inpcb 304 33 0 26 1 0 1 1 0 8 0 nd6 48 3 0 0 1 0 1 1 0 8 0 pffrag 232 1 0 0 1 0 1 1 0 482 0 pffrnode 88 1 0 0 1 0 1 1 0 8 0 pffrent 40 6 0 3 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 10 0 0 1 0 1 1 0 8 0 pfstkey 112 10 0 0 1 0 1 1 0 8 0 pfstate 328 10 0 0 1 0 1 1 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 144 0 0 9 0 9 9 0 8 0 art_table 32 145 0 0 2 0 2 2 0 8 0 art_node 16 33 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1423 0 23 88 0 88 88 0 8 0 ffsino 272 1423 0 23 94 0 94 94 0 8 0 nchpl 144 1640 0 42 60 0 60 60 0 8 0 uvmvnodes 72 1433 0 0 27 0 27 27 0 8 0 vnodes 224 1433 0 0 85 0 85 85 0 8 0 namei 1024 4182 0 4182 1 0 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 scxspl 216 4537 0 4537 2 1 1 2 0 8 1 plimitpl 152 15 0 8 1 0 1 1 0 8 0 sigapl 424 243 0 212 4 0 4 4 0 8 0 futexpl 56 5 0 5 1 0 1 1 0 8 1 knotepl 112 48 0 36 1 0 1 1 0 8 0 kqueuepl 168 2 0 0 1 0 1 1 0 8 0 pipepl 336 78 0 70 1 0 1 1 0 8 0 fdescpl 496 227 0 212 3 0 3 3 0 8 0 filepl 152 1078 0 1018 3 0 3 3 0 8 0 lockfpl 104 5 0 4 1 0 1 1 0 8 0 lockfspl 48 3 0 2 1 0 1 1 0 8 0 sessionpl 144 19 0 9 1 0 1 1 0 8 0 pgrppl 48 19 0 9 1 0 1 1 0 8 0 ucredpl 96 62 0 53 1 0 1 1 0 8 0 zombiepl 144 212 0 212 1 0 1 1 0 8 1 processpl 1080 243 0 212 3 0 3 3 0 8 0 procpl 672 251 0 213 4 0 4 4 0 8 0 sockpl 432 79 0 60 3 0 3 3 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 77 0 0 10 0 10 10 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 95 0 0 6 0 6 6 0 8 0 bufpl 280 3233 0 181 218 0 218 218 0 8 0 anonpl 24 23777 0 21526 24 2 22 22 0 186 8 amapchunkpl 152 841 0 758 6 1 5 5 0 158 1 amappl16 200 178 0 113 4 0 4 4 0 8 0 amappl15 192 3 0 0 1 0 1 1 0 8 0 amappl14 184 31 0 24 1 0 1 1 0 8 0 amappl13 176 20 0 19 1 0 1 1 0 8 0 amappl12 168 5 0 5 1 1 0 1 0 8 0 amappl11 160 52 0 36 1 0 1 1 0 8 0 amappl10 152 12 0 9 1 0 1 1 0 8 0 amappl9 144 238 0 238 1 0 1 1 0 8 1 amappl8 136 101 0 81 1 0 1 1 0 8 0 amappl7 128 234 0 229 1 0 1 1 0 8 0 amappl6 120 63 0 54 1 0 1 1 0 8 0 amappl5 112 369 0 350 1 0 1 1 0 8 0 amappl4 104 299 0 274 1 0 1 1 0 8 0 amappl3 96 123 0 114 1 0 1 1 0 8 0 amappl2 88 984 0 919 3 0 3 3 0 8 1 amappl1 80 15695 0 15234 27 6 21 21 0 8 9 amappl 88 475 0 443 1 0 1 1 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 64 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 227 0 212 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 227 0 212 1 0 1 1 0 8 0 vmmpekpl 168 6539 0 6519 2 0 2 2 0 8 1 vmmpepl 168 33958 0 32890 83 6 77 77 0 357 30 vmsppl 368 226 0 212 2 0 2 2 0 8 0 rwobjpl 56 9271 0 8581 24 5 19 19 0 8 8 pdppl 4096 461 0 424 53 12 41 41 0 8 4 pvpl 32 119245 0 114367 117 0 117 117 0 265 77 pmappl 232 226 0 212 1 0 1 1 0 8 0 extentpl 40 58 0 40 1 0 1 1 0 8 0 phpool 112 276 0 15 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 panic(ffffffff823bccba) at panic+0x15e __assert(ffffffff8242c052,ffffffff824492a2,1bd,ffffffff823aebf1) at __assert+0x2b pf_frent_remove(fffffd806b0f7d98,fffffd806b0a4ed8) at pf_frent_remove+0x2a4 pf_fillup_fragment(ffff8000212af4f0,0,fffffd806b0a4e88,ffff8000212af73e) at pf_fillup_fragment+0xbeb pf_reassemble(ffff8000212af668,1,ffff8000212af73e) at pf_reassemble+0xda pf_normalize_ip(ffff8000212af628,ffff8000212af73e) at pf_normalize_ip+0x11d pf_test(2,1,ffff800000ae5000,ffff8000212af848) at pf_test+0x30c ip_input_if(ffff8000212af848,ffff8000212af854,4,0,ffff800000ae5000) at ip_input_if+0x578 ipv4_input(ffff800000ae5000,fffffd807f008200) at ipv4_input+0x48 tun_dev_write(5d00,ffff8000212afb38,11,2) at tun_dev_write+0x204 spec_write(ffff8000212af990) at spec_write+0xd4 VOP_WRITE(fffffd806e289328,ffff8000212afb38,11,fffffd807f7b7ae0) at VOP_WRITE+0xc6 vn_write(fffffd806cd08ee8,ffff8000212afb38,0) at vn_write+0x14e dofilewritev(ffff80002123d500,f0,ffff8000212afb38,0,ffff8000212afc20) at dofilewritev+0x1ab sys_write(ffff80002123d500,ffff8000212afbd0,ffff8000212afc20) at sys_write+0x83 syscall(ffff8000212afca0) at syscall+0x4a1 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdedc7f57150, count: -18 ddb{0}> machine ddbcpu 1