Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108291 - gentoo-sources /proc/cmdline limited to 256 chars
Summary: gentoo-sources /proc/cmdline limited to 256 chars
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-06 09:08 UTC by georg.lippold
Modified: 2005-10-06 13:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Kernel patch suitable for genkernel (5000_cmdline.patch,632 bytes, patch)
2005-10-06 09:10 UTC, georg.lippold
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description georg.lippold 2005-10-06 09:08:38 UTC
When booting, the content of /proc/cmdline is truncated to 256 chars. Although
this is the vanilla kernel default, for LiveCD's a longer /proc/cmdline would be
helpful.

Reproducible: Always
Steps to Reproduce:
1. boot via syslinux >=3.09 and enter kernel boot options that take up more than
256 chars
2. after booting, execute 'cat /proc/cmdline | wc -c' and see that only 256
chars are left over

Actual Results:  
only 256 chars are transported via /proc/cmdline

Expected Results:  
It would be nice if more characters could be used. A patch for 512 chars is here:

http://syslinux.zytor.com/archives/2005-June/005313.html

The fix could easily included in genpatches. I will attach a patch for it.
Comment 1 georg.lippold 2005-10-06 09:10:29 UTC
Created attachment 69999 [details, diff]
Kernel patch suitable for genkernel

Kernel patch for /proc/cmdline with size limit of 512 bytes. Found at
http://syslinux.zytor.com/archives/2005-June/005313.html
Comment 2 John Mylchreest (RETIRED) gentoo-dev 2005-10-06 11:11:04 UTC
Personally, I would prefer this to be resubmitted to LKML and applied to mainline.
This bug has come up a few times in the past, and although there is no
particular reason to not allocate more space, I would prefer to not have it as a
burden.

Thoughts?
Comment 3 Daniel Drake (RETIRED) gentoo-dev 2005-10-06 12:07:12 UTC
Please get this accepted upstream first
Comment 4 georg.lippold 2005-10-06 12:51:27 UTC
Do you submit it on LKML or do I have to?
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2005-10-06 13:11:28 UTC
Please do so yourself. Make sure you read
/usr/src/linux/Documentation/SubmittingPatches first :)