aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-4.1/103-packet_allow_empty_payload.patch
diff options
context:
space:
mode:
authorZoltan Herpai <wigyori@uid0.hu>2016-10-12 00:56:39 +0200
committerGitHub <noreply@github.com>2016-10-12 00:56:39 +0200
commit093184fcc4232f9b7e397e872d18772592c16cd5 (patch)
treeec112cdb04541c437183cade6d4cd95e6286e9e9 /target/linux/generic/patches-4.1/103-packet_allow_empty_payload.patch
parent7f0cba3eb9b5ab3a575875593777f269363c4d42 (diff)
parenta7099373073304de9c0b6aa6d0909b4d079ebe2f (diff)
downloadmaster-187ad058-093184fcc4232f9b7e397e872d18772592c16cd5.tar.gz
master-187ad058-093184fcc4232f9b7e397e872d18772592c16cd5.tar.bz2
master-187ad058-093184fcc4232f9b7e397e872d18772592c16cd5.zip
Merge pull request #127 from wigyori/legacy-revert
Revert legacy kernels (3.18/4.1) to last known-good release
Diffstat (limited to 'target/linux/generic/patches-4.1/103-packet_allow_empty_payload.patch')
-rw-r--r--target/linux/generic/patches-4.1/103-packet_allow_empty_payload.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/target/linux/generic/patches-4.1/103-packet_allow_empty_payload.patch b/target/linux/generic/patches-4.1/103-packet_allow_empty_payload.patch
new file mode 100644
index 0000000000..2b9c4b00a2
--- /dev/null
+++ b/target/linux/generic/patches-4.1/103-packet_allow_empty_payload.patch
@@ -0,0 +1,17 @@
+Fix a regression in the af_packet code that was breaking PPPoE
+
+pppd sends packets with only a header and no payload.
+
+Signed-off-by: Felix Fietkau <nbd@nbd.name>
+
+--- a/net/packet/af_packet.c
++++ b/net/packet/af_packet.c
+@@ -2112,7 +2112,7 @@ static void tpacket_destruct_skb(struct
+ static bool ll_header_truncated(const struct net_device *dev, int len)
+ {
+ /* net device doesn't like empty head */
+- if (unlikely(len <= dev->hard_header_len)) {
++ if (unlikely(len < dev->hard_header_len)) {
+ net_warn_ratelimited("%s: packet size is too short (%d <= %d)\n",
+ current->comm, len, dev->hard_header_len);
+ return true;