ci starts bisection 2023-02-05 05:58:55.891985108 +0000 UTC m=+60602.083817129 bisecting cause commit starting from 4fafd96910add124586b549ad005dcd179de8a18 building syzkaller on be607b78d7dea8ef5a0267ae7396fded7dc016d5 ensuring issue is reproducible on original commit 4fafd96910add124586b549ad005dcd179de8a18 testing commit 4fafd96910add124586b549ad005dcd179de8a18 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 7c19739c424b72bcdab0c3200f5b80f6b198cf4dca3b433de3b78b8d4c4a4c8c all runs: crashed: WARNING in udf_expand_dir_adinicb testing release v6.1 testing commit 830b3c68c1fb1e9176028d02ef86f3cf76aa2476 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 1217116b617af5b6a7918c1f6ae61dd29c568924b573f386667f418b564b9628 all runs: OK # git bisect start 4fafd96910add124586b549ad005dcd179de8a18 830b3c68c1fb1e9176028d02ef86f3cf76aa2476 Bisecting: 13281 revisions left to test after this (roughly 14 steps) [a6e3e6f138058ff184d8ef5064a033b3f5fee8f8] Merge tag 'mm-nonmm-stable-2022-12-17-20-32' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm testing commit a6e3e6f138058ff184d8ef5064a033b3f5fee8f8 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: e2d43ed7ab1354596d204e4dadcf5f62e6ff71ce9033ede60310f4a4b40fe30d all runs: OK # git bisect good a6e3e6f138058ff184d8ef5064a033b3f5fee8f8 Bisecting: 6654 revisions left to test after this (roughly 13 steps) [46577ef6af4501f2b1c386249bc1f5d31897523e] Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm.git testing commit 46577ef6af4501f2b1c386249bc1f5d31897523e gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 082b53f0fe6eb4d76c73f819b1bcb1adc0547680c0f5a29df09746960d85cb18 all runs: crashed: WARNING in udf_expand_dir_adinicb # git bisect bad 46577ef6af4501f2b1c386249bc1f5d31897523e Bisecting: 3290 revisions left to test after this (roughly 12 steps) [eaffd888e597ab684c2df4b17fa9f0e75f0944b8] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git testing commit eaffd888e597ab684c2df4b17fa9f0e75f0944b8 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 5d9586484eb05fa276761168fab25d9cc583852d623b3c37fb92730ae1643c22 all runs: OK # git bisect good eaffd888e597ab684c2df4b17fa9f0e75f0944b8 Bisecting: 1638 revisions left to test after this (roughly 11 steps) [5bb4578fc09aaa73cf9be2cbade782c1226771ec] Merge branch 'stm32-next' of git://git.kernel.org/pub/scm/linux/kernel/git/atorgue/stm32.git testing commit 5bb4578fc09aaa73cf9be2cbade782c1226771ec gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 31e030757ae72f1a5e5627eb03579d5f6dcd87d5346641ec9454f688037cd257 all runs: OK # git bisect good 5bb4578fc09aaa73cf9be2cbade782c1226771ec Bisecting: 809 revisions left to test after this (roughly 10 steps) [062617675535ea91dd645fc3cd2ae8346487566c] Merge branch 'nfsd-next' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux testing commit 062617675535ea91dd645fc3cd2ae8346487566c gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6d0d46ba38b7fb64c97a3636cf8aab5e1c6c8e09fdd6e452adf5f608e2a87613 all runs: crashed: WARNING in udf_expand_dir_adinicb # git bisect bad 062617675535ea91dd645fc3cd2ae8346487566c Bisecting: 452 revisions left to test after this (roughly 9 steps) [74e136965c860648b3262cb3ec7b76030f6b2890] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/idmapping.git testing commit 74e136965c860648b3262cb3ec7b76030f6b2890 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: f88a4bb489cbf00cfcfab16c1b29acada7fb71d87ebc4b75ee9ad1522731f202 all runs: OK # git bisect good 74e136965c860648b3262cb3ec7b76030f6b2890 Bisecting: 238 revisions left to test after this (roughly 8 steps) [5215ff5f41eb8e80aba89f299b3c9971a96c609f] Merge branch 'for_next' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs.git testing commit 5215ff5f41eb8e80aba89f299b3c9971a96c609f gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: b859cee100c515780c9aea610a29bd2bc5779c360d574d4e78c858b6d2db3f08 all runs: crashed: WARNING in udf_expand_dir_adinicb # git bisect bad 5215ff5f41eb8e80aba89f299b3c9971a96c609f Bisecting: 107 revisions left to test after this (roughly 7 steps) [e1433a1b46320505f5aa887a267595bbf08cf12d] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git testing commit e1433a1b46320505f5aa887a267595bbf08cf12d gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 2dc54daecd79f6e58059306aa14cf919c54a33c05948907fa07f465df73a0c9d all runs: OK # git bisect good e1433a1b46320505f5aa887a267595bbf08cf12d Bisecting: 53 revisions left to test after this (roughly 6 steps) [b9a861fd527ab123e76effb492b4eb7e8115d4ca] udf: Protect truncate and file type conversion with invalidate_lock testing commit b9a861fd527ab123e76effb492b4eb7e8115d4ca gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6cc060b609a8dfff0006f1afa4f76b0c3c67b6e71c64a4278fb2599ee676a1b6 all runs: crashed: WARNING in udf_expand_dir_adinicb # git bisect bad b9a861fd527ab123e76effb492b4eb7e8115d4ca Bisecting: 26 revisions left to test after this (roughly 5 steps) [96b87cbdeb50e47c25eae1e8b209857e6acf34ea] fs/ext2: Replace kmap_atomic() with kmap_local_page() testing commit 96b87cbdeb50e47c25eae1e8b209857e6acf34ea gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6cc917eb80156ecab0fb6e71c76c2c2bd32d939693bca7c870305cfeee3c14a1 all runs: crashed: WARNING in udf_expand_dir_adinicb # git bisect bad 96b87cbdeb50e47c25eae1e8b209857e6acf34ea Bisecting: 13 revisions left to test after this (roughly 4 steps) [f2844803404d9729f893e279ddea12678710e7fb] udf: Implement adding of dir entries using new iteration code testing commit f2844803404d9729f893e279ddea12678710e7fb gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 550361f7d2f704f470545167bc953d39bf839faa4b19c2182c88367277f13e00 all runs: OK # git bisect good f2844803404d9729f893e279ddea12678710e7fb Bisecting: 6 revisions left to test after this (roughly 3 steps) [53cafe1d6d8ef9f93318e5bfccc0d24f27d41ced] udf: Do not bother merging very long extents testing commit 53cafe1d6d8ef9f93318e5bfccc0d24f27d41ced gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: cfe99a70d739b5ce0f31bc49b35cc1cf968dbbedd935b96d1baab12512207eab all runs: OK # git bisect good 53cafe1d6d8ef9f93318e5bfccc0d24f27d41ced Bisecting: 3 revisions left to test after this (roughly 2 steps) [19fd80de0a8b5170ef34704c8984cca920dffa59] udf: Handle error when adding extent to a file testing commit 19fd80de0a8b5170ef34704c8984cca920dffa59 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: d73ff6367dc735aaeb9a5e2e7258fd224997e64d6d76dcd7f82c61ad6decadb4 all runs: OK # git bisect good 19fd80de0a8b5170ef34704c8984cca920dffa59 Bisecting: 1 revision left to test after this (roughly 1 step) [e57191a8d40086537d505241a8ee49d8b62ce1d6] udf: Move setting of i_lenExtents into udf_do_extend_file() testing commit e57191a8d40086537d505241a8ee49d8b62ce1d6 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: f12fe39043afdcbc7695e9ec646dd2c412d120d1fb833cbd4d0bc4b3639adfb0 all runs: crashed: WARNING in udf_expand_dir_adinicb # git bisect bad e57191a8d40086537d505241a8ee49d8b62ce1d6 Bisecting: 0 revisions left to test after this (roughly 0 steps) [0aba4860b0d0216a1a300484ff536171894d49d8] udf: Allocate name buffer in directory iterator on heap testing commit 0aba4860b0d0216a1a300484ff536171894d49d8 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 133a925d3ec3528624f4eb557f36af3bac48561d76a3e308aed8687527845406 all runs: crashed: WARNING in udf_expand_dir_adinicb # git bisect bad 0aba4860b0d0216a1a300484ff536171894d49d8 0aba4860b0d0216a1a300484ff536171894d49d8 is the first bad commit commit 0aba4860b0d0216a1a300484ff536171894d49d8 Author: Jan Kara Date: Tue Dec 20 12:38:45 2022 +0100 udf: Allocate name buffer in directory iterator on heap Currently we allocate name buffer in directory iterators (struct udf_fileident_iter) on stack. These structures are relatively large (some 360 bytes on 64-bit architectures). For udf_rename() which needs to keep three of these structures in parallel the stack usage becomes rather heavy - 1536 bytes in total. Allocate the name buffer in the iterator from heap to avoid excessive stack usage. Link: https://lore.kernel.org/all/202212200558.lK9x1KW0-lkp@intel.com Reported-by: kernel test robot Signed-off-by: Jan Kara fs/udf/directory.c | 23 +++++++++++++++-------- fs/udf/udfdecl.h | 2 +- 2 files changed, 16 insertions(+), 9 deletions(-) culprit signature: 133a925d3ec3528624f4eb557f36af3bac48561d76a3e308aed8687527845406 parent signature: d73ff6367dc735aaeb9a5e2e7258fd224997e64d6d76dcd7f82c61ad6decadb4 revisions tested: 17, total time: 5h12m52.688995621s (build: 3h2m14.140729046s, test: 2h7m0.279430674s) first bad commit: 0aba4860b0d0216a1a300484ff536171894d49d8 udf: Allocate name buffer in directory iterator on heap recipients (to): ["jack@suse.com" "jack@suse.cz" "linux-kernel@vger.kernel.org"] recipients (cc): ["akpm@linux-foundation.org" "gorcunov@gmail.com" "penberg@cs.helsinki.fi"] crash: WARNING in udf_expand_dir_adinicb R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffc2febf82f R14: 00007f62ec0cb300 R15: 0000000000022000 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5777 at fs/udf/namei.c:220 udf_expand_dir_adinicb+0x8fd/0xcb0 fs/udf/namei.c:160 Modules linked in: CPU: 0 PID: 5777 Comm: syz-executor.0 Not tainted 6.2.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 RIP: 0010:udf_expand_dir_adinicb+0x8fd/0xcb0 fs/udf/namei.c:220 Code: 00 41 0f b6 87 e8 fe ff ff be 07 00 00 00 4c 89 ff 45 31 e4 83 e0 f8 09 c5 41 88 af e8 fe ff ff e8 a8 d4 26 ff e9 34 ff ff ff <0f> 0b 48 89 ef e8 69 6b 01 00 e9 25 ff ff ff 4c 89 c7 4c 89 44 24 RSP: 0018:ffffc90004b97888 EFLAGS: 00010282 RAX: 00000000fffffff4 RBX: ffffc90004b97b00 RCX: 1ffff92000972f3c RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffff888011441b40 RBP: ffffc90004b97960 R08: ffffc90004b97988 R09: 00000000ffffffff R10: ffffc90004b97998 R11: 0000000000000000 R12: ffff888076dbc570 R13: ffffc90004b97900 R14: ffff8880718b0e50 R15: ffff8880718b0e28 FS: 00007f62ec0cb700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055807cee2680 CR3: 0000000076b47000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: udf_fiiter_add_entry+0xa61/0xe80 fs/udf/namei.c:276 udf_add_nondir+0xd2/0x340 fs/udf/namei.c:353 vfs_create fs/namei.c:3115 [inline] vfs_create+0x318/0x5a0 fs/namei.c:3101 do_mknodat+0x2fb/0x480 fs/namei.c:3965 __do_sys_mknod fs/namei.c:3998 [inline] __se_sys_mknod fs/namei.c:3996 [inline] __x64_sys_mknod+0xf7/0x150 fs/namei.c:3996 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f62eb28c0c9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f62ec0cb168 EFLAGS: 00000246 ORIG_RAX: 0000000000000085 RAX: ffffffffffffffda RBX: 00007f62eb3abf80 RCX: 00007f62eb28c0c9 RDX: 0000000000000701 RSI: 0000000000000000 RDI: 0000000020000200 RBP: 00007f62ec0cb1d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffc2febf82f R14: 00007f62ec0cb300 R15: 0000000000022000