summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2025-06-23 23:09:58 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-08-15 16:38:30 +0200
commit19dedd4f70f5a6505e7c601ef7dd40542d1d9aa5 (patch)
treec9d72913007c388b4404b3d5bacaf4edb290b741 /rust/kernel
parentfcbe0896909a265f84fa7035413a55d500f19668 (diff)
staging: gpib: fix unset padding field copy back to userspace
[ Upstream commit a739d3b13bff0dfa1aec679d08c7062131a2a425 ] The introduction of a padding field in the gpib_board_info_ioctl is showing up as initialized data on the stack frame being copyied back to userspace in function board_info_ioctl. The simplest fix is to initialize the entire struct to zero to ensure all unassigned padding fields are zero'd before being copied back to userspace. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Fixes: 9dde4559e939 ("staging: gpib: Add GPIB common core driver") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://lore.kernel.org/r/20250623220958.280424-1-colin.i.king@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions