Regression in macvlan driver in stable release 4.4.209
Subsystems (3)
Hello,
I am seeing a regression in the macvlan kernel driver after Linux stable release 4.4.209, bisecting identifies commit
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-4.4.y&id=8d28d7e88851b1081b05dc269a27df1c8a903f3e
There seems to be a history behind this, and I do not have the full overview of the intention behind the change.
What I see on my target, Aarch64 CPU, is that this patch moves the eth pointer in macvlan_broadcast() function some bytes. This will cause everything within the ethhdr struct to be wrong AFAICT.
An example:
Original code "eth = eth_hdr(skb)"
eth = ffffffc007a1b002
New code "eth = skb_eth_hdr(skb)"
eth = ffffffc007a1b010Let me know if I can assist in any way.
Signature · 2 lines
Best regards, Hans-Christian Noren Egtvedt
Quoted 5 lines · Hans-Christian Egtvedt (hegtvedt)
Hello,
I am seeing a regression in the macvlan kernel driver after Linux stable release 4.4.209, bisecting identifies commit
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-4.4.y&id=8d28d7e88851b1081b05dc269a27df1c8a903f3e
Noticed it too last week (on net-next), but Eric already fixed it:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1712b2fff8c682d145c7889d2290696647d82dab
I assume the patch will find its way to 4.4.y soon now that it is in mainline.
Quoted 19 lines
There seems to be a history behind this, and I do not have the full overview of the intention behind the change.
What I see on my target, Aarch64 CPU, is that this patch moves the eth pointer in
macvlan_broadcast()function some bytes. This will cause everything within the ethhdr struct to be wrong AFAICT.An example:
Original code "eth =eth_hdr(skb)"eth = ffffffc007a1b002 New code "eth = skb_eth_hdr(skb)" eth = ffffffc007a1b010Let me know if I can assist in any way.
Signature · 2 lines
Best regards, Hans-Christian Noren Egtvedt
Quoted 7 lines · Ido Schimmel
Quoted 5 lines · Hans-Christian Egtvedt (hegtvedt)
Hello,
I am seeing a regression in the macvlan kernel driver after Linux stable release 4.4.209, bisecting identifies commit
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-4.4.y&id=8d28d7e88851b1081b05dc269a27df1c8a903f3e
Quoted 5 lines
Noticed it too last week (on net-next), but Eric already fixed it:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1712b2fff8c682d145c7889d2290696647d82dabI assume the patch will find its way to 4.4.y soon now that it is in mainline.
Excellent, thank you for the quick update.
I will know what to look for in upcoming 4.4.y releases.
Quoted 7 lines
Quoted 7 lines
There seems to be a history behind this, and I do not have the full overview of the intention behind the change.
What I see on my target, Aarch64 CPU, is that this patch moves the eth pointer in
macvlan_broadcast()function some bytes. This will cause everything within the ethhdr struct to be wrong AFAICT.
Quoted 7 lines
Quoted 7 lines
An example:
Original code "eth =eth_hdr(skb)"eth = ffffffc007a1b002 New code "eth = skb_eth_hdr(skb)" eth = ffffffc007a1b010Let me know if I can assist in any way.--
Best regards,
Hans-Christian Noren Egtvedt
Sasha Levin
maintainerQuoted 7 lines · Ido Schimmel
Quoted 5 lines · Hans-Christian Egtvedt (hegtvedt)
Hello,
I am seeing a regression in the macvlan kernel driver after Linux stable release 4.4.209, bisecting identifies commit
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-4.4.y&id=8d28d7e88851b1081b05dc269a27df1c8a903f3e
Quoted 5 lines
Noticed it too last week (on net-next), but Eric already fixed it:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1712b2fff8c682d145c7889d2290696647d82dabI assume the patch will find its way to 4.4.y soon now that it is in mainline.
David, any objection if I grab this patch directly to fix the regression in the next stable kernel release?
Signature · 2 lines
Thanks, Sasha
David Miller
maintainerFrom: Sasha Levin <[email protected]>
Date: Mon, 20 Jan 2020 13:35:15 -0500
Quoted 13 lines · Ido Schimmel
Quoted 12 lines
Quoted 6 lines · Hans-Christian Egtvedt (hegtvedt)
Hello,
I am seeing a regression in the macvlan kernel driver after Linux stable
release 4.4.209, bisecting identifies commit
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-4.4.y&id=8d28d7e88851b1081b05dc269a27df1c8a903f3eNoticed it too last week (on net-next), but Eric already fixed it:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1712b2fff8c682d145c7889d2290696647d82dab
Quoted 6 lines
Quoted 2 lines
I assume the patch will find its way to 4.4.y soon now that it is in mainline.
David, any objection if I grab this patch directly to fix the regression
in the next stable kernel release?
Sure, no problem.