uvm_fault(0xfffff1000b1cb000, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped at sys_shmat+0x453: movq 0(%r15),%rdi TID PID UID PRFLAGS PFLAGS CPU COMMAND *327472 30857 0 0 0x4000000 1K syz-executor 314963 38562 0 0 0 0 syz-executor sys_shmat(ffff80002a2227d8,ffff80003c3da550,ffff80003c3da4a0) at sys_shmat+0x453 sys/kern/sysv_shm.c:290 syscall(ffff80003c3da550) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3da550) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x214a54bd140, count: 12 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: uvm_fault(0xfffff1000b1cb000, 0x0, 0, 1) -> e ddb{1}> show kasan No such command ddb{1}> trace sys_shmat(ffff80002a2227d8,ffff80003c3da550,ffff80003c3da4a0) at sys_shmat+0x453 sys/kern/sysv_shm.c:290 syscall(ffff80003c3da550) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3da550) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x214a54bd140, count: -3 ddb{1}> show registers rdi 0xffff800031791000 rsi 0x210 rbp 0xffff80003c3da470 rbx 0xfffff1007d044f00 rdx 0xffff800031791000 rcx 0x1 rax 0x1 r8 0x180 r9 0xfffff100097fd4e0 r10 0 r11 0x6e65248cf0d497a9 r12 0xffff80002a2227d8 r13 0xffff80000160b010 r14 0x3 r15 0 rip 0xffffffff81e37ab3 sys_shmat+0x453 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c3da3e0 ss 0x10 sys_shmat+0x453: movq 0(%r15),%rdi ddb{1}> show proc PROC (syz-executor) tid=327472 pid=30857 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=72, usrpri=73, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800045fe9778,0xffff800045fe8d28 process=0xffff800045fed378 user=0xffff80003c3d5000, vmspace=0xfffff1000b1cb000 estcpu=23, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 13695 167083 60601 0 3 0x2 0 clonelk ifconfig 60601 521387 48219 0 3 0x100002 0x88 sigsusp sh 30857 517504 58911 0 2 0 0 syz-executor *30857 327472 58911 0 7 0 0x4000000 syz-executor 30857 394320 58911 0 2 0 0x4000000 syz-executor 38562 314963 32536 0 7 0 0 syz-executor 38562 157934 32536 0 2 0 0x4000000 syz-executor 38562 2991 32536 0 3 0 0x4000080 fsleep syz-executor 38562 154502 32536 0 3 0 0x4000080 fsleep syz-executor 38562 174950 32536 0 2 0 0x4000000 syz-executor 48219 142371 9805 0 3 0x2 0x80 wait syz-executor 78353 205329 9805 0 2 0x2 0 syz-executor 78262 209389 9805 0 2 0x2 0 syz-executor 25558 73406 9805 0 3 0x2 0x80 piperd syz-executor 32536 2014 9805 0 2 0x2 0x1 syz-executor 15501 501675 9805 0 2 0x2 0x1 syz-executor 58911 228322 9805 0 2 0x2 0 syz-executor 9805 429501 6422 0 3 0x2 0x80 wait syz-executor 6422 459806 69780 0 3 0x100002 0x88 sigsusp ksh 69780 519437 99291 0 3 0x10 0x88 kqread sshd-session 99291 241128 71819 0 3 0x12 0x80 kqread sshd-session 81339 346396 1 0 3 0x100003 0x80 ttyin getty 71819 263666 1 0 3 0 0x88 kqread sshd 91435 229633 56689 74 3 0x1100012 0x80 bpf pflogd 56689 212523 1 0 3 0 0x80 sbwait pflogd 8356 49077 79581 73 3 0x1100010 0x80 kqread syslogd 79581 20108 1 0 3 0x100002 0x80 sbwait syslogd 14071 7579 1 0 3 0x100000 0x80 kqread resolvd 54073 74348 35163 77 3 0x100012 0x80 kqread dhcpleased 57157 171873 35163 77 3 0x100012 0x80 kqread dhcpleased 35163 251824 1 0 3 0 0x80 kqread dhcpleased 48097 246624 0 0 3 0x14000 0x200 bored smr 59587 210526 0 0 3 0x14000 0x200 pgzero zerothread 19471 203385 0 0 3 0x14000 0x200 aiodoned aiodoned 9076 13667 0 0 3 0x14000 0x200 syncer update 48272 107398 0 0 3 0x14000 0x200 cleaner cleaner 34097 459753 0 0 3 0x14000 0x200 reaper reaper 14236 495918 0 0 3 0x14000 0x200 pgdaemon pagedaemon 60024 323569 0 0 3 0x14000 0x200 bored viomb 34500 506782 0 0 3 0x14000 0x40000200 acpi0 acpi0 38552 375375 0 0 3 0x14000 0x40000200 idle1 96657 31082 0 0 3 0x14000 0x200 bored softnet1 21597 268633 0 0 3 0x14000 0x200 bored softnet0 45853 424649 0 0 3 0x14000 0x200 smrbar systqmp 14543 362291 0 0 3 0x14000 0x200 bored systq 81738 2473 0 0 3 0x14000 0x200 tmoslp softclockmp 98778 223726 0 0 3 0x14000 0x40000200 tmoslp softclock 29165 76402 0 0 3 0x14000 0x40000200 idle0 1 78022 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb{1}> show all locks Process 30857 (syz-executor) thread 0xffff80002a2227d8 (327472) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83a2e880) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 #2 malloc+0xe3 sys/kern/kern_malloc.c:175 #3 sys_shmat+0x9f sys/kern/sysv_shm.c:-1 #4 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #4 syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 #5 Xsyscall+0x128 Process 78353 (syz-executor) thread 0xffff80002a222d08 (205329) exclusive rwlock fdlock r = 0 (0xffff800045febb40) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x419 sys/kern/kern_rwlock.c:320 #2 fdcopy+0x1a2 sys/kern/kern_descrip.c:1112 #3 process_new+0x508 sys/kern/kern_fork.c:277 #4 fork1+0x3f9 sys/kern/kern_fork.c:-1 #5 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #5 syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 #6 Xsyscall+0x128 Process 78262 (syz-executor) thread 0xffff800045fe8020 (209389) exclusive rwlock vmmaplk r = 0 (0xfffff1000b1cbc70) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x419 sys/kern/kern_rwlock.c:320 #2 vm_map_lock_ln+0x12e sys/uvm/uvm_map.c:5170 #3 uvmspace_fork+0x44 sys/uvm/uvm_map.c:3743 #4 process_new+0x583 sys/kern/kern_fork.c:282 #5 fork1+0x3f9 sys/kern/kern_fork.c:-1 #6 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 #7 Xsyscall+0x128 Process 45853 (systqmp) thread 0xffff800045ffe000 (424649) shared rwlock systqmp r = 0 (0xffffffff8393d968) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 taskq_thread+0x12a sys/kern/kern_task.c:442 #2 proc_trampoline+0x10 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11119 12113K 12280K 166960K 12259 0 pcb 17 13K 14K 166960K 47 0 rtable 161 4K 7K 166960K 461 0 pf 30 16K 18K 166960K 57 0 ifaddr 31 5K 7K 166960K 64 0 ifgroup 47 2K 2K 166960K 77 0 sysctl 3 1K 9K 166960K 7 0 counters 66 36K 37K 166960K 82 0 ioctlops 0 0K 4K 166960K 1556 0 iov 0 0K 2K 166960K 2 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1354 85K 85K 166960K 1538 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 5K 166960K 3 0 VM map 2 1K 1K 166960K 2 0 sem 7 0K 0K 166960K 10 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 15 53K 93K 166960K 242 0 sigio 0 0K 0K 166960K 1 0 proc 78 131K 180K 166960K 700 0 subproc 72 4K 4K 166960K 126 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 in_multi 57 3K 6K 166960K 134 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 5 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 79 360K 360K 166960K 79 0 exec 0 0K 1K 166960K 449 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 33 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 206 167K 178K 166960K 3783 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 41 82K 104K 166960K 1535 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 3 0 NDP 12 0K 2K 166960K 40 0 temp 33 9114K 9136K 166960K 6025 0 kqueue 13 20K 24K 166960K 31 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 28 0 0 1 0 1 1 0 8 0 rtpcb 120 45 0 42 1 0 1 1 0 8 0 rtentry 176 150 0 78 6 0 6 6 0 8 0 unpcb 144 68 0 51 2 0 2 2 0 8 1 syncache 336 5 0 5 2 1 1 1 0 8 1 tcpcb 736 14 0 10 1 0 1 1 0 8 0 arp 136 26 0 14 1 0 1 1 0 8 0 inpcb 328 143 0 135 4 0 4 4 0 8 3 nd6 152 33 0 21 1 0 1 1 0 8 0 pkpcb 40 36 0 3 1 0 1 1 0 8 0 kcovpl 48 14 0 6 1 0 1 1 0 8 0 ppxss 1192 1 0 1 1 0 1 1 0 8 1 pffrag 232 1 0 1 1 0 1 1 0 482 1 pffrnode 88 1 0 1 1 0 1 1 0 8 1 pffrent 40 2 0 2 1 0 1 1 0 8 1 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 32 0 0 1 0 1 1 0 8 0 pfstkey 128 32 0 0 2 0 2 2 0 8 0 pfstate 448 32 0 0 4 0 4 4 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 593 0 264 29 0 29 29 0 8 8 art_table 40 594 0 264 5 0 5 5 0 8 0 art_node 32 150 0 83 1 0 1 1 0 8 0 semapl 72 8 0 3 1 0 1 1 0 8 0 shmpl 120 1 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1665 0 189 93 0 93 93 0 8 0 ffsino 296 1665 0 189 114 0 114 114 0 8 0 nchpl 144 1916 0 197 64 0 64 64 0 8 0 vnodes 216 1889 0 0 105 0 105 105 0 8 0 namei 1024 7499 0 7498 4 2 2 2 0 8 1 percpumem 16 57 0 8 1 0 1 1 0 8 0 kstatmem 264 39 0 16 2 0 2 2 0 8 0 scxspl 216 6433 0 6433 4 3 1 3 1 8 1 plimitpl 152 38 0 21 1 0 1 1 0 8 0 sigapl 424 556 0 511 7 1 6 7 0 8 0 knotepl 120 199 0 0 7 0 7 7 0 8 0 kqueuepl 224 39 0 30 2 0 2 2 0 8 1 pipepl 344 148 0 121 3 0 3 3 0 8 0 fdescpl 528 541 0 511 3 0 3 3 0 8 0 filepl 160 2253 0 1948 13 0 13 13 0 8 0 lockfpl 104 13 0 11 1 0 1 1 0 8 0 lockfspl 48 7 0 5 1 0 1 1 0 8 0 sessionpl 144 30 0 21 1 0 1 1 0 8 0 pgrppl 48 44 0 27 1 0 1 1 0 8 0 ucredpl 104 267 0 254 1 0 1 1 0 8 0 zombiepl 144 548 0 547 1 0 1 1 0 8 0 processpl 1240 557 0 511 5 1 4 5 0 8 0 procpl 664 650 0 598 6 0 6 6 0 8 1 sockpl 752 295 0 234 7 0 7 7 0 8 0 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 135 0 0 17 0 17 17 0 8 0 mcl2k 2048 17 0 0 3 0 3 3 0 8 0 mextrefs 64 12 0 0 1 0 1 1 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 163 0 0 11 0 11 11 0 8 0 bufpl 272 2356 0 105 152 1 151 151 0 8 0 anonpl 32 3717 0 0 30 0 30 30 0 247 0 amapchunkpl 152 10178 0 9804 21 0 21 21 0 158 4 amappl16 200 1626 0 1615 6 4 2 5 0 8 0 amappl15 192 10 0 10 1 1 0 1 0 8 0 amappl14 184 526 0 524 1 0 1 1 0 8 0 amappl13 176 148 0 136 1 0 1 1 0 8 0 amappl12 168 838 0 811 2 0 2 2 0 8 0 amappl11 160 22 0 22 2 2 0 1 0 8 0 amappl10 152 62 0 48 1 0 1 1 0 8 0 amappl9 144 274 0 273 1 0 1 1 0 8 0 amappl8 136 119 0 117 1 0 1 1 0 8 0 amappl7 128 157 0 143 1 0 1 1 0 8 0 amappl6 120 227 0 224 1 0 1 1 0 8 0 amappl5 112 115 0 105 1 0 1 1 0 8 0 amappl4 104 307 0 288 1 0 1 1 0 8 0 amappl3 96 1828 0 1750 3 0 3 3 0 8 0 amappl2 88 679 0 608 2 0 2 2 0 8 0 amappl1 80 11238 0 10639 15 1 14 15 0 8 0 amappl 88 2965 0 2832 4 0 4 4 0 92 0 uvmvnodes 80 98 0 0 2 0 2 2 0 8 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 3 0 0 1 0 1 1 0 8 0 uaddrrnd 24 539 0 511 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 539 0 511 1 0 1 1 0 8 0 vmmpekpl 168 6522 0 6467 3 0 3 3 0 8 0 vmmpepl 168 44315 0 42627 88 1 87 87 0 357 4 vmsppl 488 539 0 511 5 0 5 5 0 8 0 rwobjpl 80 15762 0 14767 24 1 23 24 0 8 0 pdppl 4096 1085 0 1022 115 38 77 85 0 8 14 pvpl 32 11015 0 0 89 0 89 89 0 265 0 pmappl 256 538 0 511 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 445 0 45 12 0 12 12 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff838f4ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 end of kernel end trace frame: 0x7b385b1dd760, count: 12 ddb{0}> trace x86_ipi_db(ffffffff838f4ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 end of kernel end trace frame: 0x7b385b1dd760, count: -3 ddb{0}> machine ddbcpu 1 Stopped at sys_shmat+0x453: movq 0(%r15),%rdi sys_shmat(ffff80002a2227d8,ffff80003c3da550,ffff80003c3da4a0) at sys_shmat+0x453 sys/kern/sysv_shm.c:290 syscall(ffff80003c3da550) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3da550) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x214a54bd140, count: 12 ddb{1}> trace sys_shmat(ffff80002a2227d8,ffff80003c3da550,ffff80003c3da4a0) at sys_shmat+0x453 sys/kern/sysv_shm.c:290 syscall(ffff80003c3da550) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3da550) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x214a54bd140, count: -3