Skip to content

Add Linux 4.14.16 #596

Merged
merged 3 commits into from
Feb 2, 2018
Merged

Add Linux 4.14.16 #596

merged 3 commits into from
Feb 2, 2018

Conversation

pmenzel
Copy link
Collaborator

@pmenzel pmenzel commented Jan 31, 2018

Tested on keineahnung.

Announcements and change-logs are available online [1][2].

> commit 54e67ba7d20a5921cfe712cfe4bd773e75df10e0
> Author: Ben Hutchings <ben.hutchings@codethink.co.uk>
> Date:   Mon Jan 22 20:11:06 2018 +0000
>
>     nfsd: auth: Fix gid sorting when rootsquash enabled
>
>     commit 1995266727fa8143897e89b55f5d3c79aa828420 upstream.
>
>     Commit bdcf0a423ea1 ("kernel: make groups_sort calling a responsibility
>     group_info allocators") appears to break nfsd rootsquash in a pretty
>     major way.
>
>     It adds a call to groups_sort() inside the loop that copies/squashes
>     gids, which means the valid gids are sorted along with the following
>     garbage.  The net result is that the highest numbered valid gids are
>     replaced with any lower-valued garbage gids, possibly including 0.
>
>     We should sort only once, after filling in all the gids.
>
>     Fixes: bdcf0a423ea1 ("kernel: make groups_sort calling a responsibility ...")
>     Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
>     Acked-by: J. Bruce Fields <bfields@redhat.com>
>     Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
>     Cc: Wolfgang Walter <linux@stwm.de>
>     Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

[1] https://lkml.org/lkml/2018/1/31/329
[2] https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.14.16
@donald donald merged commit e7ae6d0 into master Feb 2, 2018
@donald donald deleted the add-linux-4.14.16 branch February 14, 2018 15:05
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants