WSL2-Linux-Kernel/drivers/scsi/fcoe
Johannes Thumshirn 2d7d4fd35e scsi: fcoe: fix use-after-free in fcoe_ctlr_els_send
KASAN reports a use-after-free in fcoe_ctlr_els_send() when we're sending a
LOGO and have FIP debugging enabled. This is because we're first freeing
the skb and then printing the frame's DID. But the DID is a member of the
FC frame header which in turn is the skb's payload.

Exchange the debug print and kfree_skb() calls so we're not touching the
freed data.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-08-02 15:30:03 -04:00
..
Makefile
fcoe.c SCSI misc on 20171114 2017-11-14 16:23:44 -08:00
fcoe.h fcoe: Use default VLAN for FIP VLAN discovery 2016-07-27 00:32:08 -04:00
fcoe_ctlr.c scsi: fcoe: fix use-after-free in fcoe_ctlr_els_send 2018-08-02 15:30:03 -04:00
fcoe_sysfs.c scsi: make device_type const 2017-08-25 17:29:29 -04:00
fcoe_transport.c Modules updates for v4.15 2017-11-15 13:46:33 -08:00
libfcoe.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00