llc: Fix length check in llc_fixup_skb().

Fixes bugzilla #32872

The LLC stack pretends to support non-linear skbs but there is a
direct use of skb_tail_pointer() in llc_fixup_skb().

Use pskb_may_pull() to see if data_size bytes remain and can be
accessed linearly in the packet, instead of direct pointer checks.

Signed-off-by: David S. Miller <davem@davemloft.net>

+1 -2
+1 -2
net/llc/llc_input.c
··· 121 121 s32 data_size = ntohs(pdulen) - llc_len; 122 122 123 123 if (data_size < 0 || 124 - ((skb_tail_pointer(skb) - 125 - (u8 *)pdu) - llc_len) < data_size) 124 + !pskb_may_pull(skb, data_size)) 126 125 return 0; 127 126 if (unlikely(pskb_trim_rcsum(skb, data_size))) 128 127 return 0;