diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2019-12-05 14:33:03 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-12-05 12:25:05 -0800 |
commit | f677fcb9aeb60c523ee36c1061ef2249b558d1b5 (patch) | |
tree | 7ecd6e6bdb59ae8ddb107d0fc312c6d596393e28 /drivers/regulator/stm32-vrefbuf.c | |
parent | 5b55633f20ee1bb253dc7d915ec2fd35fd865d5a (diff) |
s390/qeth: ensure linear access to packet headers
When the RX path builds non-linear skbs, the packet headers can
currently spill over into page fragments. Depending on the packet type
and what fields we need to access in the headers, this could cause us
to go past the end of skb->data.
So for non-linear packets, copy precisely the length of the necessary
headers ('linear_len') into skb->data.
And don't copy more, upper-level protocols will peel whatever additional
packet headers they need.
Fixes: 4a71df50047f ("qeth: new qeth device driver")
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/regulator/stm32-vrefbuf.c')
0 files changed, 0 insertions, 0 deletions