syzbot


INFO: trying to register non-static key in vma_link

Status: auto-closed as invalid on 2021/01/13 13:41
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+2b5fc781c93512ef418c@syzkaller.appspotmail.com
First crash: 1312d, last: 1312d
Discussions (1)
Title Replies (including bot) Last reply
INFO: trying to register non-static key in vma_link 0 (1) 2020/09/19 13:42
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: trying to register non-static key in vma_link 1 1430d 1430d 0/1 auto-closed as invalid on 2020/09/17 10:48

Sample crash report:
INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
CPU: 0 PID: 9051 Comm: syz-executor.5 Not tainted 5.9.0-rc5-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+0x198/0x1fd lib/dump_stack.c:118
 assign_lock_key kernel/locking/lockdep.c:894 [inline]
 register_lock_class+0x157d/0x1630 kernel/locking/lockdep.c:1206
 __lock_acquire+0xf9/0x5570 kernel/locking/lockdep.c:4305
 lock_acquire+0x1f3/0xae0 kernel/locking/lockdep.c:5006
 down_write+0x8d/0x150 kernel/locking/rwsem.c:1531
 i_mmap_lock_write include/linux/fs.h:498 [inline]
 vma_link+0x9e/0x830 mm/mmap.c:651
 mmap_region+0xcd8/0x1780 mm/mmap.c:1815
 do_mmap+0xcf9/0x11d0 mm/mmap.c:1545
 aio_setup_ring fs/aio.c:528 [inline]
 ioctx_alloc+0x881/0x1d70 fs/aio.c:760
 __do_sys_io_setup fs/aio.c:1329 [inline]
 __se_sys_io_setup fs/aio.c:1312 [inline]
 __x64_sys_io_setup+0xc4/0x3d0 fs/aio.c:1312
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45d5f9
Code: 5d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 2b b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fa4d2ef3c78 EFLAGS: 00000246 ORIG_RAX: 00000000000000ce
RAX: ffffffffffffffda RBX: 0000000000008240 RCX: 000000000045d5f9
RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000002
RBP: 000000000118cf78 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cf4c
R13: 000000000169fb6f R14: 00007fa4d2ef49c0 R15: 000000000118cf4c
------------[ cut here ]------------
DEBUG_RWSEMS_WARN_ON(sem->magic != sem): count = 0x1, magic = 0x0, owner = 0xffff88808cb38100, curr 0xffff88808cb38100, list not empty
WARNING: CPU: 0 PID: 9051 at kernel/locking/rwsem.c:1450 __up_write kernel/locking/rwsem.c:1450 [inline]
WARNING: CPU: 0 PID: 9051 at kernel/locking/rwsem.c:1450 up_write+0x381/0x560 kernel/locking/rwsem.c:1584

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/09/15 13:40 upstream fc4f28bb3daf 6989d6f6 .config console log report info ci-upstream-kasan-gce
* Struck through repros no longer work on HEAD.