Files
linux/fs
Jamie Hill-Daniel bd2aed0464 vfs: fs_context: fix up param length parsing in legacy_parse_param
commit 722d94847d upstream.

The "PAGE_SIZE - 2 - size" calculation in legacy_parse_param() is an
unsigned type so a large value of "size" results in a high positive
value instead of a negative value as expected.  Fix this by getting rid
of the subtraction.

Signed-off-by: Jamie Hill-Daniel <jamie@hill-daniel.co.uk>
Signed-off-by: William Liu <willsroot@protonmail.com>
Tested-by: Salvatore Bonaccorso <carnil@debian.org>
Tested-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Acked-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-01-20 09:19:18 +01:00
..
2020-11-05 11:43:34 +01:00
2021-10-27 09:54:27 +02:00
2021-07-14 16:53:17 +02:00
2022-01-11 15:23:30 +01:00
2021-09-22 12:26:25 +02:00
2021-11-17 09:48:42 +01:00
2021-11-26 10:47:21 +01:00
2020-10-01 13:17:19 +02:00
2019-08-07 21:51:47 -04:00
2020-03-25 08:25:58 +01:00
2019-12-17 19:55:30 +01:00
2021-12-14 14:49:02 +01:00
2019-08-01 20:51:23 +02:00