syzbot


general protection fault in tcf_action_destroy

Status: fixed on 2019/10/15 23:40
Subsystems: net
[Documentation on labels]
Fix commit: 3d66b89c30f9 net: sched: fix possible crash in tcf_action_destroy()
First crash: 1744d, last: 1726d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in tcf_action_destroy C done 15 1721d 1743d 1/1 fixed on 2019/12/11 14:03
upstream general protection fault in tcf_action_destroy (2) net C done done 29 1349d 1562d 15/27 fixed on 2020/11/16 12:12
linux-4.19 general protection fault in tcf_action_destroy (2) 1 1565d 1565d 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 1305d 1306d 0/27 closed as invalid on 2021/12/14 20:22

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] PREEMPT SMP KASAN
CPU: 1 PID: 18349 Comm: syz-executor.0 Not tainted 5.3.0+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:tcf_action_destroy+0x34/0x220 net/sched/act_api.c:705
Code: 41 54 53 50 41 89 f7 49 89 fe 48 bb 00 00 00 00 00 fc ff df e8 2d 7c 83 fb 31 ff 44 89 fe e8 c3 7f 83 fb 4c 89 f0 48 c1 e8 03 <80> 3c 18 00 74 08 4c 89 f7 e8 3e ae bc fb 49 8b 1e 48 85 db 0f 84
RSP: 0018:ffff88804bee72e0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000000002
RDX: ffffc90005f55000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffff88804bee7310 R08: ffffffff85efa30d R09: ffffed1015d66a75
R10: ffffed1015d66a75 R11: 0000000000000000 R12: ffff88804bee7490
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000001
FS:  00007fa72a5fc700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c420db3200 CR3: 000000008b5f5000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 tcf_exts_destroy+0x45/0xa0 net/sched/cls_api.c:2897
 tcindex_set_parms net/sched/cls_tcindex.c:488 [inline]
 tcindex_change+0x119c/0x2680 net/sched/cls_tcindex.c:519
 tc_new_tfilter+0x151c/0x27b0 net/sched/cls_api.c:2019
 rtnetlink_rcv_msg+0x8fb/0xd40 net/core/rtnetlink.c:5214
 netlink_rcv_skb+0x19e/0x3d0 net/netlink/af_netlink.c:2477
 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5241
 netlink_unicast_kernel net/netlink/af_netlink.c:1302 [inline]
 netlink_unicast+0x787/0x8f0 net/netlink/af_netlink.c:1328
 netlink_sendmsg+0x993/0xc50 net/netlink/af_netlink.c:1917
 sock_sendmsg_nosec net/socket.c:637 [inline]
 sock_sendmsg net/socket.c:657 [inline]
 ___sys_sendmsg+0x60d/0x910 net/socket.c:2311
 __sys_sendmmsg+0x239/0x470 net/socket.c:2413
 __do_sys_sendmmsg net/socket.c:2442 [inline]
 __se_sys_sendmmsg net/socket.c:2439 [inline]
 __x64_sys_sendmmsg+0xa0/0xb0 net/socket.c:2439
 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x459a29
Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fa72a5fbc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00007fa72a5fbc90 RCX: 0000000000459a29
RDX: 0000000004924b68 RSI: 0000000020000140 RDI: 0000000000000004
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa72a5fc6d4
R13: 00000000004c721c R14: 00000000004dca30 R15: 0000000000000005
Modules linked in:
---[ end trace 4147169cd11b58b2 ]---
RIP: 0010:tcf_action_destroy+0x34/0x220 net/sched/act_api.c:705
Code: 41 54 53 50 41 89 f7 49 89 fe 48 bb 00 00 00 00 00 fc ff df e8 2d 7c 83 fb 31 ff 44 89 fe e8 c3 7f 83 fb 4c 89 f0 48 c1 e8 03 <80> 3c 18 00 74 08 4c 89 f7 e8 3e ae bc fb 49 8b 1e 48 85 db 0f 84
RSP: 0018:ffff88804bee72e0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000000002
RDX: ffffc90005f55000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffff88804bee7310 R08: ffffffff85efa30d R09: ffffed1015d66a75
R10: ffffed1015d66a75 R11: 0000000000000000 R12: ffff88804bee7490
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000001
FS:  00007fa72a5fc700(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f316fa65000 CR3: 000000008b5f5000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (128):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/09/27 09:24 upstream cbafe18c7102 2f1548bc .config console log report ci-upstream-kasan-gce-smack-root
2019/09/25 08:12 upstream 351c8a09b00b e38a6630 .config console log report ci-upstream-kasan-gce-smack-root
2019/09/24 18:53 upstream 4c07e2ddab5b 0942eab8 .config console log report ci-upstream-kasan-gce-selinux-root
2019/09/23 09:21 upstream 619e17cf75dd d96e88f3 .config console log report ci-upstream-kasan-gce
2019/09/23 01:39 upstream f7c3bf8fa7e5 d96e88f3 .config console log report ci-upstream-kasan-gce
2019/09/21 17:35 upstream f97c81dc6ca5 d96e88f3 .config console log report ci-upstream-kasan-gce
2019/09/18 22:22 upstream 35f7a9526615 c2dcd700 .config console log report ci-upstream-kasan-gce
2019/09/18 14:25 upstream 35f7a9526615 c2dcd700 .config console log report ci-upstream-kasan-gce
2019/09/18 10:52 upstream 7f2444d38f6b 03e0d245 .config console log report ci-upstream-kasan-gce-smack-root
2019/09/17 18:26 upstream ad062195731b 13dcda9b .config console log report ci-upstream-kasan-gce
2019/09/17 16:38 upstream ad062195731b 13dcda9b .config console log report ci-upstream-kasan-gce-root
2019/09/17 04:23 upstream cef7298262e9 51ca0454 .config console log report ci-upstream-kasan-gce
2019/09/10 20:52 upstream 3120b9a6a3f7 a60cb4cd .config console log report ci-upstream-kasan-gce
2019/09/18 01:34 upstream 7f2444d38f6b 03e0d245 .config console log report ci-upstream-kasan-gce-386
2019/09/22 08:50 net-old 7b09c2d052db d96e88f3 .config console log report ci-upstream-net-this-kasan-gce
2019/09/21 20:20 net-old 7b09c2d052db d96e88f3 .config console log report ci-upstream-net-this-kasan-gce
2019/09/21 09:10 net-old e84622ce2448 d96e88f3 .config console log report ci-upstream-net-this-kasan-gce
2019/09/20 19:28 net-old 864668bfc374 d96e88f3 .config console log report ci-upstream-net-this-kasan-gce
2019/09/20 08:58 net-old 280ceaed79f1 4d3ae0b7 .config console log report ci-upstream-net-this-kasan-gce
2019/09/19 03:50 net-old 00b368502d18 46c0be24 .config console log report ci-upstream-net-this-kasan-gce
2019/09/19 02:20 net-old 00b368502d18 46c0be24 .config console log report ci-upstream-net-this-kasan-gce
2019/09/18 09:30 net-old 00b368502d18 03e0d245 .config console log report ci-upstream-net-this-kasan-gce
2019/09/18 07:52 net-old 00b368502d18 03e0d245 .config console log report ci-upstream-net-this-kasan-gce
2019/09/18 05:10 net-old 00b368502d18 03e0d245 .config console log report ci-upstream-net-this-kasan-gce
2019/09/17 21:54 net-old 00b368502d18 13dcda9b .config console log report ci-upstream-net-this-kasan-gce
2019/09/17 11:00 net-old 00b368502d18 51ca0454 .config console log report ci-upstream-net-this-kasan-gce
2019/09/17 00:22 net-old 00b368502d18 51ca0454 .config console log report ci-upstream-net-this-kasan-gce
2019/09/16 20:58 net-old 05a82481a302 cb936299 .config console log report ci-upstream-net-this-kasan-gce
2019/09/29 03:46 net-next-old b41dae061bbd eb6b9855 .config console log report ci-upstream-net-kasan-gce
2019/09/29 02:34 net-next-old b41dae061bbd eb6b9855 .config console log report ci-upstream-net-kasan-gce
2019/09/27 23:05 net-next-old b41dae061bbd d8074e0b .config console log report ci-upstream-net-kasan-gce
2019/09/27 17:11 net-next-old b41dae061bbd d8074e0b .config console log report ci-upstream-net-kasan-gce
2019/09/27 02:24 net-next-old b41dae061bbd 2f1548bc .config console log report ci-upstream-net-kasan-gce
2019/09/26 23:02 net-next-old b41dae061bbd 2f1548bc .config console log report ci-upstream-net-kasan-gce
2019/09/26 14:24 net-next-old b41dae061bbd 24d405a3 .config console log report ci-upstream-net-kasan-gce
2019/09/26 04:11 net-next-old b41dae061bbd 24d405a3 .config console log report ci-upstream-net-kasan-gce
2019/09/25 16:38 net-next-old b41dae061bbd a3355dba .config console log report ci-upstream-net-kasan-gce
2019/09/25 15:08 net-next-old b41dae061bbd e38a6630 .config console log report ci-upstream-net-kasan-gce
2019/09/25 11:36 net-next-old b41dae061bbd e38a6630 .config console log report ci-upstream-net-kasan-gce
2019/09/23 16:15 net-next-old b41dae061bbd 1e9788a0 .config console log report ci-upstream-net-kasan-gce
2019/09/23 12:28 net-next-old b41dae061bbd d96e88f3 .config console log report ci-upstream-net-kasan-gce
2019/09/23 05:13 net-next-old b41dae061bbd d96e88f3 .config console log report ci-upstream-net-kasan-gce
2019/09/22 04:44 net-next-old b41dae061bbd d96e88f3 .config console log report ci-upstream-net-kasan-gce
2019/09/21 22:57 net-next-old b41dae061bbd d96e88f3 .config console log report ci-upstream-net-kasan-gce
2019/09/21 14:51 net-next-old b41dae061bbd d96e88f3 .config console log report ci-upstream-net-kasan-gce
2019/09/20 17:25 net-next-old b41dae061bbd d96e88f3 .config console log report ci-upstream-net-kasan-gce
2019/09/20 06:43 net-next-old b41dae061bbd 4d3ae0b7 .config console log report ci-upstream-net-kasan-gce
2019/09/20 05:28 net-next-old b41dae061bbd 4d3ae0b7 .config console log report ci-upstream-net-kasan-gce
2019/09/20 03:10 net-next-old b41dae061bbd 4d3ae0b7 .config console log report ci-upstream-net-kasan-gce
2019/09/19 17:28 net-next-old b41dae061bbd eb940044 .config console log report ci-upstream-net-kasan-gce
2019/09/19 03:27 net-next-old 1bab8d4c488b 46c0be24 .config console log report ci-upstream-net-kasan-gce
2019/09/17 09:16 net-next-old 990925fad5c2 51ca0454 .config console log report ci-upstream-net-kasan-gce
2019/09/16 18:28 net-next-old aa2eaa8c272a cb936299 .config console log report ci-upstream-net-kasan-gce
2019/09/23 10:56 linux-next b5b3bd898ba9 d96e88f3 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/09/21 12:41 linux-next b5b3bd898ba9 d96e88f3 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.