Files
erofs-linux/fs
Eric Biggers fe10e398e8 reiserfs: fix buffer overflow with long warning messages
ReiserFS prepares log messages into a 1024-byte buffer with no bounds
checks.  Long messages, such as the "unknown mount option" warning when
userspace passes a crafted mount options string, overflow this buffer.
This causes KASAN to report a global-out-of-bounds write.

Fix it by truncating messages to the buffer size.

Link: http://lkml.kernel.org/r/[email protected]
Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Reported-by: [email protected]
Signed-off-by: Eric Biggers <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2018-07-14 11:11:10 -07:00
..
2018-06-12 16:19:22 -07:00
…
…
…
2018-06-15 07:55:24 +09:00
…
…
…
…
…
2018-06-15 18:11:26 -03:00
2018-06-07 17:34:40 -07:00
2018-06-05 19:23:26 +02:00
…
2018-06-07 17:34:35 -07:00
…
…
…
…
2018-06-11 08:22:34 -07:00
…
…
…
…
…
…
…
…
…
…
…
…