syzbot


INFO: trying to register non-static key in io_cqring_overflow_flush

Status: closed as dup on 2019/11/28 15:29
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+be9e13497969768c0e6e@syzkaller.appspotmail.com
First crash: 1602d, last: 1602d
Cause bisection: introduced by (bisect log) :
commit 5f8fd2d3e0a7aa7fc9d97226be24286edd289835
Author: Jens Axboe <axboe@kernel.dk>
Date: Thu Nov 7 17:57:36 2019 +0000

  io_uring: properly mark async work as bounded vs unbounded

Crash: WARNING: ODEBUG bug in netdev_freemem (log)
Repro: C syz .config
  
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
INFO: trying to register non-static key in io_cqring_ev_posted fs C done 6 1603d 1615d
Discussions (1)
Title Replies (including bot) Last reply
INFO: trying to register non-static key in io_cqring_overflow_flush 2 (3) 2019/11/28 15:29

Sample crash report:
RSP: 002b:00007ffc426dee68 EFLAGS: 00000246 ORIG_RAX: 00000000000001a9
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441259
RDX: 0000000000000002 RSI: 00000000200005c0 RDI: 0000000000000df3
RBP: 00007ffc426dee80 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff
R13: 0000000000000003 R14: 0000000000000000 R15: 0000000000000000
INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
CPU: 0 PID: 7968 Comm: syz-executor745 Not tainted 5.4.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fb/0x318 lib/dump_stack.c:118
 register_lock_class+0x6ec/0xea0 kernel/locking/lockdep.c:443
 __lock_acquire+0x116/0x1be0 kernel/locking/lockdep.c:3837
 lock_acquire+0x158/0x250 kernel/locking/lockdep.c:4485
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0xa1/0xc0 kernel/locking/spinlock.c:159
 __wake_up_common_lock kernel/sched/wait.c:122 [inline]
 __wake_up+0xb8/0x150 kernel/sched/wait.c:142
 io_cqring_ev_posted fs/io_uring.c:637 [inline]
 io_cqring_overflow_flush+0x7bc/0xa80 fs/io_uring.c:684
 io_ring_ctx_wait_and_kill+0x4c6/0xb10 fs/io_uring.c:4344
 io_uring_create fs/io_uring.c:4681 [inline]
 io_uring_setup fs/io_uring.c:4707 [inline]
 __do_sys_io_uring_setup fs/io_uring.c:4720 [inline]
 __se_sys_io_uring_setup+0x1ccb/0x2490 fs/io_uring.c:4717
 __x64_sys_io_uring_setup+0x5b/0x70 fs/io_uring.c:4717
 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x441259
Code: e8 5c ae 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 0f 83 bb 0a fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffc426dee68 EFLAGS: 00000246 ORIG_RAX: 00000000000001a9
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441259
RDX: 0000000000000002 RSI: 00000000200005c0 RDI: 0000000000000df3
RBP: 00007ffc426dee80 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff
R13: 0000000000000003 R14: 0000000000000000 R15: 0000000000000000
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 7968 Comm: syz-executor745 Not tainted 5.4.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__wake_up_common+0x2bf/0x4d0 kernel/sched/wait.c:87
Code: e8 d6 91 57 00 48 ba 00 00 00 00 00 fc ff df eb 43 66 2e 0f 1f 84 00 00 00 00 00 4c 89 e3 4d 8d 74 24 e8 4c 89 e0 48 c1 e8 03 <80> 3c 10 00 74 12 48 89 df e8 c3 91 57 00 48 ba 00 00 00 00 00 fc
RSP: 0018:ffff8880915afb78 EFLAGS: 00010046
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff888093164120
RBP: ffff8880915afbd0 R08: 0000000000000000 R09: ffff8880915afbe8
R10: ffffed10122b5f6f R11: 0000000000000000 R12: 0000000000000000
R13: ffff888093164158 R14: ffffffffffffffe8 R15: ffff8880915afbe8
FS:  0000000001aed880(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200005c0 CR3: 000000009328e000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __wake_up_common_lock kernel/sched/wait.c:123 [inline]
 __wake_up+0xd3/0x150 kernel/sched/wait.c:142
 io_cqring_ev_posted fs/io_uring.c:637 [inline]
 io_cqring_overflow_flush+0x7bc/0xa80 fs/io_uring.c:684
 io_ring_ctx_wait_and_kill+0x4c6/0xb10 fs/io_uring.c:4344
 io_uring_create fs/io_uring.c:4681 [inline]
 io_uring_setup fs/io_uring.c:4707 [inline]
 __do_sys_io_uring_setup fs/io_uring.c:4720 [inline]
 __se_sys_io_uring_setup+0x1ccb/0x2490 fs/io_uring.c:4717
 __x64_sys_io_uring_setup+0x5b/0x70 fs/io_uring.c:4717
 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x441259
Code: e8 5c ae 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 0f 83 bb 0a fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffc426dee68 EFLAGS: 00000246 ORIG_RAX: 00000000000001a9
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441259
RDX: 0000000000000002 RSI: 00000000200005c0 RDI: 0000000000000df3
RBP: 00007ffc426dee80 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff
R13: 0000000000000003 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace d0de30dce4e623c2 ]---
RIP: 0010:__wake_up_common+0x2bf/0x4d0 kernel/sched/wait.c:87
Code: e8 d6 91 57 00 48 ba 00 00 00 00 00 fc ff df eb 43 66 2e 0f 1f 84 00 00 00 00 00 4c 89 e3 4d 8d 74 24 e8 4c 89 e0 48 c1 e8 03 <80> 3c 10 00 74 12 48 89 df e8 c3 91 57 00 48 ba 00 00 00 00 00 fc
RSP: 0018:ffff8880915afb78 EFLAGS: 00010046
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff888093164120
RBP: ffff8880915afbd0 R08: 0000000000000000 R09: ffff8880915afbe8
R10: ffffed10122b5f6f R11: 0000000000000000 R12: 0000000000000000
R13: ffff888093164158 R14: ffffffffffffffe8 R15: ffff8880915afbe8
FS:  0000000001aed880(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200005c0 CR3: 000000009328e000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/28 07:49 upstream d76886972823 0d63f89c .config console log report syz C ci-upstream-kasan-gce-smack-root
2019/11/28 07:27 upstream d76886972823 0d63f89c .config console log report ci-upstream-kasan-gce-smack-root
* Struck through repros no longer work on HEAD.