syzbot


WARNING in __schedule

Status: upstream: reported on 2024/04/04 17:47
Subsystems: block bpf
[Documentation on labels]
Reported-by: syzbot+c48ecd0315ab6fc75bd0@syzkaller.appspotmail.com
First crash: 48d, last: 35d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kernel?] WARNING in __schedule 0 (1) 2024/04/04 17:47

Sample crash report:
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(!irqs_disabled())
WARNING: CPU: 0 PID: 5072 at kernel/locking/lockdep.c:150 lockdep_unlock+0x1c1/0x290 kernel/locking/lockdep.c:150
Modules linked in:
CPU: 0 PID: 5072 Comm: syz-executor.0 Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:lockdep_unlock+0x1c1/0x290 kernel/locking/lockdep.c:150
Code: d0 7c 08 84 d2 0f 85 cc 00 00 00 8b 35 3c 43 34 0e 85 f6 75 19 90 48 c7 c6 a0 b6 0c 8b 48 c7 c7 20 b6 0c 8b e8 40 4e e5 ff 90 <0f> 0b 90 90 90 e9 80 fe ff ff 90 0f 0b 90 e8 7c 22 0b 03 85 c0 74
RSP: 0018:ffffc900037474f8 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffffffff94685aa0 RCX: ffffffff814fafe9
RDX: ffff88801bb6da00 RSI: ffffffff814faff6 RDI: 0000000000000001
RBP: ffffffff93daa548 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffff88801bb6da00
R13: 0000000000000001 R14: ffff88801bb6e500 R15: 0000000000000008
FS:  000055557767b480(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000061dac000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 graph_unlock kernel/locking/lockdep.c:186 [inline]
 validate_chain kernel/locking/lockdep.c:3873 [inline]
 __lock_acquire+0x1fb0/0x3b30 kernel/locking/lockdep.c:5137
 lock_acquire kernel/locking/lockdep.c:5754 [inline]
 lock_acquire+0x1b1/0x540 kernel/locking/lockdep.c:5719
 _raw_spin_lock_nested+0x31/0x40 kernel/locking/spinlock.c:378
 raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:559
 raw_spin_rq_lock kernel/sched/sched.h:1385 [inline]
 rq_lock kernel/sched/sched.h:1699 [inline]
 __schedule+0x29d/0x5c70 kernel/sched/core.c:6652
 preempt_schedule_common+0x44/0xc0 kernel/sched/core.c:6915
 preempt_schedule_thunk+0x1a/0x30 arch/x86/entry/thunk_64.S:12
 __mutex_lock_common kernel/locking/mutex.c:618 [inline]
 __mutex_lock+0x2cc/0x9c0 kernel/locking/mutex.c:752
 loop_global_lock_killable drivers/block/loop.c:116 [inline]
 loop_clr_fd drivers/block/loop.c:1228 [inline]
 lo_ioctl+0x443/0x1950 drivers/block/loop.c:1555
 blkdev_ioctl+0x2f7/0x770 block/ioctl.c:640
 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+0x193/0x220 fs/ioctl.c:890
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xd2/0x260 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x6d/0x75
RIP: 0033:0x7fe3c327dbcb
Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
RSP: 002b:00007ffc59eabe70 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fe3c327dbcb
RDX: 0000000000000000 RSI: 0000000000004c01 RDI: 0000000000000003
RBP: 00007ffc59eabf2c R08: 0000000000000000 R09: 00007ffc59eabc17
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000032
R13: 00000000000259e3 R14: 000000000002598d R15: 0000000000000005
 </TASK>

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/13 07:36 upstream fe46a7dd189e c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in __schedule
2024/04/12 03:57 upstream fe46a7dd189e 478efa7f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in __schedule
2024/04/08 21:21 upstream fe46a7dd189e 53df08b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in __schedule
2024/03/31 17:39 upstream 712e14250dd2 6baf5069 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __schedule
* Struck through repros no longer work on HEAD.