-
Notifications
You must be signed in to change notification settings - Fork 100
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
Try to detect process being forked during PAM transaction #352
Conversation
Hi @ebiggers, I gave this patch a try. I applied it to the Ubuntu package sources, it applied cleanly, and I rebuilt the packages. From the same bug-reproducing setup as before, here is the relevant portion of
It is successfully avoiding the deadlock, and allowing the remainder of the login process to proceed, which then breaks horribly (as expected) due to lack of write access to the homedir. However, the specific message about forking is not being shown. It appears to be erroring out before getting to that point. |
23fda58
to
2dbaf26
Compare
That's weird that writing to the syslog didn't work. I've updated the change to use a different method of writing to the syslog; can you try it? Thanks! |
2dbaf26
to
8567d8a
Compare
Sorry, the version I pushed accidentally had a conditional backwards (which I was trying for testing). Fixed now. |
Heh, I was about to post that patch 2dbaf26 deadlocks for me :-) With patch 8567d8a, I'm happy to report that deadlock is averted, and the relevant message is shown:
Without the
I don't know if you'll want to throw a URL in there for a more long-form explanation, in case users react to this with, "So when are you gonna fix that?" |
8567d8a
to
2659cb0
Compare
2659cb0
to
ed0be69
Compare
Update #350