Public bug reported:

[Impact]

The tc ebpf bpf_redirect() function cannot be used with ipv6 gre
interface.

This is fixed upstream with commit a3fa449ffcf5 ("net: handle
ARPHRD_IP6GRE in dev_is_mac_header_xmit()"), included in linux v5.14.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a3fa449ffcf5

It would probably be good to also backport this one: 3b707c3008ca ("net:
dev_is_mac_header_xmit() true for ARPHRD_RAWIP").

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3b707c3008ca

[Test Case]

Create an ebpf program that redirect packets to an ipv6 gre interface
and load it with tc.

[Regression Potential]

The patches are trivial, the potential regressions are low.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1947164

Title:
  ebpf:  bpf_redirect fails with ip6 gre interfaces

Status in linux package in Ubuntu:
  New

Bug description:
  [Impact]

  The tc ebpf bpf_redirect() function cannot be used with ipv6 gre
  interface.

  This is fixed upstream with commit a3fa449ffcf5 ("net: handle
  ARPHRD_IP6GRE in dev_is_mac_header_xmit()"), included in linux v5.14.

  
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a3fa449ffcf5

  It would probably be good to also backport this one: 3b707c3008ca
  ("net: dev_is_mac_header_xmit() true for ARPHRD_RAWIP").

  
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3b707c3008ca

  [Test Case]

  Create an ebpf program that redirect packets to an ipv6 gre interface
  and load it with tc.

  [Regression Potential]

  The patches are trivial, the potential regressions are low.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1947164/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to