From: John Greene <hidden> Date: 2012-12-19 19:48:24
commit: cb64edb6b89491edfdbae52ba7db9a8b8391d339 upstream
Above commit may introduce a race between cp_interrupt and dev_close
/ change MTU / dev_open up state. Changes cp_interrupt to tolerate
this. Change spin_locking in cp_interrupt to avoid possible
but unobserved race.
Reported-by: "Francois Romieu" <romieu@fr.zoreil.com>
Tested on virtual hardware, Tx MTU size up to 4096, max tx payload
was ping -s 4068 for MTU of 4096. No real hardware, need test
assist.
Signed-off-by: "John Greene" <redacted>
CC: "David S. Miller" <davem@davemloft.net>
CC: "David Woodhouse" <redacted>
---
drivers/net/ethernet/realtek/8139cp.c | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
From: David Miller <davem@davemloft.net> Date: 2012-12-19 20:40:15
From: John Greene <redacted>
Date: Wed, 19 Dec 2012 14:47:48 -0500
commit: cb64edb6b89491edfdbae52ba7db9a8b8391d339 upstream
Above commit may introduce a race between cp_interrupt and dev_close
/ change MTU / dev_open up state. Changes cp_interrupt to tolerate
this. Change spin_locking in cp_interrupt to avoid possible
but unobserved race.
Reported-by: "Francois Romieu" <romieu@fr.zoreil.com>
Tested on virtual hardware, Tx MTU size up to 4096, max tx payload
was ping -s 4068 for MTU of 4096. No real hardware, need test
assist.
Signed-off-by: "John Greene" <redacted>
You sent this as a "request for testing" last week, but I saw
no testing on real hardware whatsoever.
From: David Woodhouse <dwmw2@infradead.org> Date: 2012-12-19 20:55:55
On Wed, 2012-12-19 at 12:40 -0800, David Miller wrote:
You sent this as a "request for testing" last week, but I saw
no testing on real hardware whatsoever.
Thanks for the reminder :)
Seems to work fine here. I haven't confirmed whether I actually see the
race or not but changing MTU on a live device works fine, even when it's
being ping-flooded.
Tested-by: David Woodhouse <redacted>
--
dwmw2
From: David Miller <davem@davemloft.net> Date: 2012-12-19 22:31:36
From: David Woodhouse <dwmw2@infradead.org>
Date: Wed, 19 Dec 2012 20:55:47 +0000
On Wed, 2012-12-19 at 12:40 -0800, David Miller wrote:
quoted
You sent this as a "request for testing" last week, but I saw
no testing on real hardware whatsoever.
Thanks for the reminder :)
Seems to work fine here. I haven't confirmed whether I actually see the
race or not but changing MTU on a live device works fine, even when it's
being ping-flooded.
Tested-by: David Woodhouse <redacted>
That's more like it, applied, thanks everyone. :-)
From: John Greene <hidden> Date: 2012-12-20 13:55:47
On 12/19/2012 03:55 PM, David Woodhouse wrote:
On Wed, 2012-12-19 at 12:40 -0800, David Miller wrote:
quoted
You sent this as a "request for testing" last week, but I saw
no testing on real hardware whatsoever.
Thanks for the reminder :)
Seems to work fine here. I haven't confirmed whether I actually see the
race or not but changing MTU on a live device works fine, even when it's
being ping-flooded.
Tested-by: David Woodhouse <redacted>
From: John Greene <hidden> Date: 2013-01-09 19:58:09
On 12/19/2012 02:47 PM, John Greene wrote:
quoted hunk
commit: cb64edb6b89491edfdbae52ba7db9a8b8391d339 upstream
Above commit may introduce a race between cp_interrupt and dev_close
/ change MTU / dev_open up state. Changes cp_interrupt to tolerate
this. Change spin_locking in cp_interrupt to avoid possible
but unobserved race.
Reported-by: "Francois Romieu" <romieu@fr.zoreil.com>
Tested on virtual hardware, Tx MTU size up to 4096, max tx payload
was ping -s 4068 for MTU of 4096. No real hardware, need test
assist.
Signed-off-by: "John Greene" <redacted>
CC: "David S. Miller" <davem@davemloft.net>
CC: "David Woodhouse" <redacted>
---
drivers/net/ethernet/realtek/8139cp.c | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)