Files
linux/arch/s390/kernel
Thiago Rafael Becker 79258d9834 kernel: make groups_sort calling a responsibility group_info allocators
commit bdcf0a423e upstream.

In testing, we found that nfsd threads may call set_groups in parallel
for the same entry cached in auth.unix.gid, racing in the call of
groups_sort, corrupting the groups for that entry and leading to
permission denials for the client.

This patch:
 - Make groups_sort globally visible.
 - Move the call to groups_sort to the modifiers of group_info
 - Remove the call to groups_sort from set_groups

Link: http://lkml.kernel.org/r/20171211151420.18655-1-thiago.becker@gmail.com
Signed-off-by: Thiago Rafael Becker <thiago.becker@gmail.com>
Reviewed-by: Matthew Wilcox <mawilcox@microsoft.com>
Reviewed-by: NeilBrown <neilb@suse.com>
Acked-by: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-01-10 09:29:52 +01:00
..
2016-09-20 14:26:23 +02:00
2016-09-20 14:26:23 +02:00
2012-05-16 14:42:41 +02:00
2015-06-25 09:39:26 +02:00
2011-01-05 12:47:31 +01:00
2017-05-25 15:44:35 +02:00
2016-08-29 11:05:01 +02:00
2016-03-08 10:38:06 +01:00
2015-03-25 11:49:33 +01:00
2016-06-13 15:58:24 +02:00
2016-08-07 23:47:20 -04:00
2015-03-25 11:49:33 +01:00
2016-07-18 10:17:23 +02:00
2015-03-25 11:49:33 +01:00
2017-12-14 09:28:13 +01:00
2016-02-11 13:05:56 +01:00
2016-05-10 13:24:51 +02:00