aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorNam Cao <[email protected]>2025-04-11 15:09:41 +0000
committerChristian Brauner <[email protected]>2025-05-02 12:28:18 +0000
commite194d2067c958827810a7a7282dff8773633ad8c (patch)
treeb73b79dc80797a523c427520b6d31b31e2d953b3 /net/unix/af_unix.c
parentMerge patch series "net, pidfs: enable handing out pidfds for reaped sk->sk_p... (diff)
downloadkernel-e194d2067c958827810a7a7282dff8773633ad8c.tar.gz
kernel-e194d2067c958827810a7a7282dff8773633ad8c.zip
selftests: coredump: Properly initialize pointer
The buffer pointer "line" is not initialized. This pointer is passed to getline(). It can still work if the stack is zero-initialized, because getline() can work with a NULL pointer as buffer. But this is obviously broken. This bug shows up while running the test on a riscv64 machine. Fix it by properly initializing the pointer. Fixes: 15858da53542 ("selftests: coredump: Add stackdump test") Signed-off-by: Nam Cao <[email protected]> Link: https://lore.kernel.org/4fb9b6fb3e0040481bacc258c44b4aab5c4df35d.1744383419.git.namcao@linutronix.de Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions