Skip to content

Commit f7ab71f

Browse files
arndbClaudio Imbrenda
authored andcommitted
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: 0ee4ddc ("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>
1 parent 52940a3 commit f7ab71f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

include/uapi/linux/kvm.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,6 +1227,7 @@ struct kvm_s390_keyop {
12271227
__u64 guest_addr;
12281228
__u8 key;
12291229
__u8 operation;
1230+
__u8 pad[6];
12301231
};
12311232

12321233
/*

0 commit comments

Comments
 (0)