diff options
author | Richard Weinberger <richard@nod.at> | 2018-07-01 23:20:51 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2018-08-15 00:25:20 +0200 |
commit | 95a22d2084d72ea067d8323cc85677dba5d97cae (patch) | |
tree | 37301d32e351f1ced8060344148bd4d39dff4517 /block/sed-opal.c | |
parent | 08acbdd6fd736b90f8d725da5a0de4de2dd6de62 (diff) | |
download | lwn-95a22d2084d72ea067d8323cc85677dba5d97cae.tar.gz lwn-95a22d2084d72ea067d8323cc85677dba5d97cae.zip |
ubifs: Check data node size before truncate
Check whether the size is within bounds before using it.
If the size is not correct, abort and dump the bad data node.
Cc: Kees Cook <keescook@chromium.org>
Cc: Silvio Cesare <silvio.cesare@gmail.com>
Cc: stable@vger.kernel.org
Fixes: 1e51764a3c2ac ("UBIFS: add new flash file system")
Reported-by: Silvio Cesare <silvio.cesare@gmail.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'block/sed-opal.c')
0 files changed, 0 insertions, 0 deletions