ci2 starts bisection 2023-06-21 05:46:24.046439298 +0000 UTC m=+32568.275397546 bisecting cause commit starting from 99ec1ed7c2ed358280588ab1d013387e8c7a9333 building syzkaller on 79782afcff30fd0c0af8c2725d508b2c7150f3ed ensuring issue is reproducible on original commit 99ec1ed7c2ed358280588ab1d013387e8c7a9333 testing commit 99ec1ed7c2ed358280588ab1d013387e8c7a9333 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 786ba6cad2692ab4a585e558f1ad13326c1925ed7198b5e846d2e345fcf2ed7e all runs: crashed: WARNING in udf_setsize testing release v6.3 testing commit 457391b0380335d5e9a5babdec90ac53928b23b4 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 4e1f38206badff0c52deed84a20c4e6d40ebae6847c372598c538b26ce8d1533 all runs: crashed: WARNING in udf_setsize testing release v6.2 testing commit c9c3395d5e3dcc6daee66c6908354d47bf98cb0c gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 0a329a2da686bcd3c8b73adab29b27aa6301c71c82b0110029938b24c9ded7ab all runs: crashed: WARNING in udf_setsize testing release v6.1 testing commit 830b3c68c1fb1e9176028d02ef86f3cf76aa2476 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6595d7889e560ed8dcc7b803ed2abd588c67048d2887e9a662911fc775b85bab all runs: OK too many neither good nor bad results, skipping this commit # git bisect start c9c3395d5e3dcc6daee66c6908354d47bf98cb0c 830b3c68c1fb1e9176028d02ef86f3cf76aa2476 Bisecting: 9429 revisions left to test after this (roughly 13 steps) [1ca06f1c1acecbe02124f14a37cce347b8c1a90c] Merge tag 'xtensa-20221213' of https://github.com/jcmvbkbc/linux-xtensa testing commit 1ca06f1c1acecbe02124f14a37cce347b8c1a90c gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: d3600da27876469d535e02b956b46f75ae116f8729133046bc07e63dee61bebc all runs: crashed: WARNING in udf_setsize # git bisect bad 1ca06f1c1acecbe02124f14a37cce347b8c1a90c Bisecting: 3754 revisions left to test after this (roughly 12 steps) [8715c6d3100fc7c6edddf29af4a399a1c12d028c] Merge tag 'for-6.2/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm testing commit 8715c6d3100fc7c6edddf29af4a399a1c12d028c gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 59f0ef3f080842ca88c0e238480e5901d012c5eb26b4268a2ecab9bcdf117c87 all runs: crashed: WARNING in udf_setsize # git bisect bad 8715c6d3100fc7c6edddf29af4a399a1c12d028c Bisecting: 1840 revisions left to test after this (roughly 11 steps) [f10bc40168032962ebee26894bdbdc972cde35bf] Merge tag 'core-debugobjects-2022-12-10' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip testing commit f10bc40168032962ebee26894bdbdc972cde35bf gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 7c7d1a756212f49498408b2a28e7ece72ac1f3963f30d0959120f2f70a037a39 all runs: OK too many neither good nor bad results, skipping this commit # git bisect good f10bc40168032962ebee26894bdbdc972cde35bf Bisecting: 918 revisions left to test after this (roughly 10 steps) [cf619f891971bfac659ac64968f8c35db605c884] Merge tag 'fs.ovl.setgid.v6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/idmapping testing commit cf619f891971bfac659ac64968f8c35db605c884 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 0a3f2aaa9a8fd37ed6b6ea0eaf627734e6e7ea77ad7f0aeec7cdc251d145239c all runs: OK too many neither good nor bad results, skipping this commit # git bisect good cf619f891971bfac659ac64968f8c35db605c884 Bisecting: 480 revisions left to test after this (roughly 9 steps) [149c51f876322d9bfbd5e2d6ffae7aff3d794384] Merge tag 'for-6.2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux testing commit 149c51f876322d9bfbd5e2d6ffae7aff3d794384 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 0e01092bc0c3c711e43e5c4332445191f3cc25f946bf9a78ad363aefe409ef73 all runs: crashed: WARNING in udf_setsize # git bisect bad 149c51f876322d9bfbd5e2d6ffae7aff3d794384 Bisecting: 218 revisions left to test after this (roughly 8 steps) [3c32c7212f1639471ec0197ff1179b8ef2e0f3d3] btrfs: use cached state when looking for delalloc ranges with lseek testing commit 3c32c7212f1639471ec0197ff1179b8ef2e0f3d3 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: f75547263ea650808c83a534ecf202bde151b7a1086e66bca75a800de693aa1e all runs: OK too many neither good nor bad results, skipping this commit # git bisect good 3c32c7212f1639471ec0197ff1179b8ef2e0f3d3 Bisecting: 107 revisions left to test after this (roughly 7 steps) [6df7cc2268745e91d090830c58689aa7fcbde6f9] Merge tag 'ovl-update-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs testing commit 6df7cc2268745e91d090830c58689aa7fcbde6f9 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 7f902981e70b206ad3408c61cc24fd08c2e4ecf06d0a0a56e497368b0c8c5285 all runs: OK too many neither good nor bad results, skipping this commit # git bisect good 6df7cc2268745e91d090830c58689aa7fcbde6f9 Bisecting: 68 revisions left to test after this (roughly 6 steps) [56c003e4db4adb1d57e599fb4c7d39f9130f9db1] Merge tag 'jfs-6.2' of https://github.com/kleikamp/linux-shaggy testing commit 56c003e4db4adb1d57e599fb4c7d39f9130f9db1 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 9915273e3c455f6efed4a47b469f4905c07ad4cc7451f7d333bdc8f36fa4b2d9 all runs: crashed: WARNING in udf_setsize # git bisect bad 56c003e4db4adb1d57e599fb4c7d39f9130f9db1 Bisecting: 24 revisions left to test after this (roughly 4 steps) [1f3868f06855c97a4954c99b36f3fc9eb8f60326] udf: Fix extending file within last block testing commit 1f3868f06855c97a4954c99b36f3fc9eb8f60326 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: ed6c23d916d16f7c45c290f505f005a2c0642ad3b26ca5f1164d142ef29eef49 all runs: crashed: WARNING in udf_setsize # git bisect bad 1f3868f06855c97a4954c99b36f3fc9eb8f60326 Bisecting: 6 revisions left to test after this (roughly 3 steps) [36273e5b4e3a934c6d346c8f0b16b97e018094af] udf: remove ->writepage testing commit 36273e5b4e3a934c6d346c8f0b16b97e018094af gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 959fb3fb7787f31b2a05c71af3f0004bea6e521ff55cd3a63be364850fc0ead8 all runs: OK too many neither good nor bad results, skipping this commit # git bisect good 36273e5b4e3a934c6d346c8f0b16b97e018094af Bisecting: 3 revisions left to test after this (roughly 2 steps) [7868f93006ad27c00ecddcc2904118aa705459ca] udf: Increase UDF_MAX_READ_VERSION to 0x0260 testing commit 7868f93006ad27c00ecddcc2904118aa705459ca gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: b0dcc4a413d729db29d3f4aa8da824bed39959cd43e9b611dca64ebdb0f46298 all runs: OK too many neither good nor bad results, skipping this commit # git bisect good 7868f93006ad27c00ecddcc2904118aa705459ca Bisecting: 1 revision left to test after this (roughly 1 step) [6ad53f0f71c52871202a7bf096feb2c59db33fc5] udf: Do not bother looking for prealloc extents if i_lenExtents matches i_size testing commit 6ad53f0f71c52871202a7bf096feb2c59db33fc5 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: d815203a60543794994efd27f885419632fa3c64b16774858d592e9fb4801943 all runs: OK too many neither good nor bad results, skipping this commit # git bisect good 6ad53f0f71c52871202a7bf096feb2c59db33fc5 Bisecting: 0 revisions left to test after this (roughly 0 steps) [16d0556568148bdcaa45d077cac9f8f7077cf70a] udf: Discard preallocation before extending file with a hole testing commit 16d0556568148bdcaa45d077cac9f8f7077cf70a gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 52559a4cea5eacd38acc95336cf6f11afd7f91d593a12680edda22e99f9fbb78 all runs: crashed: WARNING in udf_setsize # git bisect bad 16d0556568148bdcaa45d077cac9f8f7077cf70a 16d0556568148bdcaa45d077cac9f8f7077cf70a is the first bad commit commit 16d0556568148bdcaa45d077cac9f8f7077cf70a Author: Jan Kara Date: Wed Dec 7 18:17:34 2022 +0100 udf: Discard preallocation before extending file with a hole When extending file with a hole, we tried to preserve existing preallocation for the file. However that is not very useful and complicates code because the previous extent may need to be rounded to block boundary as well (which we forgot to do thus causing data corruption for sequence like: xfs_io -f -c "pwrite 0x75e63 11008" -c "truncate 0x7b24b" \ -c "truncate 0xabaa3" -c "pwrite 0xac70b 22954" \ -c "pwrite 0x93a43 11358" -c "pwrite 0xb8e65 52211" file with 512-byte block size. Just discard preallocation before extending file to simplify things and also fix this data corruption. CC: stable@vger.kernel.org Signed-off-by: Jan Kara fs/udf/inode.c | 46 ++++++++++++++++++---------------------------- 1 file changed, 18 insertions(+), 28 deletions(-) culprit signature: 52559a4cea5eacd38acc95336cf6f11afd7f91d593a12680edda22e99f9fbb78 parent signature: d815203a60543794994efd27f885419632fa3c64b16774858d592e9fb4801943 revisions tested: 17, total time: 11h11m23.422783253s (build: 9h6m5.954693187s, test: 2h0m8.07361312s) first bad commit: 16d0556568148bdcaa45d077cac9f8f7077cf70a udf: Discard preallocation before extending file with a hole recipients (to): ["jack@suse.cz"] recipients (cc): [] crash: WARNING in udf_setsize loop0: detected capacity change from 0 to 2048 UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) ------------[ cut here ]------------ WARNING: CPU: 1 PID: 4072 at fs/udf/inode.c:635 udf_setsize+0xd4d/0x12b0 Modules linked in: CPU: 1 PID: 4072 Comm: syz-executor.0 Not tainted 6.1.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:udf_extend_file fs/udf/inode.c:634 [inline] RIP: 0010:udf_setsize+0xd4d/0x12b0 fs/udf/inode.c:1234 Code: 0f 85 76 05 00 00 44 89 e8 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 41 89 c5 48 b9 00 00 00 00 00 fc ff df e9 10 fe ff ff <0f> 0b e9 16 fa ff ff 89 f1 80 e1 07 38 c1 0f 8c 63 f3 ff ff 48 89 RSP: 0018:ffffc90004627b00 EFLAGS: 00010287 RAX: ffff8880660a8222 RBX: 0000000000000200 RCX: 0000000000000009 RDX: dffffc0000000000 RSI: 0000000000000004 RDI: 0000000000000001 RBP: ffffc90004627cd8 R08: dffffc0000000000 R09: ffffed100cc15024 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000009 R13: ffffc90004627ba0 R14: 0000000000000400 R15: 1ffff920008c4f70 FS: 00007f53eed00700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000000 CR3: 0000000021a2d000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: udf_setattr+0x26c/0x3f0 fs/udf/file.c:281 notify_change+0x9e5/0xcc0 fs/attr.c:420 do_truncate+0x1d5/0x2c0 fs/open.c:65 do_sys_ftruncate+0x234/0x2f0 fs/open.c:193 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f53ee08c389 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:00007f53eed00168 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 00007f53ee1abf80 RCX: 00007f53ee08c389 RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000004 RBP: 00007f53ee0d7493 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffde3acb46f R14: 00007f53eed00300 R15: 0000000000022000