lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1427777316.25985.168.camel@edumazet-glaptop2.roam.corp.google.com>
Date:	Mon, 30 Mar 2015 21:48:36 -0700
From:	Eric Dumazet <eric.dumazet@...il.com>
To:	subashab@...eaurora.org
Cc:	netdev@...r.kernel.org
Subject: Re: [PATCH] net: rps: fix data stall after hotplug

On Mon, 2015-03-30 at 23:49 +0000, subashab@...eaurora.org wrote:

> Hi Eric
> 
> While the original issue of data stall due to missing IPI is no longer
> seen with netif_rx_ni(), the scenario of rps cpu online in [1 -
> get_rps_cpus] but offline in [2 - net_rps_action_and_irq_enable] could
> still occur. Using your patch, triggering an IPI on an offline cpu in [2]
> leads to a crash on my arch.
> 
> I would like to know your thoughts on how to fix this race. Could the
> patch which I had initially proposed help here. Alternatively, is it
> correct to reset NAPI state and increment dropped sd count if an offline
> CPU is detected in [2].
> 


Listen, I would rather disable RPS on your arch, instead of messing with
it.

Reset NAPI state as you did is in direct violation of the rules.

Only cpu owning the bit is allowed to reset it.



--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