Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

likewise become unresponsive if PID number is > 65535 #26

Open
ufoonline opened this issue Apr 6, 2023 · 0 comments
Open

likewise become unresponsive if PID number is > 65535 #26

ufoonline opened this issue Apr 6, 2023 · 0 comments
Labels

Comments

@ufoonline
Copy link

Describe the bug

Hello,

Envirorment: VMware Photon OS 4.0
Likewise package: likewise-open-6.2.11.13-9.ph4.x86_64

Default PhotonOS 4.0 pid_max is 4194304, if the pid become higher than 65535 and you need to restart likewise it become unresponsive and then is not able to stop lsass, rdr and other process (see Additional context).

For recover it:
1- Set /proc/sys/kernel/pid_max to 65535
2- Kill all likewise process
3- start lwsmd

Reproduction steps

  1. Use a script like the following for increase the current PID number to >65535:
    while true; do for i in {1..10};do echo $i >> /dev/null& done& done
  2. Restart lwsmd
  3. Test it: eg. id DOMAIN\username (it will not work)
  4. Try to restart lwsmd: it will shown the errors as in Additional context

Expected behavior

lwmsd restart as usual and authentication work normally.

Additional context

Working correctly until:
● lwsmd.service - Likewise Service Control Manager Service
Loaded: loaded (/usr/lib/systemd/system/lwsmd.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2023-04-06 15:00:45 UTC; 920ms ago
Process: 65242 ExecStart=/opt/likewise/sbin/lwsmd --start-as-daemon --syslog (code=exited, status=0/SUCCESS)
Process: 65260 ExecStartPost=/opt/likewise/bin/lwsm autostart (code=exited, status=0/SUCCESS)
Main PID: 65244 (lwsmd)
Tasks: 107 (limit: 9546)
Memory: 24.0M
CGroup: /system.slice/lwsmd.service
├─65244 /opt/likewise/sbin/lwsmd --start-as-daemon --syslog
├─65252 /opt/likewise/sbin/lwregd --syslog
├─65268 /opt/likewise/sbin/eventlogd --syslog
├─65289 /opt/likewise/sbin/netlogond --syslog
├─65296 /opt/likewise/sbin/lwiod --syslog
├─65304 /opt/likewise/sbin/lsassd --syslog
├─65335 /opt/likewise/sbin/dcerpcd -f
└─65348 /usr/sbin/vmafdd -s

No longer works (restart and authentication):
● lwsmd.service - Likewise Service Control Manager Service
Loaded: loaded (/usr/lib/systemd/system/lwsmd.service; enabled; vendor preset: enabled)
Active: deactivating (stop-sigterm) since Thu 2023-04-06 15:01:02 UTC; 36s ago
Process: 65533 ExecStart=/opt/likewise/sbin/lwsmd --start-as-daemon --syslog (code=exited, status=0/SUCCESS)
Process: 65551 ExecStartPost=/opt/likewise/bin/lwsm autostart (code=exited, status=0/SUCCESS)
Process: 382 ExecStop=/opt/likewise/bin/lwsm shutdown (code=exited, status=0/SUCCESS)
Main PID: 65535 (lwsmd)
Tasks: 87 (limit: 9546)
Memory: 25.2M
CGroup: /system.slice/lwsmd.service
├─ 331 /opt/likewise/sbin/dcerpcd -f
├─65535 /opt/likewise/sbin/lwsmd --start-as-daemon --syslog
├─65543 /opt/likewise/sbin/lwregd --syslog
├─65559 /opt/likewise/sbin/eventlogd --syslog
├─65581 /opt/likewise/sbin/netlogond --syslog
├─65588 /opt/likewise/sbin/lwiod --syslog
└─65596 /opt/likewise/sbin/lsassd --syslog

Apr 06 15:01:02 photonos lwsmd[65535]: Shutting down running services
Apr 06 15:01:02 photonos lwsmd[65535]: Stopping service: vmafd
Apr 06 15:01:02 photonos lwsmd[65535]: Stopping service: lsass
Apr 06 15:01:55 photonos lwsmd[65535]: Stopping service: rdr
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: State 'stop-sigterm' timed out. Killing.
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Killing process 65535 (lwsmd) with signal SIGKILL.
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Main process exited, code=killed, status=9/KILL
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Failed with result 'timeout'.
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Unit process 331 (dcerpcd) remains running after unit stopped.
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Unit process 65543 (lwregd) remains running after unit stopped.
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Unit process 65559 (eventlogd) remains running after unit stopped.
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Unit process 65581 (netlogond) remains running after unit stopped.
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Unit process 65588 (lwiod) remains running after unit stopped.
Apr 06 15:02:32 photonos systemd[1]: Stopped Likewise Service Control Manager Service.
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Found left-over process 331 (dcerpcd) in control group while starting unit>
Apr 06 15:02:32 photonos systemd[1]: This usually indicates unclean termination of a previous run, or service implementation d>
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Found left-over process 65543 (lwregd) in control group while starting uni>
Apr 06 15:02:32 photonos systemd[1]: This usually indicates unclean termination of a previous run, or service implementation d>
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Found left-over process 65559 (eventlogd) in control group while starting >
Apr 06 15:02:32 photonos systemd[1]: This usually indicates unclean termination of a previous run, or service implementation d>
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Found left-over process 65581 (netlogond) in control group while starting >
Apr 06 15:02:32 photonos systemd[1]: This usually indicates unclean termination of a previous run, or service implementation d>
Apr 06 15:02:32 photonos systemd[1]: lwsmd.service: Found left-over process 65588 (lwiod) in control group while starting unit>
Apr 06 15:02:32 photonos systemd[1]: This usually indicates unclean termination of a previous run, or service implementation d>

@ufoonline ufoonline added the bug label Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant