public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* v6.1-rc1: Regression in notification of sethostname changes
@ 2022-10-19  8:29 Torsten Hilbrich
  2022-10-19  9:29 ` Petr Vorel
  2022-10-20 12:43 ` Thorsten Leemhuis
  0 siblings, 2 replies; 6+ messages in thread
From: Torsten Hilbrich @ 2022-10-19  8:29 UTC (permalink / raw)
  To: Petr Vorel; +Cc: linux-kernel

Hello Petr,

your commit

commit bfca3dd3d0680fc2fc7f659a152234afbac26e4d
Author: Petr Vorel <pvorel@suse.cz>
Date:   Thu Sep 1 21:44:03 2022 +0200

    kernel/utsname_sysctl.c: print kernel arch
    
    Print the machine hardware name (UTS_MACHINE) in /proc/sys/kernel/arch.
    
    This helps people who debug kernel with initramfs with minimal environment
    (i.e.  without coreutils or even busybox) or allow to open sysfs file
    instead of run 'uname -m' in high level languages.

broke the notification mechanism between the sethostname syscall and the pollers of /proc/sys/kernel/hostname.

The table uts_kern_table is addressed within uts_proc_notify by the enum value, however no new enum value was added in "enum uts_proc".

I noticed the problem when journald-systemd failed to detect hostname changes made with the sethostname syscall (as used by the hostname tool).
When setting the hostname through /proc/sys/kernel/hostname the poll notification was working.

	Torsten

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-10-20 12:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-19  8:29 v6.1-rc1: Regression in notification of sethostname changes Torsten Hilbrich
2022-10-19  9:29 ` Petr Vorel
2022-10-19 12:31   ` Petr Vorel
2022-10-19 12:50     ` Torsten Hilbrich
2022-10-20 10:30       ` Petr Vorel
2022-10-20 12:43 ` Thorsten Leemhuis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox