syzbot


general protection fault in __lock_acquire

Status: fixed on 2017/10/24 06:54
Subsystems: selinux
[Documentation on labels]
Fix commit: 383143f31d7d ipv6: reset fn->rr_ptr when replacing route
First crash: 2441d, last: 2386d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-44 general protection fault in __lock_acquire C 5 2279d 1840d 0/2 public: reported C repro on 2019/04/13 00:00
upstream general protection fault in __lock_acquire (2) tipc C 15 2281d 2366d 4/26 fixed on 2018/01/27 14:55
android-49 general protection fault in __lock_acquire C 3 2316d 1839d 0/3 public: reported C repro on 2019/04/14 00:00

Sample crash report:
Can not set IPV6_FL_F_REFLECT if flowlabel_consistency sysctl is enable
audit: type=1326 audit(1506984755.099:81): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=5542 comm="syz-executor0" exe="/root/syz-executor0" sig=31 arch=c000003e syscall=202 compat=0 ip=0x4520a9 code=0xffff0000
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: 1 PID: 5571 Comm: syz-executor7 Not tainted 4.14.0-rc3+ #112
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8801d8054540 task.stack: ffff8801d8bb0000
RIP: 0010:__lock_acquire+0xd34/0x4620 kernel/locking/lockdep.c:3376
RSP: 0018:ffff8801d8bb62d8 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 000000000000001a RSI: 0000000000000000 RDI: ffffffff85ac9960
RBP: ffff8801d8bb67d8 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: ffffffff87060ca0 R12: ffff8801d8054540
R13: 0000000000000000 R14: 0000000000000001 R15: 00000000000000d0
FS:  00007fb7c5232700(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020c35ff0 CR3: 0000000197a1c000 CR4: 00000000001406e0
DR0: 0000000020000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:4002
 __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:316 [inline]
 inode_free_security security/selinux/hooks.c:346 [inline]
 selinux_inode_free_security+0x12a/0x410 security/selinux/hooks.c:2873
 security_inode_free+0x50/0x90 security/security.c:442
 __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+0x4d0/0x730 fs/notify/mark.c:237
 fsnotify_clear_marks_by_group+0x19a/0x5f0 fs/notify/mark.c:691
 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:112
 exit_task_work include/linux/task_work.h:21 [inline]
 do_exit+0x9d2/0x1af0 kernel/exit.c:865
 do_group_exit+0x149/0x400 kernel/exit.c:968
 get_signal+0x73f/0x16d0 kernel/signal.c:2334
 do_signal+0x94/0x1ee0 arch/x86/kernel/signal.c:808
 exit_to_usermode_loop+0x214/0x310 arch/x86/entry/common.c:158
 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline]
 syscall_return_slowpath+0x42f/0x510 arch/x86/entry/common.c:266
 entry_SYSCALL_64_fastpath+0xbc/0xbe
RIP: 0033:0x4520a9
RSP: 002b:00007fb7c5231cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 0000000000718188 RCX: 00000000004520a9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000718188
RBP: 0000000000718160 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000a6f7ef R14: 00007fb7c52329c0 R15: 0000000000000002
Code: e9 03 f3 48 ab 48 81 c4 d8 04 00 00 44 89 f0 5b 41 5c 41 5d 41 5e 41 5f 5d c3 4c 89 fa 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 0d 33 00 00 49 81 3f c0 c7 48 86 41 be 00 00 
RIP: __lock_acquire+0xd34/0x4620 kernel/locking/lockdep.c:3376 RSP: ffff8801d8bb62d8
---[ end trace bcfbf4575caf20dd ]---

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2017/10/02 22:52 upstream 9e66317d3c92 c26ea367 .config console log report ci-upstream-kasan-gce-386
2017/10/13 21:12 net-next-old 833e0e2f24fd 441d64d9 .config console log report ci-upstream-net-kasan-gce
2017/10/09 05:02 net-next-old 28f50eb20931 c26ea367 .config console log report ci-upstream-net-kasan-gce
2017/08/19 20:46 net-next-old 01d300c577c7 f238fbd4 .config console log report ci-upstream-net-kasan-gce
2017/10/06 10:20 mmots fb686cb13e51 c26ea367 .config console log report ci-upstream-mmots-kasan-gce
* Struck through repros no longer work on HEAD.