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
..
ctcm_dbug.c
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
ctcm_mpc.c networking: introduce and use skb_put_data() 2017-06-16 11:48:37 -04:00
ctcm_mpc.h
ctcm_sysfs.c
fsm.c
fsm.h
Kconfig
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
Makefile
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_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_core.h s390/qeth: use diag26c to get MAC address on L2 2017-06-20 15:44:21 -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
qeth_l2.h
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
qeth_l3.h s390/qeth: add support for early L3 device setup 2017-06-06 13:05:01 -04:00
smsgiucv_app.c
smsgiucv.c
smsgiucv.h