-
Notifications
You must be signed in to change notification settings - Fork 22
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
(#2036853) Fix unit table overflow by mounts, resulting in "Argument list too long" when trying to start a unit #244
(#2036853) Fix unit table overflow by mounts, resulting in "Argument list too long" when trying to start a unit #244
Conversation
a546223
to
db8d26b
Compare
Removed, as it uses functionality ( |
This pull request introduces 1 alert when merging db8d26b into de7125d - view on LGTM.com new alerts:
|
db8d26b
to
82a743b
Compare
@msekletar @dtardon PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, Could you please amend commit message with line:
Resolves: #2028153
82a743b
to
575904e
Compare
Done, thanks for your review! |
If we can't process a specific line in /proc/self/mountinfo we should log about it (which we do), but this should not affect other lines, nor further processing of mount units. Let's keep these failures local. Fixes: #10874 Cherry picked from commit ba0d56f. Trivial conflict in src/core/mount.c, function mount_load_proc_self_mountinfo, due to local commit ca634ba. Also, due to the same commit, int k is no longer used and is thus removed. Resolves: #2036853 Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kolyshkin I'm sorry, for my confusion, we need a bug for RHEL8 to properly track these changes, I cloned the original bug and updated Resolves
in commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This is a backport of systemd/systemd#10980 (commit systemd/systemd@ba0d56f only) to address issues like systemd/systemd#10874. The backport was almost clean, except for
= 0
fromint r
);int k
is no longer used, so I had to remove it.This also backports systemd/systemd#15222 as it helps a lot to figure out what is going on. This is not required and can be removed.This should fix https://bugzilla.redhat.com/show_bug.cgi?id=2028153 (a non-parse-able mount in mountinfo resulted in piling up inactive mount units, up to
MANAGER_MAX_NAMES
, after which it becomes impossible to start any units).Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2036853