]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
psp: validate IPv4 header fields in psp_dev_rcv()
authorJakub Kicinski <kuba@kernel.org>
Tue, 28 Apr 2026 20:53:52 +0000 (13:53 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 29 Apr 2026 23:55:55 +0000 (16:55 -0700)
commitc2b22277ad897d21341f502f87fccd905ff4e207
treeee106e2fc0878e69a01d518440fb465570f281e1
parent5637fcb11c9128283db598ff398924d910c73143
psp: validate IPv4 header fields in psp_dev_rcv()

psp_dev_rcv() is called from the NIC driver's RX completion path
before the frame reaches ip_rcv_core(), so the IP header has not
been validated in SW, yet. We expect that the device has done
all this validation, but let's also add the SW checks, to avoid
surprises.

Reviewed-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20260428205352.1247325-4-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/psp/psp_main.c