linux/drivers/s390/net
Julian Wiedmann ec2c672632 s390/qeth: fix L3 next-hop in xmit qeth hdr
On L3, the qeth_hdr struct needs to be filled with the next-hop
IP address.
The current code accesses rtable->rt_gateway without checking that
rtable is a valid address. The accidental access to a lowcore area
results in a random next-hop address in the qeth_hdr.
rtable (or more precisely, skb_dst(skb)) can be NULL in rare cases
(for instance together with AF_PACKET sockets).
This patch adds the missing NULL-ptr checks.

Signed-off-by: Julian Wiedmann <jwi@linux.vnet.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Fixes: 87e7597b5a qeth: Move away from using neighbour entries in qeth_l3_fill_header()
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-08-07 11:24:37 -07:00
..
Kconfig s390: remove claw driver 2015-02-28 23:38:29 -05:00
Makefile s390: remove claw driver 2015-02-28 23:38:29 -05:00
ctcm_dbug.c s390/s390dbf: use debug_level_enabled() where applicable 2013-10-24 17:16:54 +02:00
ctcm_dbug.h
ctcm_fsms.c ctcm_fsms: Convert skb->user accesses to refcount_t 2017-07-03 02:29:57 -07:00
ctcm_fsms.h
ctcm_main.c drivers: s390: move static and inline before return type 2017-07-12 16:26:04 -07:00
ctcm_main.h s390/ctcm, netiucv: migrate variables to handle y2038 problem 2015-01-17 23:54:59 -05:00
ctcm_mpc.c networking: introduce and use skb_put_data() 2017-06-16 11:48:37 -04:00
ctcm_mpc.h
ctcm_sysfs.c s390/ctcm, netiucv: migrate variables to handle y2038 problem 2015-01-17 23:54:59 -05:00
fsm.c
fsm.h
lcs.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2017-07-05 12:31:59 -07:00
lcs.h s390/s390dbf: use debug_level_enabled() where applicable 2013-10-24 17:16:54 +02:00
netiucv.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2017-07-05 12:31:59 -07:00
qeth_core.h s390/qeth: use diag26c to get MAC address on L2 2017-06-20 15:44:21 -04:00
qeth_core_main.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2017-07-05 12:31:59 -07:00
qeth_core_mpc.c s390/qeth: add ipa return codes for bridgeport 2017-06-20 15:44:01 -04:00
qeth_core_mpc.h s390/qeth: add ipa return codes for bridgeport 2017-06-20 15:44:01 -04:00
qeth_core_sys.c s390/qeth: do early device setup for z/VM IQD NICs 2017-06-06 13:05:01 -04:00
qeth_l2.h s390/qeth: unbreak OSM and OSN support 2017-05-11 12:37:48 -04:00
qeth_l2_main.c s390/qeth: use diag26c to get MAC address on L2 2017-06-20 15:44:21 -04:00
qeth_l2_sys.c s390/qeth: unbreak OSM and OSN support 2017-05-11 12:37:48 -04:00
qeth_l3.h s390/qeth: add support for early L3 device setup 2017-06-06 13:05:01 -04:00
qeth_l3_main.c s390/qeth: fix L3 next-hop in xmit qeth hdr 2017-08-07 11:24:37 -07:00
qeth_l3_sys.c s390/qeth: add support for early L3 device setup 2017-06-06 13:05:01 -04:00
smsgiucv.c s390/iucv: do not use arrays as argument 2015-09-21 16:03:04 -07:00
smsgiucv.h
smsgiucv_app.c