panic: Data modified on freelist: word 4 of object 0xffff8000015c1800 size 0x528 previous type free (0x6563 != 0xdeafbead) Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *120641 40323 0 0x2 0 0 syz-executor.4 db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834845af) at panic+0x1cf sys/kern/subr_prf.c:198 malloc(528,64,1) at malloc+0xdb6 sys/kern/kern_malloc.c:356 process_new(ffff80002a7d1ca8,ffff80002a77e450,1) at process_new+0x3b4 sys/kern/kern_fork.c:258 fork1(ffff80002a7842b0,1,ffffffff83260690,0,ffff80002a8a98e0,0) at fork1+0x3f2 sys/kern/kern_fork.c:-1 syscall(ffff80002a8a9990) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a8a9990) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a674aa5dab0, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: Data modified on freelist: word 4 of object 0xffff8000015c1800 size 0x528 previous type free (0x6563 != 0xdeafbead) ddb> show kasan No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834845af) at panic+0x1cf sys/kern/subr_prf.c:198 malloc(528,64,1) at malloc+0xdb6 sys/kern/kern_malloc.c:356 process_new(ffff80002a7d1ca8,ffff80002a77e450,1) at process_new+0x3b4 sys/kern/kern_fork.c:258 fork1(ffff80002a7842b0,1,ffffffff83260690,0,ffff80002a8a98e0,0) at fork1+0x3f2 sys/kern/kern_fork.c:-1 syscall(ffff80002a8a9990) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a8a9990) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a674aa5dab0, count: -7 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a8a9600 rbx 0xffff8000015c1800 rdx 0x3fd rcx 0 rax 0x7c r8 0x101010101010101 r9 0x8080808080808080 r10 0xa11a265d3ef98739 r11 0xfe24ea5c12b550e6 r12 0 r13 0xffffffff83a34f70 kmemstats+0x1900 r14 0 r15 0x1 rip 0xffffffff82f1db25 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a8a95f0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor.4) tid=120641 pid=40323 tcnt=1 stat=onproc flags process=2 proc=0 runpri=86, usrpri=86, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a784548,0xffff80002a727a08 process=0xffff80002a77e450 user=0xffff80002a8a4000, vmspace=0xfffff7006fae8178 estcpu=36, cpticks=3, pctcpu=0.0, user=0, sys=3, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 99958 426412 51174 0 2 0 0 syz-executor.1 99958 515752 51174 0 3 0 0x4000080 fsleep syz-executor.1 71109 471312 60941 0 3 0x10000002 0x80 nanoslp syz-executor.6 11165 96503 60941 0 3 0x2 0 getblk syz-executor.5 4846 317052 60941 0 3 0x2 0 biowait syz-executor.7 *40323 120641 60941 0 7 0x2 0 syz-executor.4 96677 456986 60941 0 3 0x2 0 getblk syz-executor.3 74370 509537 60941 0 3 0x2 0 biowait syz-executor.2 51174 241822 60941 0 3 0x2 0x80 nanoslp syz-executor.1 22643 319456 60941 0 3 0x2 0 getblk syz-executor.0 60941 83725 57571 0 3 0x2 0x80 wait syz-execprog 60941 43215 57571 0 3 0x2 0x4000080 nanoslp syz-execprog 60941 127975 57571 0 3 0x2 0x4000080 wait syz-execprog 60941 174436 57571 0 3 0x2 0x4000080 wait syz-execprog 60941 30685 57571 0 3 0x2 0x4000080 wait syz-execprog 60941 213572 57571 0 3 0x2 0x4000080 thrsleep syz-execprog 60941 215062 57571 0 3 0x2 0x4000080 wait syz-execprog 60941 231305 57571 0 3 0x2 0x4000080 thrsleep syz-execprog 60941 429564 57571 0 3 0x2 0x4000080 wait syz-execprog 60941 40742 57571 0 3 0x2 0x4000080 thrsleep syz-execprog 60941 149622 57571 0 3 0x2 0x4000080 wait syz-execprog 60941 162156 57571 0 3 0x2 0x4000080 wait syz-execprog 60941 203879 57571 0 3 0x2 0x4000080 kqread syz-execprog 57571 28620 93674 0 3 0x100002 0x88 sigsusp ksh 93674 337605 44662 0 3 0x10 0x88 kqread sshd-session 44662 341453 64641 0 3 0x12 0x80 kqread sshd-session 74361 357646 1 0 3 0x100003 0x80 ttyin getty 64641 296312 1 0 3 0 0x88 kqread sshd 70705 419140 22837 73 3 0x1100010 0x80 kqread syslogd 22837 16749 1 0 3 0x100002 0x80 sbwait syslogd-parent 61869 269492 1 0 3 0x100000 0x80 kqread resolvd 74944 240584 91863 77 3 0x100012 0x80 kqread dhcpleased 30151 143132 91863 77 3 0x100012 0x80 kqread dhcpleased 91863 476889 1 0 3 0 0x80 kqread dhcpleased 87489 218930 0 0 3 0x14000 0x200 bored smr 14613 159461 0 0 2 0x14000 0x200 zerothread 822 334487 0 0 3 0x14000 0x200 aiodoned aiodoned 15453 388330 0 0 3 0x14000 0x200 syncer update 1206 46934 0 0 3 0x14000 0x200 cleaner cleaner 64698 474934 0 0 3 0x14000 0x200 reaper reaper 97117 53941 0 0 3 0x14000 0x200 pgdaemon pagedaemon 76681 467698 0 0 3 0x14000 0x200 bored viomb 80495 519167 0 0 3 0x14000 0x40000200 acpi0 acpi0 53252 419087 0 0 3 0x14000 0x200 bored softnet0 7138 97951 0 0 3 0x14000 0x200 bored systqmp 18558 497360 0 0 3 0x14000 0x200 bored systq 85720 110399 0 0 3 0x14000 0x40000200 tmoslp softclock 89553 19937 0 0 3 0x14000 0x40000200 idle0 1 118865 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11025 12104K 12118K 166960K 12156 0 pcb 17 12K 12K 166960K 17 0 rtable 227 6K 6K 166960K 375 0 pf 30 12K 12K 166960K 33 0 ifaddr 42 7K 7K 166960K 48 0 ifgroup 50 2K 2K 166960K 55 0 sysctl 1 1K 9K 166960K 5 0 counters 33 17K 17K 166960K 34 0 ioctlops 0 0K 2K 166960K 30 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1216 77K 77K 166960K 1285 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 2 0K 0K 166960K 2 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12472 0 file desc 11 37K 73K 166960K 224 0 proc 57 58K 75K 166960K 523 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 in_multi 99 6K 6K 166960K 110 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 6 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 25 122K 122K 166960K 25 0 exec 0 0K 1K 166960K 466 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 221 153K 202K 166960K 4737 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 33 68K 104K 166960K 1745 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 11 0K 2K 166960K 30 0 temp 1 9116K 9124K 166960K 4575 0 kqueue 13 20K 20K 166960K 64 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 39 0 36 1 0 1 1 0 8 0 rtentry 136 122 0 12 4 0 4 4 0 8 0 unpcb 144 103 0 88 1 0 1 1 0 8 0 syncache 336 15 0 15 1 0 1 1 0 8 1 tcpcb 736 18 0 15 1 0 1 1 0 8 0 arp 96 20 0 2 1 0 1 1 0 8 0 inpcb 328 72 0 66 1 0 1 1 0 8 0 nd6 112 27 0 3 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 501 0 48 29 0 29 29 0 8 0 art_table 40 502 0 48 5 0 5 5 0 8 0 art_node 32 122 0 22 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1775 0 285 94 0 94 94 0 8 0 ffsino 256 1775 0 285 94 0 94 94 0 8 0 nchpl 144 2190 0 415 67 0 67 67 0 8 0 vnodes 216 1785 0 0 100 0 100 100 0 8 0 namei 1024 9256 0 9256 3 0 3 3 0 8 3 kstatmem 264 25 0 2 2 0 2 2 0 8 0 scxspl 216 15411 0 15409 8 0 8 8 1 8 7 plimitpl 152 70 0 54 1 0 1 1 0 8 0 sigapl 424 599 0 562 6 0 6 6 0 8 1 knotepl 120 7222 0 7143 4 0 4 4 0 8 0 kqueuepl 184 60 0 51 1 0 1 1 0 8 0 pipepl 304 220 0 192 3 0 3 3 0 8 0 fdescpl 448 586 0 563 4 0 4 4 0 8 1 filepl 120 2598 0 2459 5 0 5 5 0 8 0 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 1 0 1 1 0 8 0 sessionpl 144 46 0 30 1 0 1 1 0 8 0 pgrppl 48 46 0 30 1 0 1 1 0 8 0 ucredpl 104 263 0 251 1 0 1 1 0 8 0 zombiepl 144 563 0 562 1 0 1 1 0 8 0 processpl 1160 600 0 562 4 0 4 4 0 8 0 procpl 664 702 0 651 6 0 6 6 0 8 1 sockpl 552 214 0 190 2 0 2 2 0 8 0 mcl8k 8192 34 0 34 1 0 1 1 0 8 1 mcl4k 4096 9274 0 9214 17 1 16 17 0 8 8 mcl2k 2048 184 0 184 1 0 1 1 0 8 1 mextrefs 64 67 0 67 1 0 1 1 0 8 1 mtagpl 96 4 0 4 1 0 1 1 0 8 1 mbufpl 256 13809 0 13645 11 0 11 11 0 8 0 bufpl 272 9804 0 3482 422 0 422 422 0 8 0 anonpl 24 192553 0 188559 63 0 63 63 0 187 31 amapchunkpl 152 13792 0 13321 28 0 28 28 0 158 6 amappl16 200 4023 0 3923 10 0 10 10 0 8 3 amappl15 192 5 0 5 1 0 1 1 0 8 1 amappl14 184 531 0 528 1 0 1 1 0 8 0 amappl13 176 279 0 268 2 0 2 2 0 8 0 amappl12 168 965 0 940 2 0 2 2 0 8 0 amappl11 160 39 0 38 1 0 1 1 0 8 0 amappl10 152 139 0 122 2 0 2 2 0 8 1 amappl9 144 1076 0 1076 1 0 1 1 0 8 1 amappl8 136 201 0 174 1 0 1 1 0 8 0 amappl7 128 238 0 221 2 0 2 2 0 8 1 amappl6 120 264 0 261 1 0 1 1 0 8 0 amappl5 112 218 0 211 1 0 1 1 0 8 0 amappl4 104 542 0 525 2 0 2 2 0 8 1 amappl3 96 2220 0 2154 3 0 3 3 0 8 0 amappl2 88 1196 0 1134 5 0 5 5 0 8 3 amappl1 80 23990 0 23444 29 9 20 23 0 8 8 amappl 88 3557 0 3428 5 0 5 5 0 92 1 uvmvnodes 80 118 0 0 3 0 3 3 0 8 0 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 0 1 1 0 8 1 dma128 128 253 0 253 1 0 1 1 0 8 1 dma64 64 6 0 6 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 586 0 563 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 586 0 563 1 0 1 1 0 8 0 vmmpekpl 168 13840 0 13797 3 0 3 3 0 8 0 vmmpepl 168 77157 0 75558 126 0 126 126 0 357 47 vmsppl 368 585 0 563 3 0 3 3 0 8 0 rwobjpl 40 31127 0 30095 20 2 18 20 0 8 3 pdppl 4096 1178 0 1126 108 42 66 70 0 8 14 pvpl 32 617292 0 608214 542 204 338 474 0 265 254 pmappl 216 585 0 563 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 796 0 43 22 0 22 22 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834845af) at panic+0x1cf sys/kern/subr_prf.c:198 malloc(528,64,1) at malloc+0xdb6 sys/kern/kern_malloc.c:356 process_new(ffff80002a7d1ca8,ffff80002a77e450,1) at process_new+0x3b4 sys/kern/kern_fork.c:258 fork1(ffff80002a7842b0,1,ffffffff83260690,0,ffff80002a8a98e0,0) at fork1+0x3f2 sys/kern/kern_fork.c:-1 syscall(ffff80002a8a9990) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a8a9990) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a674aa5dab0, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834845af) at panic+0x1cf sys/kern/subr_prf.c:198 malloc(528,64,1) at malloc+0xdb6 sys/kern/kern_malloc.c:356 process_new(ffff80002a7d1ca8,ffff80002a77e450,1) at process_new+0x3b4 sys/kern/kern_fork.c:258 fork1(ffff80002a7842b0,1,ffffffff83260690,0,ffff80002a8a98e0,0) at fork1+0x3f2 sys/kern/kern_fork.c:-1 syscall(ffff80002a8a9990) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a8a9990) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a674aa5dab0, count: -7