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: <tencent_34F69492AC1630B90634E94C886712651306@qq.com>
Date: Wed, 20 Aug 2025 22:04:26 +0800
From: zhoumin <teczm@...mail.com>
To: gregkh@...uxfoundation.org
Cc: akpm@...ux-foundation.org,
	dakr@...nel.org,
	linux-kernel@...r.kernel.org,
	rafael@...nel.org,
	teczm@...mail.com
Subject: Re: [RFC PATCH] kobject: fix uevent helper execution order issues

Hi Greg

Thanks for your patience.

> Why are you not looking at the SEQNUM value?  That should be what orders
> the events, right?  Otherwise how would any of this work?  :)

> Also, what usermode helper program are you using that requires a binary?
> What is wrong with udev?

Due to historical reasons, our system does not use udev and relies entirely
on custom shell scripts to handle kobject events.

The helper_lock and UMH_WAIT_EXEC in the kernel ensure that the uevent
helper serializes the execution of our shell scripts. That is why I
proposed the RFC patch to change UMH_NO_WAIT to UMH_WAIT_EXEC—for our use
case, this change provides clear benefits without downsides, aslo it avoids
blocking like UMH_WAIT_PROC while improving script execution order.

Regarding SEQNUM: using it would require parsing and tracking global
sequence numbers manually. In contrast, using a file lock would allow me to
focus only on serializing events for the same kobject, since events from
different objects don’t require synchronization.

If you believe this patch isn’t suitable for mainline, I’m open to
implementing a SEQNUM-based approach for better event ordering instead.

Best regards,
zhoumin


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