cherry-pick BUG->WARN change in tun
On 01/14/2011 01:30 PM, Stefan Bader wrote:
On 01/13/2011 04:38 PM, dann frazier wrote:
Please consider pulling the following change into lucid. This resolves
BUG() causes system to crash
Upstream reduced BUG() to a WARN_ON_ONCE w/ additional diagnostic info.
Upstream commit ef3db4a5954281bc1ea49a4739c88eaea091dc71.
A tractable case would presumably require packet injection. Otherwise, a long
stable run on a configuration that has hit this problem before.
This was originally reported by a customer in restricted LP #680356. A
custom kernel w/ this fix was applied and neither the issue nor a
regression has been observed in the following month.
Upstream change follows - it cherry-picks cleanly into the lucid git tree.
Author: Michael S. Tsirkin<email@example.com>
Date: Wed Jul 21 04:32:45 2010 +0000
tun: avoid BUG, dump packet on GSO errors
There are still some LRO cards that cause GSO errors in tun,
and BUG on this is an unfriendly way to tell the admin
to disable LRO.
Further, experience shows we might have more GSO bugs lurking.
as a recent example.
dumping a packet will make it easier to figure it out.
Replace BUG with warning+dump+drop the packet to make
GSO errors in tun less critical and easier to debug.
Signed-off-by: Michael S. Tsirkin<firstname.lastname@example.org>
Tested-by: Alex Unigovsky<email@example.com>
Acked-by: Herbert Xu<firstname.lastname@example.org>
Signed-off-by: David S. Miller<email@example.com>
Sounds reasonable to me. May be also a candidate for hinting towards upstream
longterm before .35
Acked-by: Stefan Bader<firstname.lastname@example.org>
acked and applied
Tim Gardner email@example.com
kernel-team mailing list