Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1141973rwi; Thu, 20 Oct 2022 09:05:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM79DY4JuG3DaW5tfudeWEylORCBtSwj9wvlGoWQ8nrUAoX199Oo3Q4Re+YlOXTTi57EESBi X-Received: by 2002:aa7:de10:0:b0:458:e101:fe54 with SMTP id h16-20020aa7de10000000b00458e101fe54mr12679457edv.80.1666281958818; Thu, 20 Oct 2022 09:05:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666281958; cv=none; d=google.com; s=arc-20160816; b=Zgyiy3W6f8GdJfDacv1xngtkmQqRRSsB4LgziqrVPz+4U9x5uxW7YMUMD7ZDIJ26FR 8gfmOSftvC3dN3eHxzktTul22PnERf8wwj/ZGuxYpmnanEiIl7nzTF8xbNtj5vH9Vkgs CQosT81nekILg2zdj8Biuvh7FqVc8F0icUCwIvUoSTGv6fKzf8LBHCB+JZsN7KtfkX2N hCJihnSZqh1Yik7nZaL1YnAOqr3o5O5M2EnNvD5dkQ6aAihlv01KcKA+jRuGDgXAjrzj KRMnrEpoH/EnVYXDmbUZPZuzzfppaJ4P3iOypz63qhbCANjgnhz0JSpnbsrcoLdPPBrA 3gJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DVfd7zLgf/N1vgGLZRpixaiTiOXb7ZATmuqLGO8SkC8=; b=tG9OsNTNx9JGSydHxpjGAOo2OXybWdWi3uv2vKI4XJolySJRI9h1tXEKpVc3K2vA0V b6a5MN5WRHlmdr3lk2vWb/6/A9dOqtIPhJ5+XFKqCyoo3qoHtIWntDHdu9JM4IW5i7EG rl5Z63uRcHlbqRaaVwyViLIrbxBWbKZ55zlwzlp9d7bDgdBuiJiWLcrxID/HWYv+s2lU 0pMsi8N+o4LWpRg5oTIC/s3wxEwXxiwW1Q576wza4+iGXhO+H5gpHGXV0zJnUwBAj7H8 LXCBxQM2/S10uppWjdPqdMyOQKXSaKrmvRr81Q+saX71umQv/YAbz1KRHSyDY/ZcQw87 b0Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=C+Cfmbwg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go10-20020a1709070d8a00b0078d4c9d77adsi21441657ejc.94.2022.10.20.09.05.16; Thu, 20 Oct 2022 09:05:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=C+Cfmbwg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230254AbiJTPzn (ORCPT + 99 others); Thu, 20 Oct 2022 11:55:43 -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> X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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