Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp875566rwi; Wed, 19 Oct 2022 04:11:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6ubnRyLVn26NHbdR3XSvbKQypFFIpdjOHtdeepzq4aUyldXclfXyFXD7ECWcsRvDPEagXh X-Received: by 2002:a63:2dc3:0:b0:46b:3cf1:e16c with SMTP id t186-20020a632dc3000000b0046b3cf1e16cmr6795194pgt.556.1666177887747; Wed, 19 Oct 2022 04:11:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666177887; cv=none; d=google.com; s=arc-20160816; b=h1u+csocFx2AV83YQues7iwjMHF1GcI9gH+HmSkVoKUvEGZS3F6Ea4hRTediXYDmdf nAaDTUqehFgmKRLZ15U1vBQNAmUdJL+nuSqDmQMYgzYtpVdvxQZFEzrFrb26fbD5FnNk zUsp9gk188p116PqMQDmOMevoUaW+ReZ+ACJGIWqLirJbEjtqZYfYWTbfly4yTRklzbc XcgesBo0oxkRNtYkURJGEqFiQm3oVb+aa7Hp0/AZhWTxu7/qFXKmTXQKzs8nipc2p0VC XWyzLhCSo0b8iHslv2kOXbtEy3r/rlJeQjjgRGgPXqAPH+Ms7BSccfW3We9wO+2lJIGR FdCg== 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=oIePuYPef2it7SNowdKfN/HZEmC0IyOhP+Vny8+bqds=; b=T1kbEipjC1mN9W0cKevE7HCy5fDy94prLhU4INlsBzZzyEWYI/Ec4X1m0e9+ZKVggM yQ7I1zM7gqebW7M9Yo3ZmlQcR4TshfX1kQXKImI9S6ChZSM9EMX3ajMyH3eXTfhQ4mDU ejatiolhQJK69e2yOn9+g0ynMR61zMqAKGqD8VjJE/46DpWfBOd+Z6s41Y5LmaigxNYi XWThossi3FmS6Nc3FdXm/wXVpQ5Cr14VamIjFJ954K8a7dS1nRhTrJAeyQ8AT4v1GQG6 UEoZbvPYcPzW3l4zztKv4HMHoLKFds5rC77Fr/FNUAaPiZBhHPGdTfDSz34w+TAN9aer UUSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=g7Km96rL; dkim=neutral (no key) header.i=@suse.cz; 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 d29-20020a631d1d000000b0042b52f42418si18293048pgd.227.2022.10.19.04.11.14; Wed, 19 Oct 2022 04:11:27 -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=g7Km96rL; dkim=neutral (no key) header.i=@suse.cz; 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 S233230AbiJSKze (ORCPT + 99 others); Wed, 19 Oct 2022 06:55:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234857AbiJSKya (ORCPT ); Wed, 19 Oct 2022 06:54:30 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2478D4620C for ; Wed, 19 Oct 2022 03:25:49 -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-out2.suse.de (Postfix) with ESMTPS id 42E432040F; Wed, 19 Oct 2022 09:29:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1666171798; 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=oIePuYPef2it7SNowdKfN/HZEmC0IyOhP+Vny8+bqds=; b=g7Km96rLbAnC8cRypwR59ySl0NhtjkFzJJ0oskvZnD3/kiueV0Hb4w+X0v2ufQjo/8DFhh jX6YjJU4O1sfMzhLaYkg4NZZuE8XBOpOpOTWmrslNH9Qp3Lr8M5rJO8AuTOAjA+FA+SjnJ x4VsjmhXx3m+zcqc1EP8WLTYSATP8G0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1666171798; 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=oIePuYPef2it7SNowdKfN/HZEmC0IyOhP+Vny8+bqds=; b=xfl32H5HBuHikpxdswLLYtVCWH+I3PKd6Jf2XDfe/0xnBhrs58kX5AQZfEtqKmO5OuQ7UD pkNPrR5z1XR9+oCQ== 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 0A2B113A36; Wed, 19 Oct 2022 09:29:58 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id R1m2AJbDT2NIBAAAMHmgww (envelope-from ); Wed, 19 Oct 2022 09:29:58 +0000 Date: Wed, 19 Oct 2022 11:29:56 +0200 From: Petr Vorel To: Torsten Hilbrich Cc: linux-kernel@vger.kernel.org, Andrew Morton , Kroah-Hartman Subject: Re: v6.1-rc1: Regression in notification of sethostname changes Message-ID: Reply-To: Petr Vorel References: <0c2b92a6-0f25-9538-178f-eee3b06da23f@secunet.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0c2b92a6-0f25-9538-178f-eee3b06da23f@secunet.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 Torsten, > Hello Petr, > your commit > commit bfca3dd3d0680fc2fc7f659a152234afbac26e4d > Author: Petr Vorel > 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. Thanks a lot for your report, working on a fix! Andrew, Greg, sorry for a regression. Kind regards, Petr > Torsten