Wind River Support Network

HomeDefectsLIN1018-3018
Fixed

LIN1018-3018 : vsftpd: 500 OOPS: priv_sock_get_cmd

Created: Nov 23, 2018    Updated: Jan 16, 2019
Resolved Date: Dec 9, 2018
Found In Version: 10.18.44.1
Fix Version: 10.18.44.2
Severity: Standard
Applicable for: Wind River Linux LTS 18
Component/s: Userspace

Description

Steps to reproduce:
1, ./setup.sh --machine qemux86-64 --dl-layers --distro wrlinux-cgl --templates feature/cut
2, . oe-init-build-env build
3, bitbake wrlinux-image-glibc-cgl
4, boot the target with [runqemu qemux86-64 wrlinux-image-glibc-cgl nographic bootparams="selinux=0 enforcing=0" qemuparams="-m 2048"]
use tnftp to login in the vsftp server as below:
# tnftp 127.0.0.1
Connected to 127.0.0.1.
220 (vsFTPd 3.0.3)
Name (127.0.0.1:root): anonymous
331 Please specify the password.
Password: 
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> dir
229 Entering Extended Passive Mode (|||64833|)
150 Here comes the directory listing.
500 OOPS: priv_sock_get_cmd

then the ftp connection breaks. 

Steps to Reproduce

1) setup.sh
--machine intel-x86-64 --templates feature/LAMP feature/criu feature/cut feature/dhcp-server-kea feature/gcc-sanitizers feature/gdb feature/ipmi feature/ipv6 feature/krb5 feature/libhugetlbfs feature/lttng feature/mariadb feature/network-bond-libteam feature/nfsd feature/ntp feature/software-entropy feature/syslog-ng feature/system-stats feature/target-toolchain feature/test feature/valgrind feature/xfce --dl-layers --layers meta-filesystems meta-virtualization meta-xfce --distro wrlinux-cgl

2) . ./oe-init-build-env
3) vim conf/local.conf
IMAGE_INSTALL_append += " tnftp vsftpd"
4) bitbake wrlinux-image-glibc-cgl 
5) boot the target
Boot the board

mkdir /var/lib/ftp
generate 100 files under /var/lib/ftp as below:
for i in `seq 100`; do
    run_cmd "dd if=/dev/urandom of=/var/lib/ftp/small$i count=100" -c
done

config /etc/vsftpd.conf as below:
cat > /etc/vsftpd.conf  << EOF
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
anon_umask=077
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
listen=YES
pam_service_name=vsftpd
userlist_enable=YES
userlist_deny=YES
tcp_wrappers=NO
use_localtime=YES
chroot_local_user=YES
allow_writeable_chroot=YES
EOF


config  /etc/vsftpd.user_list as below:
cat > /etc/vsftpd.user_list << EOF
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
EOF

systemctl restart vsftpd
Live chat
Online