Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp431106pxj; Thu, 17 Jun 2021 06:09:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxN09cSqllJiiQKUVxx+Bfx8iRA4qlNlxl/JbvWsZQ/nvSO+DLWBgSXD4s/Q77sAt4P/cpu X-Received: by 2002:a02:9f12:: with SMTP id z18mr4672243jal.54.1623935349383; Thu, 17 Jun 2021 06:09:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623935349; cv=none; d=google.com; s=arc-20160816; b=t+W+jf1hfydk+ySMvIZp5GbvjZtM65D4+WX1IWXPBUf29++CTRK6dxYNMjv7RXDE4j WXInOAaJfOXCz1gRHCqQiL+wNd8lk+51wX3ShJYhzJ/mp9vlBOb11aCrBbPF6AVj2vQN gkv8UIneO/CtcveM6SgpWhLAwK6PZ4xrP4qRwtOVYcNVxFTBcJa5RLjughmDE7hCvh5i 66DRLxljDej78bJ28Q8xRx1QYW6DVR2Z05rAsdG9pqHwe3hNPabXWNBfkIlf/TY5zSLf YdLAgMikD72vRIS12diV16CT2y5bewaKbxZALOOcB1tDZSkj3h8+0L292ORo+uYoMCLI GPcg== 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=CZ5xmOzvrdwg/sp/1DQsLzVmUmCTBoGXfjZ0Mq7rtGo=; b=cDpSBXQ/B1Xr7oeqUJkvx2fjvQ8rXlO0ze8eJORQhhIDUk8F+H/OGxfPe7GA33TMOD tresUFGz5SNDQgufKbVn7TWDbdr2CI8O+VJskmw0blNYp6KjQuKOFjFlsotvh21GBlpt C1lJUGouZKDGoRnKQwluekaxTl1fnJcTdFU7yNqSKyVTNfioaFvw0op1877QTMCM8uM+ sFOfwrnFCIG5buqUpV0d8Oed+k/SLY4ztAXoiZKCpvdtCc+E7m/JtJvTs8jU35w3U7iH HdMbYpHEaFsMqdp4unh8rd9cv+M7bMmsAh8xc+xNErjmMj3mWXvVd49UuZtUgVkgZS8Q hnDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TOgSWk1a; 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 z2si2658534jat.63.2021.06.17.06.08.55; Thu, 17 Jun 2021 06:09:09 -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=TOgSWk1a; 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 S232011AbhFQK6M (ORCPT + 99 others); Thu, 17 Jun 2021 06:58:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:48816 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231279AbhFQK6K (ORCPT ); Thu, 17 Jun 2021 06:58:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B68DC613C1; Thu, 17 Jun 2021 10:56:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623927362; bh=tdtJ3TT/sqXmbyHuuhhGQQmcFtIXnLuVyXiZ92I+b1A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TOgSWk1aEC0FOleq1QCmMEph695+5XbKRHOTuBB3YcU6uviGtcTm1e88KvVcmKypr aNwAZpfxwEJNKD47tYX7oymBW4lxvNzZz3BiocUt+v6xiFaDI7VnB7G+y2MFOT/KYE W8JD4WOEt+X8EMPnHgSVKca+v1QogvaGrCQaqgoY= Date: Thu, 17 Jun 2021 12:55:59 +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" As with the other patch, you have to also sign off on this as well. The link is pointing to a v5 of a different patch series, why put that here? thanks, greg k-h