OpenWrt/LEDE Project

  • Status Closed
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version lede-17.01
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by KPapad - 30.06.2017
Last edited by Adrian Schmutzler - 19.06.2020

FS#878 - procd-ujail dnsmasq cmd-line missing the -n argument

When procd restarts jailed dnsmasq (e.g. due to interface up/down events), the ujail dnsmasq command-line is missing the -n argument

root@OpenWrt:~# uname -a
Linux OpenWrt 4.4.74 #0 Thu Jun 29 08:02:14 2017 mips GNU/Linux
root@OpenWrt:~# 

root@OpenWrt:~# cat /etc/openwrt_*
DISTRIB_ID='LEDE'
DISTRIB_RELEASE='17.01-SNAPSHOT'
DISTRIB_REVISION='r3452-cca765f'
DISTRIB_CODENAME='reboot'
DISTRIB_TARGET='ar71xx/generic'
DISTRIB_ARCH='mips_24kc'
DISTRIB_DESCRIPTION='LEDE Reboot 17.01-SNAPSHOT r3452-cca765f'
DISTRIB_TAINTS=''
r3452-cca765f
root@OpenWrt:~# 

After reboot:
 2290 root      2228 S    {dnsmasq} /sbin/ujail -n dnsmasq -u -l -r /dev/null -r /dev/urandom -r /etc/TZ -r /etc/dnsmasq.conf -r /etc/ethers -r /etc/group -r /etc/hosts -r /etc/passwd -w /tmp/dhcp.leases -r /tmp/dnsm

After some time (dnsmasq restarting due to interface up/down events):
 6862 root      2228 S    /sbin/ujail -n  -u -l -r /dev/null -r /dev/urandom -r /etc/TZ -r /etc/dnsmasq.conf -r /etc/ethers -r /etc/group -r /etc/hosts -r /etc/passwd -w /tmp/dhcp.leases -r /tmp/dnsmasq.d -r /tmp/hos


root@OpenWrt:/tmp# ps
  PID USER       VSZ STAT COMMAND
    1 root      1552 S    /sbin/procd
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    4 root         0 SW   [kworker/0:0]
    5 root         0 SW<  [kworker/0:0H]
    6 root         0 SW   [kworker/u2:0]
    7 root         0 SW<  [netns]
    8 root         0 SW   [kworker/u2:1]
   34 root         0 SW<  [writeback]
   71 root         0 SW<  [crypto]
   73 root         0 SW<  [bioset]
   75 root         0 SW<  [kblockd]
  101 root         0 SW   [kworker/0:1]
  108 root         0 SW   [kswapd0]
  161 root         0 SW   [fsnotify_mark]
  170 root         0 SW   [spi0]
  187 root         0 SW<  [bioset]
  192 root         0 SW<  [bioset]
  197 root         0 SW<  [bioset]
  202 root         0 SW<  [bioset]
  207 root         0 SW<  [bioset]
  212 root         0 SW<  [bioset]
  307 root         0 SW<  [ipv6_addrconf]
  314 root         0 SW<  [deferwq]
  316 root         0 SW<  [kworker/0:1H]
  406 root         0 SWN  [jffs2_gcd_mtd3]
  465 root      1192 S    /sbin/ubusd
  478 root       908 S    /sbin/askfirst /bin/ash --login
  741 root         0 SW<  [cfg80211]
 1007 root      1240 S    /sbin/logd -S 64
 1078 root      1720 S    /sbin/netifd
 1117 root      1412 S    /usr/sbin/odhcpd
 1151 root      1104 S    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300
 1868 root      1208 S    udhcpc -p /var/run/udhcpc-eth0.3.pid -s /lib/netifd/dhcp.script -f -t 0 -i eth0.3 -C -O 121
 1870 root      1208 S    udhcpc -p /var/run/udhcpc-eth0.2.pid -s /lib/netifd/dhcp.script -f -t 0 -i eth0.2 -C -O 121
 2290 root      2228 S    {dnsmasq} /sbin/ujail -n dnsmasq -u -l -r /dev/null -r /dev/urandom -r /etc/TZ -r /etc/dnsmasq.conf -r /etc/ethers -r /etc/group -r /etc/hosts -r /etc/passwd -w /tmp/dhcp.leases -r /tmp/dnsm
 2296 dnsmasq   1448 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg02411c -k -x /var/run/dnsmasq/dnsmasq.cfg02411c.pid
 2446 root      1172 S    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300
 2863 root      1780 S    /usr/lib/ipsec/starter --daemon charon
 2865 root      6296 S    /usr/lib/ipsec/charon --use-syslog
 2984 root      1212 S <  /usr/sbin/ntpd -n -N -S /usr/sbin/ntpd-hotplug -p 1.gr.pool.ntp.org -p 0.europe.pool.ntp.org -p 2.europe.pool.ntp.org
 3462 root      1212 S    -ash
 3710 root         0 SW   [kworker/u2:2]
 3731 root         0 SW   [kworker/0:2]
 3795 root      1660 S    /usr/sbin/wpa_supplicant -B -P /var/run/wpa_supplicant-wlan0-bak.pid -D nl80211 -i wlan0-bak -c /var/run/wpa_supplicant-wlan0-bak.conf -C /var/run/wpa_supplicant
 3813 root      1208 S    udhcpc -p /var/run/udhcpc-wlan0-bak.pid -s /lib/netifd/dhcp.script -f -t 0 -i wlan0-bak -C -O 121
 3818 root      1208 R    ps
