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]
Date:	Tue, 14 Apr 2015 18:11:47 +0000
From:	Yuval Mintz <Yuval.Mintz@...gic.com>
To:	Eric Dumazet <eric.dumazet@...il.com>
CC:	David Miller <davem@...emloft.net>,
	netdev <netdev@...r.kernel.org>, "bind@...s.net" <bind@...s.net>,
	"peter@...leysoftware.com" <peter@...leysoftware.com>,
	Ariel Elior <Ariel.Elior@...gic.com>,
	"Willem de Bruijn" <willemb@...gle.com>
Subject: RE: [PATCH net] bnx2x: Fix netpoll interoperability

> I believe the original busypoll yield concern was forgotten or reversed.

> If you have many busypoll users, they might get the 'lock', and the poor
> cpu that received the hardware interrupt and raised RX softirq for this
> RX queue will spin forever [1]

> busypoll users should backoff and not attempt to grab a lock (especially
> if this lock is not a ticket lock anymore) if the softirq handler is
> desperately trying to make progress.

> [1]
> sofirq handler

>   while (1) {
>       if (!bnx2x_fp_lock_napi())
>                continue;

bnx2x returns the budget, it doesn't loop in the poll function.
[I don't have the napi_poll logic in mind, but I do hope it doesn't iterate
repeatedly but rather only on next re-schedule]

>        }
>   }

> I can provide an alternative patch if you like.

If you're willing to make the effort, sure.
--
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