diff options
| author | Eric Biggers <[email protected]> | 2018-07-13 23:59:27 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2018-07-14 18:11:10 +0000 |
| commit | fe10e398e860955bac4d28ec031b701d358465e4 (patch) | |
| tree | 5f5e31e058796ca818dae8f4bef23afd5aaec062 /scripts/basic/bin2c.c | |
| parent | checkpatch: fix duplicate invalid vsprintf pointer extension '%p<foo>' messages (diff) | |
| download | kernel-fe10e398e860955bac4d28ec031b701d358465e4.tar.gz kernel-fe10e398e860955bac4d28ec031b701d358465e4.zip | |
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: 1da177e4c3f4 ("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]>
Diffstat (limited to 'scripts/basic/bin2c.c')
0 files changed, 0 insertions, 0 deletions
