linux-stable/drivers/net/xen-netback
Jan Beulich fa00c0c826 xen-netback: respect gnttab_map_refs()'s return value
commit 2991397d23 upstream.

Commit 3194a1746e ("xen-netback: don't "handle" error by BUG()")
dropped respective a BUG_ON() without noticing that with this the
variable's value wouldn't be consumed anymore. With gnttab_set_map_op()
setting all status fields to a non-zero value, in case of an error no
slot should have a status of GNTST_okay (zero).

This is part of XSA-367.

Cc: <stable@vger.kernel.org>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/d933f495-619a-0086-5fb4-1ec3cf81a8fc@suse.com
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-07 12:34:15 +01:00
..
common.h xen/netback: use lateeoi irq binding 2020-10-20 10:22:03 +02:00
hash.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
interface.c xen/netback: fix spurious event detection for common event case 2021-03-04 11:37:30 +01:00
Makefile
netback.c xen-netback: respect gnttab_map_refs()'s return value 2021-03-07 12:34:15 +01:00
rx.c xen/netback: avoid race in xenvif_rx_ring_slots_available() 2021-02-17 11:02:26 +01:00
xenbus.c xen/xenbus: Add 'will_handle' callback support in xenbus_watch_path() 2020-12-30 11:54:26 +01:00