Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

KVM: s390: Add explicit padding to struct kvm_s390_keyop

The newly added structure causes a warning about implied padding:

./usr/include/linux/kvm.h:1247:1: error: padding struct size to alignment boundary with 6 bytes [-Werror=padded]

The padding can lead to leaking kernel data and ABI incompatibilies
when used on x86. Neither of these is a problem in this specific
patch, but it's best to avoid it and use explicit padding fields
in general.

Fixes: 0ee4ddc1647b ("KVM: s390: Storage key manipulation IOCTL")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>

authored by

Arnd Bergmann and committed by
Claudio Imbrenda
f7ab71f1 52940a34

+1
+1
include/uapi/linux/kvm.h
··· 1227 1227 __u64 guest_addr; 1228 1228 __u8 key; 1229 1229 __u8 operation; 1230 + __u8 pad[6]; 1230 1231 }; 1231 1232 1232 1233 /*