Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[hv] BUG: kernel freezes after [ 13.356381] PCI: CLS 0 bytes, default 64

119 views
Skip to first unread message

Fengguang Wu

unread,
Jun 4, 2013, 10:20:03 AM6/4/13
to
Greetings,

I got the below dmesg (kernel freezes at the end of it) and the first bad commit is

commit cf6a2eacbcb2593b5b91d0817915c4f0464bb534
Author: K. Y. Srinivasan <k...@microsoft.com>
Date: Thu Dec 1 09:59:34 2011 -0800

drivers: hv: Don't OOPS when you cannot init vmbus

The hv vmbus driver was causing an OOPS since it was trying to register drivers
on top of the bus even if initialization of the bus has failed for some
reason (such as the odd chance someone would run a hv enabled kernel in a
non-hv environment).

Signed-off-by: Sasha Levin <levins...@gmail.com>
Signed-off-by: K. Y. Srinivasan <k...@microsoft.com>
Cc: stable <sta...@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gre...@suse.de>

[ 13.356381] PCI: CLS 0 bytes, default 64

git bisect start v3.3 v3.2 --
git bisect bad 1c8106528aa6bf16b3f457de80df1cf7462a49a4 # 0 2013-06-04 13:51:39 Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu
git bisect good 770e1b035dcb6ec3f8ee69dda0815dd1e220a683 # 40 2013-06-04 14:05:43 Merge branch 'for-linus' of git://ftp.arm.linux.org.uk/pub/linux/arm/kernel/git-cur/linux-2.6-arm
git bisect bad 12e55508921865aefdd80fd17afe70c191afbd1b # 0 2013-06-04 14:06:17 Merge branch 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
git bisect bad 5983faf942f260023e547f3c5f38c1033c35cc9b # 0 2013-06-04 14:06:49 Merge branch 'tty-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
git bisect bad 1619ed8f60959829d070d8f39cd2f8ca0e7135ce # 0 2013-06-04 14:07:21 Merge git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-3.0-nmw
git bisect good c3aa077648e147783a7a53b409578234647db853 # 40 2013-06-04 14:23:56 reiserfs: Properly display mount options in /proc/mounts
git bisect bad 7affca3537d74365128e477b40c529d6f2fe86c8 # 0 2013-06-04 14:24:29 Merge branch 'driver-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
git bisect bad 15916a123e59b84d2fdfcccac84c99d1777f2a45 # 0 2013-06-04 14:25:02 ibm_rtl: convert sysdev_class to a regular subsystem
git bisect good 03e099fbb0fbd8aaef9316e74790d9819c57c8ff # 40 2013-06-04 14:48:55 debugfs: bugfix: include <linux/io.h> in file.c
git bisect bad bc7a2f3abc636d7cab84258a48e77b08fb5fd3d6 # 1 2013-06-04 17:56:35 MAINTAINERS: stable: Update address
git bisect good 11e3123d9fdbe0aab1adf9ab5a5b1b28aa91daa7 # 40 2013-06-04 18:08:03 uio: convert drivers/uio/* to use module_platform_driver()
git bisect bad cf6a2eacbcb2593b5b91d0817915c4f0464bb534 # 1 2013-06-04 21:17:37 drivers: hv: Don't OOPS when you cannot init vmbus
git bisect good d2554f50df9be3c53a13f7541a5f4d054bd56cc3 # 40 2013-06-04 21:40:40 firmware: google: fix gsmi.c build warning
git bisect good d2554f50df9be3c53a13f7541a5f4d054bd56cc3 # 120 2013-06-04 21:59:13 firmware: google: fix gsmi.c build warning
git bisect bad 69d5f27b21788f19c40cc8e30726ba07120693dc # 0 2013-06-04 21:59:52 Merge remote-tracking branch 'hid/for-3.11/upstream' into devel-hourly-2013060321
git bisect bad 634aca7ebdb0132ebfc0e8809cd3c9f61d136c6a # 0 2013-06-04 22:00:46 Add linux-next specific files for 20130604

