ci starts bisection 2023-07-11 09:00:18.837886248 +0000 UTC m=+47.929899987 bisecting cause commit starting from 3f01e9fed8454dcd89727016c3e5b2fbb8f8e50c building syzkaller on 52ae002a69946d44626bb626463c27ea196a6551 ensuring issue is reproducible on original commit 3f01e9fed8454dcd89727016c3e5b2fbb8f8e50c testing commit 3f01e9fed8454dcd89727016c3e5b2fbb8f8e50c gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 067044aea03017cec3c98accbc5607851555267e69c71766f1c71e5d0b3968ec all runs: crashed: WARNING: locking bug in ext4_move_extents representative crash: WARNING: locking bug in ext4_move_extents, types: [LOCKDEP] check whether we can drop unnecessary instrumentation disabling configs for [UBSAN BUG KASAN ATOMIC_SLEEP HANG LEAK], they are not needed testing commit 3f01e9fed8454dcd89727016c3e5b2fbb8f8e50c gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 failed building 3f01e9fed8454dcd89727016c3e5b2fbb8f8e50c: ./include/linux/thread_info.h:244:4: error: call to '__bad_copy_from' declared with attribute error: copy source size is too small testing release v6.4 testing commit 6995e2de6891c724bfeb2db33d7b87775f913ad1 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 3e800be0ad7d01f15dc5c6c06da379820ca89e503dce5e3450cf256bfc5da2c7 all runs: crashed: WARNING: locking bug in ext4_move_extents representative crash: WARNING: locking bug in ext4_move_extents, types: [LOCKDEP] testing release v6.3 testing commit 457391b0380335d5e9a5babdec90ac53928b23b4 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: eded7b69e5c7cc1a98bc41e17e1af410e229f32489522b43420916a57210ded2 all runs: OK # git bisect start 6995e2de6891c724bfeb2db33d7b87775f913ad1 457391b0380335d5e9a5babdec90ac53928b23b4 Bisecting: 8012 revisions left to test after this (roughly 13 steps) [d42b1c47570eb2ed818dc3fe94b2678124af109d] Merge tag 'devicetree-for-6.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux testing commit d42b1c47570eb2ed818dc3fe94b2678124af109d gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: e31ab3d31f5a147737f39515f54ee3ca7896d58c6ff60bae201032d8b577c57f all runs: OK # git bisect good d42b1c47570eb2ed818dc3fe94b2678124af109d Bisecting: 3963 revisions left to test after this (roughly 12 steps) [58390c8ce1bddb6c623f62e7ed36383e7fa5c02f] Merge tag 'iommu-updates-v6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu testing commit 58390c8ce1bddb6c623f62e7ed36383e7fa5c02f gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: ce545f1ebd4e582cadbecc143c67999c6c09fb67cb2c750b6d6a6aa16deca9df all runs: OK # git bisect good 58390c8ce1bddb6c623f62e7ed36383e7fa5c02f Bisecting: 1979 revisions left to test after this (roughly 11 steps) [adfbf653a3ba6bb8bbb84ed90bf4f1533db545d3] Merge tag 'fbdev-for-6.4-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev testing commit adfbf653a3ba6bb8bbb84ed90bf4f1533db545d3 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 5f240b623377a208fd3a1bfd892b9cfb99fca5d1b8d215c0c1db88575ec44f43 all runs: OK # git bisect good adfbf653a3ba6bb8bbb84ed90bf4f1533db545d3 Bisecting: 989 revisions left to test after this (roughly 10 steps) [6c242c64a09e78349fb0a5f0a6f8076a3d7c0bb4] Bluetooth: ISO: don't try to remove CIG if there are bound CIS left testing commit 6c242c64a09e78349fb0a5f0a6f8076a3d7c0bb4 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 12e2e429ba8841b8b9b12ef9d31d54f3f3c09f501463101099e68979b0e1f93c all runs: crashed: WARNING: locking bug in ext4_move_extents representative crash: WARNING: locking bug in ext4_move_extents, types: [LOCKDEP] # git bisect bad 6c242c64a09e78349fb0a5f0a6f8076a3d7c0bb4 Bisecting: 492 revisions left to test after this (roughly 9 steps) [ecea3ba2fba2124c8bdc87b27b3829a6015ff854] Merge tag 'platform-drivers-x86-v6.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86 testing commit ecea3ba2fba2124c8bdc87b27b3829a6015ff854 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 632ce6432bf6718bb7b8f749c4c4e8abd18e0188ce5cfe72f5a31a2b93d68119 all runs: OK # git bisect good ecea3ba2fba2124c8bdc87b27b3829a6015ff854 Bisecting: 245 revisions left to test after this (roughly 8 steps) [957f3f8e5343041ddb9a1265ab661db259cc712e] Merge tag 'char-misc-6.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc testing commit 957f3f8e5343041ddb9a1265ab661db259cc712e gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 2e91220599e3e1afa957e4d18e84bb8a6413f9089d5543fd8bc200587bdcfc6e all runs: OK # git bisect good 957f3f8e5343041ddb9a1265ab661db259cc712e Bisecting: 125 revisions left to test after this (roughly 7 steps) [ba059590ec97ddf137ac7f200bfc5c8ce90c0237] Merge tag 'ata-6.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata testing commit ba059590ec97ddf137ac7f200bfc5c8ce90c0237 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: d8b17607c78a3ac09d17c0cfc66d1230bc2390a77e64bff179195665c53a3568 all runs: crashed: WARNING: locking bug in ext4_move_extents representative crash: WARNING: locking bug in ext4_move_extents, types: [LOCKDEP] # git bisect bad ba059590ec97ddf137ac7f200bfc5c8ce90c0237 Bisecting: 57 revisions left to test after this (roughly 6 steps) [8b817fded42d8fe3a0eb47b1149d907851a3c942] Merge tag 'trace-v6.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace testing commit 8b817fded42d8fe3a0eb47b1149d907851a3c942 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6969d3363dba066ed2603394947b7578101cda81d5e59027010d0626985f73b0 all runs: OK # git bisect good 8b817fded42d8fe3a0eb47b1149d907851a3c942 Bisecting: 30 revisions left to test after this (roughly 5 steps) [fd2186d1c708fa0ec64291da5aa6b26fb44197c3] Merge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 testing commit fd2186d1c708fa0ec64291da5aa6b26fb44197c3 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: fc56c7f19d923a695790993eb23aba3d706147648df15d31118f22ab9aac54d9 all runs: crashed: WARNING: locking bug in ext4_move_extents representative crash: WARNING: locking bug in ext4_move_extents, types: [LOCKDEP] # git bisect bad fd2186d1c708fa0ec64291da5aa6b26fb44197c3 Bisecting: 10 revisions left to test after this (roughly 4 steps) [afead42fdfcae714fb6ac41a5c323629cdb6f9ee] Merge tag 'perf-tools-fixes-for-v6.4-2-2023-05-30' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux testing commit afead42fdfcae714fb6ac41a5c323629cdb6f9ee gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 84b3fd4296d60697104ee506258e220b4f3e0e4c70c169b459de9e652e77d179 all runs: OK # git bisect good afead42fdfcae714fb6ac41a5c323629cdb6f9ee Bisecting: 5 revisions left to test after this (roughly 3 steps) [1077b2d53ef53629c14106aecf633bebd286c04c] ext4: fix fsync for non-directories testing commit 1077b2d53ef53629c14106aecf633bebd286c04c gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: b6ed9b8023b4faf264b5a639f828d2cc1f7d47d2db94e4a2abdc73e67fc8838d all runs: crashed: WARNING: locking bug in ext4_move_extents representative crash: WARNING: locking bug in ext4_move_extents, types: [LOCKDEP] # git bisect bad 1077b2d53ef53629c14106aecf633bebd286c04c Bisecting: 2 revisions left to test after this (roughly 1 step) [b928dfdcb27d8fa59917b794cfba53052a2f050f] ext4: set lockdep subclass for the ea_inode in ext4_xattr_inode_cache_find() testing commit b928dfdcb27d8fa59917b794cfba53052a2f050f gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 51baf720613b16b6f6c6b5984aa1fdfc05dcb36860783ccc2ee2b28f73fc1c55 all runs: OK # git bisect good b928dfdcb27d8fa59917b794cfba53052a2f050f Bisecting: 0 revisions left to test after this (roughly 1 step) [aff3bea95388299eec63440389b4545c8041b357] ext4: add lockdep annotations for i_data_sem for ea_inode's testing commit aff3bea95388299eec63440389b4545c8041b357 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: dd63a15beab031772aae9c479e3293c7f57e244e2c02087499d19c5d7fef433a all runs: crashed: WARNING: locking bug in ext4_move_extents representative crash: WARNING: locking bug in ext4_move_extents, types: [LOCKDEP] # git bisect bad aff3bea95388299eec63440389b4545c8041b357 Bisecting: 0 revisions left to test after this (roughly 0 steps) [2bc7e7c1a3bc9bd0cbf0f71006f6fe7ef24a00c2] ext4: disallow ea_inodes with extended attributes testing commit 2bc7e7c1a3bc9bd0cbf0f71006f6fe7ef24a00c2 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: fcdf4625f89908f587f6151d826a1662ea30537a56ac960fea93cf3fbafa1d1d all runs: OK # git bisect good 2bc7e7c1a3bc9bd0cbf0f71006f6fe7ef24a00c2 aff3bea95388299eec63440389b4545c8041b357 is the first bad commit commit aff3bea95388299eec63440389b4545c8041b357 Author: Theodore Ts'o Date: Tue May 23 23:49:51 2023 -0400 ext4: add lockdep annotations for i_data_sem for ea_inode's Treat i_data_sem for ea_inodes as being in their own lockdep class to avoid lockdep complaints about ext4_setattr's use of inode_lock() on normal inodes potentially causing lock ordering with i_data_sem on ea_inodes in ext4_xattr_inode_write(). However, ea_inodes will be operated on by ext4_setattr(), so this isn't a problem. Cc: stable@kernel.org Link: https://syzkaller.appspot.com/bug?extid=298c5d8fb4a128bc27b0 Reported-by: syzbot+298c5d8fb4a128bc27b0@syzkaller.appspotmail.com Signed-off-by: Theodore Ts'o Link: https://lore.kernel.org/r/20230524034951.779531-5-tytso@mit.edu Signed-off-by: Theodore Ts'o fs/ext4/ext4.h | 2 ++ fs/ext4/xattr.c | 4 ++++ 2 files changed, 6 insertions(+) culprit signature: dd63a15beab031772aae9c479e3293c7f57e244e2c02087499d19c5d7fef433a parent signature: fcdf4625f89908f587f6151d826a1662ea30537a56ac960fea93cf3fbafa1d1d revisions tested: 17, total time: 6h18m22.025529705s (build: 3h17m23.221165294s, test: 2h19m48.808262036s) first bad commit: aff3bea95388299eec63440389b4545c8041b357 ext4: add lockdep annotations for i_data_sem for ea_inode's recipients (to): ["tytso@mit.edu"] recipients (cc): [] crash: WARNING: locking bug in ext4_move_extents loop0: detected capacity change from 0 to 512 ext4 filesystem being mounted at /root/syzkaller-testdir1943682455/syzkaller.VLfbd4/32/bus supports timestamps until 2038-01-19 (0x7fffffff) ------------[ cut here ]------------ Looking for class "&ei->i_data_sem" with key __key.0, but found a different class "&ei->i_data_sem" with the same key WARNING: CPU: 0 PID: 5806 at kernel/locking/lockdep.c:938 look_up_lock_class+0xac/0x130 kernel/locking/lockdep.c:938 Modules linked in: CPU: 0 PID: 5806 Comm: syz-executor.0 Not tainted 6.4.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 RIP: 0010:look_up_lock_class+0xac/0x130 kernel/locking/lockdep.c:938 Code: 39 48 8b 55 00 48 81 fa 20 f8 14 90 74 2c 80 3d 48 5b 55 04 00 75 23 48 c7 c7 a0 5c 4c 8a c6 05 38 5b 55 04 01 e8 64 e8 3c f7 <0f> 0b eb 0c e8 3b d5 00 fa 85 c0 75 48 45 31 e4 48 83 c4 08 4c 89 RSP: 0018:ffffc90005bbf578 EFLAGS: 00010082 RAX: 0000000000000000 RBX: ffffffff91efa6e1 RCX: 0000000000000000 RDX: ffff888021221dc0 RSI: ffffffff814c03c7 RDI: 0000000000000001 RBP: ffff888073e9f088 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: ffffffff915859e0 R13: 0000000000000001 R14: ffff888073e9f088 R15: 0000000000000001 FS: 00007f0f20a71700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002000e000 CR3: 0000000024595000 CR4: 0000000000350ef0 Call Trace: register_lock_class+0xbe/0x1120 kernel/locking/lockdep.c:1290 __lock_acquire+0x10d/0x5f30 kernel/locking/lockdep.c:4965 lock_acquire kernel/locking/lockdep.c:5705 [inline] lock_acquire+0x1b1/0x520 kernel/locking/lockdep.c:5670 down_write_nested+0x96/0x200 kernel/locking/rwsem.c:1689 ext4_double_down_write_data_sem fs/ext4/move_extent.c:58 [inline] ext4_move_extents+0x970/0x37f0 fs/ext4/move_extent.c:621 __ext4_ioctl+0x3dae/0x4b00 fs/ext4/ioctl.c:1352 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x197/0x210 fs/ioctl.c:856 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:0x7f0f1fc8c389 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:00007f0f20a71168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f0f1fdabf80 RCX: 00007f0f1fc8c389 RDX: 00000000200000c0 RSI: 00000000c028660f RDI: 0000000000000004 RBP: 00007f0f1fcd7493 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd1ed27c2f R14: 00007f0f20a71300 R15: 0000000000022000