Messages in this thread | | | Date | Thu, 17 Jun 2021 12:55:07 +0200 | From | Greg KH <> | Subject | Re: [PATCH v4 3/4] drivers/base/node.c: use bin_attribute to avoid buff overflow |
| |
On Thu, Jun 17, 2021 at 10:19:09PM +1200, Barry Song wrote: > From: Tian Tao <tiantao6@hisilicon.com> > > Reading sys/devices/system/cpu/cpuX/nodeX/ returns cpumap and cpulist. > 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. > > Signed-off-by: Tian Tao <tiantao6@hisilicon.com> > Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com> > Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> > Cc: "Rafael J. Wysocki" <rafael@kernel.org> > --- > drivers/base/node.c | 52 +++++++++++++++++++++++++++++---------------- > 1 file changed, 34 insertions(+), 18 deletions(-)
You are forwarding on a patch from someone else, you HAVE to also sign off on it as well.
thanks,
greg k-h
| |