]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
xen-netback: validate queue numbers in xenvif_set_hash_mapping()
authorJan Beulich <JBeulich@suse.com>
Tue, 25 Sep 2018 08:13:01 +0000 (02:13 -0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Sep 2018 17:39:34 +0000 (10:39 -0700)
commit22f9cde3401077ea450b69bf9b0bba373e12e454
tree7c51fbb18bf4a47ede96817e964cffd7c3953014
parent780e83c259fc33e8959fed8dfdad17e378d72b62
xen-netback: validate queue numbers in xenvif_set_hash_mapping()

Checking them before the grant copy means nothing as to the validity of
the incoming request. As we shouldn't make the new data live before
having validated it, introduce a second instance of the mapping array.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/common.h
drivers/net/xen-netback/hash.c
drivers/net/xen-netback/interface.c