panic: pledge_namei: ni_pledge Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *410042 60082 0 0x502000 0x4080000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83383431) at panic+0x1cf sys/kern/subr_prf.c:198 pledge_namei(ffff80003c970a68,ffff80003c977198,ffff80002a79b800) at pledge_namei+0xb59 sys/kern/kern_pledge.c:604 namei(ffff80003c977198) at namei+0x424 sys/kern/vfs_lookup.c:202 sys_chroot(ffff80003c970a68,ffff80003c977370,ffff80003c9772c0) at sys_chroot+0xb5 change_dir sys/kern/vfs_syscalls.c:839 [inline] sys_chroot(ffff80003c970a68,ffff80003c977370,ffff80003c9772c0) at sys_chroot+0xb5 sys/kern/vfs_syscalls.c:811 syscall(ffff80003c977370) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c977370) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x42589963780, count: 8 https://www.openbsd.org/ddb.html describes the minimum info required in bug --db_more-- reports. Insufficient info makes it difficult to find and fix bugs. 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(ffffffff83383431) at panic+0x1cf sys/kern/subr_prf.c:198 pledge_namei(ffff80003c970a68,ffff80003c977198,ffff80002a79b800) at pledge_namei+0xb59 sys/kern/kern_pledge.c:604 namei(ffff80003c977198) at namei+0x424 sys/kern/vfs_lookup.c:202 sys_chroot(ffff80003c970a68,ffff80003c977370,ffff80003c9772c0) at sys_chroot+0xb5 change_dir sys/kern/vfs_syscalls.c:839 [inline] sys_chroot(ffff80003c970a68,ffff80003c977370,ffff80003c9772c0) at sys_chroot+0xb5 sys/kern/vfs_syscalls.c:811 syscall(ffff80003c977370) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c977370) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x42589963780, count: -7 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003c976be0 rbx 0 rdx 0 rcx 0 rax 0xffff80003c970a68 r8 0x101010101010101 r9 0x8080808080808080 r10 0xfc6e80eca4c263f3 r11 0x38871568797e822e r12 0 r13 0xffff80002a79b800 r14 0 r15 0x1 rip 0xffffffff81d88995 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c976bd0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=410042 pid=60082 tcnt=4 stat=onproc flags process=502000 proc=4080000 runpri=83, usrpri=83, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a7e39b8 scnt=1 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7e39b8,0xffff80003c9714b8 process=0xffff80003c990028 user=0xffff80003c972000, vmspace=0xfffffd806c07ee20 estcpu=33, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 87814 319483 748 0 2 0 syz-executor 87814 66555 748 0 3 0x4000080 fsleep syz-executor 72229 494030 87115 0 2 0 syz-executor 72229 126069 87115 0 3 0x4000080 fsleep syz-executor 60082 167355 50457 0 4 0x582000 syz-executor 60082 179370 50457 0 3 0x4502000 suspend syz-executor *60082 410042 50457 0 7 0x4582000 syz-executor 60082 407780 50457 0 4 0x4582000 syz-executor 30428 207466 24813 0 2 0 syz-executor 30428 129885 24813 0 3 0x4000080 fsleep syz-executor 96850 415355 91396 0 2 0 syz-executor 96850 27276 91396 0 3 0x4000080 piperd syz-executor 96850 126904 91396 0 3 0x4000080 fsleep syz-executor 96850 96610 91396 0 3 0x4000080 fsleep syz-executor 48172 364620 18863 0 2 0 syz-executor 48172 339009 18863 0 3 0x4000080 fsleep syz-executor 24310 238830 96857 0 2 0 syz-executor 24310 466745 96857 0 3 0x4000080 fsleep syz-executor 24310 210333 96857 0 3 0x4000080 fsleep syz-executor 24310 215560 96857 0 3 0x4000080 fsleep syz-executor 53114 187857 0 0 3 0x14200 acct acct 43216 264582 79786 0 3 0x82 sbwait sshd-session 22443 332061 0 0 3 0x14280 nfsidl nfsio 1653 52469 0 0 3 0x14280 nfsidl nfsio 81773 65377 0 0 3 0x14280 nfsidl nfsio 71737 208943 0 0 3 0x14280 nfsidl nfsio 88337 134537 0 0 3 0x14280 nfsidl nfsio 68864 371683 0 0 3 0x14280 nfsidl nfsio 4497 393306 0 0 3 0x14280 nfsidl nfsio 47878 353048 0 0 3 0x14280 nfsidl nfsio 43415 48995 0 0 3 0x14280 nfsidl nfsio 95816 212049 0 0 3 0x14280 nfsidl nfsio 45575 290030 0 0 3 0x14280 nfsidl nfsio 49453 342230 0 0 3 0x14280 nfsidl nfsio 61931 61958 0 0 3 0x14280 nfsidl nfsio 54416 507246 0 0 3 0x14280 nfsidl nfsio 81884 382582 0 0 3 0x14280 nfsidl nfsio 78806 3626 0 0 3 0x14280 nfsidl nfsio 13329 455191 0 0 3 0x14280 nfsidl nfsio 13648 463682 0 0 3 0x14280 nfsidl nfsio 58774 431064 0 0 3 0x14280 nfsidl nfsio 12787 50653 0 0 3 0x14280 nfsidl nfsio 30021 519236 1 0 3 0x100083 ttyin getty 96173 383232 0 0 3 0x14200 bored sosplice 24813 416319 27876 0 3 0x82 nanoslp syz-executor 748 125379 27876 0 3 0x82 nanoslp syz-executor 91107 521928 27876 0 2 0x2 syz-executor 96857 487005 27876 0 3 0x82 nanoslp syz-executor 50457 450995 27876 0 3 0x82 nanoslp syz-executor 87115 135046 27876 0 3 0x82 nanoslp syz-executor 91396 451457 27876 0 3 0x82 nanoslp syz-executor 18863 274430 27876 0 3 0x82 nanoslp syz-executor 27876 386030 61041 0 3 0x82 kqread syz-executor 61041 261581 30670 0 3 0x10008a sigsusp ksh 30670 390774 80741 0 3 0x98 kqread sshd-session 80741 21730 79786 0 3 0x92 kqread sshd-session 79786 222386 1 0 3 0x88 kqread sshd 87567 13467 78412 73 3 0x1100090 kqread syslogd 78412 299517 1 0 3 0x100082 sbwait syslogd 13104 170512 1 0 3 0x100080 kqread resolvd 10042 409947 29821 77 3 0x100092 kqread dhcpleased 49852 300891 29821 77 3 0x100092 kqread dhcpleased 29821 16026 1 0 3 0x80 kqread dhcpleased 50646 334475 0 0 3 0x14200 bored smr 80809 28032 0 0 2 0x14200 zerothread 40410 174723 0 0 3 0x14200 aiodoned aiodoned 91906 518986 0 0 3 0x14200 syncer update 21965 436904 0 0 3 0x14200 cleaner cleaner 81545 175133 0 0 3 0x14200 reaper reaper 23239 50015 0 0 3 0x14200 pgdaemon pagedaemon 71754 288888 0 0 3 0x14200 bored viomb 93556 175428 0 0 3 0x40014200 acpi0 acpi0 14586 182680 0 0 3 0x14200 bored softnet3 76143 4317 0 0 3 0x14200 bored softnet2 39597 230263 0 0 3 0x14200 bored softnet1 33670 143812 0 0 3 0x14200 bored softnet0 305 107816 0 0 3 0x14200 bored systqmp 66093 438515 0 0 3 0x14200 bored systq 82649 371870 0 0 3 0x40014200 tmoslp softclock 98902 303156 0 0 3 0x40014200 idle0 1 239939 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10180 11058K 11511K 166960K 12259 0 pcb 18 13K 14K 166960K 152 0 rtable 220 7K 8K 166960K 442 0 pf 34 13K 15K 166960K 88 0 ifaddr 38 6K 8K 166960K 60 0 ifgroup 51 2K 2K 166960K 92 0 sysctl 3 1K 1K 166960K 3 0 counters 30 17K 17K 166960K 46 0 ioctlops 0 0K 4K 166960K 117 0 iov 0 0K 28K 166960K 90 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1340 84K 85K 166960K 1882 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 13 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 34 0 dirhash 12 2K 2K 166960K 27 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 97K 166960K 915 0 sigio 0 0K 0K 166960K 19 0 proc 60 59K 124K 166960K 563 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 245 0 in_multi 84 6K 7K 166960K 133 0 ether_multi 1 0K 0K 166960K 8 0 mrt 1 0K 0K 166960K 5 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 428 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 235 151K 169K 166960K 9596 0 UVM aobj 16 4K 4K 166960K 17 0 pinsyscall 41 82K 96K 166960K 1966 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 36 0 NDP 11 0K 2K 166960K 39 0 temp 67 8681K 8804K 166960K 33239 0 kqueue 13 20K 28K 166960K 144 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 222 0 218 3 2 1 3 0 8 0 rtentry 136 132 0 32 4 0 4 4 0 8 0 unpcb 144 884 0 867 7 3 4 4 0 8 3 syncache 336 9 0 9 2 1 1 1 0 8 1 tcpqe 32 2 0 2 1 0 1 1 0 8 1 tcpcb 808 323 0 313 9 7 2 8 0 8 0 arp 88 22 0 5 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 5 0 2 1 0 1 1 0 8 0 inpcb 344 825 0 807 11 6 5 8 0 8 3 nd6 104 29 0 9 1 0 1 1 0 8 0 pkpcb 40 6 0 6 2 1 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 12 0 12 2 1 1 1 0 8 1 pppxif 1384 2 0 2 2 1 1 1 0 8 1 pftag 88 3 0 0 1 0 1 1 0 8 0 pfqueue 320 3 0 2 1 0 1 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 3 0 1 1 0 1 1 0 8 0 pfstate 344 2 0 1 1 0 1 1 0 8 0 pfrule 1344 6 0 6 2 1 1 1 0 8 1 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 495 0 88 29 2 27 29 0 8 0 art_table 32 498 0 88 4 0 4 4 0 8 0 art_node 16 128 0 37 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 5 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 30 0 20 1 0 1 1 0 8 0 shmpl 112 14 0 1 1 0 1 1 0 8 0 dirhash 1024 27 0 10 3 0 3 3 0 8 0 dino2pl 256 2964 0 1471 95 0 95 95 0 8 0 ffsino 248 2964 0 1471 95 0 95 95 0 8 0 nchpl 144 4271 0 2594 63 0 63 63 0 8 0 rtmask 32 1 0 1 1 0 1 1 0 8 1 uvmvnodes 80 3345 0 0 69 0 69 69 0 8 0 vnodes 216 3345 0 0 186 0 186 186 0 8 0 namei 1024 14536 0 14535 3 1 2 2 0 8 1 kstatmem 264 46 0 24 2 0 2 2 0 8 0 scsiplug 72 4 0 4 2 1 1 1 0 8 1 scxspl 216 13816 0 13816 10 2 8 8 1 8 8 plimitpl 152 250 0 233 1 0 1 1 0 8 0 sigapl 424 1220 0 1151 8 0 8 8 0 8 0 futexpl 64 12365 0 12356 1 0 1 1 0 8 0 knotepl 120 35801 0 35753 16 8 8 10 0 8 6 kqueuepl 184 387 0 377 4 3 1 4 0 8 0 pipepl 296 170 0 142 3 0 3 3 0 8 0 fdescpl 440 1182 0 1151 5 1 4 5 0 8 0 filepl 120 7258 0 7034 13 4 9 12 0 8 1 lockfpl 104 249 0 247 1 0 1 1 0 8 0 lockfspl 48 100 0 98 1 0 1 1 0 8 0 sessionpl 144 27 0 18 1 0 1 1 0 8 0 pgrppl 48 47 0 30 1 0 1 1 0 8 0 ucredpl 104 1026 0 1014 1 0 1 1 0 8 0 zombiepl 144 1299 0 1299 1 0 1 1 0 8 1 processpl 1112 1220 0 1151 6 0 6 6 0 8 0 procpl 656 2426 0 2344 9 1 8 8 0 8 1 sosppl 168 7 0 7 2 1 1 1 0 8 1 sockpl 528 1952 0 1914 16 9 7 12 0 8 4 mcl64k 65536 86 0 85 2 1 1 1 0 8 0 mcl9k 9216 2 0 2 1 1 0 1 0 8 0 mcl8k 8192 12 0 12 2 1 1 1 0 8 1 mcl4k 4096 3501 0 3451 16 8 8 15 0 8 1 mcl2k 2048 947 0 938 4 2 2 3 0 8 0 mtagpl 96 31 0 16 1 0 1 1 0 8 0 mbufpl 256 12560 0 12375 29 11 18 25 0 8 1 bufpl 280 5353 0 118 374 0 374 374 0 8 0 anonpl 24 147134 0 143347 87 53 34 81 0 187 7 amapchunkpl 152 37560 0 37068 39 12 27 34 0 158 6 amappl16 200 2222 0 2167 32 29 3 24 0 8 0 amappl15 192 40 0 40 1 1 0 1 0 8 0 amappl14 184 110 0 99 1 0 1 1 0 8 0 amappl12 168 1789 0 1759 3 1 2 3 0 8 0 amappl11 160 77 0 67 1 0 1 1 0 8 0 amappl10 152 2 0 2 2 1 1 1 0 8 1 amappl9 144 253 0 252 1 0 1 1 0 8 0 amappl8 136 43 0 41 1 0 1 1 0 8 0 amappl7 128 100 0 88 1 0 1 1 0 8 0 amappl6 120 168 0 164 1 0 1 1 0 8 0 amappl5 112 114 0 107 1 0 1 1 0 8 0 amappl4 104 299 0 283 1 0 1 1 0 8 0 amappl3 96 6406 0 6293 5 1 4 4 0 8 0 amappl2 88 659 0 598 2 0 2 2 0 8 0 amappl1 80 12343 0 11697 17 1 16 16 0 8 1 amappl 88 8773 0 8607 5 0 5 5 0 92 0 dma65536 65536 1 0 1 1 0 1 1 0 8 1 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 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 16 0 1 1 0 1 1 0 8 0 uaddrrnd 24 1182 0 1151 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1182 0 1151 1 0 1 1 0 8 0 vmmpekpl 168 10765 0 10733 2 0 2 2 0 8 0 vmmpepl 168 78247 0 76200 112 15 97 101 0 357 4 vmsppl 360 1181 0 1151 4 1 3 4 0 8 0 rwobjpl 32 24232 0 19885 37 1 36 36 0 8 0 pdppl 4096 2371 0 2302 113 44 69 83 0 8 0 pvpl 32 475418 0 465313 175 77 98 166 0 265 6 pmappl 216 1181 0 1151 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 314 0 80 8 0 8 8 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(ffffffff83383431) at panic+0x1cf sys/kern/subr_prf.c:198 pledge_namei(ffff80003c970a68,ffff80003c977198,ffff80002a79b800) at pledge_namei+0xb59 sys/kern/kern_pledge.c:604 namei(ffff80003c977198) at namei+0x424 sys/kern/vfs_lookup.c:202 sys_chroot(ffff80003c970a68,ffff80003c977370,ffff80003c9772c0) at sys_chroot+0xb5 change_dir sys/kern/vfs_syscalls.c:839 [inline] sys_chroot(ffff80003c970a68,ffff80003c977370,ffff80003c9772c0) at sys_chroot+0xb5 sys/kern/vfs_syscalls.c:811 syscall(ffff80003c977370) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c977370) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x42589963780, 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(ffffffff83383431) at panic+0x1cf sys/kern/subr_prf.c:198 pledge_namei(ffff80003c970a68,ffff80003c977198,ffff80002a79b800) at pledge_namei+0xb59 sys/kern/kern_pledge.c:604 namei(ffff80003c977198) at namei+0x424 sys/kern/vfs_lookup.c:202 sys_chroot(ffff80003c970a68,ffff80003c977370,ffff80003c9772c0) at sys_chroot+0xb5 change_dir sys/kern/vfs_syscalls.c:839 [inline] sys_chroot(ffff80003c970a68,ffff80003c977370,ffff80003c9772c0) at sys_chroot+0xb5 sys/kern/vfs_syscalls.c:811 syscall(ffff80003c977370) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c977370) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x42589963780, count: -7