summaryrefslogtreecommitdiff
path: root/fs/userfaultfd.c
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2017-06-08 00:33:35 +0300
committerRichard Weinberger <richard@nod.at>2017-07-14 23:49:07 +0300
commitdf71b09145b66e4cf6f7a1ec69d181bf2ccb0efd (patch)
tree6d6eb0d66d61ef13a983aa0c1a3b26140fa0a4e9 /fs/userfaultfd.c
parent319c10427498620d220931189dcdba7d4244feba (diff)
downloadlinux-df71b09145b66e4cf6f7a1ec69d181bf2ccb0efd.tar.xz
ubifs: Fail commit if TNC is obviously inconsistent
A reference to LEB 0 or with length 0 in the TNC is never correct and could be caused by a memory corruption. Don't write such a bad index node to the MTD. Instead fail the commit which will turn UBIFS into read-only mode. This is less painful than having the bad reference on the MTD from where UBFIS has no chance to recover. Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/userfaultfd.c')
0 files changed, 0 insertions, 0 deletions