From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B1E07C4332F for ; Thu, 20 Oct 2022 15:55:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230322AbiJTPzo (ORCPT ); Thu, 20 Oct 2022 11:55:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbiJTPzl (ORCPT ); Thu, 20 Oct 2022 11:55:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF3AF17E22C for ; Thu, 20 Oct 2022 08:55:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8567D61C19 for ; Thu, 20 Oct 2022 15:55:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99BA1C433D6; Thu, 20 Oct 2022 15:55:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666281340; bh=zh6GFYYrquB2z2mNbDmS6j7AtYwbrWzX5LJWcUl1VXM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=C+CfmbwgGv64kAhx+CghDb5W0GCYc2pAFQGlac76HLTHxXlkHmr2ZH57eC2TwL5Es FjdPFs2y09lDbZP9p97ojxR5NgaFp4LBkASmW4Ttc0glRsx72HEvpdczRZsSOPjAgL lx1ik7H1EkGLv9r6brMxe5abVxzgHCr655gb1AWs= Date: Thu, 20 Oct 2022 17:55:37 +0200 From: Greg Kroah-Hartman To: Petr Vorel Cc: linux-kernel@vger.kernel.org, Andrew Morton , Torsten Hilbrich Subject: Re: [PATCH 1/1] kernel/utsname_sysctl.c: Add missing enum uts_proc value Message-ID: References: <20221020150645.11719-1-pvorel@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221020150645.11719-1-pvorel@suse.cz> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 20, 2022 at 05:06:45PM +0200, Petr Vorel wrote: > bfca3dd3d068 added new struct ctl_table uts_kern_table[], but not new > enum uts_proc value. It 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, that's why new enum value is needed. > > Fixes: bfca3dd3d068 ("kernel/utsname_sysctl.c: print kernel arch") > > Reported-by: Torsten Hilbrich > Signed-off-by: Petr Vorel > --- > Hi all, > > I'm sorry to introduce a regression. > > Torsten Hilbrich reported [1] that hostnamectl set-hostname foo > which does poll() got affected by bfca3dd3d068. He also wrote a > reproducer [2] which does not require systemd, I tested the patch on > dracut initramfs. Thanks for the quick response, I'll queue this up in my tree now. greg k-h