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-next>] [day] [month] [year] [list]
Message-Id: <20250115134111.2703089-1-imran.f.khan@oracle.com>
Date: Thu, 16 Jan 2025 00:41:09 +1100
From: Imran Khan <imran.f.khan@...cle.com>
To: anna-maria@...utronix.de, frederic@...nel.org, tglx@...utronix.de
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH 0/2] Handle timers added to offlined CPU(s).

This patchset is in continuation of issue discussed in [1].
Currently there is a possibilty that users of add_timer_on,
can (mistakenly) use it for starting a timer on an offlined
cpu. As expected such timers will not give desired result.
This patchset:

i. (PATCH 1) WARNs users of add_timer_on, if they are using it with
   offlined CPU.
ii. (PATCH 2) Introduces an alternative interface that could be used,
to ensure that timer gets started only on an online cpu.

Imran Khan (2):
  timers: WARN if add_timer_on is used with offlined cpu.
  timers: introduce timer_try_add_on_cpu.

 include/linux/timer.h |  1 +
 kernel/time/timer.c   | 39 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+)


base-commit: e7bb221a638962d487231ac45a6699fb9bb8f9fa

[1]: https://lore.kernel.org/all/0a83e9e1-3e85-4c33-bec8-6b60e6216bd8@oracle.com/
-- 
2.34.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