syzbot


general protection fault in tcf_ife_init

Status: fixed on 2019/08/27 17:15
Reported-by: syzbot+fbb5b288c9cb6a2eeac4@syzkaller.appspotmail.com
Fix commit: c8ec4632c6ac ife: error out when nla attributes are empty
First crash: 1071d, last: 1054d

Cause bisection: introduced by (bisect log) :
commit 2de50e9674fc4ca3c6174b04477f69eb26b4ee31
Author: Russell Currey <ruscur@russell.cc>
Date: Mon Feb 8 04:08:20 2016 +0000

  powerpc/powernv: Remove support for p5ioc2

Crash: BUG: spinlock lockup suspected in nf_conntrack_lock (log)
Repro: C syz .config
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in tcf_ife_init C done 15 1054d 1071d 1/1 fixed on 2019/12/03 19:11
linux-4.14 general protection fault in tcf_ife_init C done 12 1062d 1071d 1/1 fixed on 2019/12/03 19:05
Patch testing requests:
Created Duration User Patch Repo Result
2019/07/23 04:30 21m xiyou.wangcong@gmail.com https://github.com/congwang/linux.git ife error

Sample crash report:
netlink: 4 bytes leftover after parsing attributes in process `syz-executor053'.
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: 9096 Comm: syz-executor053 Not tainted 5.2.0+ #69
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:nla_parse_nested_deprecated /./include/net/netlink.h:1167 [inline]
RIP: 0010:tcf_ife_init+0x25c/0x1850 /net/sched/act_ife.c:484
Code: 00 00 48 c7 c7 40 c2 da 88 e8 f0 8c a2 fb 48 89 da 48 b8 00 00 00 00 00 fc ff df 48 c7 85 e8 fe ff ff 00 00 00 00 48 c1 ea 03 <0f> b6 14 02 48 89 d8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85 e2
RSP: 0018:ffff8880a1b0eeb8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 1ffff1101188d5e0
RDX: 0000000000000000 RSI: 1ffff1101188d5e7 RDI: 0000000000000282
RBP: ffff8880a1b0f060 R08: 0000000000000002 R09: ffff88808c46af08
R10: fffffbfff134a0cf R11: ffffffff89a5067f R12: 0000000000000001
R13: ffff8882158d4dc0 R14: ffff8880a1b0f8c0 R15: 0000000000000000
FS:  00005555562dc880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000180 CR3: 000000009574e000 CR4: 00000000001406e0
Call Trace:
 tcf_action_init_1+0x6f2/0xa80 /net/sched/act_api.c:915
 tcf_action_init+0x241/0x360 /net/sched/act_api.c:971
 tcf_action_add+0xe8/0x370 /net/sched/act_api.c:1356
 tc_ctl_action+0x3b5/0x4bc /net/sched/act_api.c:1408
 rtnetlink_rcv_msg+0x463/0xb00 /net/core/rtnetlink.c:5223
 netlink_rcv_skb+0x177/0x450 /net/netlink/af_netlink.c:2477
 rtnetlink_rcv+0x1d/0x30 /net/core/rtnetlink.c:5241
 netlink_unicast_kernel /net/netlink/af_netlink.c:1302 [inline]
 netlink_unicast+0x531/0x710 /net/netlink/af_netlink.c:1328
 netlink_sendmsg+0x8a5/0xd60 /net/netlink/af_netlink.c:1917
 sock_sendmsg_nosec /net/socket.c:633 [inline]
 sock_sendmsg+0xd7/0x130 /net/socket.c:653
 ___sys_sendmsg+0x803/0x920 /net/socket.c:2307
 __sys_sendmsg+0x105/0x1d0 /net/socket.c:2352
 __do_sys_sendmsg /net/socket.c:2361 [inline]
 __se_sys_sendmsg /net/socket.c:2359 [inline]
 __x64_sys_sendmsg+0x78/0xb0 /net/socket.c:2359
 do_syscall_64+0xfd/0x6a0 /arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4401d9
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 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 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fff9ecedad8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004401d9
RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a60
R13: 0000000000401af0 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 437766f3f1a49277 ]---
RIP: 0010:nla_parse_nested_deprecated /./include/net/netlink.h:1167 [inline]
RIP: 0010:tcf_ife_init+0x25c/0x1850 /net/sched/act_ife.c:484
Code: 00 00 48 c7 c7 40 c2 da 88 e8 f0 8c a2 fb 48 89 da 48 b8 00 00 00 00 00 fc ff df 48 c7 85 e8 fe ff ff 00 00 00 00 48 c1 ea 03 <0f> b6 14 02 48 89 d8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85 e2
RSP: 0018:ffff8880a1b0eeb8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 1ffff1101188d5e0
RDX: 0000000000000000 RSI: 1ffff1101188d5e7 RDI: 0000000000000282
RBP: ffff8880a1b0f060 R08: 0000000000000002 R09: ffff88808c46af08
R10: fffffbfff134a0cf R11: ffffffff89a5067f R12: 0000000000000001
R13: ffff8882158d4dc0 R14: ffff8880a1b0f8c0 R15: 0000000000000000
FS:  00005555562dc880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000180 CR3: 000000009574e000 CR4: 00000000001406e0

Crashes (72):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2019/07/20 01:12 upstream 3bfe1fc46794 1656845f .config log report syz C
ci-upstream-kasan-gce-root 2019/07/20 00:23 upstream 3bfe1fc46794 1656845f .config log report syz C
ci-upstream-kasan-gce-root 2019/07/20 00:04 upstream 3bfe1fc46794 1656845f .config log report syz C
ci-upstream-kasan-gce-selinux-root 2019/07/19 23:53 upstream 3bfe1fc46794 1656845f .config log report syz C
ci-upstream-kasan-gce-smack-root 2019/07/19 23:37 upstream 3bfe1fc46794 1656845f .config log report syz C
ci-upstream-kasan-gce-selinux-root 2019/07/19 23:02 upstream 3bfe1fc46794 1656845f .config log report syz C
ci-upstream-kasan-gce-smack-root 2019/07/19 22:54 upstream 3bfe1fc46794 1656845f .config log report syz C
ci-upstream-kasan-gce-selinux-root 2019/07/19 22:41 upstream 3bfe1fc46794 1656845f .config log report syz C
ci-upstream-kasan-gce-smack-root 2019/07/19 22:36 upstream 3bfe1fc46794 1656845f .config log report syz C
ci-upstream-kasan-gce-root 2019/07/19 22:24 upstream 3bfe1fc46794 1656845f .config log report syz C
ci-upstream-kasan-gce-selinux-root 2019/07/19 22:21 upstream 3bfe1fc46794 1656845f .config log report syz C
ci-upstream-kasan-gce-smack-root 2019/07/19 22:18 upstream 3bfe1fc46794 1656845f .config log report syz C
ci-upstream-kasan-gce-root 2019/07/19 22:04 upstream 3bfe1fc46794 1656845f .config log report syz C
ci-upstream-kasan-gce-selinux-root 2019/07/19 22:01 upstream 3bfe1fc46794 1656845f .config log report syz C
ci-upstream-kasan-gce-smack-root 2019/07/19 21:59 upstream 3bfe1fc46794 1656845f .config log report syz C
ci-upstream-kasan-gce-root 2019/07/19 21:42 upstream 3bfe1fc46794 1656845f .config log report syz C
ci-upstream-kasan-gce-selinux-root 2019/07/19 21:40 upstream 3bfe1fc46794 1656845f .config log report syz C
ci-upstream-kasan-gce-smack-root 2019/07/19 21:40 upstream 3bfe1fc46794 1656845f .config log report syz C
ci-upstream-kasan-gce-smack-root 2019/07/19 21:22 upstream 3bfe1fc46794 1656845f .config log report syz C
ci-upstream-kasan-gce-root 2019/07/19 21:21 upstream 3bfe1fc46794 1656845f .config log report syz C
ci-upstream-kasan-gce-selinux-root 2019/07/19 21:20 upstream 3bfe1fc46794 1656845f .config log report syz C
ci-upstream-net-this-kasan-gce 2019/07/19 23:31 net 8d650cdedaab 1656845f .config log report syz C
ci-upstream-net-this-kasan-gce 2019/07/19 22:58 net 8d650cdedaab 1656845f .config log report syz C
ci-upstream-net-this-kasan-gce 2019/07/19 22:37 net 8d650cdedaab 1656845f .config log report syz C
ci-upstream-net-this-kasan-gce 2019/07/19 22:17 net 8d650cdedaab 1656845f .config log report syz C
ci-upstream-net-this-kasan-gce 2019/07/19 21:58 net 8d650cdedaab 1656845f .config log report syz C
ci-upstream-net-this-kasan-gce 2019/07/19 21:38 net 8d650cdedaab 1656845f .config log report syz C
ci-upstream-net-this-kasan-gce 2019/07/19 21:16 net 8d650cdedaab 1656845f .config log report syz C
ci-upstream-net-kasan-gce 2019/07/20 00:36 net-next 31cc088a4f5d 1656845f .config log report syz C
ci-upstream-net-kasan-gce 2019/07/20 00:02 net-next 31cc088a4f5d 1656845f .config log report syz C
ci-upstream-net-kasan-gce 2019/07/19 23:42 net-next 31cc088a4f5d 1656845f .config log report syz C
ci-upstream-net-kasan-gce 2019/07/19 23:23 net-next 31cc088a4f5d 1656845f .config log report syz C
ci-upstream-net-kasan-gce 2019/07/19 23:04 net-next 31cc088a4f5d 1656845f .config log report syz C
ci-upstream-net-kasan-gce 2019/07/19 22:44 net-next 31cc088a4f5d 1656845f .config log report syz C
ci-upstream-net-kasan-gce 2019/07/19 22:25 net-next 31cc088a4f5d 1656845f .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2019/07/19 23:44 linux-next 6d21a41b7b1f 1656845f .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2019/07/19 22:57 linux-next 6d21a41b7b1f 1656845f .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2019/07/19 22:38 linux-next 6d21a41b7b1f 1656845f .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2019/07/19 22:18 linux-next 6d21a41b7b1f 1656845f .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2019/07/19 21:58 linux-next 6d21a41b7b1f 1656845f .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2019/07/19 21:37 linux-next 6d21a41b7b1f 1656845f .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2019/07/19 21:16 linux-next 6d21a41b7b1f 1656845f .config log report syz C
ci-upstream-kasan-gce-selinux-root 2019/08/05 21:49 upstream e21a712a9685 6affd8e8 .config log report
ci-upstream-kasan-gce-smack-root 2019/07/29 15:33 upstream 609488bc979f c85e1c5b .config log report
ci-upstream-kasan-gce-smack-root 2019/07/21 00:24 upstream c6dd78fcb8ee 1656845f .config log report
ci-upstream-kasan-gce-root 2019/07/21 00:23 upstream c6dd78fcb8ee 1656845f .config log report
ci-upstream-kasan-gce-selinux-root 2019/07/19 23:29 upstream 3bfe1fc46794 1656845f .config log report
ci-upstream-kasan-gce-root 2019/07/19 23:29 upstream 3bfe1fc46794 1656845f .config log report
ci-upstream-kasan-gce-smack-root 2019/07/19 20:59 upstream 3bfe1fc46794 1656845f .config log report
ci-upstream-kasan-gce-root 2019/07/19 20:57 upstream 3bfe1fc46794 1656845f .config log report
ci-upstream-kasan-gce-root 2019/07/19 20:57 upstream 3bfe1fc46794 1656845f .config log report
ci-upstream-kasan-gce-selinux-root 2019/07/19 20:54 upstream 3bfe1fc46794 1656845f .config log report
ci-upstream-net-this-kasan-gce 2019/07/19 20:54 net 8d650cdedaab 1656845f .config log report
ci-upstream-net-kasan-gce 2019/07/19 20:54 net-next 192f0f8e9db7 1656845f .config log report
ci-upstream-linux-next-kasan-gce-root 2019/07/19 23:29 linux-next 6d21a41b7b1f 1656845f .config log report
ci-upstream-linux-next-kasan-gce-root 2019/07/19 20:57 linux-next 6d21a41b7b1f 1656845f .config log report