On Fri, Aug 16, 2019 at 03:48:49PM +0800, Ming Lei wrote:
It is reported that sysfs buffer overflow can be triggered in case of too many CPU cores(>841 on 4K PAGE_SIZE) when showing CPUs in blk_mq_hw_sysfs_cpus_show().
This info isn't useful, given users may retrieve the CPU list from sw queue entries under same kobject dir, so far not see any active users.
So remove the entry as suggested by Greg.
Cc: stable@vger.kernel.org Cc: Mark Ray mark.ray@hpe.com Cc: Greg KH gregkh@linuxfoundation.org Fixes: 676141e48af7("blk-mq: don't dump CPU -> hw queue map on driver load") Signed-off-by: Ming Lei ming.lei@redhat.com
block/blk-mq-sysfs.c | 23 ----------------------- 1 file changed, 23 deletions(-)
Reviewed-by: Greg Kroah-Hartman gregkh@linuxfoundation.org