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>] [day] [month] [year] [list]
Message-ID: <CABPxzY+XPHE4q=OCa0Ym70xebOqMLH7menngQYLngmUL1E3qVA@mail.gmail.com>
Date:   Sat, 23 Jun 2018 03:52:55 +0530
From:   Krishna Chaitanya <chaitanya.mgit@...il.com>
To:     netdev <netdev@...r.kernel.org>
Subject: napi: SCHED flag set/clear

Hi,

While debugging a NAPI related issue (calling napi_disable() twice
leading to deadlock),
I have come across below query. The issue is not documented anywhere
(except for Ben grear's  ath10k patch)

Below are my expectations:

napi_disable(): waits for SCHED (ignoring other flags)
napi_enable(): set SCHED flag

but in reality,

napi_disable: test and set SCHED flag in a while() loop?
napi_enable: clear SCHED flag

This is a bit counter-intuitive, SCHED generally means pollable (enabled).

Am i missing something?

--
Thanks,
Regards,
Chaitanya T K.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