Subject: Re: [PATCH net] net/packet: annotate data-races around tp->status

From: [email-masked]
Date: Sat, 05 Aug 2023 01:10:22 +0000

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email-masked]>:

On Thu,  3 Aug 2023 14:56:00 +0000 you wrote:
> Another syzbot report [1] is about tp->status lockless reads
> from __packet_get_status()
> 
> [1]
> BUG: KCSAN: data-race in __packet_rcv_has_room / __packet_set_status
> 
> write to 0xffff888117d7c080 of 8 bytes by interrupt on cpu 0:
> __packet_set_status+0x78/0xa0 net/packet/af_packet.c:407
> tpacket_rcv+0x18bb/0x1a60 net/packet/af_packet.c:2483
> deliver_skb net/core/dev.c:2173 [inline]
> __netif_receive_skb_core+0x408/0x1e80 net/core/dev.c:5337
> __netif_receive_skb_one_core net/core/dev.c:5491 [inline]
> __netif_receive_skb+0x57/0x1b0 net/core/dev.c:5607
> process_backlog+0x21f/0x380 net/core/dev.c:5935
> __napi_poll+0x60/0x3b0 net/core/dev.c:6498
> napi_poll net/core/dev.c:6565 [inline]
> net_rx_action+0x32b/0x750 net/core/dev.c:6698
> __do_softirq+0xc1/0x265 kernel/softirq.c:571
> invoke_softirq kernel/softirq.c:445 [inline]
> __irq_exit_rcu+0x57/0xa0 kernel/softirq.c:650
> sysvec_apic_timer_interrupt+0x6d/0x80 arch/x86/kernel/apic/apic.c:1106
> asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
> smpboot_thread_fn+0x33c/0x4a0 kernel/smpboot.c:112
> kthread+0x1d7/0x210 kernel/kthread.c:379
> ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
> 
> [...]

Here is the summary with links:
  - [net] net/packet: annotate data-races around tp->status
    https://git.kernel.org/netdev/net/c/8a9896177784

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html