Thanks,
Fengguang
dmesg-kvm-bens-7794-2013-06-03-21-30-43-3.10.0-rc4-00012-g69d5f27-397
69d5f27b21788f19c40cc8e30726ba07120693dc-bisect.log
.config-bisect

Greg KH

unread,
Jun 4, 2013, 7:00:02 PM6/4/13
to
On Tue, Jun 04, 2013 at 10:15:36PM +0800, Fengguang Wu wrote:
> Greetings,
>
> I got the below dmesg (kernel freezes at the end of it) and the first bad commit is
>
> commit cf6a2eacbcb2593b5b91d0817915c4f0464bb534
> Author: K. Y. Srinivasan <k...@microsoft.com>
> Date: Thu Dec 1 09:59:34 2011 -0800
>
> drivers: hv: Don't OOPS when you cannot init vmbus
>
> The hv vmbus driver was causing an OOPS since it was trying to register drivers
> on top of the bus even if initialization of the bus has failed for some
> reason (such as the odd chance someone would run a hv enabled kernel in a
> non-hv environment).
>
> Signed-off-by: Sasha Levin <levins...@gmail.com>
> Signed-off-by: K. Y. Srinivasan <k...@microsoft.com>
> Cc: stable <sta...@vger.kernel.org>
> Signed-off-by: Greg Kroah-Hartman <gre...@suse.de>
>
> [ 13.356381] PCI: CLS 0 bytes, default 64

Ick, not good. K.Y., any reason why I shouldn't just revert this?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majo...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

KY Srinivasan

unread,
Jun 4, 2013, 7:00:03 PM6/4/13
to
Greg,

I am looking into this.

Regards,

K. Y

KY Srinivasan

unread,
Jun 4, 2013, 7:40:02 PM6/4/13
to


> -----Original Message-----
> From: Greg KH [mailto:gr...@kroah.com]
> Sent: Tuesday, June 04, 2013 6:44 PM
> To: Fengguang Wu
> Cc: KY Srinivasan; de...@linuxdriverproject.org; Greg Kroah-Hartman; linux-
> ker...@vger.kernel.org
I have asked Wu for details. Examining the relevant VMBUS code, I cannot see
how this patch could be responsible for the freeze. For what it is worth looking at dmesg, it appears that
we are not running on a Hypervisor.

There was a bug in this patch and that was fixed a few days later:

commit 8f257a142fc3868d69de3f996b95d7bdbc509560
Author: K. Y. Srinivasan <k...@microsoft.com>
Date: Tue Dec 27 13:49:37 2011 -0800

Drivers:hv: Fix a bug in vmbus_driver_unregister()

The function vmbus_exists() was introduced recently to deal with cases where
the vmbus driver failed to initialize and yet other Hyper-V drivers attempted
to register with the vmbus bus driver. This patch introduced a bug where
vmbus_driver_unregister() would fail to unregister the driver. This patch
fixes the problem.

Signed-off-by: K. Y. Srinivasan <k...@microsoft.com>
Signed-off-by: Fuzhou Chen <fuzh...@microsoft.com>
Cc: Sasha Levin <levins...@gmail.com>
Cc: stable <sta...@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gre...@suse.de>

Regards,

K. Y

Fengguang Wu

unread,
Jun 4, 2013, 11:20:02 PM6/4/13
to
Oops sorry - it's found to be a wrong bisect: the parent commit will panic
and reboot (dmesg 1). The "first bad" commit fixes this which reveals the
one kernel freeze bug we are talking about (dmesg 2 and 3).

I'll teach the bisect script to double check for any bad dmesgs in the parent
commit, too. Sorry for the noises!

dmesg 1)

