uvm_fault(0xffffee006cb8d3f0, 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 *169918 87551 0 0 0x4000000 0K syz-executor 488063 87551 0 0 0x4000000 1 syz-executor sys_shmat(ffff80003c3b8fb0,ffff80003c3a3b20,ffff80003c3a3a70) at sys_shmat+0x453 sys/kern/sysv_shm.c:290 syscall(ffff80003c3a3b20) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3a3b20) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4adf01fb830, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: uvm_fault(0xffffee006cb8d3f0, 0x0, 0, 1) -> e ddb{0}> show kasan No such command ddb{0}> trace sys_shmat(ffff80003c3b8fb0,ffff80003c3a3b20,ffff80003c3a3a70) at sys_shmat+0x453 sys/kern/sysv_shm.c:290 syscall(ffff80003c3a3b20) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3a3b20) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4adf01fb830, count: -3 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80003c3a3a40 rbx 0xffffee0064f6cee0 rdx 0 rcx 0x1 rax 0x1 r8 0x180 r9 0xffffee00097fd7b8 r10 0 r11 0xd2fa1b3a267758cb r12 0xffff80003c3b8fb0 r13 0xffff80000160b010 r14 0x3 r15 0 rip 0xffffffff81b61e63 sys_shmat+0x453 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c3a39b0 ss 0x10 sys_shmat+0x453: movq 0(%r15),%rdi ddb{0}> show proc PROC (syz-executor) tid=169918 pid=87551 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=50, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c3b9248,0xffff80003c3b94f0 process=0xffff80003c3d4e90 user=0xffff80003c39e000, vmspace=0xffffee006cb8d3f0 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 87551 152189 32051 0 2 0 0 syz-executor *87551 169918 32051 0 7 0 0x4000000 syz-executor 87551 488063 32051 0 7 0 0x4000000 syz-executor 87551 493316 32051 0 2 0 0x4000000 syz-executor 57383 20060 52681 0 2 0 0x1 syz-executor 57383 209563 52681 0 3 0 0x4000080 fsleep syz-executor 57383 369554 52681 0 3 0 0x4000080 fsleep syz-executor 11388 498141 68662 0 2 0 0x1 syz-executor 11388 134302 68662 0 3 0 0x4000080 fsleep syz-executor 80521 198317 45871 0 2 0 0 syz-executor 80521 290347 45871 0 3 0 0x4000080 fsleep syz-executor 80521 521228 45871 0 3 0 0x4000080 fsleep syz-executor 94035 283513 53287 60929 2 0x10 0 syz-executor 94035 429360 53287 60929 2 0x10 0x4000000 syz-executor 94035 186960 53287 60929 3 0x10 0x4000080 fsleep syz-executor 13264 148548 25786 0 3 0 0x80 nanoslp syz-executor 13264 274764 25786 0 3 0 0x4000080 netcon syz-executor 13264 159724 25786 0 3 0 0x4000080 fsleep syz-executor 13264 102002 25786 0 3 0 0x4000080 fsleep syz-executor 53287 404724 32734 0 2 0x2 0x1 syz-executor 52681 284586 32734 0 2 0x2 0xc80 syz-executor 25786 7717 32734 0 2 0x2 0xc80 syz-executor 1711 477426 32734 0 2 0x2 0 syz-executor 68662 455194 32734 0 3 0x2 0x80 nanoslp syz-executor 45871 72861 32734 0 2 0x2 0x1 syz-executor 45294 262069 32734 0 2 0x2 0x1 syz-executor 32051 359316 32734 0 2 0x2 0x1 syz-executor 32734 32999 44972 0 3 0x2 0x80 kqread syz-executor 44972 253770 65502 0 3 0x100002 0x88 sigsusp ksh 65502 86450 73619 0 3 0x10 0x88 kqread sshd-session 73619 224490 67298 0 3 0x12 0x80 kqread sshd-session 95930 72874 1 0 3 0x100003 0x80 ttyin getty 67298 119901 1 0 3 0 0x88 kqread sshd 65246 195437 6735 74 3 0x1100012 0x80 bpf pflogd 6735 287257 1 0 3 0 0x80 sbwait pflogd 48943 52858 89887 73 2 0x1100010 0 syslogd 89887 102227 1 0 3 0x100002 0x80 sbwait syslogd 71353 416655 1 0 3 0x100000 0x80 kqread resolvd 42396 150612 69638 77 3 0x100012 0x80 kqread dhcpleased 60246 27710 69638 77 3 0x100012 0x80 kqread dhcpleased 69638 491105 1 0 3 0 0x80 kqread dhcpleased 11420 461084 0 0 2 0x14000 0x40000200 smr 14995 505567 0 0 2 0x14000 0x200 zerothread 63076 321160 0 0 3 0x14000 0x200 aiodoned aiodoned 65261 183050 0 0 3 0x14000 0x200 syncer update 89584 423161 0 0 3 0x14000 0x200 cleaner cleaner 87858 406994 0 0 3 0x14000 0x200 reaper reaper 76819 175537 0 0 3 0x14000 0x200 pgdaemon pagedaemon 43042 486712 0 0 3 0x14000 0x200 bored viomb 60227 92488 0 0 3 0x14000 0x40000200 acpi0 acpi0 93616 74724 0 0 3 0x14000 0x40000200 idle1 44978 336641 0 0 3 0x14000 0x200 bored softnet1 50930 70402 0 0 3 0x14000 0x200 bored softnet0 73772 241753 0 0 3 0x14000 0x200 smrbar systqmp 2798 84238 0 0 3 0x14000 0x200 bored systq 43935 258974 0 0 3 0x14000 0x200 tmoslp softclockmp 6274 378811 0 0 3 0x14000 0x40000200 tmoslp softclock 73245 497555 0 0 3 0x14000 0x40000200 idle0 1 105777 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb{0}> show all locks CPU 1: exclusive mutex &sched_lock r = 0 (0xffffffff83b36228) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 mtx_enter+0x4b4 sys/kern/kern_lock.c:487 #2 yield+0x35 sys/kern/sched_bsd.c:321 #3 malloc+0xe3 sys/kern/kern_malloc.c:175 #4 recvit+0x300 sys/kern/uipc_syscalls.c:-1 #5 sys_recvfrom+0x109 sys/kern/uipc_syscalls.c:844 #6 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 #7 Xsyscall+0x128 Process 87551 (syz-executor) thread 0xffff80003c3b8fb0 (169918) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83a81b00) #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:783 #5 Xsyscall+0x128 Process 87551 (syz-executor) thread 0xffff80003c3b8a80 (493316) exclusive rwlock fdlock r = 0 (0xffff80003c3abb40) #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 doopenat+0x179 sys/kern/vfs_syscalls.c:1130 #3 sys_open+0x59 sys/kern/vfs_syscalls.c:1065 #4 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #4 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 #5 Xsyscall+0x128 Process 1711 (syz-executor) thread 0xffff800045fefa08 (477426) exclusive rrwlock inode r = 0 (0xffffee006d4ce430) #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 rrw_enter+0xc6 sys/kern/kern_rwlock.c:621 #3 VOP_LOCK+0xbd sys/kern/vfs_vops.c:527 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:576 #5 vfs_lookup+0x12b sys/kern/vfs_lookup.c:431 #6 namei+0x7c5 sys/kern/vfs_lookup.c:250 #7 domkdirat+0x8b sys/kern/vfs_syscalls.c:3048 #8 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #8 syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 #9 Xsyscall+0x128 Process 73772 (systqmp) thread 0xffff800045ffe000 (241753) shared rwlock systqmp r = 0 (0xffffffff839993b8) #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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11066 12215K 12216K 166960K 12165 0 pcb 17 12K 12K 166960K 25 0 rtable 239 7K 7K 166960K 358 0 pf 37 18K 18K 166960K 50 0 ifaddr 44 7K 7K 166960K 49 0 ifgroup 60 2K 2K 166960K 64 0 sysctl 3 1K 9K 166960K 7 0 counters 74 37K 37K 166960K 78 0 ioctlops 0 0K 4K 166960K 1486 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1294 81K 81K 166960K 1370 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 4 0K 0K 166960K 4 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 16 57K 93K 166960K 150 0 proc 71 131K 164K 166960K 554 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 in_multi 99 6K 6K 166960K 101 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 31 148K 148K 166960K 31 0 exec 0 0K 1K 166960K 388 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 235 159K 169K 166960K 3251 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 41 82K 102K 166960K 1306 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 25 1K 2K 166960K 30 0 temp 36 9114K 9122K 166960K 4959 0 kqueue 16 26K 28K 166960K 30 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> 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 34 0 31 1 0 1 1 0 8 0 rtentry 176 113 0 3 5 0 5 5 0 8 0 unpcb 144 51 0 32 1 0 1 1 0 8 0 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 736 14 0 8 1 0 1 1 0 8 0 arp 136 18 0 0 1 0 1 1 0 8 0 inpcb 328 84 0 72 2 0 2 2 0 8 0 nd6 152 24 0 0 1 0 1 1 0 8 0 pkpcb 40 1 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 mppekey 1024 1 0 0 1 0 1 1 0 8 0 ppxss 1192 2 0 1 1 0 1 1 0 8 0 pppxif 1576 2 0 1 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 1 0 0 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 20 0 0 1 0 1 1 0 8 0 pfstkey 128 20 0 0 1 0 1 1 0 8 0 pfstate 448 20 0 0 3 0 3 3 0 8 0 pfrule 1360 21 0 15 2 0 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 458 0 0 29 0 29 29 0 8 0 art_table 40 459 0 0 5 0 5 5 0 8 0 art_node 32 113 0 11 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 72 2 0 0 1 0 1 1 0 8 0 shmpl 112 1 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1591 0 121 93 0 93 93 0 8 0 ffsino 296 1591 0 121 114 0 114 114 0 8 0 nchpl 144 1801 0 98 64 0 64 64 0 8 0 vnodes 216 1685 0 0 94 0 94 94 0 8 0 namei 1024 5520 0 5519 4 1 3 3 0 8 2 percpumem 16 55 0 2 1 0 1 1 0 8 0 kstatmem 264 31 0 2 3 0 3 3 0 8 0 scxspl 216 6221 0 6221 4 3 1 3 1 8 1 plimitpl 152 32 0 14 1 0 1 1 0 8 0 sigapl 424 467 0 421 7 0 7 7 0 8 0 knotepl 120 57 0 0 2 0 2 2 0 8 0 kqueuepl 224 31 0 18 1 0 1 1 0 8 0 pipepl 344 129 0 100 3 0 3 3 0 8 0 fdescpl 528 451 0 421 3 0 3 3 0 8 0 filepl 160 1645 0 1415 10 0 10 10 0 8 0 lockfpl 104 15 0 10 1 0 1 1 0 8 0 lockfspl 48 10 0 5 1 0 1 1 0 8 0 sessionpl 144 24 0 15 1 0 1 1 0 8 0 pgrppl 48 32 0 15 1 0 1 1 0 8 0 ucredpl 104 87 0 73 1 0 1 1 0 8 0 zombiepl 144 431 0 431 1 0 1 1 0 8 1 processpl 1232 467 0 421 5 0 5 5 0 8 0 procpl 664 506 0 447 7 1 6 7 0 8 0 sosppl 176 1 0 0 1 0 1 1 0 8 0 sockpl 752 171 0 136 5 1 4 4 0 8 0 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 114 0 0 15 0 15 15 0 8 0 mcl2k 2048 12 0 0 2 0 2 2 0 8 0 mextrefs 64 8 0 0 1 0 1 1 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 119 0 0 8 0 8 8 0 8 0 bufpl 272 2319 0 105 148 0 148 148 0 8 0 anonpl 32 3561 0 0 29 0 29 29 0 247 0 amapchunkpl 152 8587 0 8093 22 1 21 21 0 158 0 amappl16 200 1240 0 1224 4 3 1 4 0 8 0 amappl15 192 62 0 62 1 1 0 1 0 8 0 amappl14 184 446 0 445 1 0 1 1 0 8 0 amappl13 176 131 0 118 1 0 1 1 0 8 0 amappl12 168 746 0 717 2 0 2 2 0 8 0 amappl11 160 6 0 5 1 0 1 1 0 8 0 amappl10 152 71 0 57 1 0 1 1 0 8 0 amappl9 144 274 0 274 1 1 0 1 0 8 0 amappl8 136 98 0 95 1 0 1 1 0 8 0 amappl7 128 148 0 135 1 0 1 1 0 8 0 amappl6 120 153 0 152 1 0 1 1 0 8 0 amappl5 112 93 0 83 1 0 1 1 0 8 0 amappl4 104 293 0 273 1 0 1 1 0 8 0 amappl3 96 1516 0 1419 3 0 3 3 0 8 0 amappl2 88 666 0 593 2 0 2 2 0 8 0 amappl1 80 10455 0 9858 14 0 14 14 0 8 1 amappl 88 2514 0 2351 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 451 0 421 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 451 0 421 1 0 1 1 0 8 0 vmmpekpl 168 5780 0 5743 2 0 2 2 0 8 0 vmmpepl 168 38065 0 36214 89 2 87 87 0 357 2 vmsppl 488 450 0 421 5 0 5 5 0 8 0 rwobjpl 80 14072 0 13056 23 0 23 23 0 8 0 pdppl 4096 909 0 842 103 24 79 85 0 8 12 pvpl 32 10023 0 0 81 0 81 81 0 265 0 pmappl 256 450 0 421 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 423 0 28 12 0 12 12 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace sys_shmat(ffff80003c3b8fb0,ffff80003c3a3b20,ffff80003c3a3a70) at sys_shmat+0x453 sys/kern/sysv_shm.c:290 syscall(ffff80003c3a3b20) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3a3b20) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4adf01fb830, count: -3 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff80002999dff0) 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 __mp_lock(ffffffff83a81300) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83a81300) at __mp_lock+0x192 sys/kern/kern_lock.c:173 __mp_acquire_count(ffffffff83a81300,1) at __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 pool_get(ffffffff83b36f08,1) at pool_get+0x27e sys/kern/subr_pool.c:595 uao_create(2000,0) at uao_create+0xac sys/uvm/uvm_aobj.c:690 shmget_allocate_segment(ffff80003c3b94e0,ffff80003c3c5670,88,ffff80003c3c55c0) at shmget_allocate_segment+0x441 sys/kern/sysv_shm.c:463 sys_shmget(ffff80003c3b94e0,ffff80003c3c5670,ffff80003c3c55c0) at sys_shmget+0x195 sys/kern/sysv_shm.c:501 syscall(ffff80003c3c5670) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3c5670) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4ad8c31e730, count: 4 ddb{1}> trace x86_ipi_db(ffff80002999dff0) 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 __mp_lock(ffffffff83a81300) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83a81300) at __mp_lock+0x192 sys/kern/kern_lock.c:173 __mp_acquire_count(ffffffff83a81300,1) at __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 pool_get(ffffffff83b36f08,1) at pool_get+0x27e sys/kern/subr_pool.c:595 uao_create(2000,0) at uao_create+0xac sys/uvm/uvm_aobj.c:690 shmget_allocate_segment(ffff80003c3b94e0,ffff80003c3c5670,88,ffff80003c3c55c0) at shmget_allocate_segment+0x441 sys/kern/sysv_shm.c:463 sys_shmget(ffff80003c3b94e0,ffff80003c3c5670,ffff80003c3c55c0) at sys_shmget+0x195 sys/kern/sysv_shm.c:501 syscall(ffff80003c3c5670) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3c5670) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4ad8c31e730, count: -11