syzbot
general protection fault in tcf_action_destroy (2)
Status:
fixed on 2020/11/16 12:12
Subsystems:
net
[Documentation on labels]
Reported-by: syzbot+92a80fff3b3af6c4464e@syzkaller.appspotmail.com
Fix commit:
0d1c3530e1bd
net_sched: keep alloc_hash updated after hash allocation
First crash: 2342d, last: 2128d
Sample crash report:
general protection fault, probably for non-canonical address 0xe00d898eadcf2e8e: 0000 [#1] PREEMPT SMP KASAN
KASAN: maybe wild-memory-access in range [0x006c6c756e797470-0x006c6c756e797477]
CPU: 0 PID: 10491 Comm: syz-executor103 Not tainted 5.6.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:tcf_action_destroy+0x94/0x150 net/sched/act_api.c:723
Code: 42 80 3c 28 00 0f 85 ae 00 00 00 4c 8b 3b 4d 85 ff 0f 84 8b 00 00 00 e8 7a d3 46 fb 4c 89 f8 48 c7 03 00 00 00 00 48 c1 e8 03 <42> 80 3c 28 00 0f 85 91 00 00 00 49 8b 07 31 ff 44 89 f6 48 89 04
RSP: 0018:ffffc900029c7028 EFLAGS: 00010207
RAX: 000d8d8eadcf2e8e RBX: ffffffff885ee6c0 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff862b51a6 RDI: ffffffff885ee6c0
RBP: 0000000000000000 R08: ffff88808f07c340 R09: ffffed1015cc7074
R10: ffffed1015cc7073 R11: ffff8880ae63839b R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000001 R15: 006c6c756e797474
FS: 0000000000fe2940(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000280 CR3: 0000000097d6f000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
tcf_exts_destroy+0x42/0xc0 net/sched/cls_api.c:3001
tcf_exts_change+0xf4/0x150 net/sched/cls_api.c:3059
tcindex_set_parms+0xed8/0x1a00 net/sched/cls_tcindex.c:456
tcindex_change+0x203/0x2e0 net/sched/cls_tcindex.c:518
tc_new_tfilter+0xa59/0x20b0 net/sched/cls_api.c:2103
rtnetlink_rcv_msg+0x810/0xad0 net/core/rtnetlink.c:5427
netlink_rcv_skb+0x15a/0x410 net/netlink/af_netlink.c:2478
netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline]
netlink_unicast+0x537/0x740 net/netlink/af_netlink.c:1329
netlink_sendmsg+0x882/0xe10 net/netlink/af_netlink.c:1918
sock_sendmsg_nosec net/socket.c:652 [inline]
sock_sendmsg+0xcf/0x120 net/socket.c:672
____sys_sendmsg+0x6b9/0x7d0 net/socket.c:2345
___sys_sendmsg+0x100/0x170 net/socket.c:2399
__sys_sendmsg+0xec/0x1b0 net/socket.c:2432
do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:294
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x442d99
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 6b 0e fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fffae866b38 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fffae866b70 RCX: 0000000000442d99
RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000000000003
RBP: 0000000000000003 R08: 0000000001000002 R09: 0000000001000002
R10: 0000000001000002 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000003 R14: 0000000000000004 R15: 00007fffae866c40
Modules linked in:
---[ end trace c1be637078322dcb ]---
RIP: 0010:tcf_action_destroy+0x94/0x150 net/sched/act_api.c:723
Code: 42 80 3c 28 00 0f 85 ae 00 00 00 4c 8b 3b 4d 85 ff 0f 84 8b 00 00 00 e8 7a d3 46 fb 4c 89 f8 48 c7 03 00 00 00 00 48 c1 e8 03 <42> 80 3c 28 00 0f 85 91 00 00 00 49 8b 07 31 ff 44 89 f6 48 89 04
RSP: 0018:ffffc900029c7028 EFLAGS: 00010207
RAX: 000d8d8eadcf2e8e RBX: ffffffff885ee6c0 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff862b51a6 RDI: ffffffff885ee6c0
RBP: 0000000000000000 R08: ffff88808f07c340 R09: ffffed1015cc7074
R10: ffffed1015cc7073 R11: ffff8880ae63839b R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000001 R15: 006c6c756e797474
FS: 0000000000fe2940(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000280 CR3: 0000000097d6f000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
* Struck through repros no longer work on HEAD.