[ 46.712057] Initializing Realtek PCIE storage driver...
[ 46.718895] hv_vmbus: registering driver storvsc
[ 46.721199] ------------[ cut here ]------------
[ 46.725102] kernel BUG at /c/wfg/linux-mmotm/drivers/base/driver.c:227!
[ 46.725102] invalid opcode: 0000 [#1] SMP DEBUG_PAGEALLOC
[ 46.725102] CPU 0
[ 46.725102] Modules linked in:
[ 46.725102]
[ 46.725102] Pid: 1, comm: swapper Not tainted 3.2.0-rc1-00032-gd2554f5 #5 Bochs Bochs
[ 46.725102] RIP: 0010:[<ffffffff819479b9>] [<ffffffff819479b9>] driver_register+0x24/0x116
[ 46.725102] RSP: 0018:ffff88001e3d7e60 EFLAGS: 00010246
[ 46.725102] RAX: ffffffff8412bb40 RBX: ffffffff84118440 RCX: 0000000021c921c8
[ 46.725102] RDX: 0000000000000000 RSI: ffffffff82d50b77 RDI: ffffffff84118440
[ 46.725102] RBP: ffff88001e3d7ea0 R08: 0000000000000002 R09: ffffffff84f219b0
[ 46.725102] R10: ffff88001e3d7fd8 R11: 0000000012250d00 R12: 0000000000000000
[ 46.725102] R13: ffffffff83ad69d3 R14: 0000000000000000 R15: 0000000000000000
[ 46.725102] FS: 0000000000000000(0000) GS:ffff88001f200000(0000) knlGS:0000000000000000
[ 46.725102] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 46.725102] CR2: 00000000ffffffff CR3: 0000000003e0e000 CR4: 00000000000006f0
[ 46.725102] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 46.725102] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[ 46.725102] Process swapper (pid: 1, threadinfo ffff88001e3d6000, task ffff88001e3d8040)
[ 46.725102] Stack:
[ 46.725102] ffff88001e3d7eb0 ffff88001e3d7e70 ffff88001e3d7e80 ffffffff84118420
[ 46.725102] 0000000000000000 ffffffff83ad69d3 0000000000000000 0000000000000000
[ 46.725102] ffff88001e3d7ed0 ffffffff8279ff08 ffffffff83e69268 ffffffff845ca850
[ 46.725102] Call Trace:
[ 46.725102] [<ffffffff8279ff08>] __vmbus_driver_register+0x4a/0x5c
[ 46.725102] [<ffffffff844571fd>] ? rtsx_init+0x29/0x29
[ 46.725102] [<ffffffff84457232>] storvsc_drv_init+0x35/0x3f
[ 46.725102] [<ffffffff81002099>] do_one_initcall+0x7f/0x13a
[ 46.725102] [<ffffffff843dec92>] kernel_init+0xce/0x148
[ 46.725102] [<ffffffff82d59a44>] kernel_thread_helper+0x4/0x10
[ 46.725102] [<ffffffff82d50fb4>] ? retint_restore_args+0x13/0x13
[ 46.725102] [<ffffffff843debc4>] ? start_kernel+0x3fa/0x3fa
[ 46.725102] [<ffffffff82d59a40>] ? gs_change+0x13/0x13
[ 46.725102] Code: 5c 41 5d 41 5e 5d c3 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 18 66 66 66 66 90 48 8b 47 08 48 89 fb 4
8 83 78 68 00 75 02 <0f> 0b 48 83 78 30 00 74 07 48 83 7f 30 00 75 1c 48 83 78 38 00
[ 46.725102] RIP [<ffffffff819479b9>] driver_register+0x24/0x116
[ 46.725102] RSP <ffff88001e3d7e60>
[ 46.966780] ---[ end trace 3dd4b4c5cfb57f3a ]---
[ 46.973158] swapper used greatest stack depth: 3688 bytes left
[ 47.005973] Kernel panic - not syncing: Attempted to kill init!
[ 47.008702] Pid: 1, comm: swapper Tainted: G D 3.2.0-rc1-00032-gd2554f5 #5
[ 47.014326] Call Trace:
[ 47.015625] [<ffffffff82d0218c>] panic+0xa0/0x1b3
[ 47.022083] [<ffffffff82d503b2>] ? _raw_write_unlock_irq+0x2e/0x47
[ 47.026970] [<ffffffff810a0e69>] do_exit+0x9b/0x797
[ 47.041007] [<ffffffff8109f124>] ? kmsg_dump+0x86/0x12e
[ 47.043343] [<ffffffff82d51c53>] oops_end+0xaf/0xb8
[ 47.056684] [<ffffffff81048eb4>] die+0x5a/0x66
[ 47.063927] [<ffffffff82d51781>] do_trap+0x11a/0x129
[ 47.148336] [<ffffffff81046b52>] do_invalid_op+0x98/0xa1
[ 47.150775] [<ffffffff819479b9>] ? driver_register+0x24/0x116
[ 47.171468] [<ffffffff810cc02b>] ? trace_hardirqs_off_caller+0x3f/0x9e
[ 47.186517] [<ffffffff81671f6d>] ? trace_hardirqs_off_thunk+0x3a/0x3c
[ 47.197010] [<ffffffff82d50fe4>] ? restore_args+0x30/0x30
[ 47.199568] [<ffffffff82d598bb>] invalid_op+0x1b/0x20
[ 47.220202] [<ffffffff82d50b77>] ? _raw_spin_unlock_irqrestore+0x3e/0x61
[ 47.223015] [<ffffffff819479b9>] ? driver_register+0x24/0x116
[ 47.238554] [<ffffffff8279ff08>] __vmbus_driver_register+0x4a/0x5c
[ 47.252987] [<ffffffff844571fd>] ? rtsx_init+0x29/0x29
[ 47.255383] [<ffffffff84457232>] storvsc_drv_init+0x35/0x3f
[ 47.284949] [<ffffffff81002099>] do_one_initcall+0x7f/0x13a
[ 47.293599] [<ffffffff843dec92>] kernel_init+0xce/0x148
[ 47.295865] [<ffffffff82d59a44>] kernel_thread_helper+0x4/0x10
[ 47.308746] [<ffffffff82d50fb4>] ? retint_restore_args+0x13/0x13
[ 47.322365] [<ffffffff843debc4>] ? start_kernel+0x3fa/0x3fa
[ 47.324743] [<ffffffff82d59a40>] ? gs_change+0x13/0x13
[ 47.341145] Rebooting in 10 seconds..

