syzbot


general protection fault in nft_rhash_insert

Status: upstream: reported C repro on 2020/02/03 18:44
Reported-by: syzbot+e205f7e8acd738edf769@syzkaller.appspotmail.com
First crash: 1514d, last: 1394d
Fix bisection: failed (error log, bisect log)
  
Last patch testing requests (1)
Created Duration User Patch Repo Result
2022/08/27 22:27 13m retest repro linux-4.19.y error OK
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2020/07/02 20:38 0m bisect fix linux-4.19.y error job log (0)
2020/06/02 20:09 26m bisect fix linux-4.19.y job log (0) log
2020/05/03 19:34 26m bisect fix linux-4.19.y job log (0) log
2020/04/03 19:09 24m bisect fix linux-4.19.y job log (0) log
2020/03/04 18:43 25m bisect fix linux-4.19.y job log (0) log

Sample crash report:
audit: type=1400 audit(1580755270.756:36): avc:  denied  { map } for  pid=8310 comm="syz-executor932" path="/root/syz-executor932677160" dev="sda1" ino=16483 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
kasan: CONFIG_KASAN_INLINE enabled
audit: type=1400 audit(1580755270.756:37): avc:  denied  { create } for  pid=8310 comm="syz-executor932" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_netfilter_socket permissive=1
kasan: GPF could be caused by NULL-ptr deref or user memory access
audit: type=1400 audit(1580755270.756:38): avc:  denied  { write } for  pid=8310 comm="syz-executor932" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_netfilter_socket permissive=1
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8310 Comm: syz-executor932 Not tainted 4.19.101-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:nft_rhash_insert+0x9c/0x1140 net/netfilter/nft_set_hash.c:166
Code: 00 00 f3 c7 40 08 f3 f3 f3 f3 65 48 8b 04 25 28 00 00 00 48 89 45 d0 31 c0 e8 b0 11 68 fb 49 8d 7c 24 40 48 89 f8 48 c1 e8 03 <42> 80 3c 38 00 0f 85 fb 0e 00 00 49 8b 44 24 40 49 8d be c4 18 00
RSP: 0018:ffff88807f8e7028 EFLAGS: 00010203
RAX: 03fffffffe2738b5 RBX: ffff88807f8e7180 RCX: ffffffff85fc8468
RDX: 0000000000000000 RSI: ffffffff8602f9b0 RDI: 1ffffffff139c5ae
RBP: ffff88807f8e7138 R08: ffff88808b750040 R09: ffff88807f8e71d0
R10: ffffed100ff1ce3f R11: ffff88807f8e71ff R12: 1ffffffff139c56e
R13: ffff88807f8e7110 R14: ffff88807f8e71d0 R15: dffffc0000000000
FS:  0000000001831880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055cb9ed55190 CR3: 000000009574a000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 nfnetlink_parse_nat net/netfilter/nf_nat_core.c:847 [inline]
 nfnetlink_parse_nat_setup+0x256/0x450 net/netfilter/nf_nat_core.c:884
 ctnetlink_parse_nat_setup+0xc5/0x660 net/netfilter/nf_conntrack_netlink.c:1521
 ctnetlink_setup_nat net/netfilter/nf_conntrack_netlink.c:1596 [inline]
 ctnetlink_create_conntrack+0x532/0x1300 net/netfilter/nf_conntrack_netlink.c:1984
 ctnetlink_new_conntrack+0x527/0xe50 net/netfilter/nf_conntrack_netlink.c:2114
 nfnetlink_rcv_msg+0xd0d/0xfcf net/netfilter/nfnetlink.c:228
 netlink_rcv_skb+0x17d/0x460 net/netlink/af_netlink.c:2454
 nfnetlink_rcv+0x1c0/0x460 net/netfilter/nfnetlink.c:560
 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline]
 netlink_unicast+0x53a/0x730 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+0x803/0x920 net/socket.c:2115
 __sys_sendmsg+0x105/0x1d0 net/socket.c:2153
 __do_sys_sendmsg net/socket.c:2162 [inline]
 __se_sys_sendmsg net/socket.c:2160 [inline]
 __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2160
 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x440229
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:00007fffdf2976b8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440229
RDX: 0000000000000000 RSI: 0000000020000640 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401ab0
R13: 0000000000401b40 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 0a5ca38967a90b02 ]---
RIP: 0010:nft_rhash_insert+0x9c/0x1140 net/netfilter/nft_set_hash.c:166
Code: 00 00 f3 c7 40 08 f3 f3 f3 f3 65 48 8b 04 25 28 00 00 00 48 89 45 d0 31 c0 e8 b0 11 68 fb 49 8d 7c 24 40 48 89 f8 48 c1 e8 03 <42> 80 3c 38 00 0f 85 fb 0e 00 00 49 8b 44 24 40 49 8d be c4 18 00
RSP: 0018:ffff88807f8e7028 EFLAGS: 00010203
RAX: 03fffffffe2738b5 RBX: ffff88807f8e7180 RCX: ffffffff85fc8468
RDX: 0000000000000000 RSI: ffffffff8602f9b0 RDI: 1ffffffff139c5ae
RBP: ffff88807f8e7138 R08: ffff88808b750040 R09: ffff88807f8e71d0
R10: ffffed100ff1ce3f R11: ffff88807f8e71ff R12: 1ffffffff139c56e
R13: ffff88807f8e7110 R14: ffff88807f8e71d0 R15: dffffc0000000000
FS:  0000000001831880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055cb9ed46500 CR3: 000000009574a000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/03 18:43 linux-4.19.y 32ee7492f104 93e5e335 .config console log report syz C ci2-linux-4-19
* Struck through repros no longer work on HEAD.