]> Git Repo - linux.git/commit
kernel/utsname_sysctl.c: Fix hostname polling
authorLinus Torvalds <[email protected]>
Sun, 23 Oct 2022 19:01:01 +0000 (12:01 -0700)
committerLinus Torvalds <[email protected]>
Sun, 23 Oct 2022 19:01:01 +0000 (12:01 -0700)
commit52826d3b2d1d8e1180a84bef7d72596d6a024a38
tree4eaff71d807daa09812652d29e6e9f90e46300b4
parenta70385240892bcbc6442b054e847c74100e72f1a
kernel/utsname_sysctl.c: Fix hostname polling

Commit bfca3dd3d068 ("kernel/utsname_sysctl.c: print kernel arch") added
a new entry to the uts_kern_table[] array, but didn't update the
UTS_PROC_xyz enumerators of older entries, breaking anything that used
them.

Which is admittedly not many cases: it's really just the two uses of
uts_proc_notify() in kernel/sys.c.  But apparently journald-systemd
actually uses this to detect hostname changes.

Reported-by: Torsten Hilbrich <[email protected]>
Fixes: bfca3dd3d068 ("kernel/utsname_sysctl.c: print kernel arch")
Link: https://lore.kernel.org/lkml/[email protected]/
Link: https://linux-regtracking.leemhuis.info/regzbot/regression/[email protected]/
Cc: Petr Vorel <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/utsname.h
kernel/utsname_sysctl.c
This page took 0.053437 seconds and 4 git commands to generate.