syzbot


WARNING: locking bug in __ext4_ioctl

Status: upstream: reported C repro on 2023/06/05 04:03
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+a537ff48a9cb940d314c@syzkaller.appspotmail.com
First crash: 493d, last: 12h05m
Cause bisection: introduced by (bisect log) :
commit aff3bea95388299eec63440389b4545c8041b357
Author: Theodore Ts'o <tytso@mit.edu>
Date: Wed May 24 03:49:51 2023 +0000

  ext4: add lockdep annotations for i_data_sem for ea_inode's

Crash: WARNING: locking bug in __ext4_ioctl (log)
Repro: C syz .config
  
Discussions (15)
Title Replies (including bot) Last reply
[syzbot] Monthly ext4 report (Sep 2024) 0 (1) 2024/09/16 12:27
[syzbot] Monthly ext4 report (Aug 2024) 0 (1) 2024/08/16 09:46
[syzbot] Monthly ext4 report (Jul 2024) 0 (1) 2024/07/15 14:03
[syzbot] Monthly ext4 report (Jun 2024) 0 (1) 2024/06/14 08:14
[syzbot] Monthly ext4 report (Apr 2024) 0 (1) 2024/04/12 13:18
[syzbot] Monthly ext4 report (Mar 2024) 0 (1) 2024/03/12 09:29
[syzbot] Monthly ext4 report (Feb 2024) 0 (1) 2024/02/09 20:57
[syzbot] Monthly ext4 report (Jan 2024) 0 (1) 2024/01/09 18:20
[syzbot] Monthly ext4 report (Dec 2023) 0 (1) 2023/12/10 10:05
[syzbot] Monthly ext4 report (Nov 2023) 0 (1) 2023/11/08 23:44
[syzbot] Monthly ext4 report (Oct 2023) 0 (1) 2023/10/09 09:23
[syzbot] Monthly ext4 report (Sep 2023) 0 (1) 2023/09/07 09:25
[syzbot] Monthly ext4 report (Aug 2023) 0 (1) 2023/08/07 07:27
[syzbot] [ext4?] WARNING: locking bug in __ext4_ioctl 0 (3) 2023/07/14 14:07
[syzbot] Monthly ext4 report (Jul 2023) 0 (1) 2023/07/06 14:18
Last patch testing requests (2)
Created Duration User Patch Repo Result
2023/09/14 13:57 28m retest repro upstream OK log
2023/09/14 13:57 56m retest repro upstream OK log

