Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp353179pxj; Thu, 17 Jun 2021 04:23:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMdUq/YTtCinx12FfVdSvInDVdoUGu+hd/oMt/yAFPT8Yoj32LCJkZbcDFvFr49pzZ1Fe+ X-Received: by 2002:a05:6402:1cad:: with SMTP id cz13mr5733775edb.67.1623929011908; Thu, 17 Jun 2021 04:23:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623929011; cv=none; d=google.com; s=arc-20160816; b=noE1LWB6vOeHvyA1IBH9FymB1cvss4q1XcYZ+ihejoQDN/hypRYE5QRjVixq2nyvWK Z97Rj0u6l/sQ58iLzb1qscv2/uNQ16hN5XJEgvQFTiURrlhr8IN6uqvjODMxh6spIb4y e/U3Ki3JV/MkSdxMsRMOmoTjGmjBzYEADImyoREPwZWvtnQ60/s8Rd/ccwJuP+U/2Gls /UnpAKuepNdC+WEaxyH4vfh6QBq4cGySUjjUdpFRB2GobJWK/grHhJSU0PC9/QmamooG CgpqNYnTfJUlqxk27uQEVNlgej3UlXGmpc7g9Wrt7mDYYoSxFh2CkCymagJqHUH0Ke3L RiEA== 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=QE7cPLoeKPo6djyudhj1iuSscuUzbC+APbL9o55/mkE=; b=QBwTTtGC59X5J/odr6W3ZVAUhVmaGGnaUtlmX8acY6H9yTErcrV05pDhZIMSH6guCA R/9RVlfZcyEUlg1N4FCh3lXLNrbb5Jr5tPevWJIKvNlLc+LFhslfZcR9ZcrmuitCpSsR OnWnKTX4SMA8gHJID+7K8yyA6S23YNIcZ57TzF1tJh95h+aXz0lVpIR5HENm1H1eaghF ApGAj0wl04cDoLTnZS8uZawAWs3vmgBRsQ8FZoV3ahxRyxghb7CljEwsGLyVQSa7tDLB TMK82S6nR4iyFej9MQrjU1MLxmZdU3UqFczSVinTp1LLxkyRroSXYPh2S8zA0X6Os0Hs RG9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=T3IUKzj4; 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 6si5005886ejr.201.2021.06.17.04.23.07; Thu, 17 Jun 2021 04:23:31 -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=T3IUKzj4; 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 S232101AbhFQK4u (ORCPT + 99 others); Thu, 17 Jun 2021 06:56:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:48468 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229712AbhFQK4t (ORCPT ); Thu, 17 Jun 2021 06:56:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2A741613CA; Thu, 17 Jun 2021 10:54:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623927281; bh=VjFcs8Nc0hTPZ1GjDyuQBswwhLne0QqnkXv+Wza6R2Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=T3IUKzj4YYP1MJpbL/3Wbpjj8VKIeVm7+63DMbN1nwGDSoMF4qxlbUiQaklcwcQbx G3DAfjviw7WbJNC8Ke7ASoZoCiHpzCXoRZn8Q17tf6O9CYHcFO+qQtp3ZzUJyNPlF5 Vky9+wqWigqIkoRWCPc5jrC3MeKofwlxQ8i7Apfg= Date: Thu, 17 Jun 2021 12:54:39 +0200 From: Greg KH To: Barry Song Cc: andriy.shevchenko@linux.intel.com, linux-kernel@vger.kernel.org, linux@rasmusvillemoes.dk, rafael@kernel.org, akpm@linux-foundation.org, rdunlap@infradead.org, agordeev@linux.ibm.com, sbrivio@redhat.com, jianpeng.ma@intel.com, yury.norov@gmail.com, valentin.schneider@arm.com, peterz@infradead.org, bristot@redhat.com, guodong.xu@linaro.org, tangchengchang@huawei.com, prime.zeng@hisilicon.com, yangyicong@huawei.com, tim.c.chen@linux.intel.com, tiantao6@hisilicon.com, Jonathan.Cameron@huawei.com, linuxarm@huawei.com Subject: Re: [PATCH v4 2/4] topology: use bin_attribute to avoid buff overflow Message-ID: References: <20210617101910.13228-1-song.bao.hua@hisilicon.com> <20210617101910.13228-3-song.bao.hua@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210617101910.13228-3-song.bao.hua@hisilicon.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 17, 2021 at 10:19:08PM +1200, Barry Song wrote: > From: Tian Tao > > Reading sys/devices/system/cpu/cpuX/topology/ returns cpu topology. > However, the size of this file is limited to PAGE_SIZE because of the > limitation for sysfs attribute. so we use bin_attribute instead of > attribute to avoid NR_CPUS too big to cause buff overflow. > > Link: https://lore.kernel.org/lkml/20210319041618.14316-2-song.bao.hua@hisilicon.com/ > Signed-off-by: Tian Tao > Reviewed-by: Jonathan Cameron > Cc: Greg Kroah-Hartman > Cc: "Rafael J. Wysocki" Is this whole series supposed to go through my tree? If so I'll wait on it based on my comments so far, otherwise I would give an ack for this one... thanks, greg k-h