dmesg 2)

[ 102.384974] VFS: Mounted root (nfs filesystem) on device 0:16.
[ 102.386750] debug: unmapping init memory ffffffff84208000..ffffffff845ee000
[ 102.390166] Write protecting the kernel read-only data: 47104k
[ 102.398549] debug: unmapping init memory ffff880002d65000..ffff880002e00000
[ 102.400722] debug: unmapping init memory ffff880003c15000..ffff880003e00000
[ 103.108549] modprobe used greatest stack depth: 3352 bytes left
[ 105.511184] S02mountkernfs. used greatest stack depth: 3264 bytes left
[ 110.928107] eth0: no IPv6 routers present
[ 111.393157] cdrom_id used greatest stack depth: 2944 bytes left

BUG: kernel freezed

dmesg 3)

[ 108.880449] VFS: Mounted root (nfs filesystem) on device 0:16.
[ 108.883544] debug: unmapping init memory ffffffff84208000..ffffffff845ee000
[ 108.902348] Write protecting the kernel read-only data: 47104k
[ 108.912389] debug: unmapping init memory ffff880002d65000..ffff880002e00000
[ 108.926343] debug: unmapping init memory ffff880003c15000..ffff880003e00000
[ 109.872198] modprobe used greatest stack depth: 3352 bytes left
[ 113.101880] create_static_n used greatest stack depth: 3312 bytes left
[ 116.634463] scsi_id used greatest stack depth: 2912 bytes left
[ 116.955018] eth0: no IPv6 routers present
[ 8538.332146] hrtimer: interrupt took 13301848 ns

BUG: kernel freezed

Thanks,
Fengguang
0 new messages