mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 02:46:41 +07:00
s390/qeth: don't dump past end of unknown HW header
For inbound data with an unsupported HW header format, only dump the actual HW header. We have no idea how much payload follows it, and what it contains. Worst case, we dump past the end of the Inbound Buffer and access whatever is located next in memory. Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
aec45e857c
commit
0ac1487c4b
@ -423,7 +423,7 @@ static int qeth_l2_process_inbound_buffer(struct qeth_card *card,
|
|||||||
default:
|
default:
|
||||||
dev_kfree_skb_any(skb);
|
dev_kfree_skb_any(skb);
|
||||||
QETH_CARD_TEXT(card, 3, "inbunkno");
|
QETH_CARD_TEXT(card, 3, "inbunkno");
|
||||||
QETH_DBF_HEX(CTRL, 3, hdr, QETH_DBF_CTRL_LEN);
|
QETH_DBF_HEX(CTRL, 3, hdr, sizeof(*hdr));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
work_done++;
|
work_done++;
|
||||||
|
@ -1390,7 +1390,7 @@ static int qeth_l3_process_inbound_buffer(struct qeth_card *card,
|
|||||||
default:
|
default:
|
||||||
dev_kfree_skb_any(skb);
|
dev_kfree_skb_any(skb);
|
||||||
QETH_CARD_TEXT(card, 3, "inbunkno");
|
QETH_CARD_TEXT(card, 3, "inbunkno");
|
||||||
QETH_DBF_HEX(CTRL, 3, hdr, QETH_DBF_CTRL_LEN);
|
QETH_DBF_HEX(CTRL, 3, hdr, sizeof(*hdr));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
work_done++;
|
work_done++;
|
||||||
|
Loading…
Reference in New Issue
Block a user