linux-yocto/fs/afs
Zhen Ni a13dbc5e20 afs: Fix potential null pointer dereference in afs_put_server
commit 9158c6bb245113d4966df9b2ba602197a379412e upstream.

afs_put_server() accessed server->debug_id before the NULL check, which
could lead to a null pointer dereference. Move the debug_id assignment,
ensuring we never dereference a NULL server pointer.

Fixes: 2757a4dc18 ("afs: Fix access after dec in put functions")
Cc: stable@vger.kernel.org
Signed-off-by: Zhen Ni <zhen.ni@easystack.cn>
Acked-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeffrey Altman <jaltman@auristor.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-10-02 13:44:14 +02:00
..
addr_list.c
addr_prefs.c afs: Fix merge preference rule failure condition 2025-01-23 17:22:57 +01:00
afs_cm.h
afs_fs.h
afs_vl.h afs: Fix the maximum cell name length 2025-01-17 13:40:43 +01:00
afs.h afs: Fix the maximum cell name length 2025-01-17 13:40:43 +01:00
callback.c
cell.c
cmservice.c
dir_edit.c
dir_silly.c
dir.c afs: Fix EEXIST error returned from afs_rmdir() to be ENOTEMPTY 2025-02-08 09:56:50 +01:00
dynroot.c
file.c
flock.c
fs_operation.c
fs_probe.c
fsclient.c
inode.c
internal.h afs: Fix cleanup of immediately failed async calls 2025-02-08 09:56:50 +01:00
Kconfig
main.c
Makefile
misc.c
mntpt.c
proc.c
protocol_afs.h
protocol_uae.h
protocol_yfs.h
rotate.c
rxrpc.c afs: Fix cleanup of immediately failed async calls 2025-02-08 09:56:50 +01:00
security.c
server_list.c afs: Fix the server_list to unuse a displaced server rather than putting it 2025-03-07 18:25:29 +01:00
server.c afs: Fix potential null pointer dereference in afs_put_server 2025-10-02 13:44:14 +02:00
super.c
validation.c
vl_alias.c afs: Fix the maximum cell name length 2025-01-17 13:40:43 +01:00
vl_list.c
vl_probe.c
vl_rotate.c
vlclient.c afs: Fix the maximum cell name length 2025-01-17 13:40:43 +01:00
volume.c
write.c
xattr.c
xdr_fs.h afs: Fix directory format encoding struct 2025-02-08 09:56:50 +01:00
yfsclient.c afs: Fix the fallback handling for the YFS.RemoveFile2 RPC call 2025-02-08 09:56:53 +01:00