lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 2 Mar 2016 14:24:22 -0700
From:	Ross Zwisler <zwisler@...il.com>
To:	Sudip Mukherjee <sudipm.mukherjee@...il.com>,
	Ross Zwisler <ross.zwisler@...ux.intel.com>
Cc:	kernel test robot <fengguang.wu@...el.com>, LKP <lkp@...org>,
	LKML <linux-kernel@...r.kernel.org>,
	Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
	wfg@...ux.intel.com
Subject: Re: [ppdev] e7223f1860: kernel BUG at drivers/base/driver.c:153!

On Mon, Feb 15, 2016 at 4:50 AM, Sudip Mukherjee
<sudipm.mukherjee@...il.com> wrote:
> On Mon, Feb 15, 2016 at 04:20:45PM +0800, kernel test robot wrote:
>> Greetings,
>>
>> 0day kernel testing robot got the below dmesg and the first bad commit is
>>
>> https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git char-misc-testing
>>
>> commit e7223f18603374d235d8bb0398532323e5f318b9
>> Author:     Sudip Mukherjee <sudipm.mukherjee@...il.com>
>> AuthorDate: Fri Feb 12 18:33:45 2016 +0530
>> Commit:     Greg Kroah-Hartman <gregkh@...uxfoundation.org>
>> CommitDate: Sun Feb 14 17:43:50 2016 -0800
>>
>>     ppdev: use new parport device model
>>
>>     Modify ppdev driver to use the new parallel port device model.
>>
>>     Signed-off-by: Sudip Mukherjee <sudip@...torindia.org>
>>     Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
>
> Can you please send the .config file so that i can reproduce in my local
> system and test?
>
> Ying Huang also sent a similar report after posting the patches. I tried
> his .config and your scripts to reproduce this but was not able to.
>
> Anyway, this error is not related to this patch, this patch has just
> uncovered this error in parport. And will only happen if ppdev tries to
> register with parport before parport bus is registered.
> Can you please check if the below patch solves the problem:
>
>
> diff --git a/drivers/parport/share.c b/drivers/parport/share.c
> index 3308427..176b2b6 100644
> --- a/drivers/parport/share.c
> +++ b/drivers/parport/share.c
> @@ -273,6 +273,9 @@ int __parport_register_driver(struct parport_driver *drv, struct module *owner,
>                 /* using device model */
>                 int ret;
>
> +               if (!parport_bus_type.p)
> +                       return -EAGAIN;
> +
>                 /* initialize common driver fields */
>                 drv->driver.name = drv->name;
>                 drv->driver.bus = &parport_bus_type;
>
>
> --
> regards
> sudip

I've been hitting this error on my KVM system as well, and bisected to
the same commit.

The patch you have here solved the issue for me.

I'm happy to provide kernel config, etc. - let me know what would be helpful.

- Ross

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