kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons:. Wed Jul 22 20:37:18 PDT 2020 OpenBSD/amd64 (ci-openbsd-multicore-9.c.syzkaller.internal) (tty00) Warning: Permanently added '10.128.10.42' (ECDSA) to the list of known hosts. 2020/07/22 20:37:35 parsed 1 programs 2020/07/22 20:37:38 executed programs: 0 login: panic: pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd806f2d6c00+24 0xbf9c881b34db626!=0xbf9c801de382826 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 97929 10483 0 0 0x4000000 1K syz-executor.0 72385 44624 77 0x100010 0x80 0 dhclient db_enter() at db_enter+0x18 panic(ffffffff82407659) at panic+0x15c pool_cache_get(ffffffff828d9a80) at pool_cache_get+0x323 pool_get(ffffffff828d9a80,2) at pool_get+0x91 m_gethdr(2,1) at m_gethdr+0x4c rtm_msg1(2,ffff800020edc130) at rtm_msg1+0x6e rtm_send(fffffd806f497a80,2,0,0) at rtm_send+0x120 rtdeletemsg(fffffd806f497a80,ffff800000ac4000,0) at rtdeletemsg+0x199 rt_ifa_purge(ffff800000aa0e00) at rt_ifa_purge+0x104 in6_unlink_ifa(ffff800000aa0e00,ffff800000ac4000) at in6_unlink_ifa+0x580 in6_purgeaddr(ffff800000aa0e00) at in6_purgeaddr+0x1d7 in6_ifdetach(ffff800000ac4000) at in6_ifdetach+0x74 if_detach(ffff800000ac4000) at if_detach+0x148 tun_clone_destroy(ffff800000ac4000) at tun_clone_destroy+0x1e1 end trace frame: 0xffff800020edc680, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd806f2d6c00+24 0xbf9c881b34db626!=0xbf9c801de382826 ddb{1}> trace db_enter() at db_enter+0x18 panic(ffffffff82407659) at panic+0x15c pool_cache_get(ffffffff828d9a80) at pool_cache_get+0x323 pool_get(ffffffff828d9a80,2) at pool_get+0x91 m_gethdr(2,1) at m_gethdr+0x4c rtm_msg1(2,ffff800020edc130) at rtm_msg1+0x6e rtm_send(fffffd806f497a80,2,0,0) at rtm_send+0x120 rtdeletemsg(fffffd806f497a80,ffff800000ac4000,0) at rtdeletemsg+0x199 rt_ifa_purge(ffff800000aa0e00) at rt_ifa_purge+0x104 in6_unlink_ifa(ffff800000aa0e00,ffff800000ac4000) at in6_unlink_ifa+0x580 in6_purgeaddr(ffff800000aa0e00) at in6_purgeaddr+0x1d7 in6_ifdetach(ffff800000ac4000) at in6_ifdetach+0x74 if_detach(ffff800000ac4000) at if_detach+0x148 tun_clone_destroy(ffff800000ac4000) at tun_clone_destroy+0x1e1 ifioctl(fffffd807bacee20,80206979,ffff800020edc700,ffff800020ddc4e8) at ifioctl+0x3ea soo_ioctl(fffffd806cee9990,80206979,ffff800020edc700,ffff800020ddc4e8) at soo_ioctl+0x27c sys_ioctl(ffff800020ddc4e8,ffff800020edc818,ffff800020edc860) at sys_ioctl+0x4a5 syscall(ffff800020edc8e0) at syscall+0x4a4 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb02b1447ee0, count: -19 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020edbe50 rbx 0xffff800020edbf00 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff8150d54f kprintf+0x16f r9 0x1 r10 0x2 r11 0xbf698d943a7cd792 r12 0x3000000008 r13 0xffff800020edbe60 r14 0x100 r15 0x1 rip 0xffffffff818b9b58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020edbe40 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=97929 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=75, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddc758,0xffff800020dddd58 process=0xffff800020df0f90 user=0xffff800020ed7000, vmspace=0xfffffd807effe000 estcpu=36, cpticks=3, pctcpu=0.0 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 10483 334387 45867 0 3 0x80 nanosleep syz-executor.0 *10483 97929 45867 0 7 0x4000000 syz-executor.0 10483 391798 45867 0 3 0x4000080 fsleep syz-executor.0 45867 61552 55220 0 3 0x82 nanosleep syz-executor.0 55220 465304 53924 0 3 0x82 kqread syz-execprog 55220 519949 53924 0 3 0x4000082 thrsleep syz-execprog 55220 74365 53924 0 3 0x4000082 thrsleep syz-execprog 55220 424288 53924 0 3 0x4000082 thrsleep syz-execprog 55220 24692 53924 0 3 0x4000082 thrsleep syz-execprog 55220 37638 53924 0 3 0x4000082 thrsleep syz-execprog 55220 148631 53924 0 3 0x4000082 thrsleep syz-execprog 55220 380080 53924 0 3 0x4000082 thrsleep syz-execprog 53924 420293 35954 0 3 0x10008a pause ksh 35954 133726 43694 0 3 0x92 select sshd 35101 92563 1 0 3 0x100083 ttyin getty 43694 409727 1 0 3 0x80 select sshd 37835 285476 92251 74 3 0x100092 bpf pflogd 92251 181004 1 0 3 0x80 netio pflogd 96433 433497 87215 73 3 0x100090 kqread syslogd 87215 519766 1 0 3 0x100082 netio syslogd 44624 72385 1 77 7 0x100090 dhclient 64883 387384 1 0 3 0x80 poll dhclient 29949 234866 0 0 3 0x14200 bored smr 99404 467017 0 0 3 0x14200 pgzero zerothread 30312 59009 0 0 3 0x14200 aiodoned aiodoned 31951 2913 0 0 3 0x14200 syncer update 49031 68534 0 0 3 0x14200 cleaner cleaner 53195 236004 0 0 3 0x14200 reaper reaper 23159 278964 0 0 3 0x14200 pgdaemon pagedaemon 43886 143275 0 0 3 0x14200 bored crynlk 91488 108453 0 0 3 0x14200 bored crypto 93156 359216 0 0 3 0x40014200 acpi0 acpi0 11387 19210 0 0 3 0x40014200 idle1 41847 263575 0 0 3 0x14200 bored softnet 3391 146320 0 0 2 0x14200 systqmp 87733 204023 0 0 3 0x14200 bored systq 59137 371461 0 0 3 0x40014200 bored softclock 15400 432115 0 0 3 0x40014200 idle0 1 22682 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 10483 (syz-executor.0) thread 0xffff800020ddc4e8 (97929) exclusive rwlock netlock r = 0 (0xffffffff8273b8d8) #0 witness_lock+0x4c7 #1 if_detach+0x70 #2 tun_clone_destroy+0x1e1 #3 ifioctl+0x3ea #4 soo_ioctl+0x27c #5 sys_ioctl+0x4a5 #6 syscall+0x4a4 #7 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828fd198) #0 witness_lock+0x4c7 #1 __mp_acquire_count+0x51 #2 mi_switch+0x392 #3 sleep_finish+0x113 #4 cond_wait+0x76 #5 smr_barrier_impl+0xf9 #6 tun_clone_destroy+0x136 #7 ifioctl+0x3ea #8 soo_ioctl+0x27c #9 sys_ioctl+0x4a5 #10 syscall+0x4a4 #11 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9463 6394K 6394K 78643K 10557 0 pcb 13 8K 8K 78643K 13 0 rtable 67 2K 2K 78643K 165 0 ifaddr 36 9K 9K 78643K 39 0 counters 41 33K 33K 78643K 41 0 ioctlops 0 0K 4K 78643K 1468 0 mount 1 1K 1K 78643K 1 0 vnodes 1182 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 1824 197K 290K 78643K 13058 0 file desc 3 8K 12K 78643K 18 0 proc 59 63K 83K 78643K 398 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 21 1K 1K 78643K 26 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 1K 78643K 197 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 75 12K 12K 78643K 946 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 6 0K 0K 78643K 7 0 temp 29 3849K 3913K 78643K 1874 0 kqueue 3 4K 4K 78643K 3 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 arp 64 4 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 17 0 15 1 0 1 1 0 8 0 rtentry 112 34 0 9 1 0 1 1 0 8 0 unpcb 120 29 0 19 1 0 1 1 0 8 0 syncache 264 5 0 5 2 1 1 1 0 8 1 tcpcb 544 8 0 5 1 0 1 1 0 8 0 inpcb 296 36 0 27 1 0 1 1 0 8 0 nd6 48 3 0 2 1 0 1 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 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 145 0 2 10 0 10 10 0 8 0 art_table 32 146 0 2 2 0 2 2 0 8 0 art_node 16 33 0 6 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1424 0 23 88 0 88 88 0 8 0 ffsino 272 1424 0 23 94 0 94 94 0 8 0 nchpl 144 1643 0 38 60 0 60 60 0 8 0 uvmvnodes 72 1434 0 0 27 0 27 27 0 8 0 vnodes 208 1434 0 0 76 0 76 76 0 8 0 namei 1024 4231 0 4231 1 0 1 1 0 8 1 percpumem 16 31 0 0 1 0 1 1 0 8 0 scxspl 192 4397 0 4397 2 1 1 2 0 8 1 plimitpl 152 15 0 8 1 0 1 1 0 8 0 sigapl 424 241 0 211 4 0 4 4 0 8 0 futexpl 56 4 0 3 1 0 1 1 0 8 0 knotepl 112 47 0 36 1 0 1 1 0 8 0 kqueuepl 144 2 0 0 1 0 1 1 0 8 0 pipepl 304 77 0 70 1 0 1 1 0 8 0 fdescpl 496 226 0 211 3 0 3 3 0 8 0 filepl 152 1119 0 1058 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 112 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 211 0 211 1 0 1 1 0 8 1 processpl 992 241 0 211 5 0 5 5 0 8 1 procpl 624 250 0 211 3 0 3 3 0 8 0 srpgc 64 2 0 2 1 0 1 1 0 8 1 sockpl 400 82 0 61 3 0 3 3 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 80 0 0 10 0 10 10 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 99 0 0 7 0 7 7 0 8 0 bufpl 280 3050 0 133 209 0 209 209 0 8 0 anonpl 16 22535 0 20717 14 1 13 13 0 124 4 amapchunkpl 152 843 0 776 4 0 4 4 0 158 0 amappl16 192 161 0 118 3 0 3 3 0 8 0 amappl15 184 2 0 2 2 1 1 1 0 8 1 amappl14 176 32 0 26 1 0 1 1 0 8 0 amappl13 168 22 0 20 1 0 1 1 0 8 0 amappl12 160 6 0 6 1 1 0 1 0 8 0 amappl11 152 51 0 36 1 0 1 1 0 8 0 amappl10 144 20 0 17 1 0 1 1 0 8 0 amappl9 136 220 0 217 1 0 1 1 0 8 0 amappl8 128 267 0 261 1 0 1 1 0 8 0 amappl7 120 115 0 103 1 0 1 1 0 8 0 amappl6 112 24 0 20 2 1 1 1 0 8 0 amappl5 104 169 0 154 1 0 1 1 0 8 0 amappl4 96 490 0 465 1 0 1 1 0 8 0 amappl3 88 104 0 99 1 0 1 1 0 8 0 amappl2 80 896 0 832 2 0 2 2 0 8 0 amappl1 72 15531 0 15078 23 5 18 18 0 8 8 amappl 80 477 0 447 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 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 226 0 211 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 226 0 211 1 0 1 1 0 8 0 vmmpekpl 168 6410 0 6384 2 0 2 2 0 8 0 vmmpepl 168 33196 0 32179 81 8 73 73 0 357 28 vmsppl 368 225 0 211 2 0 2 2 0 8 0 pdppl 4096 459 0 422 6 0 6 6 0 8 1 pvpl 32 114138 0 109883 105 0 105 105 0 265 69 pmappl 232 225 0 211 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 234 0 3 7 0 7 7 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82791ff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xc6 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff828fcf90) at __mp_lock+0x12e __mp_acquire_count(ffffffff828fcf90,2) at __mp_acquire_count+0x51 mi_switch() at mi_switch+0x392 sleep_finish(ffff800020e17da0,1) at sleep_finish+0x113 sleep_finish_all(ffff800020e17da0,1) at sleep_finish_all+0x32 tsleep(ffffffff828bec40,118,ffffffff824668af,41e205) at tsleep+0x1cc doppoll(ffff800020ddd388,7f7ffffe3930,3,ffff800020e17f38,0,ffff800020e17ff0) at doppoll+0x57e sys_poll(ffff800020ddd388,ffff800020e17fa0,ffff800020e17ff0) at sys_poll+0xa6 syscall(ffff800020e18070) at syscall+0x4a4 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe3910, count: 2 ddb{0}> trace x86_ipi_db(ffffffff82791ff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xc6 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff828fcf90) at __mp_lock+0x12e __mp_acquire_count(ffffffff828fcf90,2) at __mp_acquire_count+0x51 mi_switch() at mi_switch+0x392 sleep_finish(ffff800020e17da0,1) at sleep_finish+0x113 sleep_finish_all(ffff800020e17da0,1) at sleep_finish_all+0x32 tsleep(ffffffff828bec40,118,ffffffff824668af,41e205) at tsleep+0x1cc doppoll(ffff800020ddd388,7f7ffffe3930,3,ffff800020e17f38,0,ffff800020e17ff0) at doppoll+0x57e sys_poll(ffff800020ddd388,ffff800020e17fa0,ffff800020e17ff0) at sys_poll+0xa6 syscall(ffff800020e18070) at syscall+0x4a4 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe3910, count: -13 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp db_enter() at db_enter+0x18 panic(ffffffff82407659) at panic+0x15c pool_cache_get(ffffffff828d9a80) at pool_cache_get+0x323 pool_get(ffffffff828d9a80,2) at pool_get+0x91 m_gethdr(2,1) at m_gethdr+0x4c rtm_msg1(2,ffff800020edc130) at rtm_msg1+0x6e rtm_send(fffffd806f497a80,2,0,0) at rtm_send+0x120 rtdeletemsg(fffffd806f497a80,ffff800000ac4000,0) at rtdeletemsg+0x199 rt_ifa_purge(ffff800000aa0e00) at rt_ifa_purge+0x104 in6_unlink_ifa(ffff800000aa0e00,ffff800000ac4000) at in6_unlink_ifa+0x580 in6_purgeaddr(ffff800000aa0e00) at in6_purgeaddr+0x1d7 in6_ifdetach(ffff800000ac4000) at in6_ifdetach+0x74 if_detach(ffff800000ac4000) at if_detach+0x148 tun_clone_destroy(ffff800000ac4000) at tun_clone_destroy+0x1e1 end trace frame: 0xffff800020edc680, count: 0 ddb{1}> trace db_enter() at db_enter+0x18 panic(ffffffff82407659) at panic+0x15c pool_cache_get(ffffffff828d9a80) at pool_cache_get+0x323 pool_get(ffffffff828d9a80,2) at pool_get+0x91 m_gethdr(2,1) at m_gethdr+0x4c rtm_msg1(2,ffff800020edc130) at rtm_msg1+0x6e rtm_send(fffffd806f497a80,2,0,0) at rtm_send+0x120 rtdeletemsg(fffffd806f497a80,ffff800000ac4000,0) at rtdeletemsg+0x199 rt_ifa_purge(ffff800000aa0e00) at rt_ifa_purge+0x104 in6_unlink_ifa(ffff800000aa0e00,ffff800000ac4000) at in6_unlink_ifa+0x580 in6_purgeaddr(ffff800000aa0e00) at in6_purgeaddr+0x1d7 in6_ifdetach(ffff800000ac4000) at in6_ifdetach+0x74 if_detach(ffff800000ac4000) at if_detach+0x148 tun_clone_destroy(ffff800000ac4000) at tun_clone_destroy+0x1e1 ifioctl(fffffd807bacee20,80206979,ffff800020edc700,ffff800020ddc4e8) at ifioctl+0x3ea soo_ioctl(fffffd806cee9990,80206979,ffff800020edc700,ffff800020ddc4e8) at soo_ioctl+0x27c sys_ioctl(ffff800020ddc4e8,ffff800020edc818,ffff800020edc860) at sys_ioctl+0x4a5 syscall(ffff800020edc8e0) at syscall+0x4a4 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb02b1447ee0, count: -19 ddb{1}>