root@OpenWrt:/tmp#


root@OpenWrt:~# ps
  PID USER       VSZ STAT COMMAND
    1 root      1552 S    /sbin/procd
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    5 root         0 SW<  [kworker/0:0H]
    7 root         0 SW<  [netns]
   34 root         0 SW<  [writeback]
   71 root         0 SW<  [crypto]
   73 root         0 SW<  [bioset]
   75 root         0 SW<  [kblockd]
  101 root         0 SW   [kworker/0:1]
  108 root         0 SW   [kswapd0]
  161 root         0 SW   [fsnotify_mark]
  170 root         0 SW   [spi0]
  187 root         0 SW<  [bioset]
  192 root         0 SW<  [bioset]
  197 root         0 SW<  [bioset]
  202 root         0 SW<  [bioset]
  207 root         0 SW<  [bioset]
  212 root         0 SW<  [bioset]
  307 root         0 SW<  [ipv6_addrconf]
  314 root         0 SW<  [deferwq]
  316 root         0 SW<  [kworker/0:1H]
  406 root         0 SWN  [jffs2_gcd_mtd3]
  465 root      1200 S    /sbin/ubusd
  478 root       908 S    /sbin/askfirst /bin/ash --login
  741 root         0 SW<  [cfg80211]
 1007 root      1240 S    /sbin/logd -S 64
 1078 root      1720 S    /sbin/netifd
 1117 root      1412 S    /usr/sbin/odhcpd
 1151 root      1104 S    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300
 1868 root      1208 S    udhcpc -p /var/run/udhcpc-eth0.3.pid -s /lib/netifd/dhcp.script -f -t 0 -i eth0.3 -C -O 121
 1870 root      1208 S    udhcpc -p /var/run/udhcpc-eth0.2.pid -s /lib/netifd/dhcp.script -f -t 0 -i eth0.2 -C -O 121
 2863 root      1780 S    /usr/lib/ipsec/starter --daemon charon
 2865 root      6296 S    /usr/lib/ipsec/charon --use-syslog
 2984 root      1212 S <  /usr/sbin/ntpd -n -N -S /usr/sbin/ntpd-hotplug -p 1.gr.pool.ntp.org -p 0.europe.pool.ntp.org -p 2.europe.pool.ntp.org
 5899 root         0 SW   [kworker/u2:1]
 6440 root      1172 S    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300
 6441 root      1212 S    -ash
 6527 root         0 SW   [kworker/u2:0]
 6529 root         0 SW   [kworker/0:0]
 6593 root      1640 S    /usr/sbin/wpa_supplicant -B -P /var/run/wpa_supplicant-wlan0-bak.pid -D nl80211 -i wlan0-bak -c /var/run/wpa_supplicant-wlan0-bak.conf -C /var/run/wpa_supplicant
 6611 root      1208 S    udhcpc -p /var/run/udhcpc-wlan0-bak.pid -s /lib/netifd/dhcp.script -f -t 0 -i wlan0-bak -C -O 121
 6862 root      2228 S    /sbin/ujail -n  -u -l -r /dev/null -r /dev/urandom -r /etc/TZ -r /etc/dnsmasq.conf -r /etc/ethers -r /etc/group -r /etc/hosts -r /etc/passwd -w /tmp/dhcp.leases -r /tmp/dnsmasq.d -r /tmp/hos
 6863 dnsmasq   1448 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg02411c -k -x /var/run/dnsmasq/dnsmasq.cfg02411c.pid
 7132 root         0 SW   [kworker/u2:2]
 7134 root      1208 R    ps
