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] [day] [month] [year] [list]
Message-ID: <d4edde3f-0047-2ade-0b65-d59dbeb6fca6@huawei.com>
Date: Thu, 11 Jul 2024 21:10:28 +0800
From: Yu Liao <liaoyu15@...wei.com>
To: Thomas Gleixner <tglx@...utronix.de>
CC: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>, "liwei
 (GF)" <liwei391@...wei.com>
Subject: Re: [PATCH] tick/broadcast-hrtimer: Prevent the timer device on
 broadcast duty CPU from being disabled

Hi Thomas,

Sorry it took so long to reply.

On 2024/1/25 3:18, Thomas Gleixner wrote:
>> +	if (tick_check_broadcast_expired() && expires >= next_event)
>> +		tick_program_event(next_event, 1);
> 
> I'm not really enthused about another conditional here and that
> condition is more than obscure.
> 
> The problem is that the local clockevent might be shut down, right?
> 
> So checking for that state is the right thing to do and the proper place
> is in hotplug_cpu__broadcast_tick_pull(), no?

We can't check the clockevent state, because when exiting broadcast mode the
state is switched to oneshot, but the clockevent is still shutdown, due to
some device (e.g. arm arch timers) do not implement set_state_oneshot handler,
the switch operation only change the state value.

Yeah, hotplug_cpu__broadcast_tick_pull() is the proper place to do the check.
Thank you for your advice, I have modified it and sent you the v2 patch.

Best regards,
Yu


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