Re: OOps in 2.6.0-test4-mm3-1

From: Mike Fedyk
Date: Sat Aug 30 2003 - 18:22:04 EST


On Fri, Aug 29, 2003 at 08:09:26PM -0700, Andrew Morton wrote:
> Mike Fedyk <mfedyk@xxxxxxxxxxxxx> wrote:
> >
> > It's vanilla mm3-1 with this one patch added from Neil Brown. I don't think
> > it has anything to do with it (it looks like a driver issue to me). But it
> > can't hurt to mention it.

> Some drivers such as aha1542 and aic7xxx_old will call scsi_register() and
> then, if some succeeding operations fails they will call scsi_unregister(),
> without an intervening scsi_set_host().
>
> This causes an oops in scsi_put_device(), because kobj->parent is NULL.
>
> In other words, scsi_register() immediately followed by scsi_unregister()
> is guaranteed to oops.
>
> The patch makes scsi_host_dev_release() more robust against this usage
> pattern.

Ok, I'll give that patch a try. Though, is there any reason why
2.6.0-test2-mm1 doesn't oops too? (that was the previous kernel on that
machine)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/