root@OpenWrt:~# 
root@OpenWrt:~# uptime
 19:30:37 up 21:41,  load average: 0.00, 0.03, 0.07
root@OpenWrt:~#


Closed by  Adrian Schmutzler
19.06.2020 11:26
Reason for closing:  Won't fix
Additional comments about closing:  

LEDE-17.01 has reached EOL (end of life). This bug has been closed automatically. If the problem persists with a newer version, please file an appropriate new bug report for that version.

KPapad commented on 01.07.2017 00:21

Same system, a few hours (and jailed dnsmasq restarts) later:

14194 root 2228 S {e} /sbin/ujail -n e -u -l -r /dev/null -r /dev/urandom -r /etc/TZ -r /etc/dnsmasq.conf -r /etc/ethers -r /etc/group -r /etc/hosts -r /etc/passwd -w /tmp/dhcp.leases -r /tmp/dnsmasq.d -r /tm
14195 dnsmasq 1448 S /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg02411c -k -x /var/run/dnsmasq/dnsmasq.cfg02411c.pid

root@OpenWrt:~# ps
  PID USER       VSZ STAT COMMAND
    1 root      1552 S    /sbin/procd
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    5 root         0 SW<  [kworker/0:0H]
    7 root         0 SW<  [netns]
   34 root         0 SW<  [writeback]
   71 root         0 SW<  [crypto]
   73 root         0 SW<  [bioset]
   75 root         0 SW<  [kblockd]
  108 root         0 SW   [kswapd0]
  161 root         0 SW   [fsnotify_mark]
  170 root         0 SW   [spi0]
  187 root         0 SW<  [bioset]
  192 root         0 SW<  [bioset]
  197 root         0 SW<  [bioset]
  202 root         0 SW<  [bioset]
  207 root         0 SW<  [bioset]
  212 root         0 SW<  [bioset]
  307 root         0 SW<  [ipv6_addrconf]
  314 root         0 SW<  [deferwq]
  316 root         0 SW<  [kworker/0:1H]
  406 root         0 SWN  [jffs2_gcd_mtd3]
  465 root      1200 S    /sbin/ubusd
  478 root       908 S    /sbin/askfirst /bin/ash --login
  741 root         0 SW<  [cfg80211]
 1007 root      1272 S    /sbin/logd -S 64
 1078 root      1720 S    /sbin/netifd
 1117 root      1412 S    /usr/sbin/odhcpd
 1151 root      1104 S    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300
 1868 root      1208 S    udhcpc -p /var/run/udhcpc-eth0.3.pid -s /lib/netifd/dhcp.script -f -t 0 -i eth0.3 -C -O 121
 1870 root      1208 S    udhcpc -p /var/run/udhcpc-eth0.2.pid -s /lib/netifd/dhcp.script -f -t 0 -i eth0.2 -C -O 121
 2863 root      1780 S    /usr/lib/ipsec/starter --daemon charon
 2865 root      6296 S    /usr/lib/ipsec/charon --use-syslog
 2984 root      1212 S <  /usr/sbin/ntpd -n -N -S /usr/sbin/ntpd-hotplug -p 1.gr.pool.ntp.org -p 0.europe.pool.ntp.org -p 2.europe.pool.ntp.org
 6440 root      1176 S    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300
 6441 root      1212 S    -ash
 6593 root      1668 S    /usr/sbin/wpa_supplicant -B -P /var/run/wpa_supplicant-wlan0-bak.pid -D nl80211 -i wlan0-bak -c /var/run/wpa_supplicant-wlan0-bak.conf -C /var/run/wpa_supplicant
 7979 root         0 SW   [kworker/0:1]
