[Bug 5444] busybox segfaults with 2-component linux version string

bugzilla at busybox.net bugzilla at busybox.net
Fri Sep 21 04:22:42 UTC 2012


https://bugs.busybox.net/show_bug.cgi?id=5444

--- Comment #4 from Michael Tokarev <mjt+busybox at tls.msk.ru> 2012-09-21 04:22:42 UTC ---
Actually I don't think fixing this is necessary.  Well... It depends.

This whole function - get_linux_version_code() - is called for 2 reasons.

First is several places in modutils/, to support pre-2.4 kernel module loading.

And second is in nfs mount, to check that the kernel is more recent than
2.2.18(!), to use different nfs mount version.

I'm not sure how relevant both of these today.  For nfs mount, I don't think it
counts at all nowadays.  For modutils it is questionable but might be useful
still.  For these, maybe smaller code might be used, which just strcmp's
uname.release with "2.4".

In debian I just patched out the call to get_linux_version_code() from nfs
mount -- see
http://anonscm.debian.org/gitweb/?p=d-i/busybox.git;a=commit;h=275f8c5dfc56b6d90846a249fc77a75731f01a3e
.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list