The /proc/pid/cmdline file length is now unlimited

What version of SLES and SPx level required for the following fix, in summary:

a. SLES11 SP3 – kernel version, 3.0.x
b. SLES11 SP2 - kernel version, 3.0.x

c. SLES12 SP1- kernel version, 3.1.x
d. SLES12 SP2- kernel version, 3.1.x
e. SLES12 SP3- kernel version, 3.1.x

The /proc/pid/cmdline file length limit for the ps command was previously hard-coded in the kernel to 4096 characters. This update makes sure the length of /proc/pid/cmdline is unlimited, which is especially useful for listing processes with long command line arguments.

My customer needs to understand what os version to upgrade to for this fix to be available. Thanks!

Hi rollaway80,

please note that this is a peer2peer forum… your question would be better addressed to SUSE engineering, so opening a service request might get you a more reliable question, and probably faster than waiting here for some fellow user in the know…

Regards,
J

On 24/10/17 16:34, rollaway80 wrote:
[color=blue]

What version of SLES and SPx level required for the following fix, in
summary:

a. SLES11 SP3 � kernel version, 3.0.x[/color]

SLES11 SP3 shipped with kernel 3.0.76.
[color=blue]

b. SLES11 SP2 - kernel version, 3.0.x[/color]

SLES11 SP2 shipped with kernel 3.0.13.

Since you’re listing SLES11 you missed SLES11 SP4 which is the latest
(and last) release of SLES11 - SLES11 SP4 shipped with kernel 3.0.101.
[color=blue]

c. SLES12 SP1- kernel version, 3.1.x[/color]

SLES12 SP1 shipped with kernel 3.12.49.
[color=blue]

d. SLES12 SP2- kernel version, 3.1.x[/color]

SLES12 SP2 shipped with kernel 4.4.21.
[color=blue]

e. SLES12 SP3- kernel version, 3.1.x[/color]

SLES12 SP3 shipped with kernel 4.4.73.

Note all have received later minor versions of the kernel through
patches. Note also that for stability reasons SUSE backport security
fixes from a later version to the current.
[color=blue]

The /proc/pid/cmdline file length limit for the ps command was
previously hard-coded in the kernel to 4096 characters. This update
makes sure the length of /proc/pid/cmdline is unlimited, which is
especially useful for listing processes with long command line
arguments.[/color]

The above wording exactly matches that in the Release Notes for Red Hat
Enterprise Linux (RHEL) 6.8[1] though that also includes a Red Hat
Bugzilla ID which I am not able to access (Red Hat are less open than SUSE).
[color=blue]

My customer needs to understand what os version to upgrade to for this
fix to be available. Thanks![/color]

RHEL 6.8 shipped with Linux kernel 2.6.32 and as you noted above all of
those releases of SUSE Linux Enterprise Server shipped with a later
kernel. Of course that doesn’t mean this wasn’t an issue with earlier
versions of Linux kernel 3.x but SUSE should be able to confirm as per
jmozden’s earlier reply.

HTH.

[1]
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/6.8_Release_Notes/new_features_kernel.html

Simon
SUSE Knowledge Partner


If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.