summaryrefslogtreecommitdiff
path: root/include/linux/stackprotector.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2026-02-13 18:40:46 +0300
committerMichael S. Tsirkin <mst@redhat.com>2026-06-10 09:16:59 +0300
commit455a2a1af92651764e9eb42cec0d95ac142afc28 (patch)
treebcb566345ff42313fb92996046915b8a872d2f05 /include/linux/stackprotector.h
parentec6177dfe98b9be1c3ede6c0dfe4394ea2a76959 (diff)
downloadlinux-455a2a1af92651764e9eb42cec0d95ac142afc28.tar.xz
vduse: fix compat handling for VDUSE_IOTLB_GET_FD/VDUSE_VQ_GET_INFO
These two ioctls are incompatible on 32-bit x86 userspace, because the data structures are shorter than they are on 64-bit. Add a proper .compat_ioctl handler for x86 that reads the structures with the smaller padding before calling the internal handlers. On all other architectures, CONFIG_COMPAT_FOR_U64_ALIGNMENT is disabled and no special handling is required. Fixes: ad146355bfad ("vduse: Support querying information of IOVA regions") Fixes: c8a6153b6c59 ("vduse: Introduce VDUSE - vDPA Device in Userspace") Acked-by: Eugenio Pérez <eperezma@redhat.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Message-ID: <20260213154051.4172275-1-arnd@kernel.org>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions