Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#3149 - pppoe-only-process-padt-targeted-at-local-interfaces.patch #8250

openwrt-bot opened this issue Jun 3, 2020 · 3 comments


Copy link

openwrt-bot commented Jun 3, 2020


The issue is well outlined in the forum

Whilst being patched in kernel 4.19 | 5.4 | 5.6

kernel 4.14 (OpenWrt stable 19.07.x) seems to fall through the cracks somehow. With kernel 5.4 in upcoming stable OpenWrt 20.x still far out it would make sense to backport the patch into OpenWrt stable 19.07.x

Copy link

openwrt-bot commented Oct 8, 2020


Having same issue on latest snapshot build DIR-882 A1

Copy link

openwrt-bot commented Oct 9, 2020


Note that 4.14 was also patched:

[PATCH 4.14 06/46] pppoe: only process PADT targeted at local interfaces From: Greg Kroah-Hartman

9 Jun 2020, 19:49

to linux-kernel, Greg, stable, me, Guillaume, David

From: Guillaume Nault

We don't want to disconnect a session because of a stray PADT arriving
while the interface is in promiscuous mode.
Furthermore, multicast and broadcast packets make no sense here, so
only PACKET_HOST is accepted.

Reported-by: David Balažic
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Guillaume Nault
Signed-off-by: David S. Miller

drivers/net/ppp/pppoe.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/drivers/net/ppp/pppoe.c b/drivers/net/ppp/pppoe.c
index fa7121dcab67..202a0f415e1e 100644
--- a/drivers/net/ppp/pppoe.c
+++ b/drivers/net/ppp/pppoe.c
@@ -497,6 +497,9 @@ static int pppoe_disc_rcv(struct sk_buff *skb, struct net_device *dev,
if (!skb)
goto out;

  •   if (skb->pkt_type != PACKET_HOST)
  •           goto abort;
  •   if (!pskb_may_pull(skb, sizeof(struct pppoe_hdr)))
              goto abort;

Copy link

openwrt-bot commented Oct 9, 2020


and it seems also in 4.4. and 4.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

1 participant