]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - net/vmw_vsock/vsock_addr.c
vsock_addr: Check for supported flag values
authorAndra Paraschiv <andraprs@amazon.com>
Mon, 14 Dec 2020 16:11:20 +0000 (18:11 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Dec 2020 03:33:39 +0000 (19:33 -0800)
commitcada7ccd9dc75fc73de9342ae1dd0374e8fb1056
treed8d8aacf674acabf6f46f028627cf6e5ac7b00d9
parentcaaf95e0f23f9ed240b02251aab0f6fdb652b33d
vsock_addr: Check for supported flag values

Check if the provided flags value from the vsock address data structure
includes the supported flags in the corresponding kernel version.

The first byte of the "svm_zero" field is used as "svm_flags", so add
the flags check instead.

Changelog

v3 -> v4

* New patch in v4.

Signed-off-by: Andra Paraschiv <andraprs@amazon.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/vmw_vsock/vsock_addr.c