Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp934712pxj; Fri, 4 Jun 2021 01:43:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywnqtUHTosKobFu7J6NDhMxlk6rxzn1PptK3ElMZx4P0Rj8aygNghXxH6moA2XlSKqduH0 X-Received: by 2002:a17:907:2d0c:: with SMTP id gs12mr3144708ejc.173.1622796229321; Fri, 04 Jun 2021 01:43:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622796229; cv=none; d=google.com; s=arc-20160816; b=SkelIQ9LAOpiAvqD3g4tlkQvBDZ5MVPktfyQ6MskCllJpFpk9lx+uQTDeQoeOKmSQR Z2ObGmOFhvH5yuedYVrzWZU+ChTuhktjGovaFPaONSlKNcw/uud2W3nHa29zgWw1pUEk H69pk84aLVmq+j8sEscBk8SelaB9DNyNVlp/wo5Nq8rSPKxKG2t4x9mPknpdlFEPWzhp R2BJBzo1gYRI9pNvUpDghPypaV69YJn4bN0E6Gv+RB4zI1Af/hwfV6qNcAfzw0gn+qKs 8tjK688AniAXtvjSl64gp4ClwCNGkVOzCs6dYQjtUpZfJZhLnYgzqTXaAHgUk8FhQYcr IckQ== 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=qXJkxcEwIBu9Q5l9I0LHtYs/king+MVE7zIB/sgk2X0=; b=u/6I+KqABx/sz7NzNrvsOwQD7iijK+Tik3gNSfEX18p2IQ9dYXK2Y8LzvHF5sNFRwR /CQwWrebCiTnTgz3uiP/JxGLDBxQGyRFD9AsX4HDcQSwa/mXkQGZe6Ii+0rZc/vORwlM m4TRZV5MlAioQ5V9ZyopCoS/n6c77oKW2qjkzHqgwyU59ohI9AMMN1lBeP5EdvHsoqKM xI+VI7tEyEd6GOVSkYYa/yPAtf0L8l/l75ldQKeEY+lyGxVlSUBpqxgQac7fuRlnJhC2 fEr7rs++oGihJgCmKWqFa8cJ+kXwAKdbpZU7ySSqeDMGi0TgfO9tSCmDxiQ19ySPQrog d2XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=FpXeWg6E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h8si4111273edz.253.2021.06.04.01.43.25; Fri, 04 Jun 2021 01:43:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=FpXeWg6E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229956AbhFDIl6 (ORCPT + 99 others); Fri, 4 Jun 2021 04:41:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229930AbhFDIl5 (ORCPT ); Fri, 4 Jun 2021 04:41:57 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 991BDC06174A for ; Fri, 4 Jun 2021 01:40:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=qXJkxcEwIBu9Q5l9I0LHtYs/king+MVE7zIB/sgk2X0=; b=FpXeWg6E0jQdMhYGhJDCCbDvMf Qk9decS4JOfv/k1rEKDS7VRsIWYcTho4jnZPjKvB4zxmuHpl5sIDjF6jbSV99BOGFdwhoe1lR9e8x iKb5+ZXAqTkos/LZViN3XNoUnKc3UaBU5soZrVJOYtRVE89GjTLobE6nPrHuqviZ/xh5d5Sbwz0xx lPNFzQsBaIbzef1h+AGkoO8qBhjFdb8vWFflqXe9RrEH9gNLOlqUTqvub3qizadM/81IFlyx5wpYS JSWkr1xeH3r+22aE9+9i62hSa3S+2AuC/E1NDaQMsRi7YeAhpeqxqiY6ANYBjaGcnyBv5zjnOrJ5X TNgpy1ZA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lp5Mn-00CzXo-DL; Fri, 04 Jun 2021 08:39:48 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 9EE0E300091; Fri, 4 Jun 2021 10:39:43 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 870DA2BE400DC; Fri, 4 Jun 2021 10:39:43 +0200 (CEST) Date: Fri, 4 Jun 2021 10:39:43 +0200 From: Peter Zijlstra To: Dietmar Eggemann Cc: Ingo Molnar , Juri Lelli , Vincent Guittot , Steven Rostedt , Greg Kroah-Hartman , Valentin Schneider , linux-kernel@vger.kernel.org Subject: Re: [PATCH] debugfs: Fix debugfs_read_file_str() Message-ID: References: <20210527091105.258457-1-dietmar.eggemann@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210527091105.258457-1-dietmar.eggemann@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 27, 2021 at 11:11:05AM +0200, Dietmar Eggemann wrote: > Read the entire size of the buffer, including the trailing new line > character. > Discovered while reading the sched domain names of CPU0: > > before: > > cat /sys/kernel/debug/sched/domains/cpu0/domain*/name > SMTMCDIE > > after: > > cat /sys/kernel/debug/sched/domains/cpu0/domain*/name > SMT > MC > DIE > > Fixes: 9af0440ec86eb ("debugfs: Implement debugfs_create_str()") > Signed-off-by: Dietmar Eggemann Urgh.. so much for last minute changes :/ Greg, AFAICT that commit has since landed in Linus, will you take care of this? Acked-by: Peter Zijlstra (Intel)