12795 root         0 SW   [kworker/0:0]
13755 root      1208 S    udhcpc -p /var/run/udhcpc-wlan0-bak.pid -s /lib/netifd/dhcp.script -f -t 0 -i wlan0-bak -C -O 121
14194 root      2228 S    {e} /sbin/ujail -n e -u -l -r /dev/null -r /dev/urandom -r /etc/TZ -r /etc/dnsmasq.conf -r /etc/ethers -r /etc/group -r /etc/hosts -r /etc/passwd -w /tmp/dhcp.leases -r /tmp/dnsmasq.d -r /tm
14195 dnsmasq   1448 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg02411c -k -x /var/run/dnsmasq/dnsmasq.cfg02411c.pid
14487 root         0 SW   [kworker/u2:2]
14502 root         0 SW   [kworker/u2:1]
14529 root         0 SW   [kworker/u2:0]
14530 root      1208 R    ps
root@OpenWrt:~# 
KPapad commented on 18.04.2018 18:45

Problem remains, please check PID 8631:

root@OpenWrt:~# cat /etc/openwrt_*
DISTRIB_ID='LEDE'
DISTRIB_RELEASE='17.01-SNAPSHOT'
DISTRIB_REVISION='r3847-dfe620cb93'
DISTRIB_CODENAME='reboot'
DISTRIB_TARGET='ar71xx/generic'
DISTRIB_ARCH='mips_24kc'
DISTRIB_DESCRIPTION='LEDE Reboot 17.01-SNAPSHOT r3847-dfe620cb93'
DISTRIB_TAINTS=''
r3847-dfe620cb93
root@OpenWrt:~# uname -a
Linux OpenWrt 4.4.116 #0 Fri Mar 2 15:36:53 2018 mips GNU/Linux
root@OpenWrt:~# ps
  PID USER       VSZ STAT COMMAND
    1 root      1552 S    /sbin/procd
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    5 root         0 SW<  [kworker/0:0H]
    7 root         0 SW<  [netns]
   34 root         0 SW<  [writeback]
   71 root         0 SW<  [crypto]
   73 root         0 SW<  [bioset]
   75 root         0 SW<  [kblockd]
  108 root         0 SW   [kswapd0]
  163 root         0 SW   [fsnotify_mark]
  172 root         0 SW   [spi0]
  189 root         0 SW<  [bioset]
  194 root         0 SW<  [bioset]
  199 root         0 SW<  [bioset]
  204 root         0 SW<  [bioset]
  209 root         0 SW<  [bioset]
  214 root         0 SW<  [bioset]
  308 root         0 SW<  [ipv6_addrconf]
  315 root         0 SW<  [deferwq]
  317 root         0 SW<  [kworker/0:1H]
  407 root         0 SWN  [jffs2_gcd_mtd3]
  465 root      1200 S    /sbin/ubusd
  478 root       908 S    /sbin/askfirst /bin/ash --login
  741 root         0 SW<  [cfg80211]
  908 root      1284 S    /sbin/logd -S 64
 2098 root      1720 S    /sbin/netifd
 2141 root      1412 S    /usr/sbin/odhcpd
 2180 root      1104 S    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300 -T 3
 2882 root      1208 S    udhcpc -p /var/run/udhcpc-eth0.3.pid -s /lib/netifd/dhcp.script -f -t 0 -i eth0.3 -C -O 121
 2884 root      1208 S    udhcpc -p /var/run/udhcpc-eth0.2.pid -s /lib/netifd/dhcp.script -f -t 0 -i eth0.2 -C -O 121
 3880 root      1796 S    /usr/lib/ipsec/starter --daemon charon
 3882 root      6280 S    /usr/lib/ipsec/charon --use-syslog
 4081 root      1212 S <  /usr/sbin/ntpd -n -N -S /usr/sbin/ntpd-hotplug -p 1.gr.pool.ntp.org -p 0.europe.pool.ntp.org -p 2.europe.pool.ntp.org
 8277 root         0 SW   [kworker/u2:2]
 8281 root         0 SW   [kworker/u2:0]
 8303 root         0 SW   [kworker/0:1]
 8631 root      2228 S    {w�
                             U} /sbin/ujail -n w� U -u -l -r /dev/null -r /dev/urandom -r /etc/TZ -r /etc/dnsmasq.conf -r /etc/ethers -r /etc/group -r /etc/hosts -r /etc/passwd -w /tmp/dhcp.leases -r /tmp/
 8632 dnsmasq   1460 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg02411c -k -x /var/run/dnsmasq/dnsmasq.cfg02411c.pid
 9760 root      1172 S    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300 -T 3
 9761 root      1212 S    -ash
 9770 root      1208 R    ps
30778 root         0 SW   [kworker/0:0]
root@OpenWrt:~#

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing