Re: [PATCH 6.6 v3 0/3] Set the bpf_net_context before invoking BPF XDP in the TUN driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2025-02-26 10:39:04 [+0100], Ricardo Cañuelo Navarro wrote:
> Both patches needed some manual work in order to be applied on stable,
> mostly related to changes in the context lines:

Did the same rebase and came to the same set of patches so
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>

Based on KASAN report Ricardo provided it is the dst->dev dereference in
dev_map_enqueue(). This originates from bpf_redirect_info::tgt_value
which is a per-CPU variable. It is assigned in __bpf_xdp_redirect_map(). 
Since it is claimed that this patches fix it, the bot must have found a
way to share the per-CPU data with another instance/ thread.
Haven't figured out how…

> Signed-off-by: Ricardo Cañuelo Navarro <rcn@xxxxxxxxxx>

Sebastian





[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux