syzbot


INFO: trying to register non-static key in vma_link

Status: auto-closed as invalid on 2020/09/17 10:48
Reported-by: syzbot+7e592f0918c128982b96@syzkaller.appspotmail.com
First crash: 1436d, last: 1436d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: trying to register non-static key in vma_link mm 1 1317d 1313d 0/26 auto-closed as invalid on 2021/01/13 13:41

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: 1 PID: 24655 Comm: syz-executor.0 Not tainted 4.19.124-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+0x188/0x20d lib/dump_stack.c:118
 assign_lock_key kernel/locking/lockdep.c:727 [inline]
 register_lock_class+0x14d0/0x16f0 kernel/locking/lockdep.c:753
 __lock_acquire+0x154/0x49c0 kernel/locking/lockdep.c:3303
 lock_acquire+0x170/0x400 kernel/locking/lockdep.c:3907
 down_write+0x34/0x90 kernel/locking/rwsem.c:70
 i_mmap_lock_write include/linux/fs.h:491 [inline]
 vma_link+0x94/0x160 mm/mmap.c:616
 mmap_region+0x1000/0x1540 mm/mmap.c:1780
 do_mmap+0x8e6/0x1060 mm/mmap.c:1530
 do_mmap_pgoff include/linux/mm.h:2314 [inline]
 vm_mmap_pgoff+0x197/0x200 mm/util.c:357
 vm_mmap+0x90/0xc0 mm/util.c:376
 __x86_set_memory_region+0x38f/0x530 arch/x86/kvm/x86.c:9139
 alloc_apic_access_page arch/x86/kvm/vmx.c:5866 [inline]
 vmx_create_vcpu+0x18cc/0x2390 arch/x86/kvm/vmx.c:11120
 kvm_vm_ioctl_create_vcpu arch/x86/kvm/../../../virt/kvm/kvm_main.c:2700 [inline]
 kvm_vm_ioctl+0x5ed/0x1730 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3205
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xcda/0x12e0 fs/ioctl.c:688
 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45ca29
Code: 0d b7 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 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f0311399c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000004e73c0 RCX: 000000000045ca29
RDX: 0000000000000000 RSI: 000000000000ae41 RDI: 0000000000000007
RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000396 R14: 00000000004c62c6 R15: 00007f031139a6d4
netlink: 24 bytes leftover after parsing attributes in process `syz-executor.4'.
audit: type=1804 audit(1589971644.599:417): pid=24793 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir626409990/syzkaller.qlyeLf/2188/bus" dev="sda1" ino=16549 res=1
netlink: 24 bytes leftover after parsing attributes in process `syz-executor.4'.
audit: type=1804 audit(1589971645.009:418): pid=24793 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=ToMToU comm="syz-executor.5" name="/root/syzkaller-testdir626409990/syzkaller.qlyeLf/2188/bus" dev="sda1" ino=16549 res=1
audit: type=1804 audit(1589971645.049:419): pid=24785 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir626409990/syzkaller.qlyeLf/2188/bus" dev="sda1" ino=16549 res=1
netlink: 24 bytes leftover after parsing attributes in process `syz-executor.0'.
netlink: 24 bytes leftover after parsing attributes in process `syz-executor.4'.
audit: type=1804 audit(1589971645.359:420): pid=24840 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir626409990/syzkaller.qlyeLf/2189/bus" dev="sda1" ino=16885 res=1
audit: type=1804 audit(1589971645.449:421): pid=24863 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir988166814/syzkaller.fw1SNl/2232/bus" dev="sda1" ino=16908 res=1
netlink: 24 bytes leftover after parsing attributes in process `syz-executor.0'.
audit: type=1804 audit(1589971645.589:422): pid=24871 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir293759649/syzkaller.xDXlk1/2265/bus" dev="sda1" ino=16913 res=1
audit: type=1804 audit(1589971645.629:423): pid=24872 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir591894751/syzkaller.UQ2mZD/2225/bus" dev="sda1" ino=16206 res=1
netlink: 24 bytes leftover after parsing attributes in process `syz-executor.4'.
netlink: 24 bytes leftover after parsing attributes in process `syz-executor.0'.
audit: type=1804 audit(1589971645.989:424): pid=24902 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir293759649/syzkaller.xDXlk1/2266/bus" dev="sda1" ino=16885 res=1
audit: type=1804 audit(1589971646.039:425): pid=24908 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir591894751/syzkaller.UQ2mZD/2226/bus" dev="sda1" ino=16929 res=1
netlink: 24 bytes leftover after parsing attributes in process `syz-executor.4'.
audit: type=1804 audit(1589971646.039:426): pid=24907 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir988166814/syzkaller.fw1SNl/2233/bus" dev="sda1" ino=16908 res=1
netlink: 24 bytes leftover after parsing attributes in process `syz-executor.4'.
netlink: 24 bytes leftover after parsing attributes in process `syz-executor.2'.
mkiss: ax0: crc mode is auto.
new mount options do not match the existing superblock, will be ignored
mkiss: ax0: crc mode is auto.
mkiss: ax0: crc mode is auto.
new mount options do not match the existing superblock, will be ignored
mkiss: ax0: crc mode is auto.
mkiss: ax0: crc mode is auto.
mkiss: ax0: crc mode is auto.
new mount options do not match the existing superblock, will be ignored
mkiss: ax0: crc mode is auto.
new mount options do not match the existing superblock, will be ignored
new mount options do not match the existing superblock, will be ignored
mkiss: ax0: crc mode is auto.
new mount options do not match the existing superblock, will be ignored
new mount options do not match the existing superblock, will be ignored
new mount options do not match the existing superblock, will be ignored
new mount options do not match the existing superblock, will be ignored
new mount options do not match the existing superblock, will be ignored
new mount options do not match the existing superblock, will be ignored
new mount options do not match the existing superblock, will be ignored
new mount options do not match the existing superblock, will be ignored
new mount options do not match the existing superblock, will be ignored
new mount options do not match the existing superblock, will be ignored
new mount options do not match the existing superblock, will be ignored
new mount options do not match the existing superblock, will be ignored

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/05/20 10:47 linux-4.19.y 1bab61d3e8cd 1255f02a .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.