diff options
author | Doug Brown <doug@schmorgal.com> | 2021-02-11 21:27:54 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-02-12 16:40:28 -0800 |
commit | 39935dccb21c60f9bbf1bb72d22ab6fd14ae7705 (patch) | |
tree | f5d35c8866e35ee381f40b5ce47bb9c79fb80b68 /drivers/dma-buf | |
parent | 0c9fc2ede9a9835c576d44aa1125825933efbff6 (diff) | |
download | linux-stable-39935dccb21c60f9bbf1bb72d22ab6fd14ae7705.tar.gz linux-stable-39935dccb21c60f9bbf1bb72d22ab6fd14ae7705.tar.bz2 linux-stable-39935dccb21c60f9bbf1bb72d22ab6fd14ae7705.zip |
appletalk: Fix skb allocation size in loopback case
If a DDP broadcast packet is sent out to a non-gateway target, it is
also looped back. There is a potential for the loopback device to have a
longer hardware header length than the original target route's device,
which can result in the skb not being created with enough room for the
loopback device's hardware header. This patch fixes the issue by
determining that a loopback will be necessary prior to allocating the
skb, and if so, ensuring the skb has enough room.
This was discovered while testing a new driver that creates a LocalTalk
network interface (LTALK_HLEN = 1). It caused an skb_under_panic.
Signed-off-by: Doug Brown <doug@schmorgal.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/dma-buf')
0 files changed, 0 insertions, 0 deletions