last executing test programs: 431.11471ms ago: executing program 3 (id=4): seteuid(0xffffffffffffffff) (async) r0 = semget$private(0x0, 0x2, 0x2b1) semctl$IPC_SET(r0, 0x0, 0x1, &(0x7f0000000180)={{0x0, 0x0, 0x0, 0x0, 0x100, 0x8, 0x0, 0x0, 0x9}, 0x0, 0x6, 0x0, 0x0, 0xc, 0x0, 0x2f}) semctl$GETZCNT(r0, 0x2, 0x7, 0x0) (async) open$dir(0x0, 0x80, 0x14c) (async) semctl$GETNCNT(r0, 0x0, 0x3, &(0x7f0000000040)=""/60) (async) r1 = openat$speaker(0xffffffffffffff9c, &(0x7f0000000080), 0x1, 0x0) writev(r1, &(0x7f0000001640)=[{&(0x7f0000000c00)="aaae9c43ae291599a4b230cb40e2caec54d50e4255efa513d9c6a72e31dc2b072dc14792cf54704c365a7ee7a5236d90d2f9bd99c21225727e01ada1ec2ebfb7fe83969873258ee1ce34419eb61d5e493cfb83ee20d857e664d9e25c93b36c6ab12211f416210e7e7c2a6b15851cd117801b9178cadf0c089769b358f92bd30a77a099a1a10207106f6c", 0x8a}, {&(0x7f0000000300)="7f290bb1f6b26ec839470a2de258e83c2bc1813406d5477215d8c144a1483da4b430fcf7b920a44afc342ecb36fd9c2062eb1b90934c1765f4cb3aaa66b6031a4b21c27ea086d9e3cc7ec522287dd03321cf9670060667bb4c2b752f8e45981f3e32982b9cde73e3f89b59a170207f15a611a04440e645924687c3db0009ba71e858bdec6f", 0x85}, {&(0x7f00000015c0)="9ae4b58520f1e2a6fc82cd44917f20a3578fe7d501899f7a6c9f570a519ef102c67a9bb26bf40882dd50ab53168c9326d43dbf93966085bc9b76e59f612e0e", 0x3f}], 0x3) (async) unveil(0x0, &(0x7f0000000080)='w\x00') (async) r2 = open(&(0x7f0000000180)='./file0\x00', 0x200, 0x42) (async) nanosleep(&(0x7f0000000000)={0x40008000000, 0x5}, 0x0) (async) ioctl$WSMOUSEIO_SETPARAMS(0xffffffffffffffff, 0x80105728, &(0x7f00000000c0)={&(0x7f0000000000)=[{0x4, 0x1}], 0x1}) (async, rerun: 32) mprotect(&(0x7f0000000000/0x400000)=nil, 0x400000, 0x1) (async, rerun: 32) sysctl$kern(&(0x7f0000000000)={0x1, 0x49}, 0x6, 0x0, 0x0, 0x0, 0x0) ioctl$LIOCSFD(0xffffffffffffffff, 0x80046c7f, &(0x7f00000000c0)=r2) syz_emit_ethernet(0x52, &(0x7f0000000000)={@local, @local, [], {@ipv6={0x86dd, {0xf, 0x6, "15184a", 0x1c, 0x6, 0x1, @remote={0xfe, 0x80, '\x00', 0x0}, @rand_addr="fe00001000", {[], @udp={{0x1, 0x1, 0x8}, {"59e4f44a70c40380c58ef4532caa799113141d67"}}}}}}}) (async, rerun: 64) r3 = kqueue1(0x10000) (rerun: 64) kevent(r3, &(0x7f0000000040), 0x6, 0x0, 0x4, 0x0) (async) preadv(r3, &(0x7f00000012c0)=[{&(0x7f0000000000)=""/175, 0xaf}, {&(0x7f00000000c0)=""/206, 0xce}, {&(0x7f00000001c0)=""/4096, 0x1000}, {&(0x7f00000011c0)=""/144, 0x90}, {&(0x7f0000001280)=""/23, 0x17}], 0x5, 0x8) (async) r4 = socket$unix(0x1, 0x5, 0x0) r5 = semget$private(0x0, 0x1, 0x8) semctl$GETVAL(r5, 0x0, 0x5, &(0x7f0000001680)=""/4096) (async) getsockopt$sock_int(r4, 0xffff, 0x2000, &(0x7f00000011c0), &(0x7f0000000000)=0x4) (async) ftruncate(r1, 0x80) (async) dup2(r3, r3) 383.65463ms ago: executing program 6 (id=7): r0 = socket$unix(0x1, 0x2, 0x0) bind$unix(r0, &(0x7f0000000080)=@file={0x4, 0x1, './file0\x00'}, 0xa) socketpair$unix(0x1, 0x5, 0x0, &(0x7f00000006c0)={0xffffffffffffffff, 0xffffffffffffffff}) getsockopt$sock_cred(0xffffffffffffffff, 0xffff, 0x1022, &(0x7f0000000100), &(0x7f0000000140)=0xc) ktrace(&(0x7f0000000000)='./file0\x00', 0x4, 0xd07b843b7f7ea096, 0x0) mprotect(&(0x7f0000000000/0x400000)=nil, 0x400000, 0x1) mkdir(&(0x7f0000000140)='./file0/file0\x00', 0x221ff545a928937) r2 = socket$inet(0x2, 0x3, 0x68) setsockopt$sock_int(r2, 0xffff, 0x1021, &(0x7f0000000040)=0x9ee, 0x3) rename(&(0x7f0000000140)='./file1\x00', &(0x7f0000000000)='./file0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\x00') r3 = socket$unix(0x1, 0x2, 0x0) connect$unix(r3, &(0x7f00000000c0)=@file={0xfc, 0x1, './file0\x00'}, 0xa) sysctl$vfs_nfs(&(0x7f0000000000)={0xa, 0x2, 0x3}, 0xf, 0x0, 0x0, 0x0, 0xfffffffffffffe70) sysctl$kern(&(0x7f0000000000)={0x1, 0x33}, 0x2, 0x0, 0x0, 0x0, 0x0) mprotect(&(0x7f0000000000/0x400000)=nil, 0x400000, 0x4) sysctl$vm_swapencrypt(&(0x7f0000000000), 0x3, &(0x7f0000000040), 0x0, 0x0, 0x0) r4 = socket$unix(0x1, 0x2, 0x0) connect$unix(r4, &(0x7f0000000000)=@file={0xfc, 0x1, './file0\x00'}, 0xa) msync(&(0x7f000008d000/0x4000)=nil, 0x4000, 0x0) socket$unix(0x1, 0x2, 0x0) sysctl$vfs_nfs(&(0x7f0000000000)={0xa, 0x2, 0x1}, 0x3, 0x0, 0x0, 0x0, 0x0) sysctl$kern(&(0x7f0000000000)={0x1, 0x3e}, 0x2, 0x0, 0x0, 0x0, 0x0) mprotect(&(0x7f0000000000/0x400000)=nil, 0x400000, 0x1) sysctl$vm_swapencrypt(&(0x7f0000000000), 0x3, 0x0, 0x0, &(0x7f00000000c0)='\x00\x00\x00\x00', 0x4) closefrom(r1) 1.674869ms ago: executing program 6 (id=9): r0 = openat$bpf(0xffffffffffffff9c, &(0x7f0000000000), 0x40, 0x0) ioctl$BIOCSETIF(r0, 0x8020426c, &(0x7f0000000440)={'tap', 0x0}) (async) syz_emit_ethernet(0x2a, &(0x7f0000000240)=ANY=[]) (async) syz_emit_ethernet(0x1000e, &(0x7f0000000180)=ANY=[]) (async) ioctl$BIOCFLUSH(r0, 0x20004268) r1 = socket$inet6(0x18, 0x3, 0x1) (async) r2 = socket$inet6(0x18, 0x3, 0x1) (async) ioctl$BIOCSFILDROP(r0, 0x80044279, &(0x7f0000000200)=0x4) (async) ioctl$DRM_IOCTL_SYNCOBJ_HANDLE_TO_FD(0xffffffffffffff9c, 0xc01864c1, &(0x7f0000000080)={0x0, 0x0, 0xffffffffffffffff, 0x0, 0x2}) kevent(r0, &(0x7f0000000040)=[{{r2}, 0xfffffffffffffff6, 0x21, 0xfffff, 0x1, 0xfffffffffffffff3}], 0x0, &(0x7f00000000c0)=[{{r2}, 0xfffffffffffffffd, 0x88, 0x0, 0x1, 0x2}, {{r3}, 0xfffffffffffffff8, 0x4, 0xfffff, 0x22b, 0xa3}, {{r2}, 0xfffffffffffffffe, 0x94, 0x80, 0x1, 0x1}, {{r0}, 0xfffffffffffffff8, 0x90, 0x4, 0x3, 0x94f}, {{r0}, 0xfffffffffffffffa, 0x20, 0x10, 0x8, 0x9414}, {{r2}, 0xfffffffffffffffe, 0x10, 0x2, 0x1, 0x22d88664}, {{r1}, 0xfffffffffffffffd, 0x10, 0x2, 0xbf, 0x9}], 0x7ff, &(0x7f00000001c0)={0x1ff, 0x5}) (async, rerun: 32) connect$inet6(r2, &(0x7f0000000c80)={0x1c, 0x18, 0x1, 0x41, "7b5527d0b2d36c8f1ac6c34000", 0xc0000}, 0x19) (async, rerun: 32) openat$audio(0xffffffffffffff9c, &(0x7f0000000240), 0x100, 0x0) (async) connect$inet6(r1, &(0x7f0000000000)={0x1c, 0x18, 0x1, 0x40, "febf0000000000020000000000001e00", 0x4}, 0x1c) (async, rerun: 64) mlock(&(0x7f0000ff5000/0xb000)=nil, 0xb000) (rerun: 64) 915.887µs ago: executing program 1 (id=2): seteuid(0xffffffffffffffff) r0 = syz_open_pts() ioctl$TIOCNOTTY(r0, 0x20007471) ioctl$TIOCSETD(r0, 0x8004741b, &(0x7f0000000280)=0x5) open$dir(&(0x7f00000001c0)='./file0\x00', 0x200, 0x80) acct(&(0x7f0000001780)='./file0\x00') r1 = socket$inet6(0x18, 0x1, 0x6) setsockopt$sock_int(r1, 0xffff, 0x800, &(0x7f0000000240)=0x3, 0x3) r2 = openat$speaker(0xffffffffffffff9c, &(0x7f0000000080), 0x1, 0x0) writev(r2, &(0x7f0000000180)=[{&(0x7f00000000c0)="6d6e176979f64b6f54c1da9b6e39", 0xe}], 0x1) acct(&(0x7f0000000000)='./file0\x00') semget(0x2, 0x1, 0x22) 701.101µs ago: executing program 6 (id=10): r0 = socket$inet6(0x18, 0x1, 0x6) fcntl$setstatus(r0, 0x4, 0x40) (async) r1 = getpgrp() fcntl$setown(r0, 0x6, r1) (async) shutdown(r0, 0x1) (async) open$dir(&(0x7f00000001c0)='./file0\x00', 0x200, 0x80) ktrace(&(0x7f0000000000)='./file0\x00', 0x4, 0x1104, 0xffffffffffffffff) nanosleep(&(0x7f0000001fc0)={0x0, 0x3}, &(0x7f0000002000)) (async) pipe(&(0x7f0000000000)={0xffffffffffffffff, 0xffffffffffffffff}) r4 = socket$inet(0x2, 0x3, 0x2) setsockopt(r4, 0x0, 0x6d, 0x0, 0x0) (async) socketpair$unix(0x1, 0x1, 0x0, &(0x7f0000000180)={0xffffffffffffffff, 0xffffffffffffffff}) ioctl$AUDIO_MIXER_WRITE(r2, 0xc0144d01, &(0x7f0000000080)=@value_ctrl={0x80000000, 0x3, 0x8, "de30a08752ac0101"}) (async) seteuid(0xffffffffffffffff) nanosleep(&(0x7f0000000000)={0x38, 0x7ff}, 0x0) sysctl$kern(&(0x7f0000000000)={0x1, 0x2c}, 0x2, 0x0, 0x0, 0x0, 0x0) mprotect(&(0x7f0000000000/0x400000)=nil, 0x400000, 0x1) sysctl$vfs_nfs(&(0x7f0000000040)={0xa, 0x2, 0x3}, 0x3, 0x0, 0x0, 0x0, 0x0) (async) poll(&(0x7f0000001200)=[{r5, 0x10}], 0x1, 0x37) (async) closefrom(r3) 447.921µs ago: executing program 2 (id=3): r0 = shmget$private(0x0, 0x3000, 0x26b, &(0x7f0000ffd000/0x3000)=nil) umask(0x7) mkdir(&(0x7f0000000400)='./file0\x00', 0x148) chmod(&(0x7f00000000c0)='./file0\x00', 0x19b) ktrace(0x0, 0x1, 0x1808, 0xffffffffffffffff) mkdir(&(0x7f0000000000)='./file0/file1\x00', 0x10) seteuid(0xffffffffffffffff) mkdir(&(0x7f00000002c0)='./file0/file0\x00', 0xe1) rename(&(0x7f0000000200)='./file0/file1\x00', &(0x7f0000000180)='./file0/file0\x00') shmat(r0, &(0x7f0000ffd000/0x1000)=nil, 0x2000) stat(&(0x7f0000000040)='./file0\x00', &(0x7f0000000100)={0x0, 0x0, 0x0, 0x0, 0x0, 0x0}) r2 = getegid() syz_open_pts() setresgid(r2, 0x0, r2) r3 = getgid() setgroups(0x3, &(0x7f00000001c0)=[r1, r2, r3]) shmat(r0, &(0x7f0000ffc000/0x2000)=nil, 0x0) r4 = socket$inet6(0x18, 0x3, 0x3a) dup(r4) r5 = socket$inet6(0x18, 0x1, 0xfd) fstat(r5, &(0x7f0000000240)) ioctl$DRM_IOCTL_PRIME_FD_TO_HANDLE(0xffffffffffffff9c, 0xc00c642e, &(0x7f0000000000)={0x0, 0x6, 0xffffffffffffffff}) setsockopt(r6, 0xffff7ffe, 0x4, &(0x7f0000000300)="d87afcffc3244d965caf164c1bd86be175c5a4ba312d17a29b104f5bfd776b7bc5556c05e6bde494d905c1811c03c6fb642d1432820b44261805ee6e57519abae3876469e4e42a451dcd038390809179263b122259a89d71771741c0c4c498ac0246b1e42d7fcbdc39e0eda0934e2ecda998e23e961780f1998d3c70494e8880907785f52b6953a15a6709d49637", 0xffffffffffffff8d) shmat(r0, &(0x7f0000ff8000/0x6000)=nil, 0x0) 196.497µs ago: executing program 6 (id=11): r0 = openat$bpf(0xffffffffffffff9c, &(0x7f0000000000), 0x80, 0x0) ioctl$BIOCSETF(r0, 0x80104267, &(0x7f00000000c0)={0x3, &(0x7f0000000040)=[{0x7, 0x6, 0x3, 0x4}, {0x48, 0x5, 0xff, 0x8400}, {0xff7e, 0x6, 0x9, 0x3}]}) ioctl$BIOCSETIF(r0, 0x8020426c, &(0x7f0000000440)={'tap', 0x0}) ioctl$DIOCGETQUEUES(0xffffffffffffffff, 0xc148445e, &(0x7f0000000500)={0x91, 0x40b, {'\x00', './file0/file0\x00', './file0\x00', './file0\x00', {{0x7, 0xf2a9}, {0x4, 0x77bed240}, 0x4}, {{0xfffffffffffffff8, 0x4}, {0xfffffffffffffff7, 0x7}, 0xfffffff4}, {{0x7fffffffffffffff, 0x7}, {0x6, 0xfff}, 0x80}, {0x9, 0x1, 0x3}, 0x0, 0x7, 0x6, 0xa, 0x40}}) mprotect(&(0x7f0000000000/0x400000)=nil, 0x400000, 0x4) mkdir(&(0x7f0000000400)='./file0\x00', 0x148) chmod(&(0x7f00000000c0)='./file0\x00', 0x19b) seteuid(0xffffffffffffffff) mkdir(&(0x7f00000002c0)='./file0/file0\x00', 0xe1) chdir(&(0x7f0000000000)='./file0\x00') unveil(&(0x7f0000000180)='./file0/file0\x00', &(0x7f0000000000)='x\x00') r1 = socket$inet(0x2, 0x3, 0x14) ioctl$FIOASYNC(r1, 0x8040691a, &(0x7f0000000580)=0x7) syz_emit_ethernet(0x2e, &(0x7f0000000100)=ANY=[@ANYBLOB="61a566eb1b6d0000000100000803461c002000660000fb50a7ab72325b3a8de200070375004e234e2300089078c9fb377f3cdb44cc6da1a1e6f93e0208b3927b66bbef18a51fdff4bffcfd01fc2995e1cab1860fdfc50ea9b107b057bd42166849ae4ca79f4cb0f4fc301563f2ed1e6a221bd3a193c08992cf891901ad73"]) 0s ago: executing program 0 (id=1): mknod(&(0x7f0000000040)='./file0\x00', 0x2000, 0x7fff) r0 = open(&(0x7f0000001980)='./file0\x00', 0x80, 0xc3) mprotect(&(0x7f0000000000/0x400000)=nil, 0x400000, 0x4) ioctl$WSDISPLAYIO_SVIDEO(r0, 0x82907003, &(0x7f0000001bc0)=0x1) kernel console output (not intermixed with test programs): Warning: Permanently added '10.128.0.126' (ED25519) to the list of known hosts. KASAN: invalid read of 4 bytes at 0xffffffff84ecbf54 from pc 0xffffffff83a6bddd KASAN: first bad byte at 0xffffffff84ecbf54 (+0); shadow 0xfa: global redzone (out-of-bounds) KASAN: 0xffffffff84ecbf54 is 16 bytes to the right of the 4-byte global 'mem_no' (/syzkaller/managers/kasan/kernel/sys/arch/amd64/amd64/conf.c) KASAN: pc: checkalias+0x47d KASAN: call trace: #0 __asan_load4_noabort+0x82 #1 checkalias+0x47d #2 ffs_vinit+0x227 #3 ffs_vget+0x748 #4 ufs_lookup+0x15c1 #5 VOP_LOOKUP+0xda #6 vfs_lookup+0xfbd #7 namei+0xe19 #8 vn_open+0x240 #9 doopenat+0x460 #10 sys_open+0x86 #11 syscall+0x1089 #12 Xsyscall+0x128 KASAN: shadow of 0xffffffff84ecbe00..0xffffffff84ecc080 (1 cell = 8 bytes): 0xffffffff84ecbe00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0xffffffff84ecbe80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa >0xffffffff84ecbf00: fa fa fa fa 00 fa fa fa 00 fa[fa]fa 00 fa fa fa 0xffffffff84ecbf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0xffffffff84ecc000: 00 00 00 00 00 fa fa fa fa fa fa fa 00 00 00 00 KASAN: legend: 00 valid; 01..07 partial; fb malloc redzone; fc malloc freed; fd pool freed; fe kmem; fa global; f1..f4/f8 stack/scope panic: Caught invalid memory access at ffffffff84ecbf54 size 4 op 0 Stopped at db_enter+0x17: popq %rbp TID PID UID PRFLAGS PFLAGS CPU COMMAND *518787 27846 0 0 0x4000000 0K syz-executor 385227 78265 0 0x2 0x1 1 syz-executor db_enter() at db_enter+0x17 panic(ffffffff8463738e) at panic+0x270 __asan_load4_noabort(ffffffff84ecbf54) at __asan_load4_noabort+0xa3 checkalias(ffff800001d28700,7fff) at checkalias+0x47d ffs_vinit(ffff800000d80800,ffff80003bb94120) at ffs_vinit+0x227 ffs_vget(ffff800000d80800,6659,ffff80003bb942e0) at ffs_vget+0x748 ufs_lookup() at ufs_lookup+0x15c1 VOP_LOOKUP(ffff800001c897d0,ffff80003bb94bc0,ffff80003bb94bf0) at VOP_LOOKUP+0xda vfs_lookup(ffff80003bb94b90) at vfs_lookup+0xfbd namei(ffff80003bb94b90) at namei+0xe19 vn_open(ffff80003bb94b90,81,0) at vn_open+0x240 doopenat(ffff800029932018,ffffff9c,200000001980,80,0,0,ffff80003bb94ef0) at doopenat+0x460 sys_open(ffff800029932018,ffff80003bb94ef0,ffff80003bb94e60) at sys_open+0x86 syscall(ffff80003bb94ef0) at syscall+0x1089 end trace frame: 0xffff80003bb94f70, count: 0 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: Caught invalid memory access at ffffffff84ecbf54 size 4 op 0 ddb{0}> show kasan KASAN: invalid read of 4 bytes at 0xffffffff84ecbf54 from pc 0xffffffff83a6bddd KASAN: first bad byte at 0xffffffff84ecbf54 (+0); shadow 0xfa: global redzone (out-of-bounds) KASAN: 0xffffffff84ecbf54 is 16 bytes to the right of the 4-byte global 'mem_no' (/syzkaller/managers/kasan/kernel/sys/arch/amd64/amd64/conf.c) KASAN: pc: checkalias+0x47d KASAN: call trace: #0 __asan_load4_noabort+0x82 #1 checkalias+0x47d #2 ffs_vinit+0x227 #3 ffs_vget+0x748 #4 ufs_lookup+0x15c1 #5 VOP_LOOKUP+0xda #6 vfs_lookup+0xfbd #7 namei+0xe19 #8 vn_open+0x240 #9 doopenat+0x460 #10 sys_open+0x86 #11 syscall+0x1089 #12 Xsyscall+0x128 KASAN: shadow of 0xffffffff84ecbe00..0xffffffff84ecc080 (1 cell = 8 bytes): 0xffffffff84ecbe00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0xffffffff84ecbe80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa >0xffffffff84ecbf00: fa fa fa fa 00 fa fa fa 00 fa[fa]fa 00 fa fa fa 0xffffffff84ecbf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0xffffffff84ecc000: 00 00 00 00 00 fa fa fa fa fa fa fa 00 00 00 00 KASAN: legend: 00 valid; 01..07 partial; fb malloc redzone; fc malloc freed; fd pool freed; fe kmem; fa global; f1..f4/f8 stack/scope ddb{0}> trace db_enter() at db_enter+0x17 panic(ffffffff8463738e) at panic+0x270 __asan_load4_noabort(ffffffff84ecbf54) at __asan_load4_noabort+0xa3 checkalias(ffff800001d28700,7fff) at checkalias+0x47d ffs_vinit(ffff800000d80800,ffff80003bb94120) at ffs_vinit+0x227 ffs_vget(ffff800000d80800,6659,ffff80003bb942e0) at ffs_vget+0x748 ufs_lookup() at ufs_lookup+0x15c1 VOP_LOOKUP(ffff800001c897d0,ffff80003bb94bc0,ffff80003bb94bf0) at VOP_LOOKUP+0xda vfs_lookup(ffff80003bb94b90) at vfs_lookup+0xfbd namei(ffff80003bb94b90) at namei+0xe19 vn_open(ffff80003bb94b90,81,0) at vn_open+0x240 doopenat(ffff800029932018,ffffff9c,200000001980,80,0,0,ffff80003bb94ef0) at doopenat+0x460 sys_open(ffff800029932018,ffff80003bb94ef0,ffff80003bb94e60) at sys_open+0x86 syscall(ffff80003bb94ef0) at syscall+0x1089 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb497a3989d0, count: -15 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80003bb93db0 rbx 0xffff80003bb93e20 rdx 0 rcx 0xffffffff85221ff0 cpu_info_full_primary+0x1ff0 rax 0xffff80000016f280 r8 0x101010101010101 r9 0x8080808080808080 r10 0xffff80003bb93b98 r11 0xffffffff81b873f0 x86_bus_space_io_read_1 r12 0xffffffff8463738e .str.28+0x9d9ae r13 0xffffffff85222c08 cpu_info_full_primary+0x2c08 r14 0xffffffff85222e07 cpu_info_full_primary+0x2e07 r15 0x1 rip 0xffffffff820d6ab7 db_enter+0x17 cs 0x8 rflags 0x246 rsp 0xffff80003bb93db0 ss 0x10 db_enter+0x17: popq %rbp ddb{0}> show proc PROC (syz-executor) tid=518787 pid=27846 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800045ff67e8,0xffff800029932fb8 process=0xffff800045ffa1c8 user=0xffff80003bb89000, vmspace=0xffff800001c939a8 estcpu=36, cpticks=19, pctcpu=0.0, user=0, sys=19, intr=0 ddb{0}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 3875 72900 29791 0 2 0x40 0 syz-executor 24476 343955 14569 0 2 0x100002 0 sh 76572 490222 61922 0 2 0 0 syz-executor 25113 10951 11746 0 2 0 0 syz-executor 27846 246620 11492 0 2 0 0 syz-executor *27846 518787 11492 0 7 0 0x4000000 syz-executor 85920 46311 73761 0 2 0x2 0 sh 93987 501164 78265 0 2 0x10 0 syz-executor 93987 44413 78265 0 3 0x10 0x4000080 fsleep syz-executor 82435 372223 70231 0 2 0x10 0xc80 syz-executor 82435 165125 70231 0 3 0x10 0x4000080 nanoslp syz-executor 82435 41782 70231 0 3 0x10 0x4000080 fsleep syz-executor 14569 129188 94676 0 3 0x2 0x80 wait syz-executor 11746 263203 94676 0 2 0x2 0xc80 syz-executor 73761 215960 94676 0 3 0x2 0x80 wait syz-executor 29791 235547 94676 0 3 0x82 0 ppwait syz-executor 70231 246738 94676 0 2 0x2 0xc80 syz-executor 61922 20159 94676 0 2 0x2 0xc80 syz-executor 78265 385227 94676 0 7 0x2 0x1 syz-executor 11492 183954 94676 0 2 0x2 0xc80 syz-executor 94676 375829 14345 0 3 0x2 0x80 kqread syz-executor 14345 17501 69387 0 3 0x100002 0x88 sigsusp ksh 69387 211826 16697 0 3 0x10 0x88 kqread sshd-session 16697 348663 56267 0 3 0x12 0x80 kqread sshd-session 88083 366287 1 0 3 0x100003 0x80 ttyin getty 56267 71141 1 0 3 0 0x88 kqread sshd 82604 493221 63110 74 3 0x1100012 0x80 bpf pflogd 63110 83578 1 0 3 0 0x80 sbwait pflogd 48633 523500 95930 73 2 0x1100010 0x80 syslogd 95930 201490 1 0 3 0x100002 0x80 sbwait syslogd 58393 172962 1 0 3 0x100000 0x80 kqread resolvd 115 508146 78728 77 3 0x100012 0x80 kqread dhcpleased 80307 379241 78728 77 3 0x100012 0x80 kqread dhcpleased 78728 34291 1 0 3 0 0x80 kqread dhcpleased 50672 24042 0 0 2 0x14000 0xa00 smr 94015 476704 0 0 2 0x14000 0x200 zerothread 12800 321189 0 0 3 0x14000 0x200 aiodoned aiodoned 90323 101849 0 0 3 0x14000 0x200 syncer update 83683 147594 0 0 3 0x14000 0x200 cleaner cleaner 19533 243449 0 0 3 0x14000 0x200 reaper reaper 5109 499217 0 0 3 0x14000 0x200 pgdaemon pagedaemon 50181 331423 0 0 3 0x14000 0x200 bored viomb 58157 494346 0 0 3 0x14000 0x40000200 acpi0 acpi0 22691 456879 0 0 3 0x14000 0x40000200 idle1 88837 32636 0 0 3 0x14000 0x200 bored softnet1 32743 111144 0 0 2 0x14000 0x200 softnet0 70784 67485 0 0 3 0x14000 0x200 smrbar systqmp 9423 388907 0 0 3 0x14000 0x200 bored systq 20788 186006 0 0 2 0x14000 0x200 softclockmp 96703 522401 0 0 3 0x14000 0x40000200 tmoslp softclock 28109 248814 0 0 3 0x14000 0x40000200 idle0 1 65807 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb{0}> show all locks Process 27846 (syz-executor) thread 0xffff800029932018 (518787) exclusive rrwlock inode r = 0 (0xffff800001c56b58) #0 witness_lock+0x632 #1 rw_do_enter_write+0x53e #2 rrw_enter+0xf0 #3 VOP_LOCK+0x17e #4 ufs_ihashins+0xda #5 ffs_vget+0x2e9 #6 ufs_lookup+0x15c1 #7 VOP_LOOKUP+0xda #8 vfs_lookup+0xfbd #9 namei+0xe19 #10 vn_open+0x240 #11 doopenat+0x460 #12 sys_open+0x86 #13 syscall+0x1089 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xffff800001c567e0) #0 witness_lock+0x632 #1 rw_do_enter_write+0x53e #2 rrw_enter+0xf0 #3 VOP_LOCK+0x17e #4 vn_lock+0xca #5 vfs_lookup+0x1f7 #6 namei+0xe19 #7 vn_open+0x240 #8 doopenat+0x460 #9 sys_open+0x86 #10 syscall+0x1089 #11 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff85d77a80) #0 witness_lock+0x632 #1 doopenat+0x445 #2 sys_open+0x86 #3 syscall+0x1089 #4 Xsyscall+0x128 Process 70784 (systqmp) thread 0xffff800045ffe298 (67485) shared rwlock systqmp r = 0 (0xffffffff852070f8) #0 witness_lock+0x632 #1 taskq_thread+0x1ba #2 proc_trampoline+0x10 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11057 12315K 12315K 166960K 12151 0 pcb 17 24K 24K 166960K 21 0 rtable 207 10K 11K 166960K 309 0 pf 34 22K 22K 166960K 45 0 ifaddr 39 10K 10K 166960K 41 0 ifgroup 55 2K 2K 166960K 55 0 sysctl 1 1K 13K 166960K 5 0 counters 70 42K 42K 166960K 70 0 ioctlops 0 0K 4K 166960K 1481 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1292 83K 83K 166960K 1364 0 UFS quota 1 36K 36K 166960K 1 0 UFS mount 5 44K 44K 166960K 5 0 shm 2 2K 6K 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 292K 166960K 11964 0 file desc 18 65K 93K 166960K 133 0 sigio 0 0K 0K 166960K 1 0 proc 69 128K 177K 166960K 537 0 subproc 72 9K 9K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 20K 20K 166960K 1 0 in_multi 79 5K 5K 166960K 79 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 1 0 ISOFS mount 1 36K 36K 166960K 1 0 MSDOSFS mount 1 20K 20K 166960K 1 0 ttys 37 263K 263K 166960K 37 0 exec 0 0K 2K 166960K 374 0 fusefs mount 1 36K 36K 166960K 1 0 tdb 3 1K 1K 166960K 3 0 VM swap 14 124K 124K 166960K 15 0 UVM amap 202 244K 261K 166960K 3024 0 UVM aobj 4 4K 4K 166960K 4 0 pinsyscall 1067 1715K 1724K 166960K 1270 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 24 1K 1K 166960K 24 0 temp 34 9162K 9176K 166960K 3811 0 kqueue 13 40K 44K 166960K 26 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 30 0 27 1 0 1 1 0 8 0 rtentry 176 96 0 1 5 0 5 5 0 8 0 unpcb 144 48 0 30 1 0 1 1 0 8 0 syncache 336 4 0 4 2 1 1 1 0 8 1 tcpcb 736 9 0 5 1 0 1 1 0 8 0 arp 136 18 0 0 1 0 1 1 0 8 0 inpcb 328 68 0 61 1 0 1 1 0 8 0 nd6 152 17 0 0 1 0 1 1 0 8 0 kcovpl 48 8 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 16 0 0 1 0 1 1 0 8 0 pfstkey 128 16 0 0 1 0 1 1 0 8 0 pfstate 448 16 0 0 2 0 2 2 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 371 0 0 24 0 24 24 0 8 0 art_table 40 372 0 0 4 0 4 4 0 8 0 art_node 32 96 0 8 1 0 1 1 0 8 0 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 1574 0 107 92 0 92 92 0 8 0 ffsino 296 1574 0 107 114 0 114 114 0 8 1 nchpl 144 1778 0 77 64 0 64 64 0 8 0 vnodes 216 1662 0 0 93 0 93 93 0 8 0 namei 1024 5385 0 5384 1 0 1 1 0 8 0 percpumem 16 51 0 0 1 0 1 1 0 8 0 kstatmem 264 27 0 0 2 0 2 2 0 8 0 scxspl 216 6628 0 6628 4 3 1 3 1 8 1 plimitpl 152 29 0 12 1 0 1 1 0 8 0 sigapl 424 450 0 402 7 0 7 7 0 8 0 knotepl 120 51 0 0 2 0 2 2 0 8 0 kqueuepl 224 87 0 13 5 0 5 5 0 8 0 pipepl 344 127 0 100 3 0 3 3 0 8 0 fdescpl 528 434 0 402 3 0 3 3 0 8 0 filepl 160 1638 0 1361 12 0 12 12 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 24 0 15 1 0 1 1 0 8 0 pgrppl 48 32 0 15 1 0 1 1 0 8 0 ucredpl 104 93 0 78 1 0 1 1 0 8 0 zombiepl 144 402 0 402 1 0 1 1 0 8 1 processpl 1232 450 0 402 5 0 5 5 0 8 1 procpl 664 464 0 412 5 0 5 5 0 8 0 sockpl 752 148 0 120 4 0 4 4 0 8 0 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 119 0 0 15 0 15 15 0 8 0 mcl2k 2048 18 0 0 3 0 3 3 0 8 0 mextrefs 64 18 0 0 1 0 1 1 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 119 0 0 8 0 8 8 0 8 0 bufpl 272 2310 0 106 147 0 147 147 0 8 0 anonpl 32 3900 0 0 32 0 32 32 0 222 0 amapchunkpl 152 8354 0 7977 18 0 18 18 0 158 1 amappl16 200 2087 0 2072 5 0 5 5 0 8 4 amappl15 192 9 0 8 1 0 1 1 0 8 0 amappl14 184 424 0 422 1 0 1 1 0 8 0 amappl13 176 122 0 110 1 0 1 1 0 8 0 amappl12 168 680 0 652 2 0 2 2 0 8 0 amappl11 160 6 0 5 1 0 1 1 0 8 0 amappl10 152 70 0 56 1 0 1 1 0 8 0 amappl9 144 274 0 273 1 0 1 1 0 8 0 amappl8 136 97 0 95 1 0 1 1 0 8 0 amappl7 128 164 0 151 1 0 1 1 0 8 0 amappl6 120 152 0 149 1 0 1 1 0 8 0 amappl5 112 120 0 109 1 0 1 1 0 8 0 amappl4 104 290 0 271 1 0 1 1 0 8 0 amappl3 96 1437 0 1347 3 0 3 3 0 8 0 amappl2 88 533 0 475 2 0 2 2 0 8 0 amappl1 80 10264 0 9663 15 0 15 15 0 8 1 amappl 88 2315 0 2184 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 435 0 403 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 435 0 403 1 0 1 1 0 8 0 vmmpekpl 168 5623 0 5591 2 0 2 2 0 8 0 vmmpepl 168 37605 0 35782 85 0 85 85 0 357 0 vmsppl 488 434 0 403 5 0 5 5 0 8 0 rwobjpl 80 14621 0 13632 23 0 23 23 0 8 0 pdppl 4096 879 0 806 97 10 87 87 0 8 14 pvpl 32 9293 0 0 76 1 75 75 0 265 0 pmappl 256 434 0 403 3 0 3 3 0 8 0 extentpl 40 47 0 29 1 0 1 1 0 8 0 phpool 120 406 0 14 12 0 12 12 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x17 panic(ffffffff8463738e) at panic+0x270 __asan_load4_noabort(ffffffff84ecbf54) at __asan_load4_noabort+0xa3 checkalias(ffff800001d28700,7fff) at checkalias+0x47d ffs_vinit(ffff800000d80800,ffff80003bb94120) at ffs_vinit+0x227 ffs_vget(ffff800000d80800,6659,ffff80003bb942e0) at ffs_vget+0x748 ufs_lookup() at ufs_lookup+0x15c1 VOP_LOOKUP(ffff800001c897d0,ffff80003bb94bc0,ffff80003bb94bf0) at VOP_LOOKUP+0xda vfs_lookup(ffff80003bb94b90) at vfs_lookup+0xfbd namei(ffff80003bb94b90) at namei+0xe19 vn_open(ffff80003bb94b90,81,0) at vn_open+0x240 doopenat(ffff800029932018,ffffff9c,200000001980,80,0,0,ffff80003bb94ef0) at doopenat+0x460 sys_open(ffff800029932018,ffff80003bb94ef0,ffff80003bb94e60) at sys_open+0x86 syscall(ffff80003bb94ef0) at syscall+0x1089 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb497a3989d0, count: -15 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x19: leave x86_ipi_db(ffff800028fe3ff0) at x86_ipi_db+0x19 x86_ipi_handler() at x86_ipi_handler+0x112 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff85d77280) at __mp_lock+0x272 ktrsysret(ffff800029912d08,5b,0,ffff8000299f0b80) at ktrsysret+0x14d syscall(ffff8000299f0c20) at syscall+0x473 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x77bc54dd3bf0, count: 8 ddb{1}> trace x86_ipi_db(ffff800028fe3ff0) at x86_ipi_db+0x19 x86_ipi_handler() at x86_ipi_handler+0x112 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff85d77280) at __mp_lock+0x272 ktrsysret(ffff800029912d08,5b,0,ffff8000299f0b80) at ktrsysret+0x14d syscall(ffff8000299f0c20) at syscall+0x473 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x77bc54dd3bf0, count: -7