]> Git Repo - linux.git/commit
netdev: avoid CFI problems with sock priv helpers
authorJakub Kicinski <[email protected]>
Wed, 15 Jan 2025 16:14:36 +0000 (08:14 -0800)
committerPaolo Abeni <[email protected]>
Thu, 16 Jan 2025 12:15:40 +0000 (13:15 +0100)
commita50da36562cd62b41de9bef08edbb3e8af00f118
treeaa47a97312bb935661ec671f2379ea62751388e6
parent676d53a480b4fc9836e5a40452609cf85be88ba0
netdev: avoid CFI problems with sock priv helpers

Li Li reports that casting away callback type may cause issues
for CFI. Let's generate a small wrapper for each callback,
to make sure compiler sees the anticipated types.

Reported-by: Li Li <[email protected]>
Link: https://lore.kernel.org/CANBPYPjQVqmzZ4J=rVQX87a9iuwmaetULwbK_5_3YWk2eGzkaA@mail.gmail.com
Fixes: 170aafe35cb9 ("netdev: support binding dma-buf to netdevice")
Signed-off-by: Jakub Kicinski <[email protected]>
Reviewed-by: Mina Almasry <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
net/core/netdev-genl-gen.c
tools/net/ynl/ynl-gen-c.py
This page took 0.047957 seconds and 4 git commands to generate.