Re: partition sysfs OOPS in current GIT

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <gregkh@...>
Cc: <linux-kernel@...>, <kay.sievers@...>
Date: Thursday, February 7, 2008 - 12:06 am

Greg, I'm pretty sure I know what's happening.

For whatever reason we're invoking dev_attr_show() on attribute_group
objects.

The reason it probably only crashes on sparc64 is because perhaps at
that dev_attr->show offset on x86 there are zero bytes there instead
of a pointer, so the NULL check here in dev_attr_show() masks the bug.

The problem with all of this "container_of() this", "container_of()
that" is that we lose real type checking.  So unless we add magic
cookies to verify or other hacks, functions never really know if the
container they are being passed really is a subset object of the type
they expect.

Can you read the code instead of asking more information from me to
try and figure out why the attribute showing paths might be
misconfigured for these block device objects after the changeset in
question?  I can do this, but you're more likely to find the problem
quickly than I am.

I redid the bisect to make sure it absolutely was that specific
changeset, and it is.

Thanks.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
partition sysfs OOPS in current GIT, David Miller, (Wed Feb 6, 7:26 pm)
Oops figures, Jan Engelhardt, (Wed Feb 6, 7:42 pm)
Re: Oops figures, David Miller, (Wed Feb 6, 7:47 pm)
Re: partition sysfs OOPS in current GIT, Greg KH, (Wed Feb 6, 7:31 pm)
Re: partition sysfs OOPS in current GIT, Andrew Morton, (Wed Feb 6, 7:57 pm)
Re: partition sysfs OOPS in current GIT, Greg KH, (Wed Feb 6, 8:07 pm)
Re: partition sysfs OOPS in current GIT, David Miller, (Wed Feb 6, 7:37 pm)
Re: partition sysfs OOPS in current GIT, Greg KH, (Wed Feb 6, 7:59 pm)
Re: partition sysfs OOPS in current GIT, David Miller, (Wed Feb 6, 8:02 pm)
Re: partition sysfs OOPS in current GIT, Greg KH, (Wed Feb 6, 8:09 pm)
Re: partition sysfs OOPS in current GIT, David Miller, (Thu Feb 7, 12:06 am)
Re: partition sysfs OOPS in current GIT, Greg KH, (Thu Feb 7, 1:47 am)
Re: partition sysfs OOPS in current GIT, David Miller, (Thu Feb 7, 2:05 am)
Re: partition sysfs OOPS in current GIT, Greg KH, (Thu Feb 7, 2:44 am)
Re: partition sysfs OOPS in current GIT, David Miller, (Thu Feb 7, 2:42 am)
Re: partition sysfs OOPS in current GIT, Greg KH, (Thu Feb 7, 2:42 am)
Re: partition sysfs OOPS in current GIT, David Miller, (Thu Feb 7, 2:39 am)
Re: partition sysfs OOPS in current GIT, Greg KH, (Thu Feb 7, 2:58 am)
Re: partition sysfs OOPS in current GIT, Greg KH, (Thu Feb 7, 3:00 am)
Re: partition sysfs OOPS in current GIT, David Miller, (Thu Feb 7, 3:11 am)
Re: partition sysfs OOPS in current GIT, Greg KH, (Thu Feb 7, 3:18 am)
Re: partition sysfs OOPS in current GIT, David Miller, (Thu Feb 7, 3:33 am)
Re: partition sysfs OOPS in current GIT, Greg KH, (Thu Feb 7, 3:43 am)
Re: partition sysfs OOPS in current GIT, Greg KH, (Thu Feb 7, 3:20 am)
Re: partition sysfs OOPS in current GIT, David Miller, (Thu Feb 7, 3:24 am)
Re: partition sysfs OOPS in current GIT, Greg KH, (Thu Feb 7, 3:42 am)
Re: partition sysfs OOPS in current GIT, Greg KH, (Thu Feb 7, 2:38 am)
Re: partition sysfs OOPS in current GIT, David Miller, (Thu Feb 7, 2:38 am)
Re: partition sysfs OOPS in current GIT, David Miller, (Wed Feb 6, 8:29 pm)
Re: partition sysfs OOPS in current GIT, David Miller, (Wed Feb 6, 7:48 pm)