ci starts bisection 2023-06-05 06:30:08.141084324 +0000 UTC m=+318561.639038878 bisecting cause commit starting from 9561de3a55bed6bdd44a12820ba81ec416e705a7 building syzkaller on a4ae4f428721da42ac15f07d6f3b54584dedee27 ensuring issue is reproducible on original commit 9561de3a55bed6bdd44a12820ba81ec416e705a7 testing commit 9561de3a55bed6bdd44a12820ba81ec416e705a7 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 368e0b2e51f60599ea60a48b6283cacd3f0963d5d57ead3618f8a0fe41149ea5 all runs: crashed: WARNING: locking bug in ext4_ioctl 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: 032deead7ca496416efe8ce17f10ed84ba2ccbabdd7cc5c35e15ecab9ec73614 all runs: OK # git bisect start 9561de3a55bed6bdd44a12820ba81ec416e705a7 457391b0380335d5e9a5babdec90ac53928b23b4 Bisecting: 7258 revisions left to test after this (roughly 13 steps) [6e98b09da931a00bf4e0477d0fa52748bf28fcce] Merge tag 'net-next-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next testing commit 6e98b09da931a00bf4e0477d0fa52748bf28fcce gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: a21b2d90af9d9a14e8f733a46fa422c58e615c3911fb0d158f42d6e46b0f6560 all runs: OK # git bisect good 6e98b09da931a00bf4e0477d0fa52748bf28fcce Bisecting: 3481 revisions left to test after this (roughly 12 steps) [e81507acdc19d91df4121f409871f3e4e055f6c2] Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux testing commit e81507acdc19d91df4121f409871f3e4e055f6c2 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: e6b56d7725365a3498f4c4d57d4777259fed0824a71ff7f276e971a6a16e1948 all runs: OK # git bisect good e81507acdc19d91df4121f409871f3e4e055f6c2 Bisecting: 1739 revisions left to test after this (roughly 11 steps) [a3b111b046f6ce5dff168af203daf2f46f3afb29] Merge tag 'for-6.4/block-2023-05-06' of git://git.kernel.dk/linux testing commit a3b111b046f6ce5dff168af203daf2f46f3afb29 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: bee39342d983444a71546f54541339d1b9b11d63f40d94db19d7a9db2089f820 all runs: OK # git bisect good a3b111b046f6ce5dff168af203daf2f46f3afb29 Bisecting: 869 revisions left to test after this (roughly 10 steps) [1de5900c816a9535cf2e18a6bb19832facff8275] Merge branch 'bug-fixes-for-net-handshake' testing commit 1de5900c816a9535cf2e18a6bb19832facff8275 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 47494c1bbe0f210542e109f726d6c9f1f3048830a242e2551764e629ce92b6f7 all runs: OK # git bisect good 1de5900c816a9535cf2e18a6bb19832facff8275 Bisecting: 443 revisions left to test after this (roughly 9 steps) [96f15fc6cc020f68ea23e099da34858678060002] Merge tag 'pci-v6.4-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci testing commit 96f15fc6cc020f68ea23e099da34858678060002 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 8957c6fe4183031d00ff031527adef18a04f41e1d47a39bab01ea6cb11f18edb all runs: OK # git bisect good 96f15fc6cc020f68ea23e099da34858678060002 Bisecting: 192 revisions left to test after this (roughly 8 steps) [714069daa5d345483578e2ff77fb6f06f4dcba6a] Merge tag 'net-6.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net testing commit 714069daa5d345483578e2ff77fb6f06f4dcba6a gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: ff6ee701d43611fa65fbbe0224796dc6be9f31bd508b0e218ac170a9372e9902 all runs: crashed: WARNING: locking bug in ext4_ioctl # git bisect bad 714069daa5d345483578e2ff77fb6f06f4dcba6a Bisecting: 127 revisions left to test after this (roughly 7 steps) [48b1320a674e1ff5de2fad8606bee38f724594dc] Merge tag 'for-6.4-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux testing commit 48b1320a674e1ff5de2fad8606bee38f724594dc gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 13fe36ff0b28d80c5f50e13c601519b99598c43140c154ee9d06ebeca0809bbd all runs: OK # git bisect good 48b1320a674e1ff5de2fad8606bee38f724594dc Bisecting: 63 revisions left to test after this (roughly 6 steps) [65d6914e253f3d83b724a9bbfc889ae95711e512] rtnetlink: add the missing IFLA_GRO_ tb check in validate_linkmsg testing commit 65d6914e253f3d83b724a9bbfc889ae95711e512 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 5171869a84138d58e84b0c46e082c5a8e5152f6b3eadfdbbc9da8b2fb3597d98 all runs: OK # git bisect good 65d6914e253f3d83b724a9bbfc889ae95711e512 Bisecting: 27 revisions left to test after this (roughly 5 steps) [8828003759391029fc45c15ac346622cdae19b6d] Merge tag '6.4-rc4-smb3-server-fixes' of git://git.samba.org/ksmbd testing commit 8828003759391029fc45c15ac346622cdae19b6d gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 242d75cd04d16e573d128ebc084de152effc5a843a58692038e769917dbbd584 all runs: crashed: WARNING: locking bug in ext4_ioctl # git bisect bad 8828003759391029fc45c15ac346622cdae19b6d Bisecting: 21 revisions left to test after this (roughly 4 steps) [5842d1d9c1b0d17e0c29eae65ae1f245f83682dd] RDMA/irdma: Fix Local Invalidate fencing testing commit 5842d1d9c1b0d17e0c29eae65ae1f245f83682dd gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 9bdde7e3c012c42334f8d204b2e1f16f5c9610f6bab9ac998017da61f9468517 all runs: OK # git bisect good 5842d1d9c1b0d17e0c29eae65ae1f245f83682dd Bisecting: 8 revisions left to test after this (roughly 4 steps) [929ed21dfdb6ee94391db51c9eedb63314ef6847] Merge tag '6.4-rc4-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6 testing commit 929ed21dfdb6ee94391db51c9eedb63314ef6847 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: b4d77a481776f71c66279f37f0bda7c7e045967394cd18c23353d79ef3dafd17 all runs: crashed: WARNING: locking bug in ext4_ioctl # git bisect bad 929ed21dfdb6ee94391db51c9eedb63314ef6847 Bisecting: 6 revisions left to test after this (roughly 3 steps) [eb1f822c76beeaa76ab8b6737ab9dc9f9798408c] ext4: enable the lazy init thread when remounting read/write testing commit eb1f822c76beeaa76ab8b6737ab9dc9f9798408c gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: d45c64f53a215a0e026f4a24c34bba26fe200d02f41e574f8c68fc3e5096a246 all runs: crashed: WARNING: locking bug in ext4_ioctl # git bisect bad eb1f822c76beeaa76ab8b6737ab9dc9f9798408c Bisecting: 2 revisions left to test after this (roughly 2 steps) [2bc7e7c1a3bc9bd0cbf0f71006f6fe7ef24a00c2] ext4: disallow ea_inodes with extended attributes testing commit 2bc7e7c1a3bc9bd0cbf0f71006f6fe7ef24a00c2 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 519158ea5f590c8c70d780d359ec7103a3ac773f0b23a1e1d5de9ca7c084332d all runs: OK # git bisect good 2bc7e7c1a3bc9bd0cbf0f71006f6fe7ef24a00c2 Bisecting: 0 revisions left to test after this (roughly 1 step) [1077b2d53ef53629c14106aecf633bebd286c04c] ext4: fix fsync for non-directories testing commit 1077b2d53ef53629c14106aecf633bebd286c04c gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 4d4030c8d52e58f0820502b99b3fec5ca1ab7535aca0f957bcb637f82aa4ce63 all runs: crashed: WARNING: locking bug in ext4_ioctl # git bisect bad 1077b2d53ef53629c14106aecf633bebd286c04c Bisecting: 0 revisions left to test after this (roughly 0 steps) [aff3bea95388299eec63440389b4545c8041b357] ext4: add lockdep annotations for i_data_sem for ea_inode's testing commit aff3bea95388299eec63440389b4545c8041b357 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 59ba7bcf8f879a34667ca22bab6c601d0da799c9bf868e71048d7da58ae80a40 all runs: crashed: WARNING: locking bug in ext4_ioctl # git bisect bad aff3bea95388299eec63440389b4545c8041b357 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: 59ba7bcf8f879a34667ca22bab6c601d0da799c9bf868e71048d7da58ae80a40 parent signature: 519158ea5f590c8c70d780d359ec7103a3ac773f0b23a1e1d5de9ca7c084332d revisions tested: 17, total time: 5h43m2.438246798s (build: 3h21m29.126261647s, test: 2h18m30.031241926s) 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_ioctl ------------[ cut here ]------------ Looking for class "&ei->i_data_sem" with key init_once.__key.780, but found a different class "&ei->i_data_sem" with the same key WARNING: CPU: 1 PID: 6875 at kernel/locking/lockdep.c:941 look_up_lock_class+0xc2/0x140 kernel/locking/lockdep.c:938 Modules linked in: CPU: 1 PID: 6875 Comm: syz-executor.0 Not tainted 6.4.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 RIP: 0010:look_up_lock_class+0xc2/0x140 kernel/locking/lockdep.c:938 Code: 8b 16 48 c7 c0 60 81 f2 8e 48 39 c2 74 46 f6 05 5c b5 82 03 01 75 3d c6 05 53 b5 82 03 01 48 c7 c7 20 a1 ea 89 e8 5e 53 a1 f7 <0f> 0b eb 26 e8 25 d4 1f fa 48 c7 c7 60 a0 ea 89 89 de e8 b7 fc fd RSP: 0018:ffffc90006d47590 EFLAGS: 00010046 RAX: b8055bb1d7c18600 RBX: ffffffff8edca8e0 RCX: 0000000000000002 RDX: 0000000000000001 RSI: 0000000000000004 RDI: 0000000000000001 RBP: ffffc90006d47698 R08: dffffc0000000000 R09: ffffed10173a5163 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: 1ffff92000da8ec0 R14: ffff88807723b488 R15: ffffffff909eb601 FS: 00007f0467e5f700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f04671a80c0 CR3: 000000001d622000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: register_lock_class+0x104/0x990 kernel/locking/lockdep.c:1290 __lock_acquire+0xd3/0x2070 kernel/locking/lockdep.c:4965 lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5705 down_write_nested+0x3d/0x50 kernel/locking/rwsem.c:1689 swap_inode_boot_loader fs/ext4/ioctl.c:423 [inline] __ext4_ioctl fs/ext4/ioctl.c:1418 [inline] ext4_ioctl+0xe1b/0x4d70 fs/ext4/ioctl.c:1608 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xa7/0xf0 fs/ioctl.c:856 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:0x7f046708c169 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:00007f0467e5f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f04671abf80 RCX: 00007f046708c169 RDX: 0000000000000000 RSI: 0000000000006611 RDI: 0000000000000003 RBP: 00007f04670e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffebef8851f R14: 00007f0467e5f300 R15: 0000000000022000