Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1069212rwi; Thu, 20 Oct 2022 08:18:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Ir9uU6H7fmsvF1Rz6hQxY652datmCdsBYGP6c+I2ec20DI75CloK9cE1gRArCNMUtOQsG X-Received: by 2002:a17:907:6087:b0:78d:ee99:a06a with SMTP id ht7-20020a170907608700b0078dee99a06amr11502131ejc.52.1666279105584; Thu, 20 Oct 2022 08:18:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666279105; cv=none; d=google.com; s=arc-20160816; b=CTvyFa0TrovpDbn5r6wN46Q1vq+BuGgOO2PTgtm/7F0UixQWKfncjLOTClsTB2guw3 cju9bZE9OZ7lduVotpBicnA9qcY17bKkXqD6IKD7ifzNUrokBv17jqSibnjeLYc/yvkD BzH8ianbnAydvo2INQ+20ua6Q6FaNHBT7Oro27ZRmosV/dmraZsvi3D8g5lBk9lRmIFh 5c+fhc4DKZbJOAH5GpJoRcsUFkYbclyIJs9qaUXkLLk8A1F6sl2UdHU287ahphLuQSKd 2aZaZ3YqZz7fe0lqmM5xAco3Rrh9KpcTZJemBgzWA/XdId2RJsxKWJbzCun4/qi0EQT/ /8LQ== 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:reply-to:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=Ph63C4qHFULN+Di57OFgvEPR0litexahJmBFlk4Mz8U=; b=RFV9wDU0emTdlGIBPVQh/5CfmhC3ZrO0GZmRPXZuSEoibuqiLX67zhzgP8/nJHaL0d bcMbiy8AhXmQDtzHosG2ZNtNOEA6eTZzKlNey0ddtx257c9c+F+kxu1KB4IoTzP7Qzgu OAaV+aA7x4aGDybsVoJ9MyiH4L/ntyC0tbz9LDMc0s4gPt2U5M8gbqETIOnCRsp1bJy2 j42h3cxTZP6VXBsNSvvvYzIaawS+qgYvPVwkrvUFVSY6gc0OWC5gRbBDE6zEkoA2c6Hc qoWP4u/ymO2BTZrPYWVZ36A4d3SrnYeeHGt1UbTcSNekO7c2msM34aN++i9FY4RZUPVH UWvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=NPcG95xG; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=numa6Soy; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w2-20020a05640234c200b00450bda7e3fdsi18638116edc.28.2022.10.20.08.17.58; Thu, 20 Oct 2022 08:18:25 -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=@suse.cz header.s=susede2_rsa header.b=NPcG95xG; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=numa6Soy; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229712AbiJTPOU (ORCPT + 99 others); Thu, 20 Oct 2022 11:14:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbiJTPOR (ORCPT ); Thu, 20 Oct 2022 11:14:17 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35893D9C for ; Thu, 20 Oct 2022 08:14:17 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id D942A22970; Thu, 20 Oct 2022 15:14:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1666278855; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Ph63C4qHFULN+Di57OFgvEPR0litexahJmBFlk4Mz8U=; b=NPcG95xGqHeTnNSoF5Sfs0cdLk6FPHC6NUdPjAkifcthjzqPpFF3MY3KjZ3pk3aDRtmr/Y yj5w77+ySjHV7uXJ3i/gHjN16yJvejSAfbJdOlFkQSmOcIIGf68HLPFlJN9O8eNQTwAyan 6g2AAsPU6++bpTUtSOn9cxMVlnXPDzE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1666278855; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Ph63C4qHFULN+Di57OFgvEPR0litexahJmBFlk4Mz8U=; b=numa6Soy5dYx3QSu3PcNlQXGPMDl+dUigudsVgmpiVS4XGkYxH2fy/S2XjTkICfv9wma0P 9eO5SA5+HQnZLvAg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A49B413AF5; Thu, 20 Oct 2022 15:14:15 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id LRAUJsdlUWO8fQAAMHmgww (envelope-from ); Thu, 20 Oct 2022 15:14:15 +0000 Date: Thu, 20 Oct 2022 17:14:13 +0200 From: Petr Vorel To: linux-kernel@vger.kernel.org Cc: Andrew Morton , Greg Kroah-Hartman , Torsten Hilbrich Subject: Re: [PATCH 1/1] kernel/utsname_sysctl.c: Add missing enum uts_proc value Message-ID: Reply-To: Petr Vorel 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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_SOFTFAIL,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 Hi all, [ Cc regressions@lists.linux.dev ] Kind regards, Petr > 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. > Kind regards, > Petr > [1] https://lore.kernel.org/lkml/0c2b92a6-0f25-9538-178f-eee3b06da23f@secunet.com/ > [2] https://lore.kernel.org/lkml/ec9e00b9-8b47-7918-c39b-8b0069003169@secunet.com/2-hostname-poll-test.c > include/linux/utsname.h | 1 + > 1 file changed, 1 insertion(+) > diff --git a/include/linux/utsname.h b/include/linux/utsname.h > index 2b1737c9b244..bf7613ba412b 100644 > --- a/include/linux/utsname.h > +++ b/include/linux/utsname.h > @@ -10,6 +10,7 @@ > #include > enum uts_proc { > + UTS_PROC_ARCH, > UTS_PROC_OSTYPE, > UTS_PROC_OSRELEASE, > UTS_PROC_VERSION,