Sample crash report:
------------[ 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: 5287 at kernel/locking/lockdep.c:932 look_up_lock_class+0x133/0x140 kernel/locking/lockdep.c:932
Modules linked in:
CPU: 0 PID: 5287 Comm: syz-executor164 Not tainted 6.9.0-syzkaller-07726-g3c999d1ae3c7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:look_up_lock_class+0x133/0x140 kernel/locking/lockdep.c:932
Code: c7 c7 c0 ba 2c 8b e8 5c 02 6b f6 90 0f 0b 90 90 90 31 db eb be c6 05 73 f1 e7 04 01 90 48 c7 c7 e0 bd 2c 8b e8 3e 02 6b f6 90 <0f> 0b 90 90 e9 62 ff ff ff 0f 1f 40 00 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc900030af8b8 EFLAGS: 00010082
RAX: 0000000000000000 RBX: ffffffff942be650 RCX: ffffffff81513ce9
RDX: ffff88806dde9e00 RSI: ffffffff81513cf6 RDI: 0000000000000001
RBP: ffffffff94c18ae1 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 20676e696b6f6f4c R12: ffff88807ba9dc88
R13: 0000000000000000 R14: 0000000000000001 R15: ffffffff94b4cba0
FS:  0000555560ac4380(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe4383d70f8 CR3: 000000006e358000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 register_lock_class+0xb1/0x1230 kernel/locking/lockdep.c:1284
 __lock_acquire+0x111/0x3b30 kernel/locking/lockdep.c:5014
 lock_acquire kernel/locking/lockdep.c:5754 [inline]
 lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719
 down_write_nested+0x3d/0x50 kernel/locking/rwsem.c:1695
 ext4_double_down_write_data_sem+0x67/0x80 fs/ext4/move_extent.c:58
 swap_inode_boot_loader fs/ext4/ioctl.c:432 [inline]
 __ext4_ioctl+0x163e/0x4570 fs/ext4/ioctl.c:1437
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:904 [inline]
 __se_sys_ioctl fs/ioctl.c:890 [inline]
 __x64_sys_ioctl+0x196/0x220 fs/ioctl.c:890
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe43835f3a9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 21 18 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:00007ffd32523498 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007fe43835f3a9
RDX: 0000000000000000 RSI: 0000000000006611 RDI: 0000000000000004
RBP: 0000000000000000 R08: 00007ffd325234d0 R09: 00007ffd325234d0
R10: 00007ffd325234d0 R11: 0000000000000246 R12: 00007ffd325234bc
R13: 000000000000003c R14: 431bde82d7b634db R15: 00007ffd325234f0
 </TASK>

Crashes (811):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/16 19:11 upstream 3c999d1ae3c7 ef5d53ed .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/04/22 05:37 upstream 48cf398f15fc af24b050 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/01/26 14:48 upstream ecb1b8288dc7 cc4a4020 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/01/05 07:23 upstream 5eff55d725a4 28c42cff .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/01/04 19:38 upstream ac865f00af29 28c42cff .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root WARNING: locking bug in __ext4_ioctl
2024/01/03 04:01 upstream 610a9b8f49fb fb427a07 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2023/12/24 05:08 upstream 3f82f1c3a036 fb427a07 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root WARNING: locking bug in __ext4_ioctl
2023/12/22 23:32 upstream 5414aea7b750 fb427a07 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root WARNING: locking bug in __ext4_ioctl
2024/05/09 21:29 upstream 45db3ab70092 de979bc2 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-qemu-upstream WARNING: locking bug in __ext4_ioctl
2023/09/18 16:52 upstream ce9ecca0238b 0b6a67ac .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-qemu-upstream WARNING: locking bug in __ext4_ioctl
2024/05/05 08:46 upstream 7367539ad4b0 610f2a54 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-qemu2-arm64 WARNING: locking bug in __ext4_ioctl
2023/07/17 19:24 upstream fdf0eaf11452 e5f10889 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root WARNING: locking bug in __ext4_ioctl
2023/07/04 01:06 upstream a901a3568fd2 6e553898 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root WARNING: locking bug in __ext4_ioctl
2024/10/05 20:31 upstream fc20a3e57247 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/10/04 16:19 upstream 0c559323bbaa d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/09/30 16:13 upstream 9852d85ec9d4 bbd4e0a4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/09/20 12:12 upstream a430d95c5efa 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/09/11 20:28 upstream 7c6a3a65ace7 9326a104 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/08/30 17:23 upstream 20371ba12063 f885a8ff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/08/26 13:54 upstream 5be63fc19fca 9aee4e0b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/08/21 21:42 upstream b311c1b497e5 ca02180f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/08/18 14:22 upstream c3f2d783a459 dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/08/18 00:39 upstream df6cbc62cc9b dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/08/14 03:39 upstream 6b0f8db921ab bde81f6f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/08/11 23:50 upstream cb2e5ee8e7a0 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/08/11 22:42 upstream cb2e5ee8e7a0 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/08/11 01:21 upstream 5189dafa4cf9 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/08/09 01:16 upstream cf6d429eb656 61405512 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/08/06 05:34 upstream b446a2dae984 e1bdb00a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/08/04 08:24 upstream defaf1a2113a 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/08/02 17:19 upstream c0ecd6388360 53683cf2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/08/02 04:06 upstream c0ecd6388360 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/07/29 07:54 upstream dc1c8034e31b 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/07/28 20:07 upstream 5437f30d3458 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/07/24 01:05 upstream 28bbe4ea686a 57b2edb1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/07/22 16:43 upstream 933069701c1b f063dfd9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/07/19 17:03 upstream 720261cfc732 ee4e11c8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/07/17 14:50 upstream 51835949dda3 03114f55 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/07/15 17:17 upstream 0c3836482481 efee4ed2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/07/15 16:11 upstream 0c3836482481 efee4ed2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/07/15 10:46 upstream 0c3836482481 c605e6a2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/07/14 03:17 upstream d0d0cd380055 eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/07/07 04:07 upstream 22f902dfc51e bc4ebbb5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/07/04 17:26 upstream 795c58e4c7fc dc6bbff0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/07/04 17:26 upstream 795c58e4c7fc dc6bbff0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/07/03 11:24 upstream e9d22f7a6655 1ecfa2d8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/07/03 02:57 upstream e9d22f7a6655 1ecfa2d8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/06/29 10:22 upstream 6c0483dbfe72 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/06/23 16:08 upstream 5f583a3162ff edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/06/19 19:56 upstream 2ccbdf43d5e7 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING: locking bug in __ext4_ioctl
2024/06/16 05:06 upstream 2ccbdf43d5e7 f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING: locking bug in __ext4_ioctl
2024/06/07 10:55 upstream 8a92980606e3 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING: locking bug in __ext4_ioctl
2024/06/03 21:16 upstream c3f38fa61af7 0aba2352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING: locking bug in __ext4_ioctl
2024/01/31 20:38 upstream 1bbb19b6eb1b 373b66cd .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING: locking bug in __ext4_ioctl
2024/06/23 05:58 upstream 563a50672d8a c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: locking bug in __ext4_ioctl
2024/06/17 18:51 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: locking bug in __ext4_ioctl
2024/06/14 08:05 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: locking bug in __ext4_ioctl
2024/06/12 21:07 upstream cea2a26553ac c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: locking bug in __ext4_ioctl
2024/06/01 11:02 upstream cc8ed4d0a848 3113787f .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64 WARNING: locking bug in __ext4_ioctl
2023/06/04 18:20 upstream 6f64a5ebe1dc a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING: locking bug in __ext4_ioctl
2023/06/01 03:52 upstream 929ed21dfdb6 babc4389 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING: locking bug in __ext4_ioctl
2024/02/01 07:07 linux-next 596764183be8 373b66cd .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: locking bug in __ext4_ioctl
* Struck through repros no longer work on HEAD.