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: 551d, last: 13d
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 (17)
Title Replies (including bot) Last reply
[syzbot] Monthly ext4 report (Nov 2024) 0 (1) 2024/11/18 10:39
[syzbot] Monthly ext4 report (Oct 2024) 0 (1) 2024/10/17 07:42
[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:
EXT4-fs error (device loop0): ext4_validate_block_bitmap:431: comm syz-executor125: bg 0: block 52: invalid block bitmap
------------[ 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: 6046 at kernel/locking/lockdep.c:936 look_up_lock_class+0x140/0x150 kernel/locking/lockdep.c:936
Modules linked in:
CPU: 0 UID: 0 PID: 6046 Comm: syz-executor125 Not tainted 6.12.0-rc5-syzkaller-00299-g11066801dd4b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:look_up_lock_class+0x140/0x150 kernel/locking/lockdep.c:936
Code: c7 c7 60 cf 6c 8b e8 6f 1a 2d f6 90 0f 0b 90 90 90 31 db eb be c6 05 f7 e0 26 05 01 90 48 c7 c7 40 d2 6c 8b e8 51 1a 2d f6 90 <0f> 0b 90 90 e9 58 ff ff ff 0f 1f 80 00 00 00 00 90 90 90 90 90 90
RSP: 0018:ffffc900033ef850 EFLAGS: 00010086
RAX: 0000000000000000 RBX: ffffffff96e7b588 RCX: ffffffff814e6dd9
RDX: ffff88802ad6bc00 RSI: ffffffff814e6de6 RDI: 0000000000000001
RBP: ffffffff9a8f4301 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 20676e696b6f6f4c R12: ffff888072116f80
R13: 0000000000000000 R14: 0000000000000001 R15: ffffffff9a825820
FS:  00005555794b1380(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fae3e5d70f8 CR3: 00000000284b0000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 register_lock_class+0xb1/0x1240 kernel/locking/lockdep.c:1290
 __lock_acquire+0x135/0x3ce0 kernel/locking/lockdep.c:5077
 lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5825
 down_write_nested+0x97/0x210 kernel/locking/rwsem.c:1693
 ext4_double_down_write_data_sem fs/ext4/move_extent.c:51 [inline]
 ext4_double_down_write_data_sem+0x42/0x80 fs/ext4/move_extent.c:47
 swap_inode_boot_loader fs/ext4/ioctl.c:432 [inline]
 __ext4_ioctl+0x2a01/0x4630 fs/ext4/ioctl.c:1436
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:907 [inline]
 __se_sys_ioctl fs/ioctl.c:893 [inline]
 __x64_sys_ioctl+0x192/0x220 fs/ioctl.c:893
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fae3e55e229
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:00007ffcd2ff81b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007fae3e55e229
RDX: 0000000000000000 RSI: 0000000000006611 RDI: 0000000000000004
RBP: 0000000000000000 R08: 00007ffcd2ff81f0 R09: 00007ffcd2ff81f0
R10: 00007ffcd2ff81f0 R11: 0000000000000246 R12: 00007ffcd2ff81dc
R13: 0000000000000040 R14: 431bde82d7b634db R15: 00007ffcd2ff8210
 </TASK>

Crashes (849):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/02 16:38 upstream 11066801dd4b f00eed24 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
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/11/19 18:34 upstream 158f238aa69d 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/11/18 17:10 upstream adc218676eef 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/11/18 13:44 upstream adc218676eef 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/11/16 14:41 upstream e8bdb3c8be08 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/11/16 08:02 upstream f868cd251776 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/11/15 05:25 upstream cfaaa7d010d1 f6ede3a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/11/14 13:41 upstream 0a9b9d17f3a7 77f3eeb7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/11/12 22:35 upstream 3022e9d00ebe 75bb1b32 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/11/12 06:11 upstream 2d5404caa8c7 75bb1b32 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/11/10 20:16 upstream a9cda7c0ffed 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/11/09 16:34 upstream da4373fbcf00 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/10/30 23:08 upstream 4236f913808c fb888278 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/10/27 22:59 upstream 284a2f899676 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/10/27 15:26 upstream 850925a8133c 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/10/24 22:22 upstream c2ee9f594da8 9fc8fe02 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/10/21 13:26 upstream 42f7652d3eb5 cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/10/21 09:04 upstream db87114dcf13 cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/10/19 18:53 upstream 9197b73fd7bb cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/10/18 14:41 upstream 4d939780b705 cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/10/18 05:40 upstream 6efbea77b390 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/10/17 22:26 upstream 6efbea77b390 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/10/16 03:17 upstream 2f87d0916ce0 bde2d81c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/10/16 00:00 upstream 2f87d0916ce0 bde2d81c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/10/10 15:13 upstream d3d1556696c1 8fbfc0c8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/10/09 00:26 upstream 5b7c893ed5ed 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: locking bug in __ext4_ioctl
2024/10/08 21:44 upstream 5b7c893ed5ed 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-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/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/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/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.