syzbot


KCSAN: data-race in nf_tables_newtable / nf_tables_newtable (2)

Status: auto-closed as invalid on 2022/08/19 03:06
Subsystems: netfilter
[Documentation on labels]
First crash: 1204d, last: 1182d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in nf_tables_newtable / nf_tables_newtable netfilter 6 11 1248d 1396d 0/29 auto-closed as invalid on 2022/06/14 10:31

Sample crash report:
==================================================================
BUG: KCSAN: data-race in nf_tables_newtable / nf_tables_newtable

read-write to 0xffffffff86f14458 of 8 bytes by task 2644 on cpu 1:
 nf_tables_newtable+0x5fa/0xd20 net/netfilter/nf_tables_api.c:1237
 nfnetlink_rcv_batch net/netfilter/nfnetlink.c:513 [inline]
 nfnetlink_rcv_skb_batch net/netfilter/nfnetlink.c:634 [inline]
 nfnetlink_rcv+0xa84/0x13c0 net/netfilter/nfnetlink.c:652
 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
 netlink_unicast+0x58a/0x660 net/netlink/af_netlink.c:1345
 netlink_sendmsg+0x661/0x750 net/netlink/af_netlink.c:1921
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg net/socket.c:734 [inline]
 ____sys_sendmsg+0x38f/0x500 net/socket.c:2488
 ___sys_sendmsg net/socket.c:2542 [inline]
 __sys_sendmsg+0x1f9/0x400 net/socket.c:2571
 __do_sys_sendmsg net/socket.c:2580 [inline]
 __se_sys_sendmsg net/socket.c:2578 [inline]
 __x64_sys_sendmsg+0x42/0x50 net/socket.c:2578
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read-write to 0xffffffff86f14458 of 8 bytes by task 2643 on cpu 0:
 nf_tables_newtable+0x5fa/0xd20 net/netfilter/nf_tables_api.c:1237
 nfnetlink_rcv_batch net/netfilter/nfnetlink.c:513 [inline]
 nfnetlink_rcv_skb_batch net/netfilter/nfnetlink.c:634 [inline]
 nfnetlink_rcv+0xa84/0x13c0 net/netfilter/nfnetlink.c:652
 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
 netlink_unicast+0x58a/0x660 net/netlink/af_netlink.c:1345
 netlink_sendmsg+0x661/0x750 net/netlink/af_netlink.c:1921
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg net/socket.c:734 [inline]
 ____sys_sendmsg+0x38f/0x500 net/socket.c:2488
 ___sys_sendmsg net/socket.c:2542 [inline]
 __sys_sendmsg+0x1f9/0x400 net/socket.c:2571
 __do_sys_sendmsg net/socket.c:2580 [inline]
 __se_sys_sendmsg net/socket.c:2578 [inline]
 __x64_sys_sendmsg+0x42/0x50 net/socket.c:2578
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x000000000000109e -> 0x000000000000109f

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 2643 Comm: syz-executor.0 Not tainted 5.19.0-rc6-syzkaller-00269-g9bd572ec7a66-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/07/15 03:05 upstream 9bd572ec7a66 5d921b08 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in nf_tables_newtable / nf_tables_newtable
2022/07/08 20:40 upstream a471da3100ef b5765a15 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in nf_tables_newtable / nf_tables_newtable
2022/06/23 12:50 upstream de5c208d533a 912f5df7 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in nf_tables_newtable / nf_tables_newtable
* Struck through repros no longer work on HEAD.