syzbot


general protection fault in tcf_action_destroy

Status: fixed on 2019/12/11 14:03
Reported-by: syzbot+648ba32edb3e74b1e66c@syzkaller.appspotmail.com
Fix commit: 50dddec689cb mISDN: enforce CAP_NET_RAW for raw sockets
First crash: 1725d, last: 1703d
Fix bisection: fixed by (bisect log) :
commit 50dddec689cb2105f6bccf4a2c6fe43dcc3295d7
Author: Ori Nimron <orinimron123@gmail.com>
Date: Fri Sep 20 07:35:45 2019 +0000

  mISDN: enforce CAP_NET_RAW for raw sockets

  
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in tcf_action_destroy (2) net C done done 29 1330d 1543d 15/26 fixed on 2020/11/16 12:12
upstream general protection fault in tcf_action_destroy net 128 1707d 1725d 13/26 fixed on 2019/10/15 23:40
linux-4.19 general protection fault in tcf_action_destroy (2) 1 1546d 1546d 0/1 auto-closed as invalid on 2020/07/06 08:55
upstream general protection fault in tcf_action_destroy (3) net C error error 4 1287d 1287d 0/26 closed as invalid on 2021/12/14 20:22

Sample crash report:
RBP: 00007fff96d8d240 R08: 0000000000000002 R09: 0000000120080522
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff
R13: 0000000000000007 R14: 0000000000000000 R15: 0000000000000000
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: 7338 Comm: syz-executor789 Not tainted 4.19.75 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:tcf_action_destroy+0x71/0x160 net/sched/act_api.c:652
Code: c3 08 44 89 ee e8 2f ae ea fb 41 83 fd 20 0f 84 c9 00 00 00 e8 a0 ac ea fb 48 89 d8 48 b9 00 00 00 00 00 fc ff df 48 c1 e8 03 <80> 3c 08 00 0f 85 c0 00 00 00 4c 8b 33 4d 85 f6 0f 84 9d 00 00 00
RSP: 0018:ffff88809b21f020 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: ffffffff8580b5e0 RDI: 0000000000000000
RBP: ffff88809b21f050 R08: ffff88808762a3c0 R09: ffffed1015d24733
R10: ffffed1015d24732 R11: ffff8880ae923993 R12: 0000000000000000
R13: 0000000000000000 R14: ffff88809b21f7a0 R15: 0000000000000001
FS:  000055555686f880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000008b5da000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 tcf_exts_destroy+0x38/0xb0 net/sched/cls_api.c:2041
 tcindex_set_parms+0xf5f/0x1e20 net/sched/cls_tcindex.c:488
 tcindex_change+0x22d/0x315 net/sched/cls_tcindex.c:518
 tc_new_tfilter+0xc54/0x1790 net/sched/cls_api.c:1320
 rtnetlink_rcv_msg+0x463/0xb00 net/core/rtnetlink.c:4747
 netlink_rcv_skb+0x17d/0x460 net/netlink/af_netlink.c:2454
 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:4765
 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline]
 netlink_unicast+0x537/0x720 net/netlink/af_netlink.c:1343
 netlink_sendmsg+0x8ae/0xd70 net/netlink/af_netlink.c:1908
 sock_sendmsg_nosec net/socket.c:622 [inline]
 sock_sendmsg+0xd7/0x130 net/socket.c:632
 ___sys_sendmsg+0x3e2/0x920 net/socket.c:2115
 __sys_sendmmsg+0x1bf/0x4e0 net/socket.c:2210
 __do_sys_sendmmsg net/socket.c:2239 [inline]
 __se_sys_sendmmsg net/socket.c:2236 [inline]
 __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2236
 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4422c9
Code: e8 9c ae 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 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 3b 0a fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fff96d8d208 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000004422c9
RDX: 0000000000000332 RSI: 0000000020000140 RDI: 0000000000000006
RBP: 00007fff96d8d240 R08: 0000000000000002 R09: 0000000120080522
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff
R13: 0000000000000007 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace d9978aedcf125bac ]---
RIP: 0010:tcf_action_destroy+0x71/0x160 net/sched/act_api.c:652
Code: c3 08 44 89 ee e8 2f ae ea fb 41 83 fd 20 0f 84 c9 00 00 00 e8 a0 ac ea fb 48 89 d8 48 b9 00 00 00 00 00 fc ff df 48 c1 e8 03 <80> 3c 08 00 0f 85 c0 00 00 00 4c 8b 33 4d 85 f6 0f 84 9d 00 00 00
RSP: 0018:ffff88809b21f020 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: ffffffff8580b5e0 RDI: 0000000000000000
RBP: ffff88809b21f050 R08: ffff88808762a3c0 R09: ffffed1015d24733
R10: ffffed1015d24732 R11: ffff8880ae923993 R12: 0000000000000000
R13: 0000000000000000 R14: ffff88809b21f7a0 R15: 0000000000000001
FS:  000055555686f880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000008b5da000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/09/23 00:50 linux-4.19.y d573e8a79f70 d96e88f3 .config console log report syz C ci2-linux-4-19
2019/10/03 13:13 linux-4.19.y 555161ee1b7a fc17ba49 .config console log report ci2-linux-4-19
2019/10/02 19:47 linux-4.19.y 555161ee1b7a 2e29b534 .config console log report ci2-linux-4-19
2019/10/02 19:08 linux-4.19.y 555161ee1b7a 2e29b534 .config console log report ci2-linux-4-19
2019/10/02 19:06 linux-4.19.y 555161ee1b7a 2e29b534 .config console log report ci2-linux-4-19
2019/10/02 07:45 linux-4.19.y 555161ee1b7a b7a87a83 .config console log report ci2-linux-4-19
2019/10/01 11:57 linux-4.19.y 555161ee1b7a c7a4fb99 .config console log report ci2-linux-4-19
2019/09/28 19:57 linux-4.19.y d573e8a79f70 eb6b9855 .config console log report ci2-linux-4-19
2019/09/26 17:13 linux-4.19.y d573e8a79f70 24d405a3 .config console log report ci2-linux-4-19
2019/09/23 00:10 linux-4.19.y d573e8a79f70 d96e88f3 .config console log report ci2-linux-4-19
2019/09/20 03:27 linux-4.19.y dbc29aff8d04 4d3ae0b7 .config console log report ci2-linux-4-19
2019/09/15 06:17 linux-4.19.y ee809c7e0895 32d59357 .config console log report ci2-linux-4-19
2019/09/15 04:16 linux-4.19.y ee809c7e0895 32d59357 .config console log report ci2-linux-4-19
2019/09/14 04:21 linux-4.19.y ee809c7e0895 32d59357 .config console log report ci2-linux-4-19
2019/09/11 13:45 linux-4.19.y ee809c7e0895 a60cb4cd .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.