syzbot


general protection fault in __lock_acquire (2)

Status: fixed on 2018/01/27 14:55
Subsystems: tipc
[Documentation on labels]
Reported-by: syzbot+b345a2c15a15db1262d2a9de77dd90e67e34f54d@syzkaller.appspotmail.com
Fix commit: 672ecbe1c977 tipc: fix a null pointer deref on error path
First crash: 2313d, last: 2227d
Duplicate bugs (1)
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
general protection fault in perf_trace_lock_acquire selinux 21 2280d 2310d 0/26 closed as dup on 2017/11/08 13:23
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in __lock_acquire selinux 5 2332d 2384d 3/26 fixed on 2017/10/24 06:54
android-44 general protection fault in __lock_acquire C 5 2225d 1786d 0/2 public: reported C repro on 2019/04/13 00:00
android-49 general protection fault in __lock_acquire C 3 2263d 1785d 0/3 public: reported C repro on 2019/04/14 00:00

Sample crash report:
R13: 00000000004023a0 R14: 0000000000000000 R15: 0000000000000000
Subscriber rejected, no memory
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: 3085 Comm: syzkaller064164 Not tainted 4.15.0-rc1+ #137
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: 00000000c24413a5 task.stack: 000000005e8160b5
RIP: 0010:__lock_acquire+0xd55/0x47f0 kernel/locking/lockdep.c:3378
RSP: 0018:ffff8801cb5474a8 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000004 RSI: 0000000000000000 RDI: ffffffff85ecb400
RBP: ffff8801cb547830 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: ffffffff87489d60 R12: ffff8801cd2980c0
R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000020
FS:  00000000014ee880(0000) GS:ffff8801db400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffee2426e40 CR3: 00000001cb85a000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:4004
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline]
 _raw_spin_lock_bh+0x31/0x40 kernel/locking/spinlock.c:175
 spin_lock_bh include/linux/spinlock.h:320 [inline]
 tipc_subscrb_subscrp_delete+0x8f/0x470 net/tipc/subscr.c:201
 tipc_subscrb_delete net/tipc/subscr.c:238 [inline]
 tipc_subscrb_release_cb+0x17/0x30 net/tipc/subscr.c:316
 tipc_close_conn+0x171/0x270 net/tipc/server.c:204
 tipc_topsrv_kern_subscr+0x724/0x810 net/tipc/server.c:514
 tipc_group_create+0x702/0x9c0 net/tipc/group.c:184
 tipc_sk_join net/tipc/socket.c:2747 [inline]
 tipc_setsockopt+0x249/0xc10 net/tipc/socket.c:2861
 SYSC_setsockopt net/socket.c:1851 [inline]
 SyS_setsockopt+0x189/0x360 net/socket.c:1830
 entry_SYSCALL_64_fastpath+0x1f/0x96
RIP: 0033:0x444dd9
RSP: 002b:00007fffe5997f78 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000444dd9
RDX: 0000000000000087 RSI: 000000000000010f RDI: 0000000000000004
RBP: 0000000000000006 R08: 000000000000001c R09: 0000006f00000034
R10: 0000000020265000 R11: 0000000000000246 R12: 0000000000402310
R13: 00000000004023a0 R14: 0000000000000000 R15: 0000000000000000
Code: e9 03 f3 48 ab 48 81 c4 60 03 00 00 44 89 f8 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 cf 38 00 00 49 81 3f 00 58 8b 86 41 be 00 00 
RIP: __lock_acquire+0xd55/0x47f0 kernel/locking/lockdep.c:3378 RSP: ffff8801cb5474a8
---[ end trace 1d79d73eb824586d ]---

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2017/12/04 00:32 net-next-old fb7516d42478 48359b97 .config console log report syz C ci-upstream-net-kasan-gce
2017/12/02 08:40 upstream a0651c7fa2c0 48359b97 .config console log report syz ci-upstream-kasan-gce-386
2018/01/27 00:45 upstream c4e0ca7fa241 1d18b112 .config console log report ci-upstream-kasan-gce
2017/11/19 05:29 upstream 07c455ee222f bf820689 .config console log report ci-upstream-kasan-gce
2017/12/06 19:48 upstream e56d565d67ae 5d643f8e .config console log report ci-upstream-kasan-gce-386
2017/12/02 08:26 upstream a0651c7fa2c0 48359b97 .config console log report ci-upstream-kasan-gce-386
2017/12/07 09:15 net-next-old 24e5992a6bae 5d643f8e .config console log report ci-upstream-net-kasan-gce
2017/12/04 00:14 net-next-old fb7516d42478 48359b97 .config console log report ci-upstream-net-kasan-gce
2017/11/20 23:22 net-next-old 1deab8ce2c91 d4d14b03 .config console log report ci-upstream-net-kasan-gce
2017/11/14 10:43 linux-next c9b945f2a731 cf38de00 .config console log report skylake-linux-next-kasan-qemu
2017/11/09 10:09 linux-next 5515cf16e270 e0a2b195 .config console log report skylake-linux-next-kasan-qemu
2017/11/06 14:20 linux-next 5a3517e009e9 e0a2b195 .config console log report ci-upstream-next-kasan-gce
2017/11/05 17:24 linux-next 5a3517e009e9 e0a2b195 .config console log report ci-upstream-next-kasan-gce
2017/11/03 22:11 mmots 0f611fb6dcc0 e0a2b195 .config console log report ci-upstream-mmots-kasan-gce
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.