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: 319d, last: 1d04h
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 (11)
Title Replies (including bot) Last reply
[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: 1 PID: 5277 at kernel/locking/lockdep.c:932 look_up_lock_class+0x127/0x130 kernel/locking/lockdep.c:932
Modules linked in:
CPU: 1 PID: 5277 Comm: syz-executor400 Not tainted 6.8.0-rc1-syzkaller-00169-gecb1b8288dc7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:look_up_lock_class+0x127/0x130 kernel/locking/lockdep.c:932
Code: c7 c7 60 ad cc 8a e8 c8 e3 bf f6 90 0f 0b 90 90 90 31 db eb c2 c6 05 dd d0 96 04 01 90 48 c7 c7 80 b0 cc 8a e8 aa e3 bf f6 90 <0f> 0b 90 90 e9 6a ff ff ff 53 48 39 77 10 48 89 fb 74 51 66 83 7f
RSP: 0018:ffffc9000477f8b8 EFLAGS: 00010082
RAX: 0000000000000000 RBX: ffffffff921a57b8 RCX: ffffffff814e18f9
RDX: ffff888027878000 RSI: ffffffff814e1906 RDI: 0000000000000001
RBP: ffffffff92aff561 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffff888076e55288
R13: 0000000000000000 R14: 0000000000000000 R15: ffffffff92a356a0
FS:  0000555557051480(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd9033c80f8 CR3: 0000000021a80000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 register_lock_class+0xb1/0x1230 kernel/locking/lockdep.c:1284
 __lock_acquire+0x112/0x3b30 kernel/locking/lockdep.c:5014
 lock_acquire kernel/locking/lockdep.c:5754 [inline]
 lock_acquire+0x1ae/0x520 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:871 [inline]
 __se_sys_ioctl fs/ioctl.c:857 [inline]
 __x64_sys_ioctl+0x18f/0x210 fs/ioctl.c:857
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xd3/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7fd9033508e9
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:00007ffc07963038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fd9033508e9
RDX: 0000000000000000 RSI: 0000000000006611 RDI: 0000000000000003
RBP: 0000000000000000 R08: 00007ffc0796306c R09: 00007ffc0796306c
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc0796306c
R13: 0000000000000046 R14: 431bde82d7b634db R15: 00007ffc079630a0
 </TASK>

Crashes (707):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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
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
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/04/05 01:55 upstream fe46a7dd189e 0ee3535e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING: locking bug in __ext4_ioctl
2024/03/13 17:13 upstream 9187210eee7d db5b7ff0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING: locking bug in __ext4_ioctl
2024/03/11 23:19 upstream 045395d86acd 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/03/09 20:28 upstream 09e5c48fea17 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/03/09 13:15 upstream 09e5c48fea17 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING: locking bug in __ext4_ioctl
2024/03/09 04:50 upstream 10d48d70e82d 96d142e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING: locking bug in __ext4_ioctl
2024/03/07 17:28 upstream 67be068d31d4 2b789849 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/03/05 16:43 upstream 90d35da658da f39a7eed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING: locking bug in __ext4_ioctl
2024/03/05 03:39 upstream 90d35da658da 5fc53669 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/03/05 02:13 upstream 90d35da658da 5fc53669 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING: locking bug in __ext4_ioctl
2024/02/19 16:13 upstream b401b621758e 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING: locking bug in __ext4_ioctl
2024/02/19 11:44 upstream b401b621758e 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING: locking bug in __ext4_ioctl
2024/02/18 05:59 upstream f2667e0c3240 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/02/16 12:11 upstream 4f5e5092fdbf 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/02/14 10:54 upstream 7e90b5c295ec d902085f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING: locking bug in __ext4_ioctl
2024/02/12 05:26 upstream 2766f59ca44e 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING: locking bug in __ext4_ioctl
2024/02/11 05:34 upstream 7521f258ea30 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/02/09 12:24 upstream 1f719a2f3fa6 7f07e9b0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/02/06 15:11 upstream 99bd3cb0d12e 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING: locking bug in __ext4_ioctl
2024/02/05 17:28 upstream 54be6c6c5ae8 4e988e80 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-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/04/07 01:51 upstream f2f80ac80987 ca620dd8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: locking bug in __ext4_ioctl
2024/03/26 16:00 upstream 928a87efa423 bcd9b39f .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: locking bug in __ext4_ioctl
2024/03/10 05:46 upstream 005f6f34bd47 6ee49f2e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: locking bug in __ext4_ioctl
2024/03/04 16:40 upstream 90d35da658da 0f110c12 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: locking bug in __ext4_ioctl
2024/02/23 01:38 upstream 1c892cdd8fe0 bbb79582 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: locking bug in __ext4_ioctl
2024/02/22 16:45 upstream 39133352cbed bbb79582 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: locking bug in __ext4_ioctl
2024/02/22 08:53 upstream 39133352cbed 345111b5 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: locking bug in __ext4_ioctl
2024/02/17 23:01 upstream ced590523156 578f7538 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: locking bug in __ext4_ioctl
2024/02/11 02:40 upstream a5b6244cf87c 77b23aa1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: locking bug in __ext4_ioctl
2024/02/09 16:08 upstream 1f719a2f3fa6 77b23aa1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: locking bug in __ext4_ioctl
2024/02/09 07:50 upstream 1f719a2f3fa6 7f07e9b0 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: locking bug in __ext4_ioctl
2024/02/09 01:33 upstream 1f719a2f3fa6 7f07e9b0 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: locking bug in __ext4_ioctl
2024/02/08 13:29 upstream 047371968ffc e8e30238 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: locking bug in __ext4_ioctl
2024/02/04 13:53 upstream 3a0e92207940 a67b2c42 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: locking bug in __ext4_ioctl
2024/04/14 02:56 upstream fa4022cb7361 c8349e48 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64 WARNING: locking bug in __ext4_ioctl
2024/03/25 01:11 upstream 5e74df2f8f15 0ea90952 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64 WARNING: locking bug in __ext4_ioctl
2024/03/24 15:34 upstream 70293240c5ce 0ea90952 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64 WARNING: locking bug in __ext4_ioctl
2024/03/17 13:59 upstream 741e9d668aa5 d615901c .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64 WARNING: locking bug in __ext4_ioctl
2024/03/15 14:55 upstream e5eb28f6d1af d615901c .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64 WARNING: locking bug in __ext4_ioctl
2024/03/13 21:40 upstream b0546776ad3f f919f202 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64 WARNING: locking bug in __ext4_ioctl
2024/03/10 00:58 upstream 09e5c48fea17 6ee49f2e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64 WARNING: locking bug in __ext4_ioctl
2024/03/07 13:28 upstream 67be068d31d4 2b789849 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64 WARNING: locking bug in __ext4_ioctl
2024/03/01 14:37 upstream 87adedeba51a 83acf9e0 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64 WARNING: locking bug in __ext4_ioctl
2024/02/28 00:13 upstream 45ec2f5f6ed3 d367cbe5 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64 WARNING: locking bug in __ext4_ioctl
2024/02/26 10:38 upstream 70ff1fe626a1 8d446f15 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64 WARNING: locking bug in __ext4_ioctl
2024/02/20 18:17 upstream b401b621758e 3af7dd65 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64 WARNING: locking bug in __ext4_ioctl
2024/02/20 16:59 upstream b401b621758e 3af7dd65 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64 WARNING: locking bug in __ext4_ioctl
2024/02/19 10:30 upstream b401b621758e 578f7538 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64 WARNING: locking bug in __ext4_ioctl
2024/02/17 19:19 upstream c1ca10ceffbb 578f7538 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64 WARNING: locking bug in __ext4_ioctl
2024/02/15 07:44 upstream 8d3dea210042 d9b1cdd5 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64 WARNING: locking bug in __ext4_ioctl
2024/02/13 21:54 upstream c664e16bb1ba e66542d7 .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.