last executing test programs: 647.694837ms ago: executing program 4 (id=5): r0 = semget$private(0x0, 0x4, 0x2) getgroups(0x0, &(0x7f00000000c0)) semop(r0, &(0x7f00000003c0)=[{0x0, 0x40, 0x1800}, {0x3, 0x0, 0x1000}], 0x2) r1 = openat$pf(0xffffffffffffff9c, &(0x7f0000001a40), 0x10, 0x0) sysctl$hw(&(0x7f0000000200)={0x6, 0x13}, 0x2, &(0x7f0000000240)="25800673526ca53e2d", &(0x7f0000000300)=0x9, &(0x7f0000000440), 0x0) ioctl$DIOCRCLRADDRS(r1, 0xc4504442, &(0x7f0000001e80)={{'./file0\x00', './file0\x00', 0x50}, 0x0, 0x0, 0x0, 0x40, 0xe, 0x80000001, 0xc, 0x2, 0xe}) nanosleep(&(0x7f00000000c0)={0x68045ddb}, &(0x7f0000000100)) getresuid(&(0x7f0000000000)=0x0, &(0x7f0000000080), &(0x7f0000000140)) setuid(r2) unveil(0x0, &(0x7f0000000040)='c\x00') 450.17666ms ago: executing program 3 (id=4): recvmmsg(0xffffffffffffffff, 0x0, 0x0, 0x1000, 0x0) r0 = openat$wsmuxmouse(0xffffffffffffff9c, &(0x7f0000000f00), 0x0, 0x0) closefrom(r0) (async) mknod(&(0x7f0000000000)='./file0\x00', 0x2000, 0x7) open(&(0x7f0000001980)='./file0\x00', 0x80, 0xc3) (async) r1 = openat$bpf(0xffffffffffffff9c, &(0x7f0000000040), 0x40, 0x0) mmap(&(0x7f0000ffe000/0x2000)=nil, 0x2000, 0x4, 0x2813, r1, 0x0) (async) socketpair$unix(0x1, 0x5, 0x0, 0x0) ioctl$TIOCSETAF(r0, 0x802c7416, &(0x7f0000000000)={0x6, 0x5, 0xff7ffec0, 0x80004a, "9012b30900", 0x0, 0x7}) (async) r2 = openat$bpf(0xffffffffffffff9c, &(0x7f0000000000), 0x80, 0x0) ioctl$BIOCSETF(r2, 0x80104267, &(0x7f0000000080)={0x3, &(0x7f0000000040)=[{0x1c, 0xb, 0x1, 0xfffffffe}, {0x7f, 0x3, 0x45, 0x3}, {0x6, 0xf, 0xe, 0x7}]}) ioctl$BIOCSETIF(r2, 0x8020426c, &(0x7f0000000440)={'tap', 0x0}) (async) r3 = openat$wsmuxkbd(0xffffffffffffff9c, &(0x7f0000000340), 0x20000, 0x0) recvfrom$unix(r3, &(0x7f00000000c0)=""/255, 0xff, 0x800, &(0x7f00000001c0)=@abs={0x6, 0x1, 0x0, 0x0}, 0x8) r4 = socket$inet6(0x18, 0x3, 0x7) ioctl$FIOGETOWN(r4, 0x40047477, &(0x7f0000003d00)) (async) execve(0x0, 0x0, 0x0) getgroups(0x7, &(0x7f00000002c0)=[0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]) setregid(r6, r5) (async) setgid(r5) (async) syz_emit_ethernet(0x2a, &(0x7f00000000c0)=ANY=[]) 332.748634ms ago: executing program 0 (id=1): sysctl$vfs_nfs(&(0x7f0000001d80)={0xa, 0x2, 0x2}, 0x3, &(0x7f0000001dc0), 0x0, 0x0, 0x0) r0 = openat$bpf(0xffffffffffffff9c, &(0x7f0000000000), 0x80, 0x0) ioctl$BIOCSETF(r0, 0x80104267, &(0x7f0000000080)={0x3, &(0x7f0000000040)=[{0x3, 0x65, 0x5, 0x5}, {0x80, 0x7, 0x4, 0x2}, {0xfffe, 0x7, 0x1c, 0x3}]}) ioctl$BIOCSETIF(r0, 0x8020426c, &(0x7f0000000440)={'tap', 0x0}) syz_emit_ethernet(0x2a, &(0x7f0000001600)=ANY=[]) mprotect(&(0x7f0000ffc000/0x4000)=nil, 0x4000, 0x4) sysctl$vfs_nfs(&(0x7f0000000000)={0xa, 0x2, 0x3}, 0x3, &(0x7f0000000040)="1544415d3e0edaf9a11fc40b636d37fe909adb98918178", &(0x7f0000000080)=0x17, &(0x7f00000000c0), 0x0) 312.77016ms ago: executing program 1 (id=2): pipe(&(0x7f0000000000)={0xffffffffffffffff}) ioctl$DRM_IOCTL_MODE_CREATE_LEASE(r0, 0x80047308, &(0x7f0000001840)={0x0, 0x0, 0x4, 0x0, 0xffffffffffffffff}) socket$inet(0x2, 0x5, 0x2f) closefrom(r1) open(&(0x7f0000000180)='./file0\x00', 0x200, 0x42) munmap(&(0x7f0000000000/0x9000)=nil, 0x9000) pipe2(0x0, 0x0) 240.15505ms ago: executing program 5 (id=6): r0 = openat$wskbd(0xffffffffffffff9c, &(0x7f0000000040), 0x1, 0x0) setsockopt$sock_timeval(0xffffffffffffffff, 0xffff, 0x1006, &(0x7f0000000000)={0x4, 0x1}, 0x10) mprotect(&(0x7f0000000000/0x400000)=nil, 0x400000, 0x1) sysctl$net_inet_tcp(&(0x7f0000000000)={0x4, 0x2, 0x6, 0x4}, 0x4, 0x0, 0x0, 0x0, 0x0) ioctl$WSKBDIO_GETENCODINGS(r0, 0xc0105715, &(0x7f00000000c0)={0x5c00859f5ef1abc3, 0x0}) r1 = socket$inet6(0x18, 0x2, 0x0) sendto$inet6(r1, 0x0, 0x0, 0x8, &(0x7f0000000800)={0x1c, 0x18, 0x2, 0xa, "00000000000000000000ffff00", 0xa}, 0x1c) mmap(&(0x7f0000ffa000/0x4000)=nil, 0x4000, 0x1, 0x1010, 0xffffffffffffffff, 0x4) openat$wskbd(0xffffffffffffff9c, &(0x7f0000000040), 0x1, 0x0) (async) setsockopt$sock_timeval(0xffffffffffffffff, 0xffff, 0x1006, &(0x7f0000000000)={0x4, 0x1}, 0x10) (async) mprotect(&(0x7f0000000000/0x400000)=nil, 0x400000, 0x1) (async) sysctl$net_inet_tcp(&(0x7f0000000000)={0x4, 0x2, 0x6, 0x4}, 0x4, 0x0, 0x0, 0x0, 0x0) (async) ioctl$WSKBDIO_GETENCODINGS(r0, 0xc0105715, &(0x7f00000000c0)={0x5c00859f5ef1abc3, 0x0}) (async) socket$inet6(0x18, 0x2, 0x0) (async) sendto$inet6(r1, 0x0, 0x0, 0x8, &(0x7f0000000800)={0x1c, 0x18, 0x2, 0xa, "00000000000000000000ffff00", 0xa}, 0x1c) (async) mmap(&(0x7f0000ffa000/0x4000)=nil, 0x4000, 0x1, 0x1010, 0xffffffffffffffff, 0x4) (async) 6.724936ms ago: executing program 1 (id=9): r0 = socket$inet(0x2, 0x5, 0x6) connect$inet(r0, &(0x7f0000000700)={0x10, 0x2, 0x0, 0x1}, 0x10) r1 = socket$inet6(0x18, 0x2, 0x0) open(&(0x7f0000000180)='./file0\x00', 0x19083084ca9cf73d, 0x2) r2 = open(&(0x7f0000000200)='./file0\x00', 0x9da, 0xc9) open$dir(&(0x7f00000002c0)='./file0\x00', 0x12, 0x3c) setsid() r3 = openat$bpf(0xffffffffffffff9c, &(0x7f0000000180), 0x40, 0x0) ioctl$BIOCSETIF(r3, 0x8020426c, &(0x7f00000001c0)={'tap', 0x0}) ioctl$BIOCGDIRFILT(r3, 0x4004426a, 0x0) r4 = syz_open_pts() r5 = dup2(r4, r4) syz_emit_ethernet(0x73, &(0x7f0000000080)=ANY=[@ANYBLOB="aaaaaaaaaaaa00000000000086dd6f15184a003d3a0100000000fe000000000017000000000054cd318c7e7974600108f43a1bc1bc6a840090780000"]) ioctl$TIOCSCTTY(r5, 0x20007461) ioctl$FIOASYNC(r4, 0x8004667d, &(0x7f0000000200)=0xb72) r6 = kqueue() ioctl$WSDISPLAYIO_GETPARAM(r2, 0xc0205759, &(0x7f0000000000)={0x3, 0x1eb, 0x3e, 0x6}) closefrom(r6) socket$inet6(0x18, 0x4, 0xea) pipe(&(0x7f0000000280)={0xffffffffffffffff}) open(&(0x7f0000000180)='./file0\x00', 0x20, 0x1de) ioctl$DRM_IOCTL_MODE_CREATE_LEASE(r7, 0x80047308, &(0x7f0000001840)={0x0, 0x0, 0x4, 0x0, 0xffffffffffffffff}) closefrom(r8) setsockopt(r1, 0x40000000, 0x13, 0x0, 0x0) closefrom(r1) shutdown(r0, 0x0) sched_yield() 6.304817ms ago: executing program 3 (id=10): socketpair$unix(0x1, 0x1, 0x0, &(0x7f0000000300)={0xffffffffffffffff}) lseek(r0, 0x2, 0x1) recvmmsg(r0, &(0x7f0000000900)={{0x0, 0x0, 0x0, 0x0, &(0x7f0000000840)=""/146, 0x92}, 0x5}, 0x38, 0x2042, 0x0) recvmmsg(r0, &(0x7f0000001080)={{0x0, 0x0, &(0x7f0000000ec0)=[{&(0x7f0000000940)=""/26, 0x1a}], 0x1, 0x0}, 0x2}, 0x38, 0x3000, 0x0) write(r0, &(0x7f0000000000)="570226869a08f514fea1", 0xa) execve(0x0, 0x0, 0x0) 5.817734ms ago: executing program 4 (id=11): lstat(&(0x7f0000000000)='./file0\x00', &(0x7f0000000040)={0x0, 0x0, 0x0, 0x0, 0x0}) stat(&(0x7f00000000c0)='./file0\x00', &(0x7f0000000100)={0x0, 0x0, 0x0, 0x0, 0x0, 0x0}) getsockopt$sock_cred(0xffffffffffffff9c, 0xffff, 0x1022, &(0x7f0000000180)={0x0, 0x0}, &(0x7f00000001c0)=0xc) semctl$IPC_SET(0xffffffffffffffff, 0x0, 0x1, &(0x7f0000000200)={{r0, r2, r4, 0xffffffffffffffff, 0x42, 0x9, 0x0, 0x0, 0x1}, 0x0, 0x7, 0x0, 0x0, 0x8, 0x0, 0x9}) r5 = semget(0x3, 0x7, 0x48) mkdir(&(0x7f0000000280)='./file0\x00', 0x184) ioctl$DIOCCLRSTATUS(0xffffffffffffff9c, 0xc0284416, &(0x7f0000000300)={'./file0\x00', &(0x7f00000002c0)=""/14, 0x6, 0x4, 0x8, 0xa9d4}) r6 = getgid() lstat(&(0x7f0000000340)='./file0\x00', &(0x7f0000000380)={0x0, 0x0, 0x0, 0x0, 0x0, 0x0}) lstat(&(0x7f0000000400)='./file0\x00', &(0x7f0000000440)={0x0, 0x0, 0x0, 0x0, 0x0, 0x0}) semctl$IPC_SET(r5, 0x0, 0x1, &(0x7f00000004c0)={{r4, r6, r7, r9, 0x4, 0x0, 0x0, 0x0, 0x3}, 0x0, 0x7, 0x0, 0x0, 0x12, 0x0, 0x9}) link(&(0x7f0000000540)='./file0\x00', &(0x7f0000000580)='./file0\x00') r10 = shmget$private(0x0, 0x4000, 0x20, &(0x7f0000ffb000/0x4000)=nil) r11 = socket$inet(0x2, 0x1000, 0xff) getsockopt$sock_timeval(r11, 0xffff, 0x1006, &(0x7f00000005c0), &(0x7f0000000600)=0x10) shmat(r10, &(0x7f0000ff9000/0x4000)=nil, 0x2000) pselect(0x40, &(0x7f0000000640)={0x4, 0x5, 0x3ff, 0x0, 0xf, 0x5}, &(0x7f0000000680)={0x9, 0x400, 0x26, 0x8, 0x8, 0x1, 0x1ff, 0x2}, &(0x7f00000006c0)={0x93d, 0x3, 0xf, 0x0, 0x6, 0x4, 0x10, 0x6}, &(0x7f0000000700)={0x9, 0x5}, &(0x7f0000000740)) pipe2(&(0x7f0000000780)={0xffffffffffffffff, 0xffffffffffffffff}, 0x10000) fchownat(r12, &(0x7f00000007c0)='./file0\x00', r0, r8, 0x2) ppoll(&(0x7f0000000800)=[{r13, 0x40}], 0x1, 0x0, &(0x7f0000000840)={0x3}) r14 = open$dir(&(0x7f0000000880)='./file0\x00', 0x80, 0x89) faccessat(r14, &(0x7f00000008c0)='./file0\x00', 0x391, 0x3) dup(r11) r15 = accept4(r13, &(0x7f0000000900)=@un=@abs, &(0x7f0000000940)=0x8, 0x2000) r16 = getpgid(r3) setsockopt$sock_cred(r15, 0xffff, 0x1022, &(0x7f0000000980)={r16, r1, r9}, 0xc) shmctl$IPC_STAT(r10, 0x2, &(0x7f00000009c0)=""/160) umask(0x1a8) stat(&(0x7f0000000a80)='./file0\x00', &(0x7f0000000ac0)) ioctl$DIOCGETQUEUES(0xffffffffffffffff, 0xc148445e, &(0x7f0000000b80)={0x7fff, 0xf, {'\x00', './file0\x00', './file0\x00', './file0\x00', {{0x7, 0x80}, {0x5, 0x2}, 0x5}, {{0x4, 0x8}, {0xc}, 0x3ff}, {{0x8000}, {0x912, 0x5}, 0x6}, {0x4, 0x8, 0x200, 0xca4}, 0x0, 0x8001, 0x6f, 0x7, 0xf1ef}}) 5.60926ms ago: executing program 2 (id=3): socketpair$unix(0x1, 0x2, 0x0, &(0x7f0000000000)={0xffffffffffffffff}) getsockopt$sock_int(r0, 0xffff, 0x1021, 0x0, 0x0) r1 = syz_open_pts() setsid() r2 = socket$inet6(0x18, 0x3, 0x7) sendto(r2, 0x0, 0x0, 0xc, &(0x7f0000000340)=@in6={0x1c, 0x18, 0x2, 0x29c, "ff04debd35231930af0000000000fe00", 0x100}, 0x1c) r3 = syz_open_pts() ioctl$TIOCCDTR(r1, 0x20007478) r4 = dup2(r3, r3) ioctl$TIOCSCTTY(r4, 0x20007461) write(r4, &(0x7f00000000c0)="cc9e9d30", 0x4) openat$vnd(0xffffffffffffff9c, &(0x7f0000000000), 0x40, 0x0) sysctl$kern(&(0x7f0000000000)={0x1, 0x55}, 0x1, 0x0, 0x0, 0x0, 0x39) mprotect(&(0x7f0000000000/0x400000)=nil, 0x400000, 0x1) sysctl$vfs_nfs(&(0x7f0000000000)={0xa, 0x2, 0x3}, 0x3, 0x0, 0x0, 0x0, 0x0) r5 = syz_open_pts() mmap(&(0x7f0000ffc000/0x2000)=nil, 0x2000, 0xd2d0d55e8ec39a2, 0x8010, 0xffffffffffffffff, 0xe0d) ioctl$TIOCSETA(r5, 0x802c7414, &(0x7f0000000040)={0x9, 0x8e8, 0x1, 0x0, "368612580a68e790c928a58b908fca59d8f21a9e", 0x9, 0x4}) 0s ago: executing program 6 (id=7): socketpair(0x0, 0x5, 0xf, 0x0) r0 = semget$private(0x0, 0x2, 0x5d0) semctl$IPC_RMID(r0, 0x0, 0x0) (async) semctl$IPC_RMID(r0, 0x0, 0x0) munmap(&(0x7f0000000000/0x9000)=nil, 0x9000) r1 = shmget$private(0x0, 0x3000, 0x2ea, &(0x7f0000ffd000/0x3000)=nil) shmat(r1, &(0x7f0000000000/0x800000)=nil, 0x1000) socket$inet(0x2, 0x3, 0x2) (async) r2 = socket$inet(0x2, 0x3, 0x2) setsockopt(r2, 0x0, 0x1e, &(0x7f0000000100)="9a355644", 0x4) sysctl$net_inet_ah(&(0x7f0000000040), 0xc, 0x0, 0x0, 0x0, 0x0) (async) sysctl$net_inet_ah(&(0x7f0000000040), 0xc, 0x0, 0x0, 0x0, 0x0) sysctl$kern(&(0x7f0000000000)={0x1, 0x4f}, 0x2, 0x0, 0x0, 0x0, 0x0) mprotect(&(0x7f0000000000/0x400000)=nil, 0x400000, 0x4) sysctl$kern(&(0x7f0000000000)={0x1, 0x3d}, 0x7, 0x0, 0x0, 0x0, 0x16) (async) sysctl$kern(&(0x7f0000000000)={0x1, 0x3d}, 0x7, 0x0, 0x0, 0x0, 0x16) sysctl$kern(&(0x7f0000000000)={0x1, 0x32}, 0x2, 0x0, 0x0, &(0x7f0000000100), 0x0) setrlimit(0x8, 0x0) shmat(r1, &(0x7f000041e000/0x3000)=nil, 0x1000) sendmmsg(r2, &(0x7f00000000c0)={{&(0x7f0000000000)=@in6={0x1c, 0x18, 0x1, 0x10000, "ac08897c30f6014c5142aa0594d3b919", 0x10}, 0x1c, &(0x7f0000000240)=[{&(0x7f0000000080)="8befc7", 0x3}, {&(0x7f0000000140)="2038c62b10c6107a309ec326421c56c643801584a326829ee25ee8bf541ca653c4f26c40511a340ce8b44db9f2ee70227c18ce1cfe04ee18d4d057b91b2b8e2a4c08448ac21ab7ab5ca6b3a21af25c7e4c4d1a128da23e6bb7fead544c8783b71e43a31d4722fe672356f13334c4c269ea55dda7671a746f1334301a6ea7965c4a08d791bd63189c48d702827b391ea964c72faaa8105a0fc101dff1aca3f1724c7ec42e2b2bd1bdebb4b525121e3c977e7be12c9f55c2976e640a9b2743d27553", 0xc1}], 0x2, &(0x7f0000000280)=ANY=[@ANYBLOB="6c0000000100000002000000a32cb1c82b350ed1573a9cdb348ff809c7304a43b33650dfae128473531ffa588d4fff5b608bee8975906d5c7979af2fc97fe189e7e3d7c029b7c3829247be78f1772db0748b9de0c800449aee858079d63e06f700"/108], 0x6c}}, 0x38, 0x4c1d6180511f3ccb) (async) sendmmsg(r2, &(0x7f00000000c0)={{&(0x7f0000000000)=@in6={0x1c, 0x18, 0x1, 0x10000, "ac08897c30f6014c5142aa0594d3b919", 0x10}, 0x1c, &(0x7f0000000240)=[{&(0x7f0000000080)="8befc7", 0x3}, {&(0x7f0000000140)="2038c62b10c6107a309ec326421c56c643801584a326829ee25ee8bf541ca653c4f26c40511a340ce8b44db9f2ee70227c18ce1cfe04ee18d4d057b91b2b8e2a4c08448ac21ab7ab5ca6b3a21af25c7e4c4d1a128da23e6bb7fead544c8783b71e43a31d4722fe672356f13334c4c269ea55dda7671a746f1334301a6ea7965c4a08d791bd63189c48d702827b391ea964c72faaa8105a0fc101dff1aca3f1724c7ec42e2b2bd1bdebb4b525121e3c977e7be12c9f55c2976e640a9b2743d27553", 0xc1}], 0x2, &(0x7f0000000280)=ANY=[@ANYBLOB="6c0000000100000002000000a32cb1c82b350ed1573a9cdb348ff809c7304a43b33650dfae128473531ffa588d4fff5b608bee8975906d5c7979af2fc97fe189e7e3d7c029b7c3829247be78f1772db0748b9de0c800449aee858079d63e06f700"/108], 0x6c}}, 0x38, 0x4c1d6180511f3ccb) openat(0xffffffffffffff9c, &(0x7f0000000300)='./file0\x00', 0x80, 0x17a) (async) r3 = openat(0xffffffffffffff9c, &(0x7f0000000300)='./file0\x00', 0x80, 0x17a) ioctl$DRM_IOCTL_MODE_OBJ_SETPROPERTY(r3, 0xc01864ba, &(0x7f0000000340)={0xffffffff, 0x0, 0x1}) kernel console output (not intermixed with test programs): Warning: Permanently added '10.128.1.74' (ED25519) to the list of known hosts. KASAN: invalid read of 8 bytes at 0xffff80003bbe04a0 from pc 0xffffffff81e7bb90 KASAN: first bad byte at 0xffff80003bbe04a4 (+4); shadow 0x04: partial granule (out-of-bounds) KASAN: pc: bioioctl+0x130 KASAN: call trace: #0 __asan_load8_noabort+0xbd #1 bioioctl+0x130 #2 VOP_IOCTL+0x131 #3 vn_ioctl+0x18c #4 sys_fcntl+0x9ee #5 syscall+0x1089 #6 Xsyscall+0x128 KASAN: shadow of 0xffff80003bbe0380..0xffff80003bbe0600 (1 cell = 8 bytes): 0xffff80003bbe0380: f3 f3 f3 f3 00 00 08 08 00 00 00 00 00 00 00 00 0xffff80003bbe0400: 00 00 00 00 08 08 08 08 00 00 00 00 00 00 00 00 >0xffff80003bbe0480: f1 f1 f1 f1[04]f2 00 00 00 f3 f3 f3 f3 f3 f3 f3 0xffff80003bbe0500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0xffff80003bbe0580: 00 00 00 00 00 00 00 00 08 08 08 08 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 ffff80003bbe04a0 size 8 op 0 Stopped at db_enter+0x17: popq %rbp TID PID UID PRFLAGS PFLAGS CPU COMMAND *291468 37259 0 0 0x4000000 0K syz-executor 145810 54549 0 0x2 0 1 syz-executor db_enter() at db_enter+0x17 panic(ffffffff846334c7) at panic+0x270 __asan_load8_noabort(ffff80003bbe04a0) at __asan_load8_noabort+0xde bioioctl(4f14,8004667c,ffff80003bbe04a0,3,ffff800039b12a88) at bioioctl+0x130 VOP_IOCTL(ffff800001b851b8,8004667c,ffff80003bbe04a0,3,ffff8000001192d8,ffff800039b12a88) at VOP_IOCTL+0x131 vn_ioctl(ffff800001b84188,8004667c,ffff80003bbe04a0,ffff800039b12a88) at vn_ioctl+0x18c sys_fcntl(ffff800039b12a88,ffff80003bbe0710,ffff80003bbe0680) at sys_fcntl+0x9ee syscall(ffff80003bbe0710) at syscall+0x1089 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd227b520190, count: 6 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 ffff80003bbe04a0 size 8 op 0 ddb{0}> trace db_enter() at db_enter+0x17 panic(ffffffff846334c7) at panic+0x270 __asan_load8_noabort(ffff80003bbe04a0) at __asan_load8_noabort+0xde bioioctl(4f14,8004667c,ffff80003bbe04a0,3,ffff800039b12a88) at bioioctl+0x130 VOP_IOCTL(ffff800001b851b8,8004667c,ffff80003bbe04a0,3,ffff8000001192d8,ffff800039b12a88) at VOP_IOCTL+0x131 vn_ioctl(ffff800001b84188,8004667c,ffff80003bbe04a0,ffff800039b12a88) at vn_ioctl+0x18c sys_fcntl(ffff800039b12a88,ffff80003bbe0710,ffff80003bbe0680) at sys_fcntl+0x9ee syscall(ffff80003bbe0710) at syscall+0x1089 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd227b520190, count: -9 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80003bbdfe70 rbx 0xffff80003bbdfee0 rdx 0 rcx 0xffffffff853a2ff0 cpu_info_full_primary+0x1ff0 rax 0xffff80000016ef00 r8 0x101010101010101 r9 0x8080808080808080 r10 0xffff80003bbdfc58 r11 0xffffffff814e1f30 x86_bus_space_io_read_1 r12 0xffffffff846334c7 db_machine_command_table+0x9b027 r13 0xffffffff853a3c08 cpu_info_full_primary+0x2c08 r14 0xffffffff853a3e07 cpu_info_full_primary+0x2e07 r15 0x1 rip 0xffffffff81006567 db_enter+0x17 cs 0x8 rflags 0x246 rsp 0xffff80003bbdfe70 ss 0x10 db_enter+0x17: popq %rbp ddb{0}> show proc PROC (syz-executor) tid=291468 pid=37259 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=0xffff800039b13250,0xffff800039b12568 process=0xffff800045ff1d00 user=0xffff80003bbd5000, vmspace=0xffff800001b09d78 estcpu=36, cpticks=14, pctcpu=0.0, user=0, sys=14, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 48582 486269 36503 0 2 0 syz-executor 37259 440600 99849 0 2 0 syz-executor *37259 291468 99849 0 7 0x4000000 syz-executor 52797 141516 82841 0 2 0 syz-executor 52797 168522 82841 0 3 0x4000080 fsleep syz-executor 13328 469307 90538 0 2 0 syz-executor 13328 299805 90538 0 3 0x4000088 kqread syz-executor 13328 264859 90538 0 2 0x4000000 syz-executor 37121 123206 87749 0 2 0xc80 syz-executor 37121 449668 87749 0 3 0x4000080 sbwait syz-executor 37121 111575 87749 0 3 0x4000080 sbwait syz-executor 37121 98146 87749 0 3 0x4000080 fsleep syz-executor 32908 437450 54549 0 2 0x1 syz-executor 32908 416789 54549 0 3 0x4000081 lockf syz-executor 32908 222158 54549 0 3 0x4000081 lockf syz-executor 32908 20485 54549 0 3 0x4000081 fsleep syz-executor 77165 12483 1 0 3 0x82 nanoslp getty 36503 238977 85788 0 2 0xc82 syz-executor 82841 513117 85788 0 2 0xc82 syz-executor 63145 139509 85788 0 2 0x2 syz-executor 90538 347201 85788 0 2 0xc82 syz-executor 87749 426148 85788 0 2 0x2 syz-executor 92188 194889 85788 0 2 0xc82 syz-executor 54549 145810 85788 0 7 0x2 syz-executor 99849 105556 85788 0 2 0xc82 syz-executor 85788 197835 64000 0 3 0x82 kqread syz-executor 64000 294459 57070 0 3 0x10008a sigsusp ksh 57070 95740 21800 0 3 0x98 kqread sshd-session 21800 84394 46077 0 3 0x92 kqread sshd-session 46077 343809 1 0 3 0x88 kqread sshd 50328 266392 77693 74 2 0x1100092 pflogd 77693 93482 1 0 3 0x80 sbwait pflogd 22686 148362 87305 73 2 0x1100090 syslogd 87305 467837 1 0 3 0x100082 sbwait syslogd 42959 326405 1 0 3 0x100080 kqread resolvd 68379 134958 1927 77 3 0x100092 kqread dhcpleased 35487 24097 1927 77 3 0x100092 kqread dhcpleased 1927 16670 1 0 3 0x80 kqread dhcpleased 32485 461867 0 0 2 0x40014200 smr 26762 522862 0 0 2 0x14200 zerothread 33567 81787 0 0 3 0x14200 aiodoned aiodoned 49238 343920 0 0 3 0x14200 syncer update 16433 76298 0 0 3 0x14200 cleaner cleaner 76810 422148 0 0 3 0x14200 reaper reaper 87261 131349 0 0 3 0x14200 pgdaemon pagedaemon 60917 516044 0 0 3 0x14200 bored viomb 25967 83245 0 0 3 0x40014200 acpi0 acpi0 54155 419488 0 0 3 0x40014200 idle1 42050 272523 0 0 3 0x14200 bored softnet1 21082 454887 0 0 3 0x14200 bored softnet0 35106 354456 0 0 3 0x14200 smrbar systqmp 32219 109787 0 0 3 0x14200 bored systq 97207 257069 0 0 3 0x14200 tmoslp softclockmp 62302 319931 0 0 2 0x40014200 softclock 43977 281382 0 0 3 0x40014200 idle0 1 263376 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 37259 (syz-executor) thread 0xffff800039b12a88 (291468) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff85d533c0) #0 witness_lock+0x632 #1 vn_ioctl+0x9e #2 sys_fcntl+0x9ee #3 syscall+0x1089 #4 Xsyscall+0x128 Process 35106 (systqmp) thread 0xffff800045ffe000 (354456) shared rwlock systqmp r = 0 (0xffffffff85403f18) #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 11062 12387K 12387K 166960K 12160 0 pcb 17 24K 24K 166960K 19 0 rtable 237 12K 13K 166960K 351 0 pf 34 22K 22K 166960K 45 0 ifaddr 43 12K 12K 166960K 45 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 1484 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1292 83K 83K 166960K 1366 0 UFS quota 1 36K 36K 166960K 1 0 UFS mount 5 44K 44K 166960K 5 0 shm 3 6K 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 17 61K 97K 166960K 142 0 proc 69 128K 177K 166960K 560 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 99 7K 7K 166960K 99 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 2 0 ISOFS mount 1 36K 36K 166960K 1 0 MSDOSFS mount 1 20K 20K 166960K 1 0 ttys 49 344K 344K 166960K 49 0 exec 0 0K 2K 166960K 385 0 fusefs mount 1 36K 36K 166960K 1 0 tdb 3 1K 1K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 224 268K 293K 166960K 3097 0 UVM aobj 4 4K 4K 166960K 4 0 pinsyscall 42 84K 112K 166960K 1302 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 28 2K 2K 166960K 28 0 temp 34 9162K 9176K 166960K 3916 0 kqueue 14 44K 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 33 0 30 1 0 1 1 0 8 0 rtentry 176 111 0 1 5 0 5 5 0 8 0 unpcb 144 45 0 26 1 0 1 1 0 8 0 syncache 336 4 0 4 2 1 1 1 0 8 1 tcpcb 736 8 0 4 1 0 1 1 0 8 0 arp 136 18 0 0 1 0 1 1 0 8 0 inpcb 328 70 0 62 1 0 1 1 0 8 0 nd6 152 24 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 17 0 0 1 0 1 1 0 8 0 pfstkey 128 17 0 0 1 0 1 1 0 8 0 pfstate 448 17 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 453 0 0 29 0 29 29 0 8 0 art_table 40 454 0 0 5 0 5 5 0 8 0 art_node 32 111 0 10 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 1575 0 102 93 0 93 93 0 8 0 ffsino 296 1575 0 102 114 0 114 114 0 8 0 nchpl 144 1778 0 71 64 0 64 64 0 8 0 vnodes 216 1667 0 0 93 0 93 93 0 8 0 namei 1024 5477 0 5477 1 0 1 1 0 8 1 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 6501 0 6501 3 2 1 2 1 8 1 plimitpl 152 30 0 13 1 0 1 1 0 8 0 sigapl 424 460 0 413 7 0 7 7 0 8 1 knotepl 120 52 0 0 2 0 2 2 0 8 0 kqueuepl 224 23 0 13 1 0 1 1 0 8 0 pipepl 344 129 0 101 3 0 3 3 0 8 0 fdescpl 528 444 0 413 3 0 3 3 0 8 0 filepl 160 1614 0 1391 10 0 10 10 0 8 0 lockfpl 104 11 0 6 1 0 1 1 0 8 0 lockfspl 48 6 0 3 1 0 1 1 0 8 0 sessionpl 144 27 0 16 1 0 1 1 0 8 0 pgrppl 48 35 0 16 1 0 1 1 0 8 0 ucredpl 104 96 0 83 1 0 1 1 0 8 0 zombiepl 144 414 0 413 1 0 1 1 0 8 0 processpl 1232 460 0 413 5 0 5 5 0 8 0 procpl 664 481 0 424 6 0 6 6 0 8 0 sockpl 752 148 0 118 4 0 4 4 0 8 0 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 115 0 0 15 0 15 15 0 8 0 mcl2k 2048 17 0 0 3 0 3 3 0 8 0 mextrefs 64 17 0 0 1 0 1 1 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 145 0 0 9 0 9 9 0 8 0 bufpl 272 2312 0 105 148 0 148 148 0 8 0 anonpl 32 3812 0 0 31 0 31 31 0 222 0 amapchunkpl 152 8474 0 8038 19 0 19 19 0 158 0 amappl16 200 1798 0 1782 5 1 4 5 0 8 3 amappl15 192 4 0 3 1 0 1 1 0 8 0 amappl14 184 434 0 433 1 0 1 1 0 8 0 amappl13 176 123 0 111 1 0 1 1 0 8 0 amappl12 168 714 0 685 2 0 2 2 0 8 0 amappl11 160 10 0 9 1 0 1 1 0 8 0 amappl10 152 68 0 54 1 0 1 1 0 8 0 amappl9 144 320 0 320 1 1 0 1 0 8 0 amappl8 136 100 0 98 1 0 1 1 0 8 0 amappl7 128 150 0 137 1 0 1 1 0 8 0 amappl6 120 157 0 156 1 0 1 1 0 8 0 amappl5 112 102 0 92 1 0 1 1 0 8 0 amappl4 104 290 0 271 1 0 1 1 0 8 0 amappl3 96 1515 0 1413 3 0 3 3 0 8 0 amappl2 88 549 0 492 2 0 2 2 0 8 0 amappl1 80 10573 0 9976 16 0 16 16 0 8 2 amappl 88 2367 0 2216 4 0 4 4 0 92 0 uvmvnodes 80 100 0 0 3 0 3 3 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 445 0 414 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 445 0 414 1 0 1 1 0 8 0 vmmpekpl 168 5749 0 5712 2 0 2 2 0 8 0 vmmpepl 168 38299 0 36441 89 0 89 89 0 357 3 vmsppl 488 444 0 414 5 0 5 5 0 8 0 rwobjpl 80 14695 0 13705 26 0 26 26 0 8 3 pdppl 4096 899 0 828 99 10 89 89 0 8 18 pvpl 32 9754 0 0 79 0 79 79 0 265 0 pmappl 256 444 0 414 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 415 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(ffffffff846334c7) at panic+0x270 __asan_load8_noabort(ffff80003bbe04a0) at __asan_load8_noabort+0xde bioioctl(4f14,8004667c,ffff80003bbe04a0,3,ffff800039b12a88) at bioioctl+0x130 VOP_IOCTL(ffff800001b851b8,8004667c,ffff80003bbe04a0,3,ffff8000001192d8,ffff800039b12a88) at VOP_IOCTL+0x131 vn_ioctl(ffff800001b84188,8004667c,ffff80003bbe04a0,ffff800039b12a88) at vn_ioctl+0x18c sys_fcntl(ffff800039b12a88,ffff80003bbe0710,ffff80003bbe0680) at sys_fcntl+0x9ee syscall(ffff80003bbe0710) at syscall+0x1089 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd227b520190, count: -9 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x19: leave x86_ipi_db(ffff800028ff3ff0) at x86_ipi_db+0x19 x86_ipi_handler() at x86_ipi_handler+0x112 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff85d52bc0) at __mp_lock+0x272 syscall(ffff800029a00320) at syscall+0x1048 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x79eaace3f120, count: 9 ddb{1}> trace x86_ipi_db(ffff800028ff3ff0) at x86_ipi_db+0x19 x86_ipi_handler() at x86_ipi_handler+0x112 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff85d52bc0) at __mp_lock+0x272 syscall(ffff800029a00320) at syscall+0x1048 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x79eaace3f120, count: -6