scsi: qedf: drop invalid skb_transport_header check to prevent panic
Subsystems (2)
PATCH v2 1/1 scsi: qedf: drop invalid skb_transport_header check to prevent panic
During intensive FCOE Tier 1 CTC boot tests, the qedf driver triggers a warning assertion in include/linux/skbuff.h. This happens because the driver attempts to access an uninitialized transport header offset via skb_transport_header() under a CONFIG_DEBUG_NET environment.
Remove the invalid helper call within qedf_recv_frame() to eliminate the warning assertion and prevent the subsequent system panic.
--- drivers/scsi/qedf/qedf_main.c | 1 - 1 file changed, 1 deletion(-)
drivers/scsi/qedf/qedf_main.c +0 -1
@@ -2496,7 +2496,6 @@ static void qedf_recv_frame(struct qedf_ctx *qedf,/* Pull the header */ hp = (struct fcoe_hdr *)skb->data; - fh = (struct fc_frame_header *)skb_transport_header (skb);skb_pull (skb,sizeof (struct fcoe_hdr )); fr_len = skb->len -sizeof (struct fcoe_crc_eof );
Signature · 1 line
2.54.0
Quoted 6 lines · Nimal Prabudoss I
During intensive FCOE Tier 1 CTC boot tests, the qedf driver triggers a warning assertion in
include/linux/skbuff.h. This happens because the driver attempts to access an uninitialized transport header offset viaskb_transport_header()under aCONFIG_DEBUG_NETenvironment.
Quoted 6 lines
Remove the invalid helper call within
qedf_recv_frame()to eliminate the warning assertion and prevent the subsequent system panic.Co-developed-by Jesse T <[email protected]>Signed-off-by Nimal Prabudoss I <[email protected]>Signed-off-by Jesse T <[email protected]>
BUMP.
The order of signoffs acording to checkpatch should be
Thanks,
Jesse Taube
Quoted 19 lines
--- drivers/scsi/qedf/qedf_main.c | 1 - 1 file changed, 1 deletion(-)drivers/scsi/qedf/qedf_main.c +0
-2@@ -2496,7 +2496,6 @@ static void qedf_recv_frame(struct qedf_ctx *qedf,/* Pull the header */ hp = (struct fcoe_hdr *)skb->data; - fh = (struct fc_frame_header *)skb_transport_header (skb);skb_pull (skb,sizeof (struct fcoe_hdr )); fr_len = skb->len -sizeof (struct fcoe_crc_eof ); --2.54.0