Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1525360pxy; Thu, 29 Apr 2021 08:47:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYmBLjarFzCZjQMqjALq8Sjpce118d+N5yWDOnngXHmA1W3Z+cXFwx12AmvF2Jl9JDNAUo X-Received: by 2002:a05:6a00:2283:b029:261:abae:917e with SMTP id f3-20020a056a002283b0290261abae917emr594402pfe.78.1619711240676; Thu, 29 Apr 2021 08:47:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619711240; cv=none; d=google.com; s=arc-20160816; b=I3S0DoAeRKbfo3l7Wd51o0u3Ml7xy6qZbMt4mKyT89EBLbOagOdC3I7w3yPdoWrZl7 P4CjUt2zCUrmGj/cqIiK2m1rRdkJWAnWQDvJAtbHLcKdVbJYTU+tR7iU9sfPhWeg+/kH a207JzOkGjY+k1zj/KiG51i29lU7RP1kPZ0mHLMYqZAAZKN7K/DN1K8JIY82Zqr+cOHs H7uNeouAesYsxSlaPKd7iiOgUybtTVTo+LoNLIQOY4XHQRmxwoKkqWNl3+qOTW6E9Fz9 L7HM1ei28asIRkeTeYgh+AC23iuTdwT9TWXs+CkohpIQqm/RjqCOKEOjiH+tFTm2STDn LRvw== 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=+9k2Pfx4XGj6uRQQukA5eFnbJaHv2blOlO6hdCcYLmA=; b=Ij3NC2k1u7Q+HoOOzOVi93GuihzSthtMVzWvqTQzHL8ifCW7n/JQ/LbTYG2aVSsnIp NsBR9Fpr5HVCvcOO7cudeUIE+D33CJMPYsh+mbpVNg9LZp2Q2+wQ4K5cjWpJoam21tDH y/Dbc2O7A9n0RnTcWhdGo4nqWCtomUWOjE1/ZIbm7pT8ZBqVmxWC8N2esSmqmdS8knpS u2QPNq4nDRYU/On7pSPxdff2Wpxns7ImJtKSDuNJclI2ZgHHutIYx1yFZjtFU8EGK3tQ /ByasGOF7c2r/rPk452cbnP13u63yBRdVbP1VhHH/uJ4Vm6gJ10ck8YYKgi1KSXxg+Zn jv9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oo+Tooz5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si3824720pfm.278.2021.04.29.08.47.06; Thu, 29 Apr 2021 08:47:20 -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=@linuxfoundation.org header.s=korg header.b=oo+Tooz5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234144AbhD2PrP (ORCPT + 99 others); Thu, 29 Apr 2021 11:47:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:46084 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232989AbhD2PrP (ORCPT ); Thu, 29 Apr 2021 11:47:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2FC3161418; Thu, 29 Apr 2021 15:46:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619711186; bh=/VKU8BHFV59c+saQPJazlJKeZ1egZHPlDGpRVTaqF18=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oo+Tooz5WEkT5vZmP5cFl0QHgzIRrbjTSH8T8DDJnqg6EJk2ooRGKe86Xp3CVQj0D kzwCVojGtFf4hs5GvKrAhXX/oU4ZjmI+TEFqWMDOYO75OkfBpd6uBhmmVMwR5aVbqz 1XGnYKH4qJHP+y+/Cb22Q3Yyih1kMZFFK3mF/kEg= Date: Thu, 29 Apr 2021 17:46:24 +0200 From: Greg KH To: Dave Hansen Cc: Tian Tao , corbet@lwn.net, song.bao.hua@hisilicon.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Peter Zijlstra , Valentin Schneider , Dave Hansen , Daniel Bristot de Oliveira Subject: Re: [PATCH 1/2] CPU, NUMA topology ABIs: clarify the overflow issue of sysfs pagebuf Message-ID: References: <1619679819-45256-1-git-send-email-tiantao6@hisilicon.com> <1619679819-45256-2-git-send-email-tiantao6@hisilicon.com> <146e051b-603c-a6d3-43d8-d083cf2c8119@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <146e051b-603c-a6d3-43d8-d083cf2c8119@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 29, 2021 at 07:21:13AM -0700, Dave Hansen wrote: > On 4/29/21 12:03 AM, Tian Tao wrote: > > diff --git a/Documentation/ABI/stable/sysfs-devices-node b/Documentation/ABI/stable/sysfs-devices-node > > index 484fc04..82dfe64 100644 > > --- a/Documentation/ABI/stable/sysfs-devices-node > > +++ b/Documentation/ABI/stable/sysfs-devices-node > > @@ -47,7 +47,10 @@ What: /sys/devices/system/node/nodeX/cpulist > > Date: October 2002 > > Contact: Linux Memory Management list > > Description: > > - The CPUs associated to the node. > > + The CPUs associated to the node. The format is like 0-3, > > + 8-11, 14,17. maximum size is PAGE_SIZE, so the tail > > + of the string will be trimmed while its size is larger > > + than PAGE_SIZE. > > I think it's pretty arguable that truncating output on a real system is > an ABI break. Doing this would make the interface rather useless. > > Don't we need a real solution rather than throwing up our hands? > > Do we think >PAGE_SIZE data out of a sysfs file is a worse ABI break or > something? There is a real way to get > PAGE_SIZE out of a sysfs file. The LED developers had to do this when they ran into this same exact problem. Make it a binary sysfs file and promise to NEVER create such a file again in the future :) thanks, gre gk-h