syzbot


general protection fault in perf_trace_lock_acquire

Status: closed as dup on 2017/11/08 13:23
Subsystems: selinux
[Documentation on labels]
Reported-by: syzbot+0cea668556ca5b811dc9725d82edbd87fea4defb@syzkaller.appspotmail.com
First crash: 2389d, last: 2345d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
general protection fault in __lock_acquire (2) tipc C 15 2291d 2377d

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] SMP KASAN
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 0 PID: 6152 Comm: syz-executor6 Not tainted 4.14.0+ #185
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8801d8194000 task.stack: ffff8801d3600000
RIP: 0010:perf_trace_lock_acquire+0xc0/0x980 include/trace/events/lock.h:13
RSP: 0018:ffff8801d3606620 EFLAGS: 00010006
RAX: 000000000000001d RBX: 1ffff1003a6c0cce RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 00000000000000d0 RDI: ffffffff85f25920
RBP: ffff8801d36067f8 R08: 0000000000000000 R09: 00000000000000d0
R10: dffffc0000000000 R11: ffffffff815496f0 R12: ffff8801d36067d0
R13: 0000000000000000 R14: ffffffff85f25920 R15: 0000000000000001
FS:  00007f2b45bab700(0000) GS:ffff8801db400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020222000 CR3: 00000001ce105000 CR4: 00000000001406f0
DR0: 0000000020000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 trace_lock_acquire include/trace/events/lock.h:13 [inline]
 lock_acquire+0x394/0x580 kernel/locking/lockdep.c:4003
 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
 _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151
 spin_lock include/linux/spinlock.h:315 [inline]
 inode_free_security security/selinux/hooks.c:347 [inline]
 selinux_inode_free_security+0x12a/0x410 security/selinux/hooks.c:2890
 security_inode_free+0x50/0x90 security/security.c:443
 __destroy_inode+0x287/0x650 fs/inode.c:236
 destroy_inode+0xe7/0x200 fs/inode.c:263
 evict+0x57e/0x920 fs/inode.c:570
 iput_final fs/inode.c:1515 [inline]
 iput+0x7b9/0xaf0 fs/inode.c:1542
 fsnotify_put_mark+0x4e8/0x740 fs/notify/mark.c:227
 fsnotify_clear_marks_by_group+0x19a/0x5f0 fs/notify/mark.c:690
 fsnotify_destroy_group+0xde/0x3f0 fs/notify/group.c:70
 inotify_release+0x37/0x50 fs/notify/inotify/inotify_user.c:280
 __fput+0x333/0x7f0 fs/file_table.c:210
 ____fput+0x15/0x20 fs/file_table.c:244
 task_work_run+0x199/0x270 kernel/task_work.c:113
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0x9bb/0x1ae0 kernel/exit.c:865
 do_group_exit+0x149/0x400 kernel/exit.c:968
 get_signal+0x73f/0x16c0 kernel/signal.c:2335
 do_signal+0x94/0x1ee0 arch/x86/kernel/signal.c:809
 exit_to_usermode_loop+0x214/0x310 arch/x86/entry/common.c:158
 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline]
 syscall_return_slowpath+0x490/0x550 arch/x86/entry/common.c:264
 entry_SYSCALL_64_fastpath+0x94/0x96
RIP: 0033:0x452879
RSP: 002b:00007f2b45baace8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00000000007581b8 RCX: 0000000000452879
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000007581b8
RBP: 00000000007581b8 R08: 000000000000043f R09: 0000000000758190
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000a6f7ff R14: 00007f2b45bab9c0 R15: 0000000000000004
Code: c7 40 1c 00 f2 f2 f2 c7 40 20 f2 f2 f2 f2 c7 40 24 00 f2 f2 f2 c7 40 28 f3 f3 f3 f3 48 8d 46 18 48 89 85 70 fe ff ff 48 c1 e8 03 <80> 3c 10 00 0f 85 da 04 00 00 49 8b 79 18 48 85 ff 0f 84 62 04 
RIP: perf_trace_lock_acquire+0xc0/0x980 include/trace/events/lock.h:13 RSP: ffff8801d3606620
---[ end trace 1cd097e6392ebbdb ]---

Crashes (21):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2017/11/19 22:13 upstream 0192f17529fa 9badd053 .config console log report ci-upstream-kasan-gce
2017/11/18 06:34 net-next-old 1deab8ce2c91 84dd36ba .config console log report ci-upstream-kasan-gce
2017/11/09 08:45 upstream d6a2cf07f0c9 e0a2b195 .config console log report ci-upstream-kasan-gce
2017/12/04 21:03 upstream 2391f0b4808e de212f1a .config console log report ci-upstream-kasan-gce-386
2017/11/25 04:30 net-next-old 1d3b78bbc6e9 deb5f6ae .config console log report ci-upstream-kasan-gce-386
2017/11/23 20:32 upstream 5a787756b809 cb27b030 .config console log report ci-upstream-kasan-gce-386
2017/11/29 03:52 linux-next d127129e85a0 29b0fd90 .config console log report ci-upstream-next-kasan-gce
2017/11/28 06:39 linux-next 5bef2980adef 1808de66 .config console log report ci-upstream-next-kasan-gce
2017/11/27 03:17 linux-next b0a84f19a516 deb5f6ae .config console log report ci-upstream-next-kasan-gce
2017/11/14 09:30 linux-next c9b945f2a731 cf38de00 .config console log report ci-upstream-next-kasan-gce
2017/11/13 02:33 linux-next d9e0e63d9a6f e0a2b195 .config console log report skylake-linux-next-kasan-qemu
2017/11/11 08:27 mmots 97530111c84b 00f6ff58 .config console log report ci-upstream-mmots-kasan-gce
2017/11/11 02:59 mmots 97530111c84b 00f6ff58 .config console log report ci-upstream-mmots-kasan-gce
2017/11/03 15:43 linux-next 5a3517e009e9 e0a2b195 .config console log report skylake-linux-next-kasan-qemu
2017/11/03 15:05 linux-next 5a3517e009e9 e0a2b195 .config console log report skylake-linux-next-kasan-qemu
2017/11/03 10:16 linux-next 5a3517e009e9 e0a2b195 .config console log report skylake-linux-next-kasan-qemu
2017/11/02 15:39 linux-next fa8785e862ef 02b8363d .config console log report skylake-linux-next-kasan-qemu
2017/11/02 10:24 linux-next fa8785e862ef 02b8363d .config console log report skylake-linux-next-kasan-qemu
2017/11/02 09:56 linux-next fa8785e862ef 02b8363d .config console log report skylake-linux-next-kasan-qemu
* Struck through repros no longer work on HEAD.