syzbot


WARNING in loop_add

Status: upstream: reported C repro on 2023/06/02 07:04
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+345db7d28450eed314e4@syzkaller.appspotmail.com
First crash: 328d, last: 306d
Fix bisection: failed (error log, bisect log)
  
Bug presence (2)
Date Name Commit Repro Result
2023/06/02 linux-5.15.y (ToT) 0ab06468cbd1 C [report] WARNING in loop_add
2023/06/02 upstream (ToT) 921bdc72a0d6 C Didn't crash
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in loop_add C error 94 430d 1714d 0/1 upstream: reported C repro on 2019/08/16 07:43
upstream WARNING in loop_add C done error 64 894d 1708d 20/26 fixed on 2022/03/08 16:11
Fix bisection attempts (6)
Created Duration User Patch Repo Result
2024/03/25 03:38 0m fix candidate upstream error job log (0)
2024/02/12 02:13 0m fix candidate upstream error job log (0)
2024/01/08 20:08 1m fix candidate upstream error job log (0)
2023/11/23 11:14 0m fix candidate upstream error job log (0)
2023/09/06 08:47 0m fix candidate upstream error job log (0)
2023/09/01 04:00 1m bisect fix linux-5.15.y error job log (0)

Sample crash report:
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3964 at block/genhd.c:546 device_add_disk+0x5bc/0xaa0
Modules linked in:
CPU: 1 PID: 3964 Comm: syz-executor281 Not tainted 5.15.114-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : device_add_disk+0x5bc/0xaa0
lr : device_add_disk+0x5b8/0xaa0 block/genhd.c:544
sp : ffff80001c7e7b10
x29: ffff80001c7e7b70 x28: dfff800000000000 x27: 0000000000700000
x26: ffff0000dc7d90bc x25: 00000000ffffffea x24: ffff0000d9ef98a0
x23: 1fffe0001b3df314 x22: 0000000000000001 x21: ffff0000d9ef9890
x20: 0000000000000007 x19: ffff0000d9ef9800 x18: 0000000000000001
x17: ff80800008335ea8 x16: ffff8000082ea770 x15: ffff8000089ba3d8
x14: ffff80000c01a6c0 x13: ffffffffffffffff x12: 0000000000000000
x11: ff8080000a821c58 x10: 0000000000000000 x9 : ffff80000a821c58
x8 : ffff0000c2f38000 x7 : 0000000000000000 x6 : ffff80000805cb6c
x5 : ffff0000c800e7e0 x4 : 0000000000000000 x3 : ffff80000ab3b4ac
x2 : 0000000000000001 x1 : 0000000000000007 x0 : 0000000000000103
Call trace:
 device_add_disk+0x5bc/0xaa0
 add_disk include/linux/genhd.h:212 [inline]
 loop_add+0x554/0x7ac drivers/block/loop.c:2430
 loop_control_ioctl+0xec/0x62c drivers/block/loop.c:2545
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl fs/ioctl.c:860 [inline]
 __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:860
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 958
hardirqs last  enabled at (957): [<ffff8000088c87a8>] kasan_quarantine_put+0xdc/0x204 mm/kasan/quarantine.c:231
hardirqs last disabled at (958): [<ffff800011944c48>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last  enabled at (946): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last  enabled at (946): [<ffff800008020ccc>] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587
softirqs last disabled at (803): [<ffff8000081b573c>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (803): [<ffff8000081b573c>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (803): [<ffff8000081b573c>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:636
---[ end trace ca5da83ed9e0e60a ]---

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/02 09:14 linux-5.15.y 0ab06468cbd1 a4ae4f42 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in loop_add
2023/06/24 07:18 linux-5.15.y f67653019430 79782afc .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in loop_add
2023/06/02 07:04 linux-5.15.y 0ab06468cbd1 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in loop_add
* Struck through repros no longer work on HEAD.