last executing test programs: 94.156626ms ago: executing program 1 (id=2): msgctl$IPC_SET(0xffffffffffffffff, 0x1, &(0x7f0000000080)={{0x1, 0x0, 0x0, 0x0, 0x0, 0x253, 0x4000}, 0x6, 0x1, 0x0, 0x0, 0x0, 0x6, 0x9}) r0 = socket(0x18, 0x2, 0x0) close(r0) r1 = socket(0x800000018, 0x1, 0x0) sysctl$net_inet_ip(&(0x7f0000000080)={0x4, 0x2, 0x0, 0x20}, 0x4, 0x0, 0x0, 0x0, 0x0) setsockopt$sock_int(r1, 0xffff, 0x1000, &(0x7f0000000000)=0xb, 0x4) bind$unix(r1, &(0x7f0000000080)=@abs={0x1f95d27d48731892, 0x7}, 0x1c) connect$unix(r0, &(0x7f00000000c0)=@abs={0x682eb13985c518e6, 0x7}, 0x1c) r2 = socket(0x800000018, 0x1, 0x0) socketpair$unix(0x1, 0x2, 0x0, &(0x7f0000000480)={0xffffffffffffffff}) getsockopt$sock_cred(r3, 0xffff, 0x1022, &(0x7f00000004c0)={0x0, 0x0, 0x0}, &(0x7f0000000200)=0xc) semctl$IPC_SET(0x0, 0x0, 0x1, &(0x7f00000000c0)={{0x0, 0x0, r4, 0x0, 0x0, 0x43}}) syz_emit_ethernet(0x138, &(0x7f0000000000)=ANY=[@ANYBLOB="ff02"]) mprotect(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x5) r5 = socket(0x2, 0x3, 0x0) bind(r5, &(0x7f0000000000), 0x2) semctl$IPC_SET(0x0, 0x0, 0x1, &(0x7f0000000040)={{0x85, 0x0, 0xffffffffffffffff, 0x0, r4, 0x104, 0x7}, 0x7, 0x7}) bind$unix(r2, &(0x7f0000000080)=@abs={0x1f95d27d48731892, 0x7}, 0x1c) 85.098641ms ago: executing program 0 (id=1): r0 = socket(0x2, 0x3, 0x75) r1 = syz_open_pts() mknod(&(0x7f0000000000)='./file0\x00', 0x2000, 0x0) r2 = getppid() msgctl$IPC_SET(0x0, 0x1, &(0x7f00000000c0)={{0x0, 0x0, 0x0, 0x0, 0x0, 0x22}, 0x1, 0x68, r2, r2, 0x0, 0x4}) pipe(&(0x7f0000000280)={0xffffffffffffffff}) ioctl$WSKBDIO_GETMAP(r3, 0x80047476, &(0x7f0000000100)={0x0, 0x0}) r4 = fcntl$getown(r3, 0x5) r5 = openat$bpf(0xffffffffffffff9c, &(0x7f0000000040), 0x80, 0x0) ioctl$BIOCSDIRFILT(r5, 0x8004427d, &(0x7f0000000140)=0x8) ktrace(0x0, 0x1, 0x1c00, r4) r6 = open(&(0x7f0000000100)='./file0\x00', 0x10000, 0x0) setuid(0xffffffffffffffff) r7 = dup2(r6, r0) pwrite(r7, &(0x7f0000000140)="5cb7dd9f27cd1f71bffc81b80fa626e07981c374ccb250c4deb087b25b8ad834f0", 0x21, 0xffffffff) ioctl$FIOGETOWN(r6, 0x4004667b, 0x0) ioctl$TIOCSETAW(r1, 0x802c7415, &(0x7f0000000000)={0x2570, 0x7, 0x0, 0x3ff, "1cbdbe4a88fceccbb808959813cbcb0d84c3b834", 0x0, 0x800}) mkdir(&(0x7f00000000c0)='./file0\x00', 0x0) ftruncate(r1, 0x5f) r8 = open(&(0x7f0000000c00)='./file0\x00', 0x0, 0x0) unveil(&(0x7f0000000040)='.\x00', &(0x7f0000000080)='x\x00') symlinkat(&(0x7f0000000200)='./file2\x00', r8, &(0x7f0000000240)='.\x00') writev(r1, &(0x7f0000000380)=[{&(0x7f0000000180)="5c003136fbedb5a2c43c9e8b904cf34ad6ce4cae5cc3f34ca36a2f15b3395a037673268cfc0116fc6379c7366d4c2c8cb5a5c03e98b84c7e073514f0278c3165fddbdef131869bbe0be63f382fd0a3b64717c150c1fa4b234055afa6374d4d5ca63bcf9f5ba3f34a41954c56929381e18c29bb59f8f16a4b42f439dcf515f0eda4315c5886f3ce14a0a8279ad1f8e73bc96cb9c243dfcf8311d1d41d2ad09914f3966b5020073588aafb3eea9bed9c84b4723403d7e3e3bb1a40362b60a0697bf488223a2c2915d94e04dff50d44c989eb0092a3751be076f6a1182d3dbe6e4ca34b48a1a398a141b78b36fdf0141830ce71180139015f58b82af34842461c", 0xff}, {&(0x7f0000000280)="e0811e093adcb0ca32a79774ce83df7f5465bc9589bd95df4d180f378b990f8273302d409126a50254401e2268650748", 0x30}], 0x2) recvmmsg(r7, &(0x7f0000001840)={&(0x7f0000001800)={&(0x7f0000001600)=@un=@file={0x0, ""/79}, 0x51, &(0x7f0000001700)=[{&(0x7f0000001680)=""/78, 0x4e}], 0x1, &(0x7f0000001740)=""/167, 0xa7}, 0x1}, 0x10, 0x0, &(0x7f0000001880)={0x0, 0xbfd}) ioctl$FIONBIO(r1, 0x8004667e, &(0x7f0000000440)=0x8) writev(r1, &(0x7f0000001580)=[{&(0x7f0000000480)="79408bd96f42596303b5bc155cb19d28fd7ac2768184ce846766d2468adc4a73ca67f8db97e7c2e1533cdac004778cd4a3eb7462cb1b441f7e9c5641581e1df35da8db27d4d4e8566aadc32ae11f711607bf75d74f8995807c42cdf1d4e42a221caed8770ecc80640f8b3169338a8f483bd14373e50f1ed79f0e447d229fd98a56dcbf80fc982cb4488388d94ee101105b211435803238eb6b9f0fb3dd2d4e156e583c722188129e5e7ba598fc3801a2dd2849b8c223e0c8b1de9582ca51fccc86e974d2e8787d95dcf5a8cb38c55ea4c65083c9be448a375d5acbb396274bdb82bd90bef12460e2dfc4c1249049a7d4d95bc37c9a3dae090d2727031cfb7de068d2327ad8131695e2ea93f4238702fb94bb897751532aa5f10b569ee80e61a3f5e9c11a3597ad9e8015a673c696a08078c5b912d7a5a7f6ad73dfb50bb2f2a3dbcb629013308e4e70486a6774492130cf499c36f3b5d1ad78e1120877f9db10011c28dd8b41f716b4a8453eeab0d558ff0abb6d601a21dce70d8c4c5674ca482abc845ebebcfe12cd65b6d46a4f432ea9ddb7f258dcbadb79bd58683343d74cdd428c8b9ca17d85dee6bc8439bab51d41010e65de2faddcfd5238bf98c50b5f157d9b5d0381e5bf86d00e26a0c4fac45e368b8c9085af507429314092885ba16f6780267e6cd149b506d1ba8b69d66659505601a6e8ca2223915ce29699b53fb399c31c99f0502f4327d59ca7d78c80e497eee841f2f7a2893bc577c80451cfe07b11a400722d328bddd869023af5b110185f74e90632c7fef76b6365c8dd3b7091fa36f828e31392d6dfec88540fe23a49816b7afc1727236dde0c40c7ec9a715a220b794c18d46334f66fba1422d98bc393aa625ac55f7c86efd01b3424a0c0f7e6535523fb7518c1cd90c4e3486e349e1e507a03db7dae24a70ff28742a0d685058bc7413224883ce83a87a45adf0b531adb143222f9c7abd8916864dcd2cb1a781c315f93bd672ebc6b4a280d463059f1816d225984cdca4d30c5794f51a01eb68725bc3af8d3fc037f229498b6c3839c0058b6583de8c5b9afe8da7e44be96c37889b886289dc82a581b973b9267fd5186407ab8010ed8a9a0eea4a312695969d761be87d3983107fe3d27a9181f6445d0e98ba98a8d57916e914d15786ea0d6519849e8128cc01cfcac0c9cb796340e9574a731f03ab9dafce7063478b46dc4597e9192f912b661019443c28155fbd2745fa4f20ae0b9d2df7d1bb817c34cdec8410ff8467423f9b566bbb49c65790abef8fc1aa8e9f777d943b7862439972f328008514cc6198b1b5813b811ea73bbf84098efaa059b445f3462b55bfb3330a51d0c48d6a10ceac3423dbcdcdc8787d836523b7acaf37b13e015703703b5b8af3d6b3427e9849fb77f08a8f92e57110e64df98b3b62c6436c3f9e075f94f0e39a1d53b3624a549f3699ef8c045ccfba2a73794837bd588c31e27f7510f035b5508263a3fd11cff4964e8680248f4e5fa5d100efcfdc9729a8798c9197fa08ac33dbad45e915e121cd767b36fc8c5a17d39626b0ba4e9a2b295614b50515950a885c4d675180f5582d373861810a355054c75341b34d72e2906e612a3fd67a0d3e68cd67de7b823d41a73ccc83022c1c7ce74d7f63de0865f7d44f6242e60b003e6dc0fac7fc8e4ff2d5399c16dba02aa2f983075b9a425cce245ae2a6c0d7f3545596c52dffc0afe74563b401f8edd93ffe36bc55c90dd06f766de7dd3c3dbddfc32c8543c98843ff62983a4d6220632b219e9e34b9193913fc1a97f7e33e2d850970420ef9e67ebda1dd8ebc9132b226bc4ce02e1fc37b2574670c4dabde92d023bf5fcb23841d3eb2b6d28ab0084c87761ab080a1f4cc4c3b3390921ff7c0ab69709e2f80049942e1f4e8c9c1ca0e37a95f7bd234a0dfaf756ab71068c3d2b35bf8b09d4cf41be4ad1f4b34ea2df91223ec5e44ec1af43267786ef727a7bb7c4d349cc4d3cd66b50b0fe32074337895e8f1763d57927b4212feb3b6906735910b68763b65adc336b1afc8d583cf624aa18cc49655ac5cb0561cc4d2f3214813cc191422b1ba5b910a5c604253e81ded938644c0bb1dc881a2d6efe8dfe571fa2f829dfe8564643c2ac0243f6de81d3d916dbb14cb472c7f67d4dbc3c0554873b0466affcd7aceca5f7d393f23a2c23713f420abb34fe9b4e8f79d31ffab8482fb49a700fccbf79f014224d4c629620803eb5c0ef2d4b21e85c6371de63b0c233ac88958ca9d6cccd6cad6761320ee0ea4e4bbf0e5d360c8d0e9547dbab5542b9b5cb1b636c3e7699ef16f13e022ee563ca4307df5d9260e5412204b6a9f8e7b85c7d97014d0b142c8f79cfe45874d8c8d3d04695c0d65d0319c97dd29206744333eda8c1e796ff1cd49fb4000b84acbc7cc22b4c590c7195b76b4de7a9e47be8818de559bbdc983f8c7adcf1853860f770ddc61a5a44ac9f2248c46bc511686bafb64c052f85f6fbe6f59e214ec5259479ee67c06fb5c388b9d130a4a6e167afe8c25a7a30b39f1b8f3ebb773eaf841f6b79205322a38f31532140a1716f717cde922106c53373f28ad09962fc8db82c9a79f701ecd2b7dfce91f610274092524892f259736d424a6c013994e49563dc1c8fd426203a168e76eb2b9b440b5e77ee6f3b5e7549112966fa5e5b07cec00688b8ad189a1f96bd09b3f1af272f302059c7f63f20307e8b5369ce043b717049636587b64e11cfc865999ace60632b70d1b5c947de55057d52a666997375800a3bf111f3cfe18d55c846a5403e37ba6c488596fa8e175642896ab9f0c63b07baae65dba608fe030fc67bec566c3cfc34403c2b03f1c5955c9e554f07a34e70f782138bc52ce4a726e6225ea594a7d6dc1bdda5c19ca221de85462a6d9acb8b7f7c3227b43ffbb901e7dd6eed8bbfeb45b1aea53bf9dcb334f857477e234f48aae02b9ed2e24e4da061895d97b91c30b0557a614d47309464e21188d491fb19a82df9dea6cb3b63bf98283d3fe96bd06742cc8cabd20de00d610ade66c7687c9eb9f82b6f5c1198a1a33a19591450fd74a1f8c879d8130faadf57ff544547af6ed61ab6248b4219dbefc54731b5fda51cd1f8f2308d1adf3b75cdfbcddd404d7abb91c4267eebe314139a8212efb52e36d657547e31457b7c6cb985a86f239a85af4f65f48deefd98658d2163e8aef36337466728b21d2b9289955f45cb4504d00487d2ecda4fc9af251b27e10e1892a3e52bd4725b2b007cc59b226a294164529e472afecd0e37d849d22dd35116b40c0c618be291d73a457bc3cff326ebb65b2378c9ff80a57cd67dbdc20c908bbaf8602c30cd58d9493495ffaaab5cdfb0a99fbd3ad0020bb94e3513b62fb6f8aa016b88730e5a6b56f3fe539f7cee6d8b3ce0621fae4f623f332fa1ab4fd539e45a30dafff0a2d00422713c9c16e6cc7c98ee98fab54c8ff3dd3cd6672694d89af701c8732991cd8d85dc29592cc718d9c1aba51e136ba4a85527a06840d83bb83ce9f6ef3a708f15490e72f589e0afbcb6ef836fee9dc70284305e68add7a044f44ca68f86240c7a500133925cd458f757c9befcb53a82e5902b2464bfa8f6b5d686cdcfb141dfcd1c558cb59b578f22ce94f61ea454e881c8c26bdc61a1e3aeacd83542b9162451c14303c3f40f58d06272e80893e194e700c1681a3b2f221ff7984f7bbbc515011a2bccc4655b00833d0bebf15cb1ffff3056f4a53f5333bbcc87447ed67323e93e945f8051fb42782733933db209146c3dd06c412a3cd9b33ceb859d198b0297388a7620ce9f1ee3c585ceade23ff07065abcfd35632167dd2124fe542e5e1f3d5efc5aaf821ae81c8f1df6f3f65f58c26ae1a684297977f1c8d3851f1204bb10a5f050630a855d9723514664c4b0830b88327cb09dade245eafb8fd4702ac72e2db30b2aef5860f1a0e02ca1ac83ee76a164965475a7975c94fbbef8ad019be5a5e27f24100f67070674af44d9c24f3e0b6d79ea45185c6f825e87550e9cf65ed8148134b843c695efc3e29cfa714bcb64f6466aca303bc07a8da11bbb10c26719620aee58034f3247f6a3b560a8fc5273653aed37deea46868e05d4c88b17bc5cc795ecf81b7865a13b1434ce4abfc3310c233d167af4f8589bf75ce8a445ae8019f5f6716f335d6b5b5851dbe07d914f54d83b059591644f2b69b05bb88240665557a3035e3c01c8f4c20e84d9e2f29e8a5f561f1ccb0ec5064edcaaabbe88b794e9657af23d4607eade6a053607fe1ac0a55dc6a8db00a4d3405081c502aa2f5203eb2d6567612f6aa6d4ad7f589afb8435747868f7e10e3822c5be756c3c4936f752c60343b206f6ece5b2e796fe5fbc767ca7db9325a67578464dcb16d0152ac617f540d3cb57c95d71218ec54954beaf5ebebc930b5048bc44edb2265beeae1c13a059b5a85c6a58f4c3d969d5295fbe056dc360a79f24e1b7c35d7ab1bb4ecee0562a0bc385f8784b235097a3e30a8daffb32f645f90556b5a70356d3f36d4b7422a3712c26d9252576272451b511cdb8f8a36eacd2631704a33c02205e0bab3dfb1dc97222fe4134d04bab97bfb0a95ce64f1b048610e23940c37ddc48868f6f0a36af4e47f8d17f7de17f9b8f7ba79d3316260bfe61cc672a3eb980a58cdd9f4fa4d5336d8fa1644f88db5d671c87671c953298962dcec522ccbca7975633c79f508576fef53c19150747c72defcb10dc3df50c959c05fefa7e083ceeb02f80f20572b676fcda4d06d0d6af1291db53b5e796beb6e79ddd9be8bcf2fc6fe98eb71fae33fb8cea58c8cc38d7b084f291cb47a65aa41b6305f66fbf1fc7a873ce14c4ca771c4e69bb8a128b862f252903f8b2898e221d4d86e819af7fc8644f35f3c1c8d619db925136e2decbca49c805a45e63fbb9c7f4e036489e3dc3cff015cc37d5a6a3861877bd9f8e858588f8d31ce554500028d319bff7f7f85f45ad91685ea4bc3faa55a0740086aed87bb3a5e9ff2ef7ea3f55ca23c38fffa5857228fc6663915746b3a85797cff8e57dc7e324e119145ec74ffd2cd1d931a2cecf9ac548a70b9d583c43af15cf4b31e6ac42e45a5f4a8d4dd1d6b4d38fff6c075536130983fcf774061b34f26c230d940df629dd061799c74d6c02198b05f1168d08b92d48b6296dbc4b4ce483a87731d461f7bf00ac7c1e4298de3508720ea7e7b8951ef9bd5180f115fd8d5e1edc3e152ba9b7fa70ec9494b786a0e2a0a0e54d1e54dc8de1577f9e7f05bd53043e67c2fdf286cd191ec61080135d3ecd69e65d785f6a06c06602bcb8b9a02dc79d71d56dd92cdf74cb854debc5385139c444695f0d18a8ea587873f66a579beb02dce5a8c45ea49db1965ffcb3dad47a1c13efe6496b1b45d10f64dbe148254511734e6acc5b1345f47e5b66d459c81df480bbb2f0fe533c12a00c2048d87998e25c1ba5d9d04d2d2c7f817d072ce217d1b155a68983a8a7435ebd5fb8246f1f7b1394884c3905725eb3db2049ee7301afdb234daaff0063a73b2b9cf4ed66e222887d999dfbb5dee3e822ef08099c1afebaf963c27d260fa1a82767a025fc2651c9b8c3f69a2b9f49678feb83f5ca4ccf0bbf17211c7e616dc6d1ab986d4ff5428c38f2f5eb9b44d8f54d2a67b2a05f7427f67a1d90bab896092ee95c4c24ef526c7828bff5b4aadbc918b31878bfe560114ffa22a393fbb33530c7fe50be706eed58621196a6db07a5ff5c1019d7544f4212e96a9d34be6953f786ef92a69eb3e4299", 0x1000}, {&(0x7f0000001480)="6c51dc5efab148f85f91501890aa2a201b6cc1ce608f662df5da6fd63d898555e5364f5b9bc1840d0c8de8ffd74048e8c8cc77210057d9dcbca8385674fa5b88b82d69918d123482414a4ed3c80eebfda6cc9126c22c809e7688f67be582eb4135f3ae738587ede1f19b0e21332d235074337103bc204c744ce01ab0dddce21c7b34d837eec3b2025582db70fdbdd7a8713034f72c4ddf028c7d0ccf1d8e437240828bb22e3b51363310bcf84f2204ea1b4a285309a1eeb6b27814889ee291e4d36d6e8920d1e54be33973a151d37b9a3063bccef063", 0xd6}, {&(0x7f00000000c0)="c23853ce9a21d24808047ecc768e1016f55bc0bbd3e9f87fe4a96150509732e05bc1230056027a6538479e40ae41e501075115c78fe4b8dccd7ca7ea94b4257136afa6f62377216cd3c09f8bb3157ac9392004c70e1413fa6dbd8fc2413a42bd3a5c428b1d2a91c4e23177ed3e05207e7ee737bb0aab10e5c9", 0x79}, {&(0x7f00000002c0)="a29489d3587e357f8ec01f5dedb1479408c8027dbe93b2abf5671f0260f37178120e8670175dc87fd032f5223c2c89d32eee6df168f6741876166c90b01fad33710aa4f907bb24f4c14e2fce5d6de6fb", 0x50}, {&(0x7f0000000040)="1d8a3041a9cd7f4aadb43544817c11", 0xf}, {&(0x7f00000003c0)="9895922fdd62d85acc5644893bb0669d28aac4c6b5f2dfedf0e4032231a7b100d5ffe1ba75348ec6dbbb8730c0ab35697e2ac6e06208e824761e37524a8d643eb9ebf0198c9d450f397c07cc7b9c2922db28c4da61ae04c5cb3533", 0x5b}], 0x6) getsockopt$sock_int(r0, 0xffff, 0x10, &(0x7f0000000080), &(0x7f0000000340)=0x4) mmap(&(0x7f0000ffc000/0x4000)=nil, 0x4000, 0x4, 0x10, r5, 0x9) 50.700485ms ago: executing program 2 (id=3): r0 = socket(0x2, 0x1, 0x0) (async) connect$unix(0xffffffffffffffff, &(0x7f0000000000)=@file={0xd1653077bafa0114, './file0\x00'}, 0xa) (async) syz_emit_ethernet(0x138, &(0x7f0000000000)=ANY=[@ANYBLOB="ff02"]) mprotect(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x1) (async) connect$unix(r0, &(0x7f0000000000), 0x10) connect$unix(r0, &(0x7f0000000080)=@file={0x0, './file0\x00'}, 0xa) (async) syz_emit_ethernet(0x52, &(0x7f0000000200)={@random="fb00", @empty, [], {@ipv6={0x86dd, {0x0, 0x6, "1f0002", 0x1c, 0x6, 0x0, @remote={0xfe, 0x80, '\x00', 0x0}, @mcast2, {[@hopopts={0x2e}], @tcp={{0x0, 0x0, 0x41424344, 0x41424344, 0x0, 0x0, 0x5, 0x10, 0x0, 0x0, 0x3ff}}}}}}}) 39.501537ms ago: executing program 5 (id=6): syz_emit_ethernet(0xe, &(0x7f0000000000)=ANY=[@ANYBLOB="0000000000000001"]) (async) syz_emit_ethernet(0xe, &(0x7f0000000000)=ANY=[@ANYBLOB="0000000000000001"]) writev(0xffffffffffffffff, &(0x7f0000000240)=[{&(0x7f0000000000)="6dc100167f", 0x5}], 0x1) syz_emit_ethernet(0x138, &(0x7f0000000000)=ANY=[@ANYBLOB="ff02"]) r0 = openat$vnd(0xffffffffffffff9c, 0x0, 0x0, 0x0) r1 = openat$bpf(0xffffffffffffff9c, &(0x7f00000000c0), 0x10000, 0x0) ioctl$BIOCSETF(r1, 0x80104267, &(0x7f0000000180)={0x2, &(0x7f0000000140)=[{0x2, 0x9, 0x9, 0x9b}, {0x3, 0xb, 0x1, 0x9}]}) kevent(0xffffffffffffffff, &(0x7f0000000080)=[{{r0}, 0xfffffffffffffffd, 0xa3, 0x2, 0x200000000000000}], 0x1, 0x0, 0x100be6, 0x0) close(r0) (async) close(r0) rename(0x0, 0x0) syz_emit_ethernet(0x3e, &(0x7f0000000000)=ANY=[@ANYBLOB="ffffffffffffaaaaaaaaaabb86dd60db83440008110000000000000000000000000000004000ff020020000000000000007d5eea46014effff"]) (async) syz_emit_ethernet(0x3e, &(0x7f0000000000)=ANY=[@ANYBLOB="ffffffffffffaaaaaaaaaabb86dd60db83440008110000000000000000000000000000004000ff020020000000000000007d5eea46014effff"]) mknod(&(0x7f0000000100)='./bus\x00', 0x2000, 0xd02) open(&(0x7f0000000080)='./bus\x00', 0x0, 0x0) (async) open(&(0x7f0000000080)='./bus\x00', 0x0, 0x0) mprotect(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x5) (async) mprotect(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x5) mknod(&(0x7f0000000000)='./file0\x00', 0x2000, 0x5900) (async) mknod(&(0x7f0000000000)='./file0\x00', 0x2000, 0x5900) r2 = openat$vnd(0xffffffffffffff9c, &(0x7f0000000080), 0x1, 0x0) ioctl$VNDIOCSET(r2, 0x81946466, &(0x7f0000000000)={0x0, 0xfffffffffffffff8, 0x0}) rename(&(0x7f0000000000)='./file0/file0\x00', &(0x7f0000000080)='./file0\x00') (async) rename(&(0x7f0000000000)='./file0/file0\x00', &(0x7f0000000080)='./file0\x00') ioctl$BIOCSETWF(0xffffffffffffff9c, 0x80104277, &(0x7f0000000080)={0x0, &(0x7f00000001c0)}) mknodat(0xffffffffffffff9c, &(0x7f0000000000)='./bus\x00', 0x2000, 0x4800) kqueue() socket$inet(0x2, 0x2, 0x0) r3 = open(&(0x7f0000000040)='./bus\x00', 0x0, 0x9) ioctl$TIOCFLUSH(r3, 0xc0187009, &(0x7f0000000080)=0x400) (async) ioctl$TIOCFLUSH(r3, 0xc0187009, &(0x7f0000000080)=0x400) setsockopt$inet_opts(0xffffffffffffffff, 0x0, 0x200000000000c, 0x0, 0x0) mprotect(&(0x7f00001e4000/0x4000)=nil, 0x4000, 0x1) (async) mprotect(&(0x7f00001e4000/0x4000)=nil, 0x4000, 0x1) r4 = socket(0x2, 0x1, 0x0) connect$unix(r4, &(0x7f0000000000), 0x10) 27.151465ms ago: executing program 6 (id=7): r0 = openat$bpf(0xffffffffffffff9c, &(0x7f0000000000), 0x200, 0x0) setuid(0xffffffffffffffff) r1 = getppid() fcntl$setown(r0, 0x6, r1) 0s ago: executing program 4 (id=5): r0 = openat$bpf(0xffffffffffffff9c, &(0x7f0000000440), 0x1, 0x0) ioctl$BIOCSETIF(r0, 0x8020426c, &(0x7f0000000100)={'tap', 0x0}) (async) ioctl$BIOCSETF(0xffffffffffffffff, 0x80104267, &(0x7f0000000040)={0x3, &(0x7f0000000080)=[{0x7, 0x1, 0x2, 0xf7fffffc}, {0x28, 0x5, 0xf6, 0x5}, {0x16, 0x3, 0x9, 0xffe}]}) sysctl$kern(0x0, 0x0, &(0x7f00000000c0)="00000300000000000000000080b57ab02259cde2f678db3c946e7e8258313df0ddd68ede01093a3150b6ce77", &(0x7f0000000080)=0x2c, 0x0, 0x0) (async) mprotect(&(0x7f0000000000/0x2000)=nil, 0x2000, 0x1) (async) ioctl$BIOCSETWF(r0, 0x80104277, &(0x7f0000000040)={0x0, 0x0}) (async) write(r0, &(0x7f0000000200)="d81ad3d20cf7eb4e9be33bbd1a30", 0xe) (async) sysctl$kern(&(0x7f0000000040)={0x1, 0x16}, 0x2, 0x0, 0x0, &(0x7f0000000080)="4f1d4c6344b80ed788b6a4515248df3aa745bb992c574ab4cdf5587145812eab4a988f7fafd7a01d99776d988908cd186b51f34f8c15ffa0c685ad4116c783959eff4278384b4000384dbb1c2aaeff10b413a629a1da6fda67c67469d954be811b25ec5521559154c586eefff122009f659cd3e27e98a3241495005f102d9101d158284c0ee3250aa7c11042330de22a299ab00894fdc9bac6042de203aa71ed0e02dcbf0f28a433302736efee48c8ad1f3865ff398c9b602a1e80bd25dc79f7e1f516e8a91083fcfe381975a270ec82c00a60cf792d4a8715d87856ae437fd53f6a4052fb781588f261b86ddab9602747b40b2c5559a917fdedb5847ddb5df0e0cbbb51283e6ea8900eb60a38e9f7b1b5197b24ed19f92b57cfb0fef82ac745fa7a31464947753d16ce89e3ca814b0dfe64b82975b03cf62ac5f731c039d8e72b5db3d088033279bcf801ac3341e21f549df48c0f8d6e1831d6cf347d6dd14342c6c27d1e8e831b3b795bbac510d4f26e82aaf53d8a7587504519b8a0ca7afb88034c5188df1c13ba77ad6bca43", 0x18e) (async) setgid(0xffffffffffffffff) (async) setgroups(0x0, 0x0) (async) socketpair$unix(0x1, 0x5, 0x0, &(0x7f0000000100)={0xffffffffffffffff, 0xffffffffffffffff}) bind$unix(r1, &(0x7f0000000040)=@file={0xd19450564dee018c, './file0\x00'}, 0xa) (async) chmod(&(0x7f0000000280)='./file0\x00', 0x3a) (async) setreuid(0x0, 0xee01) (async) r2 = socket$unix(0x1, 0x2, 0x0) connect$unix(r2, &(0x7f0000000000)=@file={0xd1653077bafa0114, './file0\x00'}, 0xa) sysctl$net_inet_tcp(&(0x7f0000000000)={0x4, 0x2, 0x6, 0x13}, 0x4, 0x0, 0x0, &(0x7f0000001740), 0xfffffffffffffdff) kernel console output (not intermixed with test programs): Warning: Permanently added '10.128.0.29' (ED25519) to the list of known hosts. /: bad dir ino 79248 at offset 248: mangled entry panic: bad dir Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *226544 89246 0 0 0x4000000 0K syz-executor 180201 31934 0 0x14000 0x200 1 reaper db_enter() at db_enter+0x25 panic(ffffffff83036195) at panic+0x1e5 ufs_dirbadentry(ffff8000371ccb68,ffff8000371ccb68,f658fe108353fe5) at ufs_dirbadentry VOP_LOOKUP(fffffd8068fdd6c8,ffff8000371ccde8,ffff8000371cce18) at VOP_LOOKUP+0x6e vfs_lookup(ffff8000371ccdb8) at vfs_lookup+0x8fa namei(ffff8000371ccdb8) at namei+0x7aa dorenameat(ffff80003579dc00,ffffff9c,20000000,ffffff9c,20000080) at dorenameat+0x91 syscall(ffff8000371ccfb0) at syscall+0xaf8 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x116467b8ac0, 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: bad dir ddb{0}> trace db_enter() at db_enter+0x25 panic(ffffffff83036195) at panic+0x1e5 ufs_dirbadentry(ffff8000371ccb68,ffff8000371ccb68,f658fe108353fe5) at ufs_dirbadentry VOP_LOOKUP(fffffd8068fdd6c8,ffff8000371ccde8,ffff8000371cce18) at VOP_LOOKUP+0x6e vfs_lookup(ffff8000371ccdb8) at vfs_lookup+0x8fa namei(ffff8000371ccdb8) at namei+0x7aa dorenameat(ffff80003579dc00,ffffff9c,20000000,ffffff9c,20000080) at dorenameat+0x91 syscall(ffff8000371ccfb0) at syscall+0xaf8 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x116467b8ac0, count: -9 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff8000371cc990 rbx 0xffffffff83473dbf cpu_info_full_primary+0x2dbf rdx 0 rcx 0xffff80003579dc00 rax 0xffffffff83472ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x65fa9b8b0fd28c71 r11 0x95a6c08d16ece677 r12 0xffffffff83473bc0 cpu_info_full_primary+0x2bc0 r13 0 r14 0 r15 0x1 rip 0xffffffff817ca965 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000371cc980 ss 0 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=226544 pid=89246 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=17, usrpri=59, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003579d978,0xffff8000ffff7c08 process=0xffff800035fa1240 user=0xffff8000371c8000, vmspace=0xfffffd8068f95aa8 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 11586 503029 30924 0 2 0x2 ndp 87963 85131 43428 0 2 0x10 syz-executor 87963 383928 43428 0 2 0x4000010 syz-executor 89246 448119 16181 0 2 0 syz-executor 89246 42499 16181 0 3 0x4000000 inode syz-executor *89246 226544 16181 0 7 0x4000000 syz-executor 20988 492100 54988 0 2 0 syz-executor 20988 117727 54988 0 3 0x4000080 netcon syz-executor 18524 208542 22808 0 2 0 syz-executor 18524 44648 22808 0 3 0x4000080 fsleep syz-executor 30924 10708 93145 0 3 0x10008a sigsusp sh 6861 7980 44323 0 3 0x82 wait syz-executor 16181 103830 44323 0 3 0x82 nanoslp syz-executor 43428 383561 44323 0 3 0x82 nanoslp syz-executor 93145 516822 44323 0 3 0x82 wait syz-executor 54988 347499 44323 0 3 0x82 nanoslp syz-executor 22808 371152 44323 0 3 0x82 nanoslp syz-executor 44323 456374 76050 0 3 0x82 wait syz-executor 76050 94844 49473 0 3 0x10008a sigsusp ksh 49473 66130 61526 0 3 0x98 kqread sshd-session 61526 186166 57509 0 3 0x92 kqread sshd-session 84495 250528 1 0 3 0x100083 ttyin getty 57509 506742 1 0 3 0x88 kqread sshd 62561 167868 68809 74 3 0x1100092 bpf pflogd 68809 367341 1 0 3 0x80 sbwait pflogd 9457 378915 87561 73 3 0x1100090 kqread syslogd 87561 134242 1 0 3 0x100082 sbwait syslogd 54837 368938 1 0 3 0x100080 kqread resolvd 8353 520837 81977 77 3 0x100092 kqread dhcpleased 6384 255169 81977 77 3 0x100092 kqread dhcpleased 81977 116404 1 0 3 0x80 kqread dhcpleased 46241 297303 0 0 3 0x14200 bored smr 67071 454669 0 0 2 0x14200 zerothread 57729 229693 0 0 3 0x14200 aiodoned aiodoned 17708 47956 0 0 3 0x14200 syncer update 38322 458175 0 0 3 0x14200 cleaner cleaner 31934 180201 0 0 7 0x14200 reaper 46510 188562 0 0 3 0x14200 pgdaemon pagedaemon 94718 290297 0 0 3 0x14200 bored viomb 67991 73901 0 0 3 0x40014200 acpi0 acpi0 71132 497110 0 0 3 0x40014200 idle1 12930 372235 0 0 3 0x14200 bored softnet3 40526 183716 0 0 3 0x14200 bored softnet2 44019 235776 0 0 3 0x14200 bored softnet1 7918 46808 0 0 3 0x14200 bored softnet0 11301 335867 0 0 3 0x14200 bored systqmp 93072 167987 0 0 3 0x14200 bored systq 30047 386516 0 0 3 0x14200 tmoslp softclockmp 2754 396673 0 0 3 0x40014200 tmoslp softclock 19117 498718 0 0 3 0x40014200 idle0 1 390960 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 89246 (syz-executor) thread 0xffff80003579dc00 (226544) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff836331e0) #0 witness_lock+0x5bb #1 __mp_acquire_count+0x58 #2 mi_switch+0x4b7 #3 sleep_finish+0x2f2 #4 biowait+0xc1 #5 ffs_bufatoff+0x16f #6 ufs_lookup+0x548 #7 VOP_LOOKUP+0x6e #8 vfs_lookup+0x8fa #9 namei+0x7aa #10 dorenameat+0x91 #11 syscall+0xaf8 #12 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd8068f65b40) #0 witness_lock+0x5bb #1 rw_enter+0x41b #2 rrw_enter+0xbe #3 VOP_LOCK+0xa6 #4 vn_lock+0xa4 #5 vfs_lookup+0x109 #6 namei+0x7aa #7 dorenameat+0x91 #8 syscall+0xaf8 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10188 11178K 11178K 166960K 11267 0 pcb 17 12K 12K 166960K 17 0 rtable 232 6K 6K 166960K 342 0 pf 34 17K 18K 166960K 45 0 ifaddr 43 7K 7K 166960K 45 0 ifgroup 55 2K 2K 166960K 55 0 counters 64 36K 36K 166960K 64 0 ioctlops 0 0K 4K 166960K 1484 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1367 86K 86K 166960K 1391 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 2 0K 0K 166960K 2 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 16 57K 89K 166960K 138 0 sigio 0 0K 0K 166960K 1 0 proc 70 91K 140K 166960K 529 0 subproc 104 6K 6K 166960K 104 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 in_multi 99 7K 7K 166960K 99 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 25 122K 122K 166960K 25 0 exec 0 0K 1K 166960K 358 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 212 72K 72K 166960K 2835 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 42 84K 101K 166960K 1207 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 28 2K 2K 166960K 28 0 temp 33 6814K 6878K 166960K 3868 0 kqueue 13 20K 20K 166960K 22 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 24 0 0 1 0 1 1 0 8 0 rtpcb 120 32 0 29 1 0 1 1 0 8 0 rtentry 112 110 0 1 4 0 4 4 0 8 0 unpcb 144 37 0 20 1 0 1 1 0 8 0 syncache 336 3 0 3 2 1 1 1 0 8 1 tcpcb 808 10 0 5 1 0 1 1 0 8 0 arp 120 18 0 0 1 0 1 1 0 8 0 inpcb 336 71 0 62 1 0 1 1 0 8 0 nd6 136 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 18 0 0 1 0 1 1 0 8 0 pfstkey 128 18 0 0 1 0 1 1 0 8 0 pfstate 376 18 0 0 2 0 2 2 0 8 0 pfrule 1344 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 32 452 0 0 4 0 4 4 0 8 0 art_node 16 109 0 10 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1556 0 51 95 0 95 95 0 8 0 ffsino 272 1556 0 51 101 0 101 101 0 8 0 nchpl 144 1741 0 58 63 0 63 63 0 8 0 uvmvnodes 80 1677 0 0 35 0 35 35 0 8 0 vnodes 216 1677 0 0 94 0 94 94 0 8 0 namei 1024 5339 0 5337 2 0 2 2 0 8 1 percpumem 16 46 0 0 1 0 1 1 0 8 0 kstatmem 264 24 0 0 2 0 2 2 0 8 0 scxspl 216 5077 0 5077 3 1 2 2 1 8 2 plimitpl 152 27 0 10 1 0 1 1 0 8 0 sigapl 424 436 0 387 8 1 7 7 0 8 0 futexpl 64 73 0 72 1 0 1 1 0 8 0 knotepl 120 57 0 0 2 0 2 2 0 8 0 kqueuepl 216 18 0 9 1 0 1 1 0 8 0 pipepl 320 105 0 78 3 0 3 3 0 8 0 fdescpl 496 418 0 388 5 0 5 5 0 8 0 filepl 152 1475 0 1231 11 0 11 11 0 8 1 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 22 0 13 1 0 1 1 0 8 0 pgrppl 48 30 0 13 1 0 1 1 0 8 0 ucredpl 104 59 0 45 1 0 1 1 0 8 0 zombiepl 144 390 0 387 1 0 1 1 0 8 0 processpl 1160 436 0 387 5 0 5 5 0 8 1 procpl 648 450 0 396 6 1 5 5 0 8 0 sockpl 664 140 0 111 3 0 3 3 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 147 0 0 19 0 19 19 0 8 0 mcl2k 2048 9 0 0 2 0 2 2 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 151 0 0 10 0 10 10 0 8 0 bufpl 280 2204 0 97 151 0 151 151 0 8 0 anonpl 24 141127 0 137992 25 0 25 25 0 185 4 amapchunkpl 152 9096 0 8679 18 0 18 18 0 158 0 amappl16 200 3832 0 3827 5 0 5 5 0 8 4 amappl15 192 14 0 14 1 0 1 1 0 8 1 amappl14 184 107 0 95 1 0 1 1 0 8 0 amappl13 176 41 0 41 1 0 1 1 0 8 1 amappl12 168 1069 0 1038 4 1 3 3 0 8 0 amappl11 160 52 0 38 1 0 1 1 0 8 0 amappl10 152 14 0 14 1 0 1 1 0 8 1 amappl9 144 150 0 150 1 0 1 1 0 8 1 amappl8 136 37 0 36 1 0 1 1 0 8 0 amappl7 128 107 0 94 1 0 1 1 0 8 0 amappl6 120 163 0 161 1 0 1 1 0 8 0 amappl5 112 137 0 126 1 0 1 1 0 8 0 amappl4 104 316 0 297 1 0 1 1 0 8 0 amappl3 96 1696 0 1615 3 0 3 3 0 8 0 amappl2 88 675 0 594 2 0 2 2 0 8 0 amappl1 80 7418 0 6835 14 0 14 14 0 8 0 amappl 88 2472 0 2323 4 0 4 4 0 92 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 418 0 388 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 418 0 388 1 0 1 1 0 8 0 vmmpekpl 168 4963 0 4927 2 0 2 2 0 8 0 vmmpepl 168 34733 0 33008 80 0 80 80 0 357 0 vmsppl 448 417 0 388 6 1 5 5 0 8 0 rwobjpl 56 16027 0 13439 38 0 38 38 0 8 0 pdppl 4096 843 0 776 95 12 83 83 0 8 16 pvpl 32 8803 0 0 71 0 71 71 0 265 0 pmappl 248 417 0 388 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 371 0 16 11 0 11 11 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x25 panic(ffffffff83036195) at panic+0x1e5 ufs_dirbadentry(ffff8000371ccb68,ffff8000371ccb68,f658fe108353fe5) at ufs_dirbadentry VOP_LOOKUP(fffffd8068fdd6c8,ffff8000371ccde8,ffff8000371cce18) at VOP_LOOKUP+0x6e vfs_lookup(ffff8000371ccdb8) at vfs_lookup+0x8fa namei(ffff8000371ccdb8) at namei+0x7aa dorenameat(ffff80003579dc00,ffffff9c,20000000,ffffff9c,20000080) at dorenameat+0x91 syscall(ffff8000371ccfb0) at syscall+0xaf8 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x116467b8ac0, count: -9 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff800029b7bff0) at x86_ipi_db+0x27 x86_ipi_handler() at x86_ipi_handler+0xd9 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff83632fd8) at __mp_lock+0x192 reaper(ffff800029fd96d0) at reaper+0x24b end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff800029b7bff0) at x86_ipi_db+0x27 x86_ipi_handler() at x86_ipi_handler+0xd9 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff83632fd8) at __mp_lock+0x192 reaper(ffff800029fd96d0) at reaper+0x24b end trace frame: 0x0, count: -5