All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net v2 0/2] bareudp: fix several issues
@ 2020-12-28 15:21 Taehee Yoo
  2021-01-04 21:14 ` Jakub Kicinski
  0 siblings, 1 reply; 2+ messages in thread
From: Taehee Yoo @ 2020-12-28 15:21 UTC (permalink / raw)
  To: davem, kuba, netdev; +Cc: ap420073, gnault

This patchset is to fix problems when bareudp is used nestedly.

1. If the NETIF_F_LLTX flag is not set, the lockdep warns about
a possible deadlock scenario when bareudp interfaces are used nestedly.
But, like other tunneling interfaces, bareudp doesn't need xmit lock.
So, it sets NETIF_F_LLTTX.
Lockdep no more warns about a possible deadlock scenario.

2. bareudp interface calculates min_headroom when it sends a packet.
When it calculates min_headroom, it uses the size of struct iphdr even
the ipv6 packet is going to be sent.
It would result in a lack of headroom so eventually occurs kernel panic.

Changelog
v1 -> v2:
 - Change reproducer script in 1/2 patch.
 - Fix reproducer script in 2/2 patch.

Taehee Yoo (2):
  bareudp: set NETIF_F_LLTX flag
  bareudp: Fix use of incorrect min_headroom size

 drivers/net/bareudp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH net v2 0/2] bareudp: fix several issues
  2020-12-28 15:21 [PATCH net v2 0/2] bareudp: fix several issues Taehee Yoo
@ 2021-01-04 21:14 ` Jakub Kicinski
  0 siblings, 0 replies; 2+ messages in thread
From: Jakub Kicinski @ 2021-01-04 21:14 UTC (permalink / raw)
  To: Taehee Yoo; +Cc: davem, netdev, gnault

On Mon, 28 Dec 2020 15:21:21 +0000 Taehee Yoo wrote:
> This patchset is to fix problems when bareudp is used nestedly.
> 
> 1. If the NETIF_F_LLTX flag is not set, the lockdep warns about
> a possible deadlock scenario when bareudp interfaces are used nestedly.
> But, like other tunneling interfaces, bareudp doesn't need xmit lock.
> So, it sets NETIF_F_LLTTX.
> Lockdep no more warns about a possible deadlock scenario.
> 
> 2. bareudp interface calculates min_headroom when it sends a packet.
> When it calculates min_headroom, it uses the size of struct iphdr even
> the ipv6 packet is going to be sent.
> It would result in a lack of headroom so eventually occurs kernel panic.

Applied, thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-04 21:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-28 15:21 [PATCH net v2 0/2] bareudp: fix several issues Taehee Yoo
2021-01-04 21:14 ` Jakub Kicinski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.