syzbot


general protection fault in lockref_get

Status: closed as dup on 2019/02/20 16:57
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+5dc733a19636067b82fd@syzkaller.appspotmail.com
First crash: 2046d, last: 2045d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
BUG: spinlock bad magic in lockref_get kernel C 1 2045d 2045d
Discussions (1)
Title Replies (including bot) Last reply
general protection fault in lockref_get 1 (2) 2019/02/20 16:57

Sample crash report:
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: 1 PID: 25817 Comm: syz-executor5 Not tainted 4.19.0-rc3-next-20180912+ #72
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__lock_acquire+0x237/0x4ec0 kernel/locking/lockdep.c:3291
Code: 28 00 00 00 0f 85 aa 33 00 00 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 <80> 3c 02 00 0f 85 6d 35 00 00 49 81 7d 00 20 90 9e 8a 0f 84 54 ff
RSP: 0018:ffff88015b1f7430 EFLAGS: 00010007
RAX: dffffc0000000000 RBX: 1ffff1002b63ef03 RCX: 0000000000000000
RDX: 00000001c0000014 RSI: 0000000000000000 RDI: ffffffff89722928
RBP: ffff88015b1f77c0 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000e000000a6 R14: ffff88015c722640 R15: 0000000000000000
FS:  00007f6c165f9700(0000) GS:ffff8801dad00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b33a21000 CR3: 0000000156cb0000 CR4: 00000000001406e0
Call Trace:
 lock_acquire+0x1ed/0x520 kernel/locking/lockdep.c:3901
 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
 _raw_spin_lock+0x2d/0x40 kernel/locking/spinlock.c:144
 lockref_get+0x15/0x50 include/linux/spinlock.h:329
 dget include/linux/dcache.h:322 [inline]
 mqueue_get_tree+0x101/0x2e0 ipc/mqueue.c:362
 vfs_get_tree+0x1cb/0x5c0 fs/super.c:1787
 mq_create_mount+0xe3/0x190 ipc/mqueue.c:415
 mq_init_ns+0x15a/0x210 ipc/mqueue.c:1621
 create_ipc_ns ipc/namespace.c:58 [inline]
 copy_ipcs+0x3d2/0x580 ipc/namespace.c:84
 create_new_namespaces+0x376/0x900 kernel/nsproxy.c:87
 unshare_nsproxy_namespaces+0xc3/0x1f0 kernel/nsproxy.c:206
 ksys_unshare+0x79c/0x10b0 kernel/fork.c:2535
 __do_sys_unshare kernel/fork.c:2603 [inline]
 __se_sys_unshare kernel/fork.c:2601 [inline]
 __x64_sys_unshare+0x31/0x40 kernel/fork.c:2601
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4572d9
Code: fd 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 cb b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f6c165f8c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000110
RAX: ffffffffffffffda RBX: 00007f6c165f96d4 RCX: 00000000004572d9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000006c000000
RBP: 00000000009300a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000004d7c40 R14: 00000000004caa82 R15: 0000000000000000
Modules linked in:
---[ end trace 293b3efeaba81efb ]---
RIP: 0010:__lock_acquire+0x237/0x4ec0 kernel/locking/lockdep.c:3291
Code: 28 00 00 00 0f 85 aa 33 00 00 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 <80> 3c 02 00 0f 85 6d 35 00 00 49 81 7d 00 20 90 9e 8a 0f 84 54 ff
RSP: 0018:ffff88015b1f7430 EFLAGS: 00010007
RAX: dffffc0000000000 RBX: 1ffff1002b63ef03 RCX: 0000000000000000
RDX: 00000001c0000014 RSI: 0000000000000000 RDI: ffffffff89722928
RBP: ffff88015b1f77c0 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000e000000a6 R14: ffff88015c722640 R15: 0000000000000000
FS:  00007f6c165f9700(0000) GS:ffff8801dad00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b33a21000 CR3: 0000000156cb0000 CR4: 00000000001406e0

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/09/12 17:32 linux-next 7c1b097f27bf 71907daf .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/12 05:00 linux-next 7c1b097f27bf 3c88136c .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.