linux-yocto/include
Kuniyuki Iwashima 4bbd360a50 socket: Print pf->create() when it does not clear sock->sk on failure.
I suggested to put DEBUG_NET_WARN_ON_ONCE() in __sock_create() to
catch possible use-after-free.

But the warning itself was not useful because our interest is in
the callee than the caller.

Let's define DEBUG_NET_WARN_ONCE() and print the name of pf->create()
and the socket identifier.

While at it, we enclose DEBUG_NET_WARN_ON_ONCE() in parentheses too
to avoid a checkpatch error.

Note that %pf or %pF were obsoleted and will be removed later as per
comment in lib/vsprintf.c.

Link: https://lore.kernel.org/netdev/202410231427.633734b3-lkp@intel.com/
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20241024201458.49412-1-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-10-29 16:31:23 -07:00
..
acpi
asm-generic
clocksource
crypto
cxl
drm
dt-bindings
keys
kunit
kvm
linux rtnetlink: Define rtnl_net_trylock(). 2024-10-29 11:54:57 +01:00
math-emu
media
memory
misc
net socket: Print pf->create() when it does not clear sock->sk on failure. 2024-10-29 16:31:23 -07:00
pcmcia
ras
rdma
rv
scsi
soc
sound
target
trace vfs-6.12-rc5.fixes 2024-10-21 10:48:24 -07:00
uapi Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-10-25 09:08:22 +02:00
ufs
vdso
video
xen xen: Remove dependency between pciback and privcmd 2024-10-18 11:59:04 +02:00