Re: [PATCH net] Drop packets with invalid headers to prevent KMSAN infoleak
From: Paolo Abeni
Date: Tue Oct 22 2024 - 11:30:56 EST
On 10/22/24 03:37, Daniel Yang wrote:
> Are there any possible unexpected issues that can be caused by this?
This patch is apparently the cause of BPF self-tests failures:
test_empty_skb:FAIL:ret: veth ETH_HLEN+1 packet ingress
[redirect_ingress] unexpected ret: veth ETH_HLEN+1 packet ingress
[redirect_ingress]: actual -34 != expected 0
test_empty_skb:PASS:err: veth ETH_HLEN+1 packet ingress
[redirect_egress] 0 nsec
test_empty_skb:FAIL:ret: veth ETH_HLEN+1 packet ingress
[redirect_egress] unexpected ret: veth ETH_HLEN+1 packet ingress
[redirect_egress]: actual -34 != expected 1
Before submitting an eventual next revision, please very that BPF
self-tests are happy.
Thanks,
Paolo