Bug 188160

Summary: off-by-one in init
Product: [Fedora] Fedora Reporter: Kirill Kolyshkin <kolyshkin>
Component: sysvinitAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.86-4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-05-10 16:06:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
fix for off-by-one in setting command title for init none

Description Kirill Kolyshkin 2006-04-06 15:09:49 UTC
SysVinit version 2.86 have a problem in its code that leads to 
incorrectly displaying init name in process list (and in 
/proc/1/cmdline) -- it is shown as 'ini'. This was observed inside an 
OpenVZ's VPS. See http://bugzilla.openvz.org/60 for more details.

Patch fixing this is attached. Note that 2.85 does not have such bug.

Similar bugs found, filed and fixed in Debian and Gentoo. I have also sent it
maintstream to sysvinit maintainter(s) but never got a response back.

Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=336172
Gentoo: http://bugs.gentoo.org/show_bug.cgi?id=110420

Comment 1 Kirill Kolyshkin 2006-04-06 15:09:49 UTC
Created attachment 127410 [details]
fix for off-by-one in setting command title for init

Comment 2 Bill Nottingham 2006-05-10 15:54:02 UTC
Hm, it seems quite possible that this could happen (especailly compared to the
2.85 code), however, I'm not actually seeing this in practice on any machine I
have access to. Certainly, your 'ini' example doesn't occur.

I'm curious how this could trigger only in OpenVZ. Do you invoke init
differently there?


Comment 3 Bill Nottingham 2006-05-10 16:06:28 UTC
Added in 2.86-4.

Comment 4 Kirill Kolyshkin 2006-05-10 16:14:49 UTC
Probably the thing is in ordinary Linux you usually run kernel with a lot of
parameters, and the ones which kernel itself can not recognize are being passed
to init. In OpenVZ, we just execute /sbin/init in a newly created virtual
environment without passing any arguments to it.

Comment 5 David Lawrence 2007-06-22 02:18:29 UTC
Package name is now sysvinit in latest Fedora.