last executing test programs: 512.322518ms ago: executing program 3 (id=4): sched_yield() ioctl$TIOCSTART(0xffffffffffffff9c, 0x2000746e) sched_yield() ioctl$DRM_IOCTL_PRIME_HANDLE_TO_FD(0xffffffffffffffff, 0xc00c642d, &(0x7f0000000000)={0x401, 0xc, 0xffffffffffffffff}) ioctl$TIOCSCTTY(r0, 0x20007461) sched_yield() ioctl$TIOCSETAF(r0, 0x802c7416, &(0x7f0000000040)={0x3, 0x6, 0xa, 0x4, "3843145070c739ba78c103b8613e1047d196f6b6", 0xbccf, 0x9000000}) mquery(&(0x7f0000ffd000/0x2000)=nil, 0x2000, 0x0, 0x0, r0, 0x1d3d) ioctl$DRM_IOCTL_MODE_ATOMIC(r0, 0xc03864bc, &(0x7f0000000180)={0x401, 0x3, &(0x7f0000000080)=[0x0, 0x9, 0x76], &(0x7f00000000c0)=[0x2, 0x1ffe0000, 0x200, 0x4], &(0x7f0000000100)=[0x9f1f, 0x9, 0x11, 0x6], &(0x7f0000000140)=[0x9, 0x80, 0x0], 0x0, 0x5}) getpeername$inet6(r0, &(0x7f00000001c0), &(0x7f0000000200)=0x1c) r1 = openat(r0, &(0x7f0000000240)='./file0\x00', 0x8000, 0x48) ioctl$DRM_IOCTL_MODE_GETFB(r0, 0xc01c64ad, &(0x7f0000000280)={0x0, 0x6, 0x40, 0x2, 0x8, 0x5, 0x0}) ioctl$DRM_IOCTL_MODE_CURSOR(r0, 0xc01c64a3, &(0x7f00000002c0)={0x1, 0x0, 0x1, 0x0, 0x0, 0x9, r3}) sched_yield() pwritev(r0, &(0x7f00000003c0)=[{&(0x7f0000000300)="38b492b189748568b77df3e67cb00301cf5316a22271c91a521e131d33d6b4b123e6db6d128cff6186bab986d5dbfd1da016941134966813aa6c42", 0x3b}, {&(0x7f0000000340)="2c61d800f7fe0fd4fd32e18a1d2c280df153d7082769a88e8039f19fa2e112ac11c6ee8bbbca59e0c80d5e6eec61afabc9ebd0ad581dbe182b14f428e9103d4e35c4602235c70503c5f79906eeb7bb6da95a7c8e06d131cf498c913fcaa3caa669ae8063dc", 0x65}], 0x2, 0xffff) rename(&(0x7f0000000400)='./file0\x00', &(0x7f0000000440)='./file0\x00') ioctl$TIOCSTAT(r1, 0x20007465) r4 = openat$dri(0xffffffffffffff9c, &(0x7f0000000480)='/dev/dri/card0\x00', 0x800, 0x0) ioctl$DRM_IOCTL_MODE_GETRESOURCES(r1, 0xc04064a0, &(0x7f00000005c0)={&(0x7f00000004c0)=[0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0], &(0x7f0000000500)=[0x0, 0x0, 0x0], &(0x7f0000000540)=[0x0, 0x0, 0x0], &(0x7f0000000580)=[0x0], 0x7, 0x3, 0x3, 0x1, 0xa, 0x7, 0x8, 0x8}) ioctl$DRM_IOCTL_MODE_GETCONNECTOR(r0, 0xc05064a7, &(0x7f0000000880)={&(0x7f0000000600)=[0x0], &(0x7f0000000640)=[{}, {}, {}, {}, {}, {}], &(0x7f0000000800)=[0x0, 0x0, 0x0, 0x0, 0x0], &(0x7f0000000840)=[0x0], 0x6, 0x5, 0x1, 0x0, 0x0, 0x10, 0x6d7, 0x4, 0xa2c7, 0x0, 0x8}) ioctl$DRM_IOCTL_MODE_GETRESOURCES(r0, 0xc04064a0, &(0x7f0000000a00)={&(0x7f0000000900)=[0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0], &(0x7f0000000940)=[0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0], &(0x7f0000000980)=[0x0, 0x0, 0x0, 0x0], &(0x7f00000009c0)=[0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0], 0x8, 0x9, 0x4, 0x7, 0xffffffff, 0x10, 0x4, 0x8}) ioctl$DRM_IOCTL_MODE_SETPLANE(r1, 0xc03064b7, &(0x7f0000000a80)={0x0, 0x0, r2, 0xff, 0x6, 0x4, 0x8a9, 0x6, 0xfffffff9, 0x2, 0x101, 0xfffffffe}) ioctl$DRM_IOCTL_MODE_SETCRTC(r4, 0xc06864a2, &(0x7f0000000ac0)={&(0x7f0000000a40)=[r5, r6, r7], 0x3, r8, r2, 0x0, 0x8, 0xffff7cdc, 0x1000, {0x708, 0x40, 0x8, 0x5, 0x72, 0x800, 0x8, 0xffff, 0x5d93, 0x7f, 0x5, 0x400, 0x264010, 0x68, "5b0d83edc1fce9d654e2e4ee6f03ca8b13888e4d28f2b1cfa56ef35ae91429d2"}}) ioctl$TIOCCHKVERAUTH(r0, 0x2000741e) ioctl$DRM_IOCTL_PRIME_HANDLE_TO_FD(r4, 0xc00c642d, &(0x7f0000000b40)={0x5, 0x9, r4}) flock(r9, 0x0) ioctl$DIOCGETRULESETS(r1, 0xc444443a, &(0x7f0000000b80)={0x9, './file0\x00', './file0\x00'}) ioctl$DRM_IOCTL_GET_MAGIC(r0, 0x40046402, &(0x7f0000001000)={0x0}) ioctl$DRM_IOCTL_AUTH_MAGIC(0xffffffffffffff9c, 0x80046411, &(0x7f0000001040)={r10}) fstat(r0, &(0x7f0000001080)) 445.282512ms ago: executing program 6 (id=7): r0 = open$dir(&(0x7f0000000080)='./file0\x00', 0xae828e137847f62, 0x0) setrlimit(0x1, &(0x7f0000000000)={0xfffffffffffffffd, 0xffffffffffffffff}) r1 = socket(0x2, 0x2, 0x0) connect$inet(r1, &(0x7f0000000280)={0x10, 0x2, 0x3}, 0x10) sendmmsg(r1, &(0x7f00000002c0)={{0x0, 0x0, 0x0, 0x0, &(0x7f0000000300)=ANY=[@ANYBLOB="280000000100ff3e01000000e4da48eb3594c01c236b7de5f3ab2be9b62058ce53ffb5e849000000c0"], 0xe8}}, 0x38, 0x4) r2 = socket$inet(0x2, 0x3, 0x1) connect$inet(r2, &(0x7f0000000240)={0x10, 0x2, 0x1, 0x80}, 0x10) closefrom(r2) ftruncate(r0, 0x40000000007) sysctl$kern(&(0x7f0000000040)={0x1, 0x50}, 0x3, &(0x7f0000000100)="71f91e3471ac0058bc5a91501d94a34b8e5f84cf71b59c7afec37082", &(0x7f0000000140)=0xfe10, 0x0, 0x37) sysctl$kern(&(0x7f0000000180)={0x1, 0x45}, 0x3, &(0x7f00000001c0)="71f91eca6e530c79e2f8e2a2ce3471ac0058bc5a91501d94a34bfec38a820600000000000000dc0225f0e4cf52b7d99d15d923", &(0x7f0000000200)=0x1232, 0x0, 0xfffffffffffffe4d) truncate(&(0x7f00000000c0)='./file0\x00', 0x7001000003) 433.392992ms ago: executing program 0 (id=1): pledge(&(0x7f00000001c0)='tty V\xd9\x86\xce3|#\xcb\x13\x12\xe0\r\x9c\xe6\x98\x0f\x01\xc2\xe7\xb9E\xc3\x1d\x96\xdbY\x91\x0e\x17\x95?(\x01\xa6~\xd0|\x02\x00\x00\x00k\xbe\xa9kG\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\xeb\x91rr)\\\x9elO\x91\x10\x19\x9a\x057\xabT\xb4B\x95a+J\x8bx\xb3S\x1fTKl-\xb2\x15\xb6\t\x15\x01\xd1\x98g\xb5\xdd\xcc\xb0\xd5F\x80> \xee\xca\xacv?ks\xb2\xc0\x1f\xb0\x9eT$`\x9am\x94\x94\x1fQ\xe7\x8fL\x11\x8e[N\x8e\x1f\xb5\xac\x11*\xc9\xc5d\x91\xe9\xc6;I\xcfZ>|\xbac\xf8Y\by\x1f!\nV\xb2\xf9\x917\fR\xc4\xba\x9b\x1dM&*\xf3{+\xf6:+nE$\x839o\x9e\xf9\xd8\x12\xe0t\xb4\xa0\"s\xa6\x15\v\x89\xf4\x10.J\b\xaa\x86p\x11_\xd3eTJ\xa9\x1e\x82l\xba\xda\xc1\xbeb\xf8\x8a\x1796\x84W\x9b3\xa5\xd2\xc9\xce\x90\xb2\x8bj\xb3\xc5\xf4\x13\xb4\xcc!\xbd\xc6\xf2\x8c\xad\xae\x169\x81\xb6\xcd\xa9\xdd~\xc4\xc2\x86?M\xa9\x7fw\xad\xefRG2JI\xceR\xaa4\x02kgQWC\xd3V\xc4\xacg\x96[\"/\x8fN\xe4\xf5\xe3\x19*8\xaf\xdb%\xad\x97J8\xa9\xa2\xc6\xee\x94\x80k\xffP\x98\xc7W\x89\xbf\x04\xc7\xa3\xd7d\xb7,\x04\x83\xef\xf52v\xc0h\xb7\xdfUf\xa2?\x0fx\xf9\xc3G\x85lh,\x16\x8an\x10\xc0\xe4f\x15n\vFL\xf3t\xe90\xae&\x19\v;\xe9\xf8\x019\xac\x9c\b\xe0Y1\xdc\"{\x16L-:5D^\x13\xc9>\xda\x12\x98\xac\xec`Yr\xd4\xb1\xbep\xfeA\x13\xe5\xd8\xb5\x19\xd7LE\x11%\xed\x17\xe0\xdc@\xfa\xd5\x14!j\xeeh\xd0\xc52\rC\x14\x1e9\xbe\x15H\xfft\x83\x1a\x88\x80j/\xca\x1a\xa2\xb9\x00\xe6\xcdP\xff\x96V\xe6\xdc\x19\xbe\xbf\xe63+\x7f\x13]\x85w\x19\x9e\xe3\xf2\xa3\x1bT\xf4\x9a\xc6\xf4y\x1aps\xd1\xe4\a\n@\xe9h\xda\xe7gT\xb6qm\xb9\xc0<\x87\x85\x99\xf1X\x03\xf43\x17W\x80,\xf6\xae\r\xfcFd-|w\xa7\xec\x83v6Fd\xb2\xd2r\rI4N2@0\xc26 \xf9v2#\x00I(\xc4\x1b \xd2w\xb0\xca\x98\x86t\x81\x88bm\xb2\x16O<\xc0\xe0\xa3\x1cR\x98\xaa\xfe{k\xad\x99\x90\x9d\x02\'Z\x18V\xb7<\xd2\x81\x92\x9d\xf6\xbf\x88\a[p\tq\x14O\x0e\x1b\x01\x90\x0e\a\xfb', 0x0) open(&(0x7f0000000080)='./file0\x00', 0x615, 0x166) getthrid() r0 = socket(0x10, 0x2, 0x0) setsockopt(r0, 0x1000000029, 0x39, &(0x7f00000000c0)="5ab7776a", 0x4) kqueue() fstat(0xffffffffffffffff, &(0x7f0000000980)={0x0, 0x0, 0x0, 0x0, 0x0, 0x0}) pipe2(&(0x7f0000000600)={0xffffffffffffffff, 0xffffffffffffffff}, 0x0) readv(r3, &(0x7f0000000640)=[{&(0x7f0000000680)=""/41, 0x29}], 0x1) fcntl$setstatus(r4, 0x4, 0x4) writev(r4, &(0x7f0000000940)=[{&(0x7f0000000540)="e8eb02ea5e0c5db928699fa7e67177883b3c024e032bd8f4333e000000000000000000", 0x23}, {&(0x7f0000000580)="8c6e557457eb1660bf07ef6ca735cf8ca47f6816fb7baad1f880998ea69e3a6c3a1e60bdffaa7a10", 0x28}, {&(0x7f00000006c0)="a4b12ca0b403b8854730a615d8510d0ca160e25e2c16500a8b72699d55f4efc4cc9f4197f6dc925b867406a7a6ba1d850f60844d83cf39cd44db9f17b79c21e78d80e05783b8cb0a", 0x48}, {&(0x7f0000000900)="e7b99242ae900cf8541fa87fc166ac2aaadb6f80b605387c89c1d35f74573319f16528c9", 0x24}], 0x4) socketpair$unix(0x1, 0x2, 0x0, &(0x7f0000000500)={0xffffffffffffffff, 0xffffffffffffffff}) r6 = kqueue() kevent(r6, &(0x7f0000000740), 0x96, &(0x7f0000000780), 0xfffa4961, 0x0) sysctl$kern(&(0x7f00000007c0)={0x1, 0x42}, 0x6, 0x0, 0x0, 0x0, 0x0) getsockopt$sock_cred(r5, 0xffff, 0x1022, &(0x7f0000000000)={0x0, 0x0, 0x0}, &(0x7f00000004c0)=0xc) setresgid(r8, r8, r7) setsockopt$sock_cred(r0, 0xffff, 0x1022, &(0x7f00000005c0)={r1, r2, r8}, 0xc) mknod(&(0x7f0000000780)='./file0\x00', 0x2000, 0x0) r9 = open(&(0x7f0000000800)='./file0\x00', 0x80, 0x38) ioctl$TIOCSWINSZ(r9, 0x80087467, &(0x7f0000000840)={0x8001, 0x4008, 0x803, 0x9}) ktrace(&(0x7f0000000440)='.\x02/file0\x00', 0x4, 0x12c, r8) sysctl$net_inet_etherip(&(0x7f0000000740)={0x4, 0x2, 0x6c, 0x2}, 0x4, 0x0, 0x0, 0x0, 0x0) setresuid(0x0, 0x0, 0xee00) ktrace(&(0x7f0000000100)='./file0\x00', 0x2, 0x40001338, 0x0) openat$null(0xffffffffffffff9c, &(0x7f0000000480), 0x8, 0x0) syz_open_pts() pipe(&(0x7f0000000040)) mprotect(&(0x7f0000ffe000/0x1000)=nil, 0x1000, 0x4) sysctl$kern(&(0x7f0000000140)={0x1, 0x4d}, 0x2, 0x0, 0x0, &(0x7f0000000180)="02000000", 0x4) 227.026395ms ago: executing program 3 (id=9): mprotect(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x5) r0 = socket$inet(0x2, 0x8003, 0x0) setsockopt(r0, 0x0, 0x21, &(0x7f0000000000)="15337ac0", 0x4) r1 = socket(0x11, 0x3, 0x0) sendto$unix(r1, &(0x7f00000000c0)="b10005010000009f05003f0107000000211c13fecea79c5dfaf66e8d0300000000000000fdef3044d2d236acf20bf404be01000000f7c8cf5f8823297be1aa0504000051e2f0ad3ebbc25769a51f139b672f305c22db830c032bfa896443c32618210000720fd38bdb0000fd54c125191b1257aea8c500001602fbfe0c2300008abf090000000008e3e56f382a2bae021a0052fbe03f49b11b7aaeb70000fca65361ba84913f0100000000000006000000", 0xb1, 0x4, 0x0, 0x0) mprotect(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x5) mknod(&(0x7f00000002c0)='./file0\x00', 0x2000, 0x412dff) open$dir(&(0x7f0000000380)='./file0\x00', 0x6, 0x90) select(0x40, &(0x7f00000003c0)={0x8, 0x3ff, 0x0, 0x0, 0x0, 0x0, 0x8000000000000000, 0x8}, &(0x7f0000000400)={0xffb, 0x0, 0x6, 0x0, 0x0, 0x0, 0x2}, 0x0, 0x0) select(0x40, &(0x7f0000000440)={0x9, 0x3ff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x7}, &(0x7f0000000480)={0xffb, 0x0, 0xfffffffffffffffa, 0x0, 0x0, 0x0, 0x2}, 0x0, 0x0) r2 = semget$private(0x0, 0x4, 0x10) semop(r2, &(0x7f0000000280)=[{0x0, 0x4, 0x1000}, {0x2, 0x33bb, 0x1000}], 0x2) sysctl$vfs_nfs(&(0x7f0000000040)={0xa, 0x2, 0x3}, 0x3, &(0x7f0000000180)="00eb961e42b4a2010d85a5e93ce231ba09a34a68941eeefddd88bed90b62ecb69fbea05b09360ca705b2395a3f807c80d927a21ab0c4353067af98ef9e2d6583c2e00e3e153a7d4da2196e1e72d1e0f4be7dd7ba45e1fb62534dd06c1ccb73dd595d1a9581b5a79cfed41d995ffe51c9b782566ba95e3dec75394766f45c3666cd179eb01bf83481c3584bf771effbd9899ada7f005f744f3055a3f684edda5a4775bc8df0732816c1c67c763fc61e35814ed658a7bcf671ef03e8b87f8824713ae4ae5c43d33ef8cb551febd4a99fe91f5f04795e3d02207fa2db6f6f0e437a309b", &(0x7f0000000080)=0xe2, &(0x7f0000000300)="830d12f137ba5cbe9fa45514a91f737ba2b1a3b84547e76b2853e03627df84cebfc64c0f1da1dae550eb5df7a4094cf1034051839bf27d7503ef8f2fd06ee48464f3973c3c7f1ed344511476da1b02452b9ac35b5728b11ae88c11c77503a6c09b0ec93ce45fb693d09754e635b644dc1e6e38541f71817d86558959c654", 0x7e) 226.354772ms ago: executing program 2 (id=3): sysctl$vfs_nfs(&(0x7f0000000280)={0xa, 0x2, 0x2}, 0x3, &(0x7f00000002c0), 0x0, &(0x7f0000000340), 0x0) mprotect(&(0x7f0000ffc000/0x2000)=nil, 0x2000, 0x0) 225.800305ms ago: executing program 4 (id=5): open(&(0x7f0000000380)='./file0\x00', 0x80000000000206, 0x4ebfac6bbaf7949) (async) r0 = open(&(0x7f0000000380)='./file0\x00', 0x80000000000206, 0x4ebfac6bbaf7949) setsockopt$inet6_MRT6_DEL_MFC(r0, 0x29, 0x69, &(0x7f0000000080)={{0x1c, 0x18, 0x0, 0x6, "0d2fe8a33cdb531a7408f4eb4f98cd66", 0x1}, {0x1c, 0x18, 0x3, 0x9, "946d3e309718bc1fdfd5095db7f37e02", 0x100}, 0x7, [0x2, 0x8001, 0xffffffff, 0x7, 0x8, 0x9, 0x4, 0xffffffff]}, 0x5c) (async) setsockopt$inet6_MRT6_DEL_MFC(r0, 0x29, 0x69, &(0x7f0000000080)={{0x1c, 0x18, 0x0, 0x6, "0d2fe8a33cdb531a7408f4eb4f98cd66", 0x1}, {0x1c, 0x18, 0x3, 0x9, "946d3e309718bc1fdfd5095db7f37e02", 0x100}, 0x7, [0x2, 0x8001, 0xffffffff, 0x7, 0x8, 0x9, 0x4, 0xffffffff]}, 0x5c) r1 = semget$private(0x0, 0x4, 0x180) writev(0xffffffffffffffff, &(0x7f00000003c0)=[{&(0x7f0000000400)="76e5eac907f9ccf7a251ceddcec7d6aa45cffe2c63a56077123a276d3ba4e9d17eb3eb5db12a3783a8e0620d357de1fe04fa9465b5bd1286e9624dec06a00c222f", 0x41}], 0x1) mprotect(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x5) mkdir(&(0x7f0000000480)='./file0\x00', 0x3d6) semctl$IPC_RMID(r1, 0x0, 0x0) semop(r1, &(0x7f0000000200)=[{0x2, 0x3, 0x1000}], 0x1) (async) semop(r1, &(0x7f0000000200)=[{0x2, 0x3, 0x1000}], 0x1) writev(r0, &(0x7f0000000140)=[{&(0x7f00000001c0)='#!', 0x2}, {&(0x7f0000000000)="6610455840112df78e8b4f5ea5fdfdddbd533311ebbc22a5ccf5b4bf083220", 0x1f}], 0x2) (async) writev(r0, &(0x7f0000000140)=[{&(0x7f00000001c0)='#!', 0x2}, {&(0x7f0000000000)="6610455840112df78e8b4f5ea5fdfdddbd533311ebbc22a5ccf5b4bf083220", 0x1f}], 0x2) write(r0, &(0x7f0000000040)="09ce00090900aca80000000000005c2a415642080000000000000057cd7b6a0a", 0x20) getthrid() (async) r2 = getthrid() r3 = open(&(0x7f0000000240)='./file0\x00', 0x80000000000206, 0x0) ktrace(&(0x7f0000000280)='./file0\x00', 0x4, 0xd27d43220c7df9f, 0x0) (async) ktrace(&(0x7f0000000280)='./file0\x00', 0x4, 0xd27d43220c7df9f, 0x0) mmap(&(0x7f0000000000/0x13000)=nil, 0x13000, 0x1, 0x2010, r3, 0x0) setrlimit(0x8, &(0x7f00000002c0)={0x42, 0x62}) ktrace(&(0x7f0000000180)='./file0\x00', 0x2, 0x202, r2) kill(r2, 0x18) r4 = socket(0x18, 0x3, 0x0) setsockopt(r4, 0x1000000029, 0x27, &(0x7f0000000300)="5ab7776a", 0x4) (async) setsockopt(r4, 0x1000000029, 0x27, &(0x7f0000000300)="5ab7776a", 0x4) syz_emit_ethernet(0x3e, &(0x7f0000000340)=ANY=[@ANYBLOB="ffffffffffffffffffffffff86dd6036e20e742b40c3fa57e0f781c1faff0200000000000000000000000000014e214e20000890780000000000000000"]) execve(&(0x7f0000000100)='./file0\x00', 0x0, 0x0) 225.428298ms ago: executing program 2 (id=10): r0 = openat$pf(0xffffffffffffff9c, &(0x7f0000000040), 0x1, 0x0) ioctl$DRM_IOCTL_PRIME_HANDLE_TO_FD(0xffffffffffffff9c, 0xc00c642d, &(0x7f0000000000)={0x81, 0x7, r0}) setsid() r2 = syz_open_pts() ioctl$TIOCSCTTY(r2, 0x20007461) ioctl$TIOCGTSTAMP(r2, 0x4010745b, &(0x7f0000000dc0)) r3 = fcntl$getown(r2, 0x5) fcntl$setown(r2, 0x6, r3) dup2(r1, r0) ioctl$DIOCRADDTABLES(r0, 0xc080445b, &(0x7f0000000080)={{'./file0/file0\x00', './file0/file0\x00', 0x0, 0x13}, 0x0, 0x428, 0x0, 0xfffe, 0x0, 0xfffffff7, 0xf, 0x20, 0x80000001}) ioctl$DIOCRCLRTSTATS(r0, 0xc4504441, &(0x7f0000000940)={{'./file0/file0\x00', './file0/file0\x00', 0x20, 0x9}, &(0x7f0000000500)=[{'./file0/file0\x00', './file0/file0/file0\x00', 0x11, 0x5}], 0x0, 0x1, 0x7, 0x87, 0xfb, 0x4, 0x20, 0x7}) 224.880586ms ago: executing program 1 (id=2): openat$pci(0xffffffffffffff9c, &(0x7f0000001580), 0x0, 0x0) (async) r0 = openat$pci(0xffffffffffffff9c, &(0x7f0000001580), 0x0, 0x0) mknod(&(0x7f00000007c0)='./file0\x00', 0x2000, 0x285b9c) dup(r0) (async) dup(r0) select(0xffffffffffffff80, &(0x7f0000000800)={0xfffffffffffffffc, 0x44809e9d, 0x638, 0x9, 0x400002009, 0x210, 0x1, 0x1}, 0x0, 0x0, 0x0) (async) select(0xffffffffffffff80, &(0x7f0000000800)={0xfffffffffffffffc, 0x44809e9d, 0x638, 0x9, 0x400002009, 0x210, 0x1, 0x1}, 0x0, 0x0, 0x0) r1 = kqueue() kevent(r1, &(0x7f0000000840), 0x7ff, &(0x7f0000000880), 0x15, 0x0) socketpair$unix(0x1, 0x0, 0x0, &(0x7f0000000a80)) r2 = open(&(0x7f00000008c0)='./file0\x00', 0x10, 0xe0) ioctl$FIONBIO(r2, 0x82907003, &(0x7f0000000900)=0x3) (async) ioctl$FIONBIO(r2, 0x82907003, &(0x7f0000000900)=0x3) mknodat(0xffffffffffffff9c, &(0x7f0000000840)='./file0\x00', 0xc0e99db6de761f86, 0x0) r3 = open(&(0x7f0000000880)='./file0\x00', 0x80000000000206, 0x4ebfac6bbaf7959) ioctl$BIOCSETIF(0xffffffffffffffff, 0x8020426c, &(0x7f0000000a00)={'tap', 0x0}) ioctl$FIONREAD(r3, 0xc0286988, &(0x7f0000000a40)) r4 = socket(0x11, 0x3, 0x0) sendto$unix(r4, &(0x7f0000000940)="b10005016000009f0500000007000000331c13fecea10500fef96ecfc72fd3357a068da3a5673039d2d236acf20b7804be38164991f7cccf5f882b297be1aa5b23edeb51e2f0ac3ebbc257699a1f139b672f4d335c223e7d026ba8af630037282112000000720fd38bfbb770c1f5a872c881e2772ec5a10400000000000000361b1257aea8c5d00020120261cf4ee324c1e7de33c556ae9be371a3f8343712051eeab71d89000407000000800420000000", 0xb1, 0x0, 0x0, 0x0) (async) sendto$unix(r4, &(0x7f0000000940)="b10005016000009f0500000007000000331c13fecea10500fef96ecfc72fd3357a068da3a5673039d2d236acf20b7804be38164991f7cccf5f882b297be1aa5b23edeb51e2f0ac3ebbc257699a1f139b672f4d335c223e7d026ba8af630037282112000000720fd38bfbb770c1f5a872c881e2772ec5a10400000000000000361b1257aea8c5d00020120261cf4ee324c1e7de33c556ae9be371a3f8343712051eeab71d89000407000000800420000000", 0xb1, 0x0, 0x0, 0x0) ioctl$PCIOCREAD(r0, 0xc0107002, &(0x7f00000015c0)={{0x0, 0xc, 0xec}, 0xffffff81, 0xb9, 0x1c6d43a0}) r5 = openat$pf(0xffffffffffffff9c, &(0x7f00000000c0), 0x80, 0x0) ioctl$DIOCRTSTADDRS(r5, 0xc4504449, &(0x7f0000000340)={{'./file0\x00', './file0\x00', 0x5}, &(0x7f0000000100)=[{@rand_addr=0xfffffffa, '\x00', './file0\x00', 0x4, 0x3, 0x0, 0x80, 0x6, 0xfe, 0x3}, {@empty, '\x00', './file0\x00', 0x8, 0x6, 0x28, 0xb, 0x80, 0x2, 0x74}, {@broadcast, '\x00', './file0\x00', 0x5, 0x9, 0x0, 0xe, 0x5, 0x22, 0xec}, {@multicast2, '\x00', './file0\x00', 0x2, 0x5, 0x2, 0x81, 0x4, 0x5, 0x2c}, {@multicast1, '\x00', './file0\x00', 0x8, 0x5, 0x2, 0x37, 0x10, 0x2d, 0x1}, {@loopback, '\x00', './file0\x00', 0xdc7718e, 0x8, 0x18, 0x7, 0x0, 0x1, 0x40}, {@local={0xac, 0x14, 0x0}, '\x00', './file0\x00', 0x10, 0x3, 0x18, 0x6, 0xf, 0xa, 0x7}, {@rand_addr=0xb, '\x00', './file0\x00', 0x4, 0x300, 0x1a, 0xc9, 0x0, 0x4, 0x9}, {@local={0xac, 0x14, 0x0}, '\x00', './file0\x00', 0x1, 0x17, 0x1a, 0xb0, 0x9, 0x3, 0x6}, {@loopback, '\x00', './file0\x00', 0xcdb, 0x8, 0x18, 0x7, 0x4, 0x7f, 0x3}], 0x9, 0xa, 0x7, 0x81, 0x0, 0xd250, 0x58, 0x6971f92}) (async) ioctl$DIOCRTSTADDRS(r5, 0xc4504449, &(0x7f0000000340)={{'./file0\x00', './file0\x00', 0x5}, &(0x7f0000000100)=[{@rand_addr=0xfffffffa, '\x00', './file0\x00', 0x4, 0x3, 0x0, 0x80, 0x6, 0xfe, 0x3}, {@empty, '\x00', './file0\x00', 0x8, 0x6, 0x28, 0xb, 0x80, 0x2, 0x74}, {@broadcast, '\x00', './file0\x00', 0x5, 0x9, 0x0, 0xe, 0x5, 0x22, 0xec}, {@multicast2, '\x00', './file0\x00', 0x2, 0x5, 0x2, 0x81, 0x4, 0x5, 0x2c}, {@multicast1, '\x00', './file0\x00', 0x8, 0x5, 0x2, 0x37, 0x10, 0x2d, 0x1}, {@loopback, '\x00', './file0\x00', 0xdc7718e, 0x8, 0x18, 0x7, 0x0, 0x1, 0x40}, {@local={0xac, 0x14, 0x0}, '\x00', './file0\x00', 0x10, 0x3, 0x18, 0x6, 0xf, 0xa, 0x7}, {@rand_addr=0xb, '\x00', './file0\x00', 0x4, 0x300, 0x1a, 0xc9, 0x0, 0x4, 0x9}, {@local={0xac, 0x14, 0x0}, '\x00', './file0\x00', 0x1, 0x17, 0x1a, 0xb0, 0x9, 0x3, 0x6}, {@loopback, '\x00', './file0\x00', 0xcdb, 0x8, 0x18, 0x7, 0x4, 0x7f, 0x3}], 0x9, 0xa, 0x7, 0x81, 0x0, 0xd250, 0x58, 0x6971f92}) socket(0x18, 0x3, 0x7) (async) r6 = socket(0x18, 0x3, 0x7) sendmsg(r6, &(0x7f0000000000)={&(0x7f0000000040)=@in6={0x1c, 0x18, 0x3, 0x10000007, "00000000000000000000000000000201", 0x101}, 0x1c, 0x0, 0x0, 0x0}, 0x402) ioctl$DRM_IOCTL_PRIME_HANDLE_TO_FD(0xffffffffffffff9c, 0xc00c642d, &(0x7f0000000080)={0x469, 0x5, r6}) 224.722815ms ago: executing program 7 (id=8): sysctl$hw(&(0x7f00000001c0)={0x6, 0x18}, 0x2, 0x0, 0x0, 0x0, 0x0) munmap(&(0x7f0000001000/0x2000)=nil, 0x2000) ioctl$BIOCSETWF(0xffffffffffffffff, 0x80104277, &(0x7f0000000000)={0x3, &(0x7f0000000040)=[{0x3, 0x0, 0x0, 0xd}, {0x0, 0x0, 0x40}, {0x46, 0x0, 0x0, 0x4000000}]}) ioctl$WSMOUSEIO_SETPARAMS(0xffffffffffffffff, 0x80105727, &(0x7f0000000080)={&(0x7f00000000c0)=[{0x5, 0x80000001}, {0x48, 0x3}, {0x22, 0x9}, {0x21, 0x2156}, {0x83}, {0x8a, 0xfd}], 0x6}) sysctl$kern(&(0x7f0000000100)={0x1, 0x42}, 0x6, &(0x7f0000000140)="71f91e3471ac0058bc5a91501d94a34b8e5f84cf71b59c7afec37082", &(0x7f0000000180)=0x1918, 0x0, 0xffac) r0 = shmget$private(0x0, 0x2000, 0x3b4, &(0x7f0000001000/0x2000)=nil) shmat(r0, &(0x7f0000001000/0x3000)=nil, 0x0) ktrace(&(0x7f0000001b00)='./file0\x00', 0x1, 0x204, 0x0) madvise(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x6) 194.060713ms ago: executing program 0 (id=11): r0 = openat$pf(0xffffffffffffff9c, &(0x7f0000000040), 0x20, 0x0) ioctl$DIOCGETQUEUES(r0, 0xc148445e, &(0x7f0000000080)={0x9, 0xb, {'\x00', './file0\x00', './file0\x00', './file0\x00', {{0x10001, 0x2}, {0xfffffffffffffffb, 0x5}, 0x401}, {{0x0, 0x9}, {0xf, 0x7}, 0x5}, {{0x43e}, {0xe74, 0x1}, 0x4}, {0x80, 0xff, 0x3, 0x2}, 0x0, 0x4, 0xf4, 0x0, 0x6}}) r1 = syz_open_pts() ioctl$TIOCSETA(r1, 0x802c7414, &(0x7f0000000000)={0x5, 0x7ffffffd, 0xffeffffe, 0x4, "0014e7130be3d6500551928f1500ea00", 0x2, 0x3effd}) syz_open_pts() 1.229744ms ago: executing program 6 (id=12): select(0x40, &(0x7f0000000100)={0x8, 0x0, 0x0, 0x4, 0xff}, &(0x7f00000024c0)={0x8, 0x8, 0x6, 0x2300000000000000, 0xfffffffffffffffe, 0xffffffff, 0xfffffffffffffffe, 0xffffffffffffffff}, 0x0, 0x0) madvise(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x6) (async) ioctl$BIOCSETWF(0xffffffffffffffff, 0x80104277, &(0x7f0000000180)={0x48, &(0x7f00000001c0)}) r0 = socket(0x18, 0x3, 0x0) ioctl$FIONREAD(r0, 0xc0106924, &(0x7f0000000200)) (async) r1 = socket(0x18, 0x3, 0x0) ioctl$FIONREAD(r1, 0x802069db, &(0x7f0000000240)) (async) pselect(0x40, &(0x7f0000000000)={0xbe9, 0xa000000000000000, 0x9, 0x4000000000000000, 0x35c0, 0x6, 0x6, 0x8}, &(0x7f0000000040)={0x8932, 0x7, 0x537, 0xef7, 0xbf, 0x0, 0x3, 0xb0c}, &(0x7f0000000080)={0x0, 0x9, 0x202, 0x8, 0x2d, 0x101, 0x8001}, 0x0, &(0x7f00000000c0)={0x5}) r2 = socket(0x2, 0x8002, 0x0) setrlimit(0x8, &(0x7f00000002c0)={0xb, 0x53}) (async) r3 = syz_open_pts() close(r3) syz_open_pts() writev(r3, &(0x7f0000000300)=[{&(0x7f0000000340)="34bd28388525fa8a47ec729a2e7d5bf92cc21d7098db74fad288992b2fbc5216587b4ccf9d50b9640920fe8dd4f4c3ef06d94d4955deae70483b71d36434dd09d2fce36bda15", 0x46}], 0x1) (async) syz_emit_ethernet(0x3a, &(0x7f0000000140)=ANY=[@ANYBLOB="e77a5aecff83aaaaaaaaaaaa083d1b46a5002c0066063c0402907800000005e00000010103fb004e204e", @ANYRES32=0x41424344, @ANYRES32=0x41424344, @ANYBLOB="5102000290780003"]) r4 = fcntl$dupfd(r2, 0x2, 0xffffffffffffffff) (async) mknod(&(0x7f00000001c0)='./bus\x00', 0x2000, 0x0) (async) r5 = open(&(0x7f0000000280)='./bus\x00', 0x40, 0x0) ioctl$TIOCSPGRP(r5, 0x40047463, 0x0) (async) closefrom(r4) (async) ioctl$TIOCNXCL(r4, 0x2000740e) (async) shutdown(r4, 0x2) 974.781µs ago: executing program 2 (id=13): open$dir(&(0x7f00000000c0)='./file0\x00', 0xf02, 0x186) clock_gettime(0x2, &(0x7f0000000080)) unlink(&(0x7f0000000000)='./file0\x00') 761.322µs ago: executing program 6 (id=14): mlock(&(0x7f0000000000/0x800000)=nil, 0x800000) r0 = openat$pf(0xffffffffffffff9c, &(0x7f0000000040), 0x8, 0x0) sysctl$kern(&(0x7f0000000080)={0x1, 0x30}, 0x2, &(0x7f00000000c0), &(0x7f0000000100)=0xfffffffffffffed0, 0x0, 0x0) sysctl$kern(&(0x7f0000000140)={0x1, 0x42}, 0x6, 0x0, 0x0, 0x0, 0x0) ioctl$DIOCRTSTADDRS(r0, 0xc4504449, &(0x7f00000004c0)={{'./file0\x00', './file0\x00', 0x46, 0xcc}, 0x0, 0x34, 0x0, 0x800000, 0x5cbe, 0x7, 0x5fd7, 0x0, 0x6}) sysctl$vm(&(0x7f0000000000)={0x2, 0x9}, 0x2, &(0x7f0000000040), 0x0, 0x0, 0x0) r1 = open(&(0x7f00000003c0)='./file0\x00', 0x10686, 0x8) mmap(&(0x7f0000799000/0x2000)=nil, 0x2000, 0x2, 0x2010, r1, 0x3) mmap(&(0x7f0000009000/0x2000)=nil, 0x2000, 0x2, 0x10, r1, 0x0) sysctl$kern(&(0x7f0000000400)={0x1, 0x73}, 0x3, &(0x7f0000000440)="71f91e34719c7afec370a200e92200"/28, &(0x7f0000000480)=0xfe10, 0x0, 0xc812b7c1e5f6b965) 0s ago: executing program 1 (id=15): r0 = openat$dri(0xffffffffffffff9c, &(0x7f0000000000)='/dev/dri/card0\x00', 0x40000, 0x0) ioctl$DRM_IOCTL_MODE_GETRESOURCES(r0, 0xc04064a0, &(0x7f0000000140)={&(0x7f0000000040)=[0x0, 0x0, 0x0], &(0x7f0000000080)=[0x0, 0x0], &(0x7f00000000c0)=[0x0], &(0x7f0000000100)=[0x0], 0x3, 0x2, 0x1, 0x1, 0x7, 0xfffffff0, 0x735, 0x9}) ioctl$DRM_IOCTL_MODE_GETCONNECTOR(r0, 0xc05064a7, &(0x7f0000000300)={&(0x7f0000000180)=[0x0, 0x0, 0x0, 0x0], &(0x7f00000001c0)=[{}, {}], &(0x7f0000000280)=[0x0], &(0x7f00000002c0)=[0x0, 0x0], 0x2, 0x1, 0x4, r3, r2, 0x71a967bc7d072201, 0x6, 0x2, 0x7fff, 0x7, 0x2093}) ioctl$DRM_IOCTL_MODE_DIRTYFB(r0, 0xc01864b1, &(0x7f00000003c0)={r1, 0x1, 0xa, 0x5, &(0x7f0000000380)=[{0x6, 0x5, 0x8d, 0x7}, {0x8, 0x5, 0x1, 0xdc}, {0xffff, 0xffff, 0x81, 0x7}, {0x200, 0x0, 0x9a1b, 0x9}, {0xfffa, 0x219f, 0x1a, 0x4}]}) ioctl$DRM_IOCTL_SET_CLIENT_CAP(r0, 0x8010640d, &(0x7f0000000400)={0x5, 0x3}) r4 = socket$unix(0x1, 0x0, 0x0) r5 = accept$unix(r4, &(0x7f0000000440)=@file={0x0, 0x0, ""/94}, &(0x7f00000004c0)=0x60) ioctl$DRM_IOCTL_MODE_CREATEPROPBLOB(r0, 0xc01064bd, &(0x7f0000000540)={&(0x7f0000000500)="702d71c0c1fe8edf54d5", 0xa}) ioctl$DRM_IOCTL_SYNCOBJ_FD_TO_HANDLE(r0, 0xc01864c2, &(0x7f0000000580)={0x0, 0x1, r0, 0x0, 0x9}) ioctl$DRM_IOCTL_SYNCOBJ_DESTROY(r0, 0xc00864c0, &(0x7f00000005c0)={0x0}) ioctl$DRM_IOCTL_SYNCOBJ_WAIT(r0, 0xc02864c3, &(0x7f0000000640)={&(0x7f0000000600)=[r6, 0x0, r7], 0xca5f, 0x3, 0x5, 0x0, 0x0, 0x8}) ioctl$DRM_IOCTL_SYNCOBJ_FD_TO_HANDLE(r0, 0xc01864c2, &(0x7f0000000680)={0x0, 0x3, r4}) ioctl$DRM_IOCTL_PRIME_FD_TO_HANDLE(r0, 0xc00c642e, &(0x7f00000006c0)={0x0, 0x800, r0}) ioctl$DRM_IOCTL_MODE_MAP_DUMB(r0, 0xc01064b3, &(0x7f0000000700)={0x0}) ioctl$DRM_IOCTL_MODE_ADDFB2(r4, 0xc06864b8, &(0x7f0000000740)={0x0, 0x13, 0x7f, 0x32314258, 0x3, [0x0, 0x0, 0x0], [0x9, 0xff, 0xff, 0x3ff], [0xe, 0xa, 0xfffffff8, 0x4], [0x5, 0x7f, 0x80000000, 0x8]}) ioctl$DRM_IOCTL_MODE_MAP_DUMB(r9, 0xc01064b3, &(0x7f00000007c0)={0x0}) ioctl$DRM_IOCTL_MODE_ADDFB2(r9, 0xc06864b8, &(0x7f0000000800)={0x0, 0xfffffff2, 0x9, 0x35314152, 0x2, [r10, r11, 0x0, r12], [0x6536be5f, 0x1, 0x2, 0xffffffc7], [0x4, 0x9, 0x100, 0x2], [0x9, 0x7, 0x7fffffff80000000, 0x101]}) ioctl$DRM_IOCTL_MODE_GETPLANERESOURCES(r9, 0xc01064b5, &(0x7f00000008c0)={&(0x7f0000000880)=[0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0], 0x7}) ioctl$DRM_IOCTL_SYNCOBJ_FD_TO_HANDLE(r9, 0xc01864c2, &(0x7f0000000900)={0x0, 0x0, r4, 0x0, 0xf56f}) ioctl$DRM_IOCTL_SYNCOBJ_HANDLE_TO_FD(r0, 0xc01864c1, &(0x7f0000000940)={r13, 0x2, 0xffffffffffffffff, 0x0, 0x769}) ioctl$DRM_IOCTL_MODE_ADDFB(r0, 0xc01c64ae, &(0x7f0000000980)={r1, 0x7f, 0xbf5, 0xffffffff, 0x4, 0x7f}) ioctl$KDMKTONE(r0, 0x20004b08, &(0x7f00000009c0)=0x6) ioctl$DRM_IOCTL_MODE_LIST_LESSEES(r9, 0xc01064c7, &(0x7f0000000a40)={0x4, 0x0, &(0x7f0000000a00)=[0x0, 0x0, 0x0, 0x0]}) ioctl$DRM_IOCTL_SYNCOBJ_WAIT(r9, 0xc02864c3, &(0x7f0000000ac0)={&(0x7f0000000a80)=[r6, r8, r7, r8, 0x0], 0x92, 0x5, 0x15e4456b1ca6ffe6, 0x0, 0x0, 0x8}) write(r0, &(0x7f0000000b00)="16a0180848a254b9179fc06ea167929936923d4f5644d8d2c69db4811a361ef999d8ddbb616b84ea7c3ee7bdb98e85c4e39e18535f3d0e664b97816df559b58cbdded5663b27700c3350698d4977855e9e823087ec5f792d3929fd0bf39752695e376cb889ac5a0bcd3ac5d9be18ad7b9d57ce8b73cf21b5a56e54c46be789e273e2c270114267a9304c7bde2b9ec4645471addd03b03eb30f9fcd313646b798cb308acaec5644f0adc072e9fff5a03420668318afce0d052142cde194015d45543ef381f7b8fc102bf2a517838eb47556c7178746b25eb55dbb955bd771e6d58c2eaa9f568757fe171da9128e47872a5b", 0xf1) ioctl$AUDIO_GETDEV_ctl(r14, 0x4030411b, &(0x7f0000000c00)) socketpair$unix(0x1, 0x1, 0x0, &(0x7f0000000f00)={0xffffffffffffffff}) r16 = openat$speaker(0xffffffffffffff9c, &(0x7f0000000f40), 0x200, 0x0) r17 = fcntl$getown(r9, 0x5) sendmsg$unix(r9, &(0x7f0000001500)={&(0x7f0000000c40)=@file={0xd, 0x0, './file0\x00'}, 0xa, &(0x7f0000000ec0)=[{&(0x7f0000000c80)="d4a8f87acdbe1e180d82be38cedd2fd6a381745cf0994510cb2beae2b135cdf56e22007b605ea7da42bf7946ec13dd91aa31ea810e2ff4264013d197a106a33e1ec7f0916209c2e6080d9dc6cb4b803c1f9c6b62baf8d9a822c6bc4d61a5b779810260f302c1bd47a65e56d9c4fb8835d12bd1c3f350962118d14a9a39e95ec8b3023763e24c376222faabf764fd8e9bafac49e4a8aa141d9bdce5b6f9c40965243dfa278818b65541e74412316918f012d91cea64c022427064c53ca86a9e00197a9addba4f2bc1bae273dd0a3bb4a44cacc1a9be81b690841291", 0xdb}, {&(0x7f0000000d80)="319f73cea1552b3e42a61aeebb6be98304a7077a109e693dcf9e2196701c4542d0bd2ab0b156fb02f3adf022cfcf5ef40cff370e6e51494565bde07879646219acae9174796e22b517e3fdcd48e6bfc14ebf0c0f3b09c402b261f1e180e8e854a576c83d6e39d75208c7ecdd", 0x6c}, {&(0x7f0000000e00)="d8249cd7f6a5abf3cd8ead6346f45a8059d04520beb5bec2f8063ff3ba472a42ba5b443660d8c72e2931c97af7c7e4233c81e7d3535c59b052c9c45a41cf558dd03bc827eb6ff0ec8ea6422f5dbf84b57caa0a38077bd55778ccc9c20a30aa22e14decd807ff6a38ca7f5f868e62223ed02e7c448386faed14ffd6510f31f772ef2236cc490464c910941c6e7b555ddcffdbe8c5b330da588c8fbcb2c6e073d8ccc977f4b2c1234ce43a52d10c94d2ef7738", 0xb2}], 0x3, &(0x7f0000001400)=[@rights={0x18, 0xffff, 0x1, [r15, r16, r5]}, @cred={0x18, 0xffff, 0x0, r17}, @rights={0x20, 0xffff, 0x1, [r0, 0xffffffffffffffff, 0xffffffffffffffff, r4, r4]}, @cred={0x18}, @cred={0x18}, @rights={0x30, 0xffff, 0x1, [0xffffffffffffffff, r0, r14, r9, r4, r5, r14, r4, r0]}, @cred={0x18}], 0xc8}, 0x5) kernel console output (not intermixed with test programs): Warning: Permanently added '10.128.0.75' (ED25519) to the list of known hosts. uvm_fault(0xfffff1806cd77d78, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped at sys_shmat+0x3d7: movq 0(%r14),%rdi TID PID UID PRFLAGS PFLAGS CPU COMMAND 150296 12459 0 0 0 1 syz-executor *208189 39508 0 0 0x4000000 0 syz-executor sys_shmat(ffff80003c3bc7e8,ffff80003c48b030,ffff80003c48af80) at sys_shmat+0x3d7 syscall(ffff80003c48b030) at syscall+0xb17 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xae0bd976540, 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(0xfffff1806cd77d78, 0x0, 0, 1) -> e ddb{0}> show kasan No such command ddb{0}> trace sys_shmat(ffff80003c3bc7e8,ffff80003c48b030,ffff80003c48af80) at sys_shmat+0x3d7 syscall(ffff80003c48b030) at syscall+0xb17 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xae0bd976540, count: -3 ddb{0}> show registers rdi 0xffff8000363b0000 rsi 0x20d rbp 0xffff80003c48af50 rbx 0 rdx 0x1 rcx 0x1 rax 0xfffff1806c8d8e10 r8 0x180 r9 0xfffff180097fd6e8 r10 0x4a1616909e2f3777 r11 0xef40ba454a67b730 r12 0xffff80003c3bc7e8 r13 0xffff800001620000 r14 0 r15 0x3 rip 0xffffffff8274cc67 sys_shmat+0x3d7 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c48aec0 ss 0 sys_shmat+0x3d7: movq 0(%r14),%rdi ddb{0}> show proc PROC (syz-executor) tid=208189 pid=39508 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=54, usrpri=54, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c3bc2b8,0xffff80003c3bd788 process=0xffff80003c45ceb0 user=0xffff80003c486000, vmspace=0xfffff1806cd77d78 estcpu=4, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 12459 150296 99810 0 7 0 0 syz-executor 12459 458473 99810 0 2 0 0x4000000 syz-executor 53007 452468 40743 0 2 0 0 syz-executor 53007 405634 40743 0 3 0 0x4000080 fsleep syz-executor 66837 260794 55928 0 2 0 0 syz-executor 39508 163596 83418 0 2 0 0 syz-executor 39508 247262 83418 0 2 0 0x4000000 syz-executor *39508 208189 83418 0 7 0 0x4000000 syz-executor 70005 177874 68093 0 2 0x100000 0 sh 32772 250778 57984 0 2 0 0 syz-executor 32772 129913 57984 0 2 0 0x4000000 syz-executor 32772 412591 57984 0 2 0 0x4000000 syz-executor 87250 483248 48669 0 2 0 0 syz-executor 87250 3432 48669 0 3 0 0x4000080 fsleep syz-executor 87250 435575 48669 0 3 0 0x4000080 fsleep syz-executor 52340 408040 0 0 3 0x14000 0x280 nfsidl nfsio 41547 208116 0 0 3 0x14000 0x280 nfsidl nfsio 21529 335679 0 0 3 0x14000 0x280 nfsidl nfsio 7269 161148 0 0 3 0x14000 0x280 nfsidl nfsio 79983 453233 0 0 3 0x14000 0x280 nfsidl nfsio 24039 185988 0 0 3 0x14000 0x280 nfsidl nfsio 98005 448675 0 0 3 0x14000 0x280 nfsidl nfsio 1492 408129 0 0 3 0x14000 0x280 nfsidl nfsio 78084 344821 0 0 3 0x14000 0x280 nfsidl nfsio 60591 251188 0 0 3 0x14000 0x280 nfsidl nfsio 61580 37533 0 0 3 0x14000 0x280 nfsidl nfsio 36931 84921 0 0 3 0x14000 0x280 nfsidl nfsio 20507 27383 0 0 3 0x14000 0x280 nfsidl nfsio 78251 119447 0 0 3 0x14000 0x280 nfsidl nfsio 12320 341290 0 0 3 0x14000 0x280 nfsidl nfsio 72332 438639 0 0 3 0x14000 0x280 nfsidl nfsio 28884 168359 0 0 3 0x14000 0x280 nfsidl nfsio 12043 396979 0 0 3 0x14000 0x280 nfsidl nfsio 28959 92634 0 0 3 0x14000 0x280 nfsidl nfsio 8898 458273 0 0 3 0x14000 0x280 nfsidl nfsio 35882 208523 61305 0 2 0 0 syz-executor 35882 493379 61305 0 3 0 0x4000080 kqsel syz-executor 35882 408854 61305 0 3 0 0x4000080 kqsel syz-executor 35882 347882 61305 0 3 0 0x4000080 fsleep syz-executor 35882 337397 61305 0 3 0 0x4000080 fsleep syz-executor 68093 263830 67764 0 3 0x100002 0x88 sigsusp sh 83418 346533 19547 0 3 0x2 0x80 nanoslp syz-executor 40743 461588 19547 0 3 0x2 0x80 nanoslp syz-executor 67764 295867 19547 0 3 0x2 0x80 wait syz-executor 48669 435116 19547 0 3 0x2 0x80 nanoslp syz-executor 61305 244450 19547 0 3 0x2 0x80 nanoslp syz-executor 55928 442431 19547 0 2 0x2 0 syz-executor 99810 353727 19547 0 3 0x2 0x80 nanoslp syz-executor 57984 102284 19547 0 3 0x2 0x80 nanoslp syz-executor 19547 279022 92606 0 3 0x2 0x80 kqread syz-executor 92606 186107 39096 0 3 0x100002 0x88 sigsusp ksh 39096 286407 95570 0 3 0x10 0x88 kqread sshd-session 95570 366863 37112 0 3 0x12 0x80 kqread sshd-session 20193 78755 1 0 3 0x100003 0x80 ttyin getty 37112 386706 1 0 3 0 0x88 kqread sshd 20912 49544 38692 74 3 0x1100012 0x80 bpf pflogd 38692 387003 1 0 3 0 0x80 sbwait pflogd 21738 286843 56039 73 3 0x1100010 0x80 kqread syslogd 56039 290142 1 0 3 0x100002 0x80 sbwait syslogd-parent 77363 72274 1 0 3 0x100000 0x80 kqread resolvd 87755 210136 87659 77 3 0x100012 0x80 kqread dhcpleased 25921 119354 87659 77 3 0x100012 0x80 kqread dhcpleased 87659 14176 1 0 3 0 0x80 kqread dhcpleased 97598 452597 0 0 3 0x14000 0x200 bored smr 65840 276326 0 0 2 0x14000 0x200 zerothread 17520 30946 0 0 3 0x14000 0x200 aiodoned aiodoned 67834 239317 0 0 3 0x14000 0x200 syncer update 37402 497469 0 0 3 0x14000 0x200 cleaner cleaner 69924 321532 0 0 3 0x14000 0x200 reaper reaper 53082 251714 0 0 3 0x14000 0x200 pgdaemon pagedaemon 37002 203307 0 0 3 0x14000 0x200 bored viomb 6439 113037 0 0 3 0x14000 0x40000200 acpi0 acpi0 23911 521104 0 0 3 0x14000 0x40000200 idle1 2881 372554 0 0 3 0x14000 0x200 bored softnet1 23459 466950 0 0 3 0x14000 0x200 bored softnet0 37015 288059 0 0 3 0x14000 0x200 bored systqmp 9742 27524 0 0 3 0x14000 0x200 bored systq 96908 200443 0 0 3 0x14000 0x200 tmoslp softclockmp 93479 119705 0 0 3 0x14000 0x40000200 tmoslp softclock 46044 309281 0 0 3 0x14000 0x40000200 idle0 1 269383 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 &cq->cq_mtx r = 0 (0xffff80002999ee38) #0 witness_lock+0x5f1 #1 mtx_enter+0x4c3 #2 clockintr_dispatch+0x421 #3 lapic_clockintr+0x51 #4 Xresume_lapic_ltimer+0x2a Process 12459 (syz-executor) thread 0xffff80003c3bc020 (458473) exclusive rwlock vmmaplk r = 0 (0xfffff1806cc12e80) #0 witness_lock+0x5f1 #1 rw_do_enter_read+0x3d7 #2 uvmfault_lookup+0x112 #3 uvm_fault_check+0x4f #4 uvm_fault+0x106 #5 upageflttrap+0xa9 #6 usertrap+0x3ee #7 recall_trap+0x8 Process 39508 (syz-executor) thread 0xffff80003c3bc7e8 (208189) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83a0c980) #0 witness_lock+0x5f1 #1 __mp_acquire_count+0x58 #2 malloc+0xe3 #3 sys_shmat+0x181 #4 syscall+0xb17 #5 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11052 12084K 12085K 166960K 12145 0 pcb 17 12K 12K 166960K 24 0 rtable 229 7K 7K 166960K 344 0 pf 34 17K 18K 166960K 45 0 ifaddr 43 7K 7K 166960K 45 0 ifgroup 55 2K 2K 166960K 55 0 sysctl 1 1K 9K 166960K 5 0 counters 70 37K 37K 166960K 70 0 ioctlops 0 0K 4K 166960K 1488 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1291 81K 81K 166960K 1363 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 3 0K 0K 166960K 4 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 19 69K 93K 166960K 144 0 proc 69 115K 180K 166960K 551 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 99 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 37 175K 175K 166960K 37 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 236 153K 160K 166960K 3158 0 UVM aobj 4 2K 2K 166960K 4 0 pinsyscall 44 88K 103K 166960K 1287 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 28 2K 2K 166960K 28 0 temp 37 9122K 9186K 166960K 3472 0 kqueue 13 20K 22K 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 35 0 31 1 0 1 1 0 8 0 rtentry 176 110 0 1 5 0 5 5 0 8 0 unpcb 144 41 0 24 1 0 1 1 0 8 0 syncache 336 4 0 4 1 1 0 1 0 8 0 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 74 0 66 1 0 1 1 0 8 0 nd6 152 23 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 27 0 0 1 0 1 1 0 8 0 pfstkey 128 27 0 0 1 0 1 1 0 8 0 pfstate 448 27 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 451 0 0 29 0 29 29 0 8 0 art_table 40 452 0 0 5 0 5 5 0 8 0 art_node 32 110 0 11 1 0 1 1 0 8 0 semapl 72 2 0 1 1 0 1 1 0 8 0 shmpl 120 1 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1580 0 107 93 0 93 93 0 8 0 ffsino 296 1580 0 107 114 0 114 114 0 8 0 nchpl 144 1788 0 87 64 0 64 64 0 8 0 vnodes 216 1670 0 0 93 0 93 93 0 8 0 namei 1024 6140 0 6139 5 3 2 3 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 6194 0 6194 2 1 1 2 1 8 1 plimitpl 152 32 0 14 1 0 1 1 0 8 0 sigapl 424 471 0 402 9 1 8 8 0 8 0 knotepl 120 58 0 0 2 0 2 2 0 8 0 kqueuepl 224 28 0 17 1 0 1 1 0 8 0 pipepl 344 129 0 102 3 0 3 3 0 8 0 fdescpl 528 435 0 402 3 0 3 3 0 8 0 filepl 160 1564 0 1351 10 0 10 10 0 8 0 lockfpl 104 12 0 10 1 0 1 1 0 8 0 lockfspl 48 7 0 5 1 0 1 1 0 8 0 sessionpl 144 25 0 16 1 0 1 1 0 8 0 pgrppl 48 33 0 16 1 0 1 1 0 8 0 ucredpl 104 96 0 83 1 0 1 1 0 8 0 zombiepl 144 406 0 406 2 1 1 1 0 8 1 processpl 1240 471 0 402 6 0 6 6 0 8 0 procpl 664 494 0 413 7 0 7 7 0 8 0 sockpl 752 150 0 121 4 0 4 4 0 8 1 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 117 0 0 15 0 15 15 0 8 0 mcl2k 2048 17 0 0 3 0 3 3 0 8 0 mextrefs 64 15 0 0 1 0 1 1 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 181 0 0 12 0 12 12 0 8 0 bufpl 272 2364 0 92 152 0 152 152 0 8 0 anonpl 32 5297 0 0 43 0 43 43 0 247 0 amapchunkpl 152 8698 0 8084 24 0 24 24 0 158 0 amappl16 200 1932 0 1915 5 4 1 5 0 8 0 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 414 0 412 1 0 1 1 0 8 0 amappl13 176 128 0 116 1 0 1 1 0 8 0 amappl12 168 680 0 649 2 0 2 2 0 8 0 amappl11 160 59 0 59 1 1 0 1 0 8 0 amappl10 152 97 0 85 1 0 1 1 0 8 0 amappl9 144 287 0 287 1 1 0 1 0 8 0 amappl8 136 206 0 205 1 0 1 1 0 8 0 amappl7 128 145 0 133 1 0 1 1 0 8 0 amappl6 120 117 0 115 1 0 1 1 0 8 0 amappl5 112 148 0 139 1 0 1 1 0 8 0 amappl4 104 299 0 281 1 0 1 1 0 8 0 amappl3 96 1554 0 1437 3 0 3 3 0 8 0 amappl2 88 447 0 391 2 0 2 2 0 8 0 amappl1 80 10140 0 9531 14 0 14 14 0 8 0 amappl 88 2467 0 2302 4 0 4 4 0 92 0 uvmvnodes 80 101 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 435 0 402 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 435 0 402 1 0 1 1 0 8 0 vmmpekpl 168 5315 0 5284 2 0 2 2 0 8 0 vmmpepl 168 37923 0 35984 88 2 86 86 0 357 1 vmsppl 488 434 0 402 6 1 5 5 0 8 0 rwobjpl 80 14365 0 13347 23 0 23 23 0 8 0 pdppl 4096 877 0 804 95 20 75 85 0 8 2 pvpl 32 11418 0 0 93 0 93 93 0 265 0 pmappl 256 434 0 402 4 1 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 425 0 27 12 0 12 12 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace sys_shmat(ffff80003c3bc7e8,ffff80003c48b030,ffff80003c48af80) at sys_shmat+0x3d7 syscall(ffff80003c48b030) at syscall+0xb17 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xae0bd976540, count: -3 ddb{0}> machine ddbcpu 1