[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140130.162627.1742758630829288487.davem@davemloft.net>
Date: Thu, 30 Jan 2014 16:26:27 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: ogerlitz@...lanox.com
Cc: netdev@...r.kernel.org, dan.carpenter@...cle.com
Subject: Re: [PATCH net] net/ipv4: Use non-atomic allocation of udp
offloads structure instance
From: Or Gerlitz <ogerlitz@...lanox.com>
Date: Wed, 29 Jan 2014 18:08:59 +0200
> Since udp_add_offload() can be called from non-sleepable context e.g
> under this call tree from the vxlan driver use case:
>
> vxlan_socket_create() <-- holds the spinlock
> -> vxlan_notify_add_rx_port()
> -> udp_add_offload() <-- schedules
>
> we should allocate the udp_offloads structure in atomic manner.
>
> Fixes: b582ef0 ('net: Add GRO support for UDP encapsulating protocols')
> Reported-by: Dan Carpenter <dan.carpenter@...cle.com>
> Signed-off-by: Or Gerlitz <ogerlitz@...lanox.com>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists