Bug 142713 - udevstart segfaults with certain IDE chipsets
Summary: udevstart segfaults with certain IDE chipsets
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: udev
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-12-13 09:35 UTC by Enrico Scholz
Modified: 2007-11-30 22:10 UTC (History)
1 user (show)

Fixed In Version: udev-039-10.FC3.6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-12-16 16:59:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Enrico Scholz 2004-12-13 09:35:19 UTC
Description of problem:

/sbin/udevstart segfaults on an ATIIXP chipset which is not supported
well by the kernel yet. There, /proc/ide/hda/media can not be read
(EIO error) and udevstart seems to give a null-pointer to an SELinux
function checking the media-type.

I do not have the logs available ATM, but can them provide when needed.


Version-Release number of selected component (if applicable):

udev-039-10.FC3.5


How reproducible:

100%

Comment 1 Enrico Scholz 2004-12-14 10:11:10 UTC
responsible code-sniplets are:


---- selinux.h ----

| static inline int selinux_get_media(char *path, int mode, char **media)
| ...
|         *media = NULL;
|         ...
|                 if (fgets(mediabuf,sizeof(mediabuf), fp)) {            /// fails with EIO
|                 ...
|                 }
|                 return 0                                               /// *media==NULL still holds




| static inline void selinux_setfilecon(char *file, unsigned int mode)
| ...
|                 int ret=selinux_get_media(file, mode, &media);
|                 if (ret == 0) {
|                         ret = matchmediacon(media, &scontext);        /// 'media' is NULL at this point


Comment 2 Harald Hoyer 2004-12-14 13:02:26 UTC
already have that patch ready :)

Comment 3 Harald Hoyer 2004-12-14 15:42:49 UTC
does this fix the problem?
ftp://people.redhat.com/harald/udev-039-10.FC3.6.i386.rpm

Comment 4 Cary Howell 2004-12-14 17:16:27 UTC
This patch (udev-039-10.FC3.6.i386.rpm) fixed the problem for me.  I
was experiencing the same issues Enrico had on an Intel ICH6
controller.  The actual model number is Intel 8201FR SATA AHCI Controller.

Comment 5 Enrico Scholz 2004-12-14 17:32:51 UTC
I will not see the machine before the weekend and can not provide
feedback now. So when you have a good feeling about the patch, please
push it out...


Note You need to log in before you can comment on or make changes to this bug.