Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 644916 - net-ftp/vsftpd-3.0.2-r1 fails to list a directory if there are more than 29 items in it
Summary: net-ftp/vsftpd-3.0.2-r1 fails to list a directory if there are more than 29 i...
Status: RESOLVED DUPLICATE of bug 443898
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Markos Chandras (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-18 08:15 UTC by Nikita S. Kipriyanov
Modified: 2018-06-27 09:46 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info output (emerge--info.txt,4.53 KB, text/plain)
2018-01-18 08:17 UTC, Nikita S. Kipriyanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita S. Kipriyanov 2018-01-18 08:15:31 UTC
It seems that server process just crashes, but I am not sure. No segfault is logged in dmesg, nothing is logged in the syslog. The server starts new process for each connection, so this doesn't kill the whole server, only drops the current connection.


Reproducible: Always

Steps to Reproduce:
1. emerge vsftpd and configure it
2. connect via FTP and upload files one by one

Actual Results:  
when you done uploading 30th file you will not see any files in the directory; if using Midnight Commander built-in FTP client - it will refuse to enter the directory

Expected Results:  
obviously, complete directory listings every time, no matter how many files are inside

The specific setup is as such:

Gentoo system is in Proxmox VE 4.4 LXC container, created from official PVE template. User noticed the problem with system world updated in summer; recent world update with profile changed to 17 (with complete world rebuild according to the news article) didn't change anything.

Every client chroots. Auth with PAM. No clients in exception list in vsftpd config. Every client experiences the problem, no matter if they could enter system with SSH or local or if they can't (/sbin/nologin).

Clients are primarily announcemet robots which download clips to play. There isn't an option to retire this setup, as it requires FTP.
Comment 1 Nikita S. Kipriyanov 2018-01-18 08:17:29 UTC
Created attachment 515218 [details]
emerge --info output
Comment 2 Konstantin Kuzov 2018-02-19 10:18:09 UTC
I encountered the same issue on one of my servers and dig out that issue is qsort with enabled seccomp_sandbox (enabled by default).

So currently there are two workarounds:
 1) seccomp_sandbox=NO
or
 2) disable server side sorting by commenting out str_list_sort block at the end of vsf_ls_populate_dir_list.
Comment 3 Pacho Ramos gentoo-dev 2018-06-27 09:46:01 UTC

*** This bug has been marked as a duplicate of bug 443898 ***