summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2026-05-07 12:01:43 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-05-07 13:31:51 +0300
commitf71cc65c01bdac1bc7705b1aad34f0023b41ec4d (patch)
tree51c8ba4529cfedd75093aaee814423685b4f93d6 /include/linux
parent896df22ee57648b0c505bd76ddbc6b2341834696 (diff)
downloadlinux-f71cc65c01bdac1bc7705b1aad34f0023b41ec4d.tar.xz
sysfs: upgrade OOB write by buggy .show hook into WARNing
Buggy .show hook will get just 1 line of dmesg: fill_read_buffer: ext4_attr_show+0x0/0x600 returned bad count It may or may not oops later in some unrelated process. But buggy .show hook most likely is corrupting random memory past sysfs buffer therefore deserving more. WARN, make it more visible and let QA machines panic earlier. Also, delete useless cast -- "count" is >=0 at this point. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Reviewed-by: Danilo Krummrich <dakr@kernel.org> Link: https://patch.msgid.link/3cc3e8c6-c6e8-4625-a88f-f5708b935dab@p183 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions