Bug 34597

Summary: User with >200 groups breaks mountd
Product: UCS Reporter: Janis Meybohm <meybohm>
Component: NFSAssignee: Philipp Hahn <hahn>
Status: CLOSED FIXED QA Contact: Stefan Gohmann <gohmann>
Severity: normal    
Priority: P5 CC: gohmann, jmm
Version: UCS 3.2   
Target Milestone: UCS 3.2-2-errata   
Hardware: Other   
OS: Linux   
What kind of report is it?: --- What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional):
Max CVSS v3 score:

Description Janis Meybohm univentionstaff 2014-04-17 14:30:55 CEST
2014041421005147

If a user with many groups (201 in this case) tries to access a NFS mount provided by UCS, the "cd" command hangs and the corresponding nfsd kernel thread may increase the load on the server.

Servers syslog shows:
Apr 17 14:20:28 master mountd[1157]: qword_eol: fflush failed: errno 22 (Invalid argument)
Apr 17 14:22:29 master mountd[1157]: qword_eol: fflush failed: errno 22 (Invalid argument)
Apr 17 14:24:31 master mountd[1157]: qword_eol: fflush failed: errno 22 (Invalid argument)


Rebuilding the nfs-utils package including the following commit fixes this:
<http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commitdiff;h=5604b35a61e22930873ffc4e9971002f578e7978>
Comment 1 Stefan Gohmann univentionstaff 2014-05-13 08:12:08 CEST
We should release this update for 3.2-1-errata and 3.2-2-errata.
Comment 2 Philipp Hahn univentionstaff 2014-05-19 15:13:45 CEST
Patch applied:
nfs-utils/3.2-0-0-ucs/1:1.2.2-4squeeze2-errata3.2-1/10-increment-the-stdio-file-buffer-size-for-procfs-files.patch
r13099

ucs-3.2-2/doc/errata/staging/2014-05-16-nfs-utils.yaml
r50338 | Bug #34597: User with >200 groups breaks mountd

Please note: the packet was build in the older release errata3.2-*1* (to guarantee that it really works there too), but the YAML files is in the newer release ucs3.2-*2* (as a reference to future releases would look odd).

ucs-test case:
r50389 | Bug #34596, Bug #34597 test: user with many groups
Comment 3 Stefan Gohmann univentionstaff 2014-05-20 08:38:17 CEST
Code: OK

Tests: OK (with the updated ucs-test)

YAML: OK
Comment 4 Philipp Hahn univentionstaff 2014-05-20 08:40:27 CEST
(In reply to Stefan Gohmann from comment #3)
> Tests: OK (with the updated ucs-test)
r50420 | Bug #34596, Bug #34597 test: user with many groups
Comment 5 Moritz Muehlenhoff univentionstaff 2014-05-20 12:56:57 CEST
http://errata.univention.de/ucs/3.2/112.html