mdev race conditions

Mike Frysinger vapier at gentoo.org
Tue Jun 3 16:43:42 UTC 2008


On Tuesday 03 June 2008, Denys Vlasenko wrote:
> On Tuesday 03 June 2008 17:17, Mike Frysinger wrote:
> > On Tuesday 03 June 2008, Bernard Blackham wrote:
> > > When I switched from udev+udevd to mdev, booting was much faster and it
> > > shaved a decent amount from the total image size. However, I've
> > > recently noticed device nodes sometimes disappearing on boot.
> >
> > this is a known corner case and will always be there.  it's why the
> > kernel guys have deprecated the hotplug exec mechanism in favor of
> > netlink sockets. the only real solution is a daemon + netlink.  neither
> > of which are desirable in mdev.  everything else is a workaround.  feel
> > free to contribute a mdevd ;).  that plus init/other daemons provided by
> > busybox are good examples of how PIE can be a very very good thing.
>
> Can you chime me in how to build PIE / how it is different from normal
> executable? I guess there are some restrictions and things to do (e.g. have
> to pass -fPIE to gcc)? --

afaik (solar can correct me), just compile all objects with -fPIE and link 
with -pie

a quick test is (1) it still executes ;) and (2) running `file` on the ELF 
should declare it as a shared object rather than executable
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.busybox.net/pipermail/busybox/attachments/20080603/6a3b8611/attachment-0002.pgp 


More information about the busybox mailing list