syzbot


general protection fault in nf_flow_table_offload_setup

Status: fixed on 2020/04/15 17:19
Reported-by: syzbot+e93c1d9ae19a0236289c@syzkaller.appspotmail.com
Fix commit: a7da92c2c8a1 netfilter: flowtable: skip offload setup if disabled
First crash: 1549d, last: 1516d
Cause bisection: introduced by (bisect log) :
commit a7965d58ddab0253ddfae58bd5c7d2de46ef0f76
Author: Pablo Neira Ayuso <pablo@netfilter.org>
Date: Mon Jan 13 18:02:22 2020 +0000

  netfilter: flowtable: add nf_flow_table_offload_cmd()

Crash: general protection fault in nf_flow_table_offload_setup (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) :
commit a7da92c2c8a1faf253a3b3e292fda6910deba540
Author: Florian Westphal <fw@strlen.de>
Date: Mon Feb 3 12:06:18 2020 +0000

  netfilter: flowtable: skip offload setup if disabled

  
Discussions (1)
Title Replies (including bot) Last reply
general protection fault in nf_flow_table_offload_setup 1 (4) 2020/03/23 11:07

Sample crash report:
batman_adv: batadv0: Interface activated: batadv_slave_1
general protection fault, probably for non-canonical address 0xdffffc00060cae4d: 0000 [#1] PREEMPT SMP KASAN
KASAN: probably user-memory-access in range [0x0000000030657268-0x000000003065726f]
CPU: 0 PID: 9669 Comm: syz-executor369 Not tainted 5.6.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__list_splice include/linux/list.h:422 [inline]
RIP: 0010:list_splice include/linux/list.h:438 [inline]
RIP: 0010:nf_flow_table_block_setup net/netfilter/nf_flow_table_offload.c:826 [inline]
RIP: 0010:nf_flow_table_offload_setup+0x4dc/0x6d0 net/netfilter/nf_flow_table_offload.c:883
Code: bc 24 50 ff ff ff 48 ba 00 00 00 00 00 fc ff df 4d 8b ae 00 02 00 00 4d 8b a4 24 58 ff ff ff 49 8d 7f 08 48 89 f9 48 c1 e9 03 <80> 3c 11 00 0f 85 cd 01 00 00 4c 89 e2 49 89 47 08 48 b8 00 00 00
RSP: 0018:ffffc900058e7228 EFLAGS: 00010207
RAX: ffff888097d1aa50 RBX: 1ffff92000b1ce49 RCX: 00000000060cae4d
RDX: dffffc0000000000 RSI: ffffffff8687894e RDI: 000000003065726f
RBP: ffffc900058e7370 R08: ffff8880965ca500 R09: fffff52000b1ce55
R10: fffff52000b1ce54 R11: ffffc900058e72a6 R12: 0000000000000000
R13: ffff888097d1aa50 R14: ffff888097d1a850 R15: 0000000030657267
FS:  0000000000aba880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020003e00 CR3: 00000000a3faa000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 nft_register_flowtable_net_hooks net/netfilter/nf_tables_api.c:6185 [inline]
 nf_tables_newflowtable+0x1352/0x1d90 net/netfilter/nf_tables_api.c:6302
 nfnetlink_rcv_batch+0x8c8/0x1790 net/netfilter/nfnetlink.c:433
 nfnetlink_rcv_skb_batch net/netfilter/nfnetlink.c:543 [inline]
 nfnetlink_rcv+0x3e7/0x460 net/netfilter/nfnetlink.c:561
 netlink_unicast_kernel net/netlink/af_netlink.c:1302 [inline]
 netlink_unicast+0x59e/0x7e0 net/netlink/af_netlink.c:1328
 netlink_sendmsg+0x91c/0xea0 net/netlink/af_netlink.c:1917
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg+0xd7/0x130 net/socket.c:672
 ____sys_sendmsg+0x753/0x880 net/socket.c:2343
 ___sys_sendmsg+0x100/0x170 net/socket.c:2397
 __sys_sendmsg+0x105/0x1d0 net/socket.c:2430
 __do_sys_sendmsg net/socket.c:2439 [inline]
 __se_sys_sendmsg net/socket.c:2437 [inline]
 __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2437
 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x443709
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 7b 10 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffd0eab8e08 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000443709
RDX: 0000000000000000 RSI: 0000000020003e00 RDI: 0000000000000003
RBP: 00007ffd0eab8e20 R08: 0000000001bbbbbb R09: 0000000001bbbbbb
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000404ca0 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 44acd6113b495d9f ]---
RIP: 0010:__list_splice include/linux/list.h:422 [inline]
RIP: 0010:list_splice include/linux/list.h:438 [inline]
RIP: 0010:nf_flow_table_block_setup net/netfilter/nf_flow_table_offload.c:826 [inline]
RIP: 0010:nf_flow_table_offload_setup+0x4dc/0x6d0 net/netfilter/nf_flow_table_offload.c:883
Code: bc 24 50 ff ff ff 48 ba 00 00 00 00 00 fc ff df 4d 8b ae 00 02 00 00 4d 8b a4 24 58 ff ff ff 49 8d 7f 08 48 89 f9 48 c1 e9 03 <80> 3c 11 00 0f 85 cd 01 00 00 4c 89 e2 49 89 47 08 48 b8 00 00 00
RSP: 0018:ffffc900058e7228 EFLAGS: 00010207
RAX: ffff888097d1aa50 RBX: 1ffff92000b1ce49 RCX: 00000000060cae4d
RDX: dffffc0000000000 RSI: ffffffff8687894e RDI: 000000003065726f
RBP: ffffc900058e7370 R08: ffff8880965ca500 R09: fffff52000b1ce55
R10: fffff52000b1ce54 R11: ffffc900058e72a6 R12: 0000000000000000
R13: ffff888097d1aa50 R14: ffff888097d1a850 R15: 0000000030657267
FS:  0000000000aba880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020003e00 CR3: 00000000a3faa000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (835):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/19 06:49 upstream 0a44cac81050 135c18aa .config console log report syz C ci-upstream-kasan-gce
2020/01/31 22:58 upstream ccaaaf6fe5a5 c30117b2 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2020/01/31 22:26 upstream ccaaaf6fe5a5 c30117b2 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2020/01/31 05:18 upstream 9f68e3655aae 5ed23f9a .config console log report syz C ci-upstream-kasan-gce-root
2020/01/31 04:57 upstream 9f68e3655aae 5ed23f9a .config console log report syz C ci-upstream-kasan-gce-root
2020/01/29 15:13 upstream b3a608222336 c8e81ce4 .config console log report syz C ci-upstream-kasan-gce
2020/01/29 14:32 upstream b3a608222336 c8e81ce4 .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/01/29 14:21 upstream b3a608222336 c8e81ce4 .config console log report syz C ci-upstream-kasan-gce
2020/01/29 14:11 upstream b3a608222336 c8e81ce4 .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/01/29 13:50 upstream b3a608222336 c8e81ce4 .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/02/19 06:54 upstream 0a44cac81050 135c18aa .config console log report syz C ci-upstream-kasan-gce-386
2020/01/29 19:33 upstream b3a608222336 5ed23f9a .config console log report syz C ci-upstream-kasan-gce-386
2020/01/29 19:04 upstream b3a608222336 5ed23f9a .config console log report syz C ci-upstream-kasan-gce-386
2020/02/19 04:18 net-old 9facfdb54673 135c18aa .config console log report syz C ci-upstream-net-this-kasan-gce
2020/01/29 17:49 net-old 74759e169331 5ed23f9a .config console log report syz C ci-upstream-net-this-kasan-gce
2020/01/29 17:29 net-old 74759e169331 5ed23f9a .config console log report syz C ci-upstream-net-this-kasan-gce
2020/02/19 00:19 net-next-old b182a66792fe 012fbc32 .config console log report syz C ci-upstream-net-kasan-gce
2020/01/29 15:16 net-next-old b3a608222336 c8e81ce4 .config console log report syz C ci-upstream-net-kasan-gce
2020/01/29 14:56 net-next-old b3a608222336 c8e81ce4 .config console log report syz C ci-upstream-net-kasan-gce
2020/01/22 10:58 net-next-old 4f2c17e0f332 8eda0b95 .config console log report syz C ci-upstream-net-kasan-gce
2020/01/19 16:26 net-next-old 7f013edebaa4 0342f8c7 .config console log report syz C ci-upstream-net-kasan-gce
2020/02/21 22:19 upstream ca7e1fd1026c 2ffa6679 .config console log report ci-upstream-kasan-gce-selinux-root
2020/02/21 21:17 upstream ca7e1fd1026c 2ffa6679 .config console log report ci-upstream-kasan-gce-smack-root
2020/02/20 19:22 upstream ca7e1fd1026c 81230308 .config console log report ci-upstream-kasan-gce
2020/02/20 03:01 upstream 4b205766d8fc b690a6e3 .config console log report ci-upstream-kasan-gce
2020/02/20 00:18 upstream 4b205766d8fc b690a6e3 .config console log report ci-upstream-kasan-gce-selinux-root
2020/02/19 23:14 upstream 4b205766d8fc b690a6e3 .config console log report ci-upstream-kasan-gce-selinux-root
2020/02/19 15:23 upstream 0a44cac81050 135c18aa .config console log report ci-upstream-kasan-gce
2020/02/19 13:10 upstream 0a44cac81050 135c18aa .config console log report ci-upstream-kasan-gce
2020/02/19 06:38 upstream 0a44cac81050 135c18aa .config console log report ci-upstream-kasan-gce-selinux-root
2020/02/18 20:06 upstream b1da3acc781c 012fbc32 .config console log report ci-upstream-kasan-gce-selinux-root
2020/02/18 19:52 upstream b1da3acc781c 012fbc32 .config console log report ci-upstream-kasan-gce-smack-root
2020/02/17 19:10 upstream 11a48a5a18c6 2b411596 .config console log report ci-upstream-kasan-gce
2020/02/17 12:09 upstream 11a48a5a18c6 2b411596 .config console log report ci-upstream-kasan-gce-smack-root
2020/02/16 20:49 upstream db70e26e33ee cf914200 .config console log report ci-upstream-kasan-gce-selinux-root
2020/02/16 16:37 upstream db70e26e33ee cf914200 .config console log report ci-upstream-kasan-gce-selinux-root
2020/02/16 14:38 upstream db70e26e33ee cf914200 .config console log report ci-upstream-kasan-gce
2020/02/15 17:17 upstream 2019fc96af22 5d7b90f1 .config console log report ci-upstream-kasan-gce-selinux-root
2020/02/15 16:33 upstream 2019fc96af22 5d7b90f1 .config console log report ci-upstream-kasan-gce-root
2020/02/15 07:07 upstream 2019fc96af22 5d7b90f1 .config console log report ci-upstream-kasan-gce-selinux-root
2020/02/14 19:30 upstream b19e8c684703 5d7b90f1 .config console log report ci-upstream-kasan-gce-smack-root
2020/02/14 05:26 upstream 0bf999f9c5e7 c5ed587f .config console log report ci-upstream-kasan-gce-smack-root
2020/02/13 23:22 upstream 0bf999f9c5e7 c5ed587f .config console log report ci-upstream-kasan-gce-selinux-root
2020/02/21 09:43 upstream ca7e1fd1026c bd2a74a3 .config console log report ci-upstream-kasan-gce-386
2020/02/19 23:54 upstream 4b205766d8fc b690a6e3 .config console log report ci-upstream-kasan-gce-386
2020/02/19 05:24 upstream 0a44cac81050 135c18aa .config console log report ci-upstream-kasan-gce-386
2020/02/19 03:07 upstream 2b72104b8c12 135c18aa .config console log report ci-qemu-upstream-386
2020/02/18 21:07 upstream b1da3acc781c 012fbc32 .config console log report ci-upstream-kasan-gce-386
2020/02/17 19:18 upstream 11a48a5a18c6 2b411596 .config console log report ci-upstream-kasan-gce-386
2020/02/16 01:25 upstream 829e69446995 5d7b90f1 .config console log report ci-upstream-kasan-gce-386
2020/02/19 11:11 net-old 9facfdb54673 135c18aa .config console log report ci-upstream-net-this-kasan-gce
2020/02/18 18:13 net-old 9b64208f74fb 012fbc32 .config console log report ci-upstream-net-this-kasan-gce
2020/02/18 11:01 net-old a81541041ceb 1ce142dc .config console log report ci-upstream-net-this-kasan-gce
2020/02/17 22:35 net-old 0d4597c8c5ab 2b411596 .config console log report ci-upstream-net-this-kasan-gce
2020/02/16 05:43 net-old 2019fc96af22 5d7b90f1 .config console log report ci-upstream-net-this-kasan-gce
2020/02/14 15:01 net-old 803381f9f117 5d7b90f1 .config console log report ci-upstream-net-this-kasan-gce
2020/02/14 01:15 net-old 6ee2deb6fbed c5ed587f .config console log report ci-upstream-net-this-kasan-gce
2020/02/21 19:59 net-next-old 5f9721a2d119 2ffa6679 .config console log report ci-upstream-net-kasan-gce
2020/02/21 15:07 net-next-old 2e92a2d0e450 bd2a74a3 .config console log report ci-upstream-net-kasan-gce
2020/02/21 09:38 net-next-old 2e92a2d0e450 bd2a74a3 .config console log report ci-upstream-net-kasan-gce
2020/02/20 17:30 net-next-old 2bb07f4e1d86 81230308 .config console log report ci-upstream-net-kasan-gce
2020/02/20 15:46 net-next-old 2bb07f4e1d86 81230308 .config console log report ci-upstream-net-kasan-gce
2020/02/20 00:40 net-next-old 7d51a01599d5 b690a6e3 .config console log report ci-upstream-net-kasan-gce
2020/02/17 11:06 net-next-old ce7805513d90 2b411596 .config console log report ci-upstream-net-kasan-gce
2020/02/17 02:22 net-next-old 2019fc96af22 1f448cd6 .config console log report ci-upstream-net-kasan-gce
2020/02/16 17:51 net-next-old 2019fc96af22 cf914200 .config console log report ci-upstream-net-kasan-gce
2020/02/16 09:15 net-next-old 2019fc96af22 5d7b90f1 .config console log report ci-upstream-net-kasan-gce
2020/02/15 19:51 net-next-old 2019fc96af22 5d7b90f1 .config console log report ci-upstream-net-kasan-gce
2020/02/15 15:07 net-next-old 2019fc96af22 5d7b90f1 .config console log report ci-upstream-net-kasan-gce
2020/02/15 12:19 net-next-old 2019fc96af22 5d7b90f1 .config console log report ci-upstream-net-kasan-gce
2020/02/15 09:38 net-next-old 2019fc96af22 5d7b90f1 .config console log report ci-upstream-net-kasan-gce
2020/02/14 19:52 net-next-old fdfa3a6778b1 5d7b90f1 .config console log report ci-upstream-net-kasan-gce
2020/02/13 14:59 net-next-old fdfa3a6778b1 84f4fc8a .config console log report ci-upstream-net-kasan-gce
2020/01/19 14:38 net-next-old 7f013edebaa4 bc8bc756 .config console log report ci-upstream-net-kasan-gce
2020/02/08 03:36 linux-next 6dff1565d69c 06150bf1 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.