syzbot


general protection fault in __list_del_entry_valid

Status: fixed on 2017/11/11 01:37
Reported-by: syzbot+b3b21cb3f2c95ba434f66810d52abd04c99b877e@syzkaller.appspotmail.com
Fix commit: 1137b5e2529a ipsec: Fix aborted xfrm policy dump crash
First crash: 2449d, last: 2362d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in __list_del_entry_valid (3) tipc C 40 2218d 2218d 5/26 fixed on 2018/05/08 18:30
upstream general protection fault in __list_del_entry_valid (2) tipc C 21 2292d 2349d 4/26 fixed on 2018/01/31 00:24

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: 1310 Comm: kworker/0:3 Not tainted 4.13.0-rc6+ #44
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events netlink_sock_destruct_work
task: ffff8801d3eb47c0 task.stack: ffff8801d3fc0000
RIP: 0010:__list_del_entry_valid+0x7e/0x150 lib/list_debug.c:51
RSP: 0018:ffff8801d3fc70b8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff8801cf968b58 RDI: ffff8801cf968b60
RBP: ffff8801d3fc70d0 R08: ffffffff86e006a8 R09: ffff8801d3fc6a18
R10: ffff8801d3fc6f98 R11: 1ffff1003a7d6b53 R12: 0000000000000000
R13: ffff8801d3fc7198 R14: ffffffff860680f8 R15: ffff8801cf968b60
FS:  0000000000000000(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000006d00a8 CR3: 0000000005a22000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __list_del_entry include/linux/list.h:116 [inline]
 list_del include/linux/list.h:124 [inline]
 xfrm_policy_walk_done+0xfa/0x310 net/xfrm/xfrm_policy.c:1076
 xfrm_dump_policy_done+0x73/0xa0 net/xfrm/xfrm_user.c:1690
 netlink_sock_destruct+0xfa/0x3c0 net/netlink/af_netlink.c:362
 __sk_destruct+0xfd/0x910 net/core/sock.c:1552
 sk_destruct+0x47/0x80 net/core/sock.c:1587
 __sk_free+0x57/0x230 net/core/sock.c:1595
 sk_free+0x2a/0x40 net/core/sock.c:1606
 netlink_sock_destruct_work+0x19/0x20 net/netlink/af_netlink.c:384
 process_one_work+0xbf3/0x1bc0 kernel/workqueue.c:2097
 worker_thread+0x223/0x1860 kernel/workqueue.c:2231
 kthread+0x35e/0x430 kernel/kthread.c:231
 ret_from_fork+0x2a/0x40 arch/x86/entry/entry_64.S:425
Code: 00 00 00 00 ad de 49 39 c4 74 66 48 b8 00 02 00 00 00 00 ad de 48 89 da 48 39 c3 74 65 48 c1 ea 03 48 b8 00 00 00 00 00 fc ff df <80> 3c 02 00 75 7b 48 8b 13 48 39 f2 75 57 49 8d 7c 24 08 48 b8 
RIP: __list_del_entry_valid+0x7e/0x150 lib/list_debug.c:51 RSP: ffff8801d3fc70b8
---[ end trace c760b41370daff30 ]---
Kernel panic - not syncing: Fatal exception in interrupt
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (72):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2017/08/21 08:24 upstream 14ccee78fc82 f238fbd4 .config console log report syz C ci-upstream-kasan-gce
2017/08/13 06:42 net-next-old aa69ff9e9c32 360f0528 .config console log report syz C ci-upstream-net-kasan-gce
2017/09/15 10:49 mmots 720bbe532b7c c26ea367 .config console log report syz C ci-upstream-mmots-kasan-gce
2017/08/13 07:21 linux-next 91dfed74eabc 6a0246bf .config console log report syz C skylake-linux-next-kasan-qemu
2017/08/13 06:57 linux-next 91dfed74eabc 360f0528 .config console log report syz C ci-upstream-next-kasan-gce
2017/10/25 13:31 linux-next 36ef71cae353 e511d9f8 .config console log report syz ci-upstream-next-kasan-gce
2017/10/28 17:39 upstream 781402340475 80c74880 .config console log report ci-upstream-kasan-gce
2017/11/04 02:51 upstream d4c2e9fca5b7 c78b455b .config console log report ci-upstream-kasan-gce-386
2017/11/04 02:48 upstream d4c2e9fca5b7 c78b455b .config console log report ci-upstream-kasan-gce-386
2017/09/24 18:31 upstream cd4175b11685 c26ea367 .config console log report ci-upstream-kasan-gce-386
2017/09/19 16:46 upstream 12fcf66e74b1 d394531e .config console log report ci-upstream-kasan-gce-386
2017/09/19 09:30 net-next-old 3c75f6ee139d d394531e .config console log report ci-upstream-net-kasan-gce
2017/09/05 18:45 net-next-old 96e5ae4e76f1 0ed1da4a .config console log report ci-upstream-net-kasan-gce
2017/08/29 04:08 net-next-old acae4b488568 be291771 .config console log report ci-upstream-net-kasan-gce
2017/08/17 20:09 net-next-old f03b488b2fb1 2dfba870 .config console log report ci-upstream-net-kasan-gce
2017/11/06 09:12 linux-next 5a3517e009e9 e0a2b195 .config console log report ci-upstream-next-kasan-gce
2017/10/26 07:42 linux-next 36ef71cae353 e511d9f8 .config console log report skylake-linux-next-kasan-qemu
2017/10/24 12:54 linux-next 36ef71cae353 e511d9f8 .config console log report ci-upstream-next-kasan-gce
2017/09/26 05:48 linux-next d35adcbe86c1 c26ea367 .config console log report ci-upstream-next-kasan-gce
2017/09/15 23:35 linux-next 1f183459b514 da1873aa .config console log report skylake-linux-next-kasan-qemu
2017/09/11 01:07 linux-next 58bcd35f859b d18bfda0 .config console log report skylake-linux-next-kasan-qemu
2017/09/05 19:09 linux-next 744c56def809 0ed1da4a .config console log report skylake-linux-next-kasan-qemu
2017/08/21 13:23 linux-next bb70832dd42b f238fbd4 .config console log report ci-upstream-next-kasan-gce
2017/08/17 13:17 linux-next bb70832dd42b f238fbd4 .config console log report ci-upstream-next-kasan-gce
2017/08/17 07:11 linux-next bb70832dd42b f238fbd4 .config console log report skylake-linux-next-kasan-qemu
2017/08/14 14:50 linux-next 91dfed74eabc 6a0246bf .config console log report ci-upstream-next-kasan-gce
* Struck through repros no longer work on HEAD.