login: panic: pledge_namei: ni_pledge Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *284645 95995 0 0x102000 0x4080000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833bc2b5) at panic+0x1cf sys/kern/subr_prf.c:198 pledge_namei(ffff80002a7c1240,ffff8000385197d8,ffff80002a798400) at pledge_namei+0xb76 namei(ffff8000385197d8) at namei+0x434 sys/kern/vfs_lookup.c:202 vn_open(ffff8000385197d8,3,0) at vn_open+0x15a sys/kern/vfs_vnops.c:140 vndioctl(2902,c0384600,ffff800038519af0,1,ffff80002a7c1240) at vndioctl+0xc42 sys/dev/vnd.c:458 VOP_IOCTL(fffffd807e1ebb58,c0384600,ffff800038519af0,1,fffffd8007bfb680,ffff80002a7c1240) at VOP_IOCTL+0xa3 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806c07cd98,c0384600,ffff800038519af0,ffff80002a7c1240) at vn_ioctl+0xea sys/kern/vfs_vnops.c:531 sys_ioctl(ffff80002a7c1240,ffff800038519cc0,ffff800038519c10) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff800038519cc0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800038519cc0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x38e32e07740, count: 4 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: pledge_namei: ni_pledge ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833bc2b5) at panic+0x1cf sys/kern/subr_prf.c:198 pledge_namei(ffff80002a7c1240,ffff8000385197d8,ffff80002a798400) at pledge_namei+0xb76 namei(ffff8000385197d8) at namei+0x434 sys/kern/vfs_lookup.c:202 vn_open(ffff8000385197d8,3,0) at vn_open+0x15a sys/kern/vfs_vnops.c:140 vndioctl(2902,c0384600,ffff800038519af0,1,ffff80002a7c1240) at vndioctl+0xc42 sys/dev/vnd.c:458 VOP_IOCTL(fffffd807e1ebb58,c0384600,ffff800038519af0,1,fffffd8007bfb680,ffff80002a7c1240) at VOP_IOCTL+0xa3 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806c07cd98,c0384600,ffff800038519af0,ffff80002a7c1240) at vn_ioctl+0xea sys/kern/vfs_vnops.c:531 sys_ioctl(ffff80002a7c1240,ffff800038519cc0,ffff800038519c10) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff800038519cc0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800038519cc0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x38e32e07740, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800038518bf0 rbx 0xffff80002a798400 rdx 0xffff800001461d00 rcx 0 rax 0xffff80002a7c1240 r8 0x101010101010101 r9 0x8080808080808080 r10 0xb642105cd0c50a18 r11 0x721c491dd1c2f92b r12 0 r13 0 r14 0 r15 0x1 rip 0xffffffff829fd8b5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800038518be0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=284645 pid=95995 tcnt=5 stat=onproc flags process=102000 proc=4080000 runpri=76, usrpri=76, slppri=25, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a7c0a78 scnt=2 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7c1770,0xffff80002a7c0a88 process=0xffff8000ffff8d98 user=0xffff800038514000, vmspace=0xfffffd806ba2cb90 estcpu=26, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 92686 364081 77420 0 2 0 syz-executor 92686 297702 77420 0 3 0x4000080 fsleep syz-executor 99524 437644 13385 0 2 0 syz-executor 99524 61762 13385 0 3 0x4000080 fsleep syz-executor 77041 297037 21124 0 2 0 syz-executor 77041 6502 21124 0 3 0x4000080 fsleep syz-executor 23109 429037 2303 0 2 0 syz-executor 23109 336587 2303 0 3 0x4000080 fsleep syz-executor 93496 171501 54899 0 2 0 syz-executor 93496 2058 54899 0 3 0x4000080 fsleep syz-executor 95995 235260 87835 0 2 0x182000 syz-executor *95995 284645 87835 0 7 0x4182000 syz-executor 95995 369999 87835 0 3 0x4102000 suspend syz-executor 95995 206423 87835 0 4 0x4182000 syz-executor 95995 506116 87835 0 4 0x4182000 syz-executor 76818 144921 91362 0 3 0x80 nanoslp syz-executor 76818 337932 91362 0 3 0x4000080 kqsel syz-executor 76818 126927 91362 0 3 0x4000080 fsleep syz-executor 76818 361660 91362 0 3 0x4000080 fsleep syz-executor 69265 140404 1 0 3 0x100083 ttyin getty 18188 408064 0 0 3 0x14200 bored sosplice 13385 5793 65129 0 3 0x82 nanoslp syz-executor 87835 183833 65129 0 3 0x82 nanoslp syz-executor 77420 499365 65129 0 3 0x82 nanoslp syz-executor 91362 89671 65129 0 3 0x82 nanoslp syz-executor 21124 292973 65129 0 3 0x82 nanoslp syz-executor 7460 294538 65129 0 3 0x82 nanoslp syz-executor 54899 148003 65129 0 3 0x82 nanoslp syz-executor 2303 216888 65129 0 3 0x82 nanoslp syz-executor 65129 273071 53563 0 3 0x82 kqread syz-executor 53563 483148 61932 0 3 0x10008a sigsusp ksh 61932 474532 3717 0 3 0x98 kqread sshd-session 3717 211201 98453 0 3 0x92 kqread sshd-session 98453 82711 1 0 3 0x88 kqread sshd 94522 393778 6668 73 3 0x1100090 kqread syslogd 6668 395406 1 0 3 0x100082 sbwait syslogd 57005 32364 1 0 3 0x100080 kqread resolvd 8693 325968 74138 77 3 0x100092 kqread dhcpleased 70324 2929 74138 77 3 0x100092 kqread dhcpleased 74138 505625 1 0 3 0x80 kqread dhcpleased 50644 110459 0 0 3 0x14200 bored smr 8438 338996 0 0 2 0x14200 zerothread 60292 148805 0 0 3 0x14200 aiodoned aiodoned 16296 90494 0 0 3 0x14200 syncer update 68925 420588 0 0 3 0x14200 cleaner cleaner 41968 287381 0 0 3 0x14200 reaper reaper 47834 281584 0 0 3 0x14200 pgdaemon pagedaemon 72079 128381 0 0 3 0x14200 bored viomb 84855 297591 0 0 3 0x40014200 acpi0 acpi0 6138 214480 0 0 3 0x14200 bored softnet0 26481 28772 0 0 3 0x14200 bored systqmp 65616 291273 0 0 3 0x14200 bored systq 53149 495126 0 0 3 0x40014200 tmoslp softclock 44242 444071 0 0 3 0x40014200 idle0 1 178663 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10170 11036K 11379K 166960K 11513 0 pcb 17 14K 15K 166960K 74 0 rtable 189 6K 8K 166960K 338 0 pf 29 12K 14K 166960K 56 0 ifaddr 36 6K 7K 166960K 57 0 ifgroup 46 2K 2K 166960K 87 0 sysctl 3 1K 9K 166960K 9 0 counters 31 17K 18K 166960K 111 0 ioctlops 0 0K 4K 166960K 157 0 iov 0 0K 24K 166960K 78 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1401 88K 89K 166960K 1583 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 3 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 31 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 81K 166960K 363 0 sigio 0 0K 0K 166960K 3 0 proc 60 59K 91K 166960K 501 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 67 0 in_multi 78 5K 7K 166960K 113 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 85 387K 387K 166960K 85 0 exec 0 0K 1K 166960K 374 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 236 152K 166K 166960K 4834 0 UVM aobj 5 6K 6K 166960K 5 0 pinsyscall 39 78K 89K 166960K 1404 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 4 0 NDP 10 0K 2K 166960K 37 0 temp 48 8640K 8704K 166960K 5857 0 kqueue 13 20K 30K 166960K 52 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 61 0 58 1 0 1 1 0 8 0 rtentry 136 104 0 24 4 0 4 4 0 8 0 unpcb 144 328 0 313 6 4 2 6 0 8 1 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 736 67 0 62 2 1 1 2 0 8 0 arp 96 11 0 2 1 0 1 1 0 8 0 ipq 40 2 0 2 1 1 0 1 0 8 0 ipqe 40 4 0 4 1 1 0 1 0 8 0 inpcb 328 272 0 263 8 6 2 7 0 8 0 ip6q 72 1 0 0 1 0 1 1 0 8 0 nd6 112 17 0 5 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 1 0 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 73 0 73 2 1 1 1 0 8 1 pppxif 1384 65 0 65 1 0 1 1 0 8 1 pfstitem 24 3 0 1 1 0 1 1 0 8 0 pfstkey 128 10 0 7 1 0 1 1 0 8 0 pfstate 384 6 0 5 1 0 1 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 445 0 91 28 2 26 28 0 8 0 art_table 40 447 0 91 5 0 5 5 0 8 0 art_node 32 104 0 32 1 0 1 1 0 8 0 sysvmsgpl 40 7 0 4 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 24 0 14 1 0 1 1 0 8 0 shmpl 112 2 0 0 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 1960 0 461 95 0 95 95 0 8 0 ffsino 256 1960 0 461 95 0 95 95 0 8 0 nchpl 144 2467 0 786 63 0 63 63 0 8 0 rtmask 32 4 0 4 1 1 0 1 0 8 0 vnodes 216 2185 0 0 122 0 122 122 0 8 0 namei 1024 7478 0 7477 3 2 1 2 0 8 0 kstatmem 264 42 0 22 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 1 0 1 0 8 0 scxspl 216 8321 0 8321 8 7 1 8 1 8 1 plimitpl 152 55 0 38 1 0 1 1 0 8 0 sigapl 424 644 0 600 6 0 6 6 0 8 0 knotepl 120 12145 0 12098 17 15 2 17 0 8 0 kqueuepl 184 70 0 59 1 0 1 1 0 8 0 pipepl 304 107 0 80 3 0 3 3 0 8 0 fdescpl 448 629 0 599 4 0 4 4 0 8 0 filepl 120 2675 0 2464 11 3 8 11 0 8 0 lockfpl 104 59 0 57 1 0 1 1 0 8 0 lockfspl 48 28 0 26 1 0 1 1 0 8 0 sessionpl 144 23 0 15 1 0 1 1 0 8 0 pgrppl 48 31 0 15 1 0 1 1 0 8 0 ucredpl 104 239 0 228 1 0 1 1 0 8 0 zombiepl 144 613 0 612 1 0 1 1 0 8 0 processpl 1152 644 0 600 4 0 4 4 0 8 0 procpl 664 958 0 902 6 0 6 6 0 8 1 sockpl 552 665 0 638 12 7 5 12 0 8 2 mcl64k 65536 101 0 101 2 1 1 1 0 8 1 mcl16k 16384 11 0 11 2 1 1 1 0 8 1 mcl12k 12288 2 0 2 1 1 0 1 0 8 0 mcl9k 9216 2 0 2 1 1 0 1 0 8 0 mcl8k 8192 37 0 37 2 1 1 1 0 8 1 mcl4k 4096 2831 0 2780 13 6 7 13 0 8 0 mcl2k2 2112 5 0 5 1 1 0 1 0 8 0 mcl2k 2048 425 0 424 5 4 1 5 0 8 0 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 7680 0 7509 17 4 13 17 0 8 0 bufpl 280 3140 0 118 216 0 216 216 0 8 0 anonpl 24 120268 0 116098 48 22 26 44 0 187 0 amapchunkpl 152 15926 0 15354 30 8 22 30 0 158 0 amappl16 200 2309 0 2284 14 12 2 14 0 8 0 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 107 0 97 1 0 1 1 0 8 0 amappl13 176 4 0 4 1 1 0 1 0 8 0 amappl12 168 1245 0 1215 2 0 2 2 0 8 0 amappl11 160 47 0 37 1 0 1 1 0 8 0 amappl10 152 8 0 8 1 1 0 1 0 8 0 amappl9 144 259 0 259 1 1 0 1 0 8 0 amappl8 136 20 0 19 1 0 1 1 0 8 0 amappl7 128 100 0 90 1 0 1 1 0 8 0 amappl6 120 183 0 180 1 0 1 1 0 8 0 amappl5 112 115 0 109 1 0 1 1 0 8 0 amappl4 104 265 0 252 1 0 1 1 0 8 0 amappl3 96 2484 0 2387 3 0 3 3 0 8 0 amappl2 88 862 0 790 2 0 2 2 0 8 0 amappl1 80 9106 0 8550 14 1 13 14 0 8 0 amappl 88 4147 0 3975 5 0 5 5 0 92 1 uvmvnodes 80 2185 0 0 45 0 45 45 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 254 0 254 1 1 0 1 0 8 0 dma64 64 7 0 7 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 19 0 18 1 0 1 1 0 8 0 aobjpl 72 4 0 0 1 0 1 1 0 8 0 uaddrrnd 24 629 0 599 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 629 0 599 1 0 1 1 0 8 0 vmmpekpl 168 6328 0 6299 2 0 2 2 0 8 0 vmmpepl 168 45890 0 43994 93 9 84 93 0 357 1 vmsppl 368 628 0 599 4 1 3 4 0 8 0 rwobjpl 40 17061 0 14018 31 0 31 31 0 8 0 pdppl 4096 1264 0 1198 88 22 66 74 0 8 0 pvpl 32 298083 0 287825 122 37 85 116 0 265 2 pmappl 216 628 0 599 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 369 0 48 11 1 10 11 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(ffffffff833bc2b5) at panic+0x1cf sys/kern/subr_prf.c:198 pledge_namei(ffff80002a7c1240,ffff8000385197d8,ffff80002a798400) at pledge_namei+0xb76 namei(ffff8000385197d8) at namei+0x434 sys/kern/vfs_lookup.c:202 vn_open(ffff8000385197d8,3,0) at vn_open+0x15a sys/kern/vfs_vnops.c:140 vndioctl(2902,c0384600,ffff800038519af0,1,ffff80002a7c1240) at vndioctl+0xc42 sys/dev/vnd.c:458 VOP_IOCTL(fffffd807e1ebb58,c0384600,ffff800038519af0,1,fffffd8007bfb680,ffff80002a7c1240) at VOP_IOCTL+0xa3 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806c07cd98,c0384600,ffff800038519af0,ffff80002a7c1240) at vn_ioctl+0xea sys/kern/vfs_vnops.c:531 sys_ioctl(ffff80002a7c1240,ffff800038519cc0,ffff800038519c10) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff800038519cc0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800038519cc0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x38e32e07740, count: -11 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833bc2b5) at panic+0x1cf sys/kern/subr_prf.c:198 pledge_namei(ffff80002a7c1240,ffff8000385197d8,ffff80002a798400) at pledge_namei+0xb76 namei(ffff8000385197d8) at namei+0x434 sys/kern/vfs_lookup.c:202 vn_open(ffff8000385197d8,3,0) at vn_open+0x15a sys/kern/vfs_vnops.c:140 vndioctl(2902,c0384600,ffff800038519af0,1,ffff80002a7c1240) at vndioctl+0xc42 sys/dev/vnd.c:458 VOP_IOCTL(fffffd807e1ebb58,c0384600,ffff800038519af0,1,fffffd8007bfb680,ffff80002a7c1240) at VOP_IOCTL+0xa3 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806c07cd98,c0384600,ffff800038519af0,ffff80002a7c1240) at vn_ioctl+0xea sys/kern/vfs_vnops.c:531 sys_ioctl(ffff80002a7c1240,ffff800038519cc0,ffff800038519c10) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff800038519cc0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800038519cc0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x38e32e07740, count: -11