On Tue, Oct 24, 2023 at 08:30:15PM +0200, Christian Marangi wrote: > Fix buffer overflow in trans_stat_show(). > > Convert simple snprintf to the more secure scnprintf with size of > PAGE_SIZE. > > Add condition checking if we are exceeding PAGE_SIZE and exit early from > loop. Also add at the end a warning that we exceeded PAGE_SIZE and that > stats is disabled. > > Return -EFBIG in the case where we don't have enough space to write the > full transition table. > > Also document in the ABI that this function can return -EFBIG error. > > Cc: stable@xxxxxxxxxxxxxxx > Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218041 > Fixes: e552bbaf5b98 ("PM / devfreq: Add sysfs node for representing frequency transition information.") > Signed-off-by: Christian Marangi <ansuelsmth@xxxxxxxxx> Any news for this? -- Ansuel