Re: [PATCH net] net: atlantic: Fix crash when XDP is enabled but no program is loaded

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

 



Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Wed, 15 Mar 2023 13:55:38 +0100 you wrote:
> The aq_xdp_run_prog() function falls back to the XDP_ABORTED action
> handler (using a goto) if the operations for any of the other actions fail.
> The XDP_ABORTED handler in turn calls the bpf_warn_invalid_xdp_action()
> tracepoint. However, the function also jumps into the XDP_PASS helper if no
> XDP program is loaded on the device, which means the XDP_ABORTED handler
> can be run with a NULL program pointer. This results in a NULL pointer
> deref because the tracepoint dereferences the 'prog' pointer passed to it.
> 
> [...]

Here is the summary with links:
  - [net] net: atlantic: Fix crash when XDP is enabled but no program is loaded
    https://git.kernel.org/netdev/net/c/37d010399f75

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





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux