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-next>] [day] [month] [year] [list]
Message-ID: <20150307105844.GA24355@wfg-t540p.sh.intel.com>
Date:	Sat, 7 Mar 2015 18:58:44 +0800
From:	Fengguang Wu <fengguang.wu@...el.com>
To:	Takashi Iwai <tiwai@...e.de>
Cc:	fengguang.wu@...el.com, LKP <lkp@...org>,
	linux-kernel@...r.kernel.org, alsa-devel@...a-project.org
Subject: [ALSA/hda] kernel BUG at drivers/base/driver.c:152!

Greetings,

0day kernel testing robot got the below dmesg and the first bad commit is

git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git topic/hda-regmap

commit 3103d80b8a89f1797e87d7265f9b389a0db4ccd8
Author:     Takashi Iwai <tiwai@...e.de>
AuthorDate: Tue Feb 17 21:46:37 2015 +0100
Commit:     Takashi Iwai <tiwai@...e.de>
CommitDate: Tue Mar 3 14:35:44 2015 +0100

    ALSA: hda - Make snd_hda_bus_type public
    
    Define the common hd-audio driver and device types to bind over
    snd_hda_bus_type publicly.  This allows to implement other type of
    device and driver code over hd-audio bus.
    
    Now both struct hda_codec and struct hda_codec_driver inherit these
    new struct hdac_device and struct hdac_driver, respectively.
    
    Signed-off-by: Takashi Iwai <tiwai@...e.de>

+------------------------------------------+------------+------------+------------+
|                                          | d56db741b8 | 3103d80b8a | 32e9709ae6 |
+------------------------------------------+------------+------------+------------+
| boot_successes                           | 0          | 0          | 0          |
| boot_failures                            | 80         | 20         | 14         |
| page_allocation_failure:order:#,mode     | 80         |            |            |
| backtrace:btrfs_test_extent_io           | 80         |            |            |
| backtrace:init_btrfs_fs                  | 80         |            |            |
| backtrace:kernel_init_freeable           | 80         | 20         | 14         |
| backtrace:ring_buffer_consumer_thread    | 24         |            |            |
| kernel_BUG_at_drivers/base/driver.c      | 0          | 20         | 14         |
| invalid_opcode                           | 0          | 20         | 14         |
| EIP_is_at_driver_register                | 0          | 20         | 14         |
| Kernel_panic-not_syncing:Fatal_exception | 0          | 20         | 14         |
| backtrace:__hda_codec_driver_register    | 0          | 20         | 14         |
| backtrace:generic_driver_init            | 0          | 20         | 14         |
+------------------------------------------+------------+------------+------------+

[    9.430681] I2O ProcFS OSM v1.316
[    9.435341] no UART detected at 0x1
[    9.438882] ------------[ cut here ]------------
[    9.439007] kernel BUG at drivers/base/driver.c:152!
[    9.439007] invalid opcode: 0000 [#1] PREEMPT 
[    9.439007] CPU: 0 PID: 1 Comm: swapper Not tainted 4.0.0-rc1-00065-g3103d80 #7
[    9.439007] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[    9.439007] task: d2205b10 ti: d2206000 task.ti: d2206000
[    9.439007] EIP: 0060:[<c1a71eab>] EFLAGS: 00010246 CPU: 0
[    9.439007] EIP is at driver_register+0x54/0x1f1
[    9.439007] EAX: c2ba1ed0 EBX: 00000001 ECX: 00000000 EDX: 00000001
[    9.439007] ESI: c2b264c0 EDI: d2dbd6a0 EBP: d2207f24 ESP: d2207f18
[    9.439007]  DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068
[    9.439007] CR0: 80050033 CR2: 00000000 CR3: 02d00000 CR4: 00040630
[    9.439007] Stack:
[    9.439007]  00000000 c2c54e75 d2dbd6a0 d2207f2c c22ec39c d2207f34 c2c54e97 d2207f90
[    9.439007]  c2bc297b 00000000 01010000 00000900 00000000 000000bd 00000000 00000000
[    9.439007]  000000cf 00000000 00000200 c27f87dc d3ffb80c 00000000 c288eadc 00000006
[    9.439007] Call Trace:
[    9.439007]  [<c2c54e75>] ? ftrace_define_fields_azx_pcm_trigger+0xb9/0xb9
[    9.439007]  [<c22ec39c>] __hda_codec_driver_register+0x4a/0x5a
[    9.439007]  [<c2c54e97>] generic_driver_init+0x22/0x32
[    9.439007]  [<c2bc297b>] do_one_initcall+0x1eb/0x365
[    9.439007]  [<c2bc2d25>] kernel_init_freeable+0x230/0x39e
[    9.439007]  [<c24417e1>] kernel_init+0x1b/0x1ec
[    9.439007]  [<c2462340>] ret_from_kernel_thread+0x20/0x30
[    9.439007]  [<c24417c6>] ? rest_init+0x10e/0x10e
[    9.439007] Code: 00 0f b6 d3 31 c9 e8 4b 9b 6f ff 83 05 88 cd 10 c3 01 83 15 8c cd 10 c3 00 84 db 74 1e 83 05 90 cd 10 c3 01 83 15 94 cd 10 c3 00 <0f> 0b 83 05 a0 cd 10 c3 01 83 15 a4 cd 10 c3 00 8b 46 04 83 05
[    9.439007] EIP: [<c1a71eab>] driver_register+0x54/0x1f1 SS:ESP 0068:d2207f18
[    9.522034] ---[ end trace 98f9037baa1a33bb ]---
[    9.524564] Kernel panic - not syncing: Fatal exception

git bisect start 32e9709ae66026d73cc80c6d4d66b67651460e53 13a7a6ac0a11197edcd0f756a035f472b42cdf8b --
git bisect good 6074e9c417251b089792290e7d5ad6bca77a1786  # 11:48     20+     20  Merge 'jtkirshe-net-next/community' into devel-lkp-ib03-smoke-201503071115
git bisect good 04c6a8bc3674a083cff8dfbae25264955e390f04  # 11:56     20+     20  Merge 'arm-perf/iommu/pgsize' into devel-lkp-ib03-smoke-201503071115
git bisect good a5b10402179be3f6988daa206a3c6223603b6e24  # 12:10     20+     20  Merge 'drm-intel/drm-intel-nightly' into devel-lkp-ib03-smoke-201503071115
git bisect good 4fd2fdaaea26391aa30f8b3f43d7d3d65311268f  # 12:19     20+     20  Merge 'chanwoo-extcon/extcon-update-for-4.1' into devel-lkp-ib03-smoke-201503071115
git bisect good f6f3114ae51ec9e16a2caeee2aa9359df3418030  # 12:28     20+     20  Merge 'arm-platforms/irq/gic-fixes' into devel-lkp-ib03-smoke-201503071115
git bisect  bad bb0c3ecc3c522ee64b04d5b16bbd404c729c2d34  # 12:31      0-     20  Merge 'sound/topic/hda-regmap' into devel-lkp-ib03-smoke-201503071115
git bisect good bcd96557bd0ab1129fcdde073d5700aed8fcb942  # 12:38     20+     20  ALSA: hda - Build PCMs and controls at codec driver probe
git bisect  bad cacd5e8ddc2fab8040d5b6149ccd860f4b5c484d  # 12:43      0-     20  ALSA: hda - Move generic array helpers to core lib
git bisect  bad 20c8fce38a0a3258d921dd30b66430524565ba3f  # 12:51      0-     20  ALSA: hda - Move some codes up to hdac_bus struct
git bisect good d56db741b8e688a0b9d4d5bb9caa11dfcb7c0b08  # 12:56     20+     20  ALSA: hda - Release resources in device release callback
git bisect  bad 3103d80b8a89f1797e87d7265f9b389a0db4ccd8  # 13:00      0-     10  ALSA: hda - Make snd_hda_bus_type public
# first bad commit: [3103d80b8a89f1797e87d7265f9b389a0db4ccd8] ALSA: hda - Make snd_hda_bus_type public
git bisect good d56db741b8e688a0b9d4d5bb9caa11dfcb7c0b08  # 13:03     60+     80  ALSA: hda - Release resources in device release callback
# extra tests with DEBUG_INFO
git bisect good 3103d80b8a89f1797e87d7265f9b389a0db4ccd8  # 13:09     60+     56  ALSA: hda - Make snd_hda_bus_type public
# extra tests on HEAD of linux-devel/devel-lkp-ib03-smoke-201503071115
git bisect  bad 32e9709ae66026d73cc80c6d4d66b67651460e53  # 13:09      0-     14  0day head guard for 'devel-lkp-ib03-smoke-201503071115'
# extra tests on tree/branch sound/topic/hda-regmap
git bisect  bad f42c3b6ce24a23030a44cb23a7a8a179a38d02bc  # 13:14      0-     48  ALSA: hda - Use shutdown driver ops instead of reboot notifier
# extra tests on tree/branch linus/master
git bisect good af13e867133a084aea536870ce39843e862c8aaa  # 13:22     60+     64  Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux
# extra tests on tree/branch next/master
git bisect good 28855005be1d6a0a041de46fd2e61da2b796abff  # 13:53     60+     60  Add linux-next specific files for 20150306


This script may reproduce the error.

----------------------------------------------------------------------------
#!/bin/bash

kernel=$1
initrd=quantal-core-i386.cgz

wget --no-clobber https://github.com/fengguang/reproduce-kernel-bug/raw/master/initrd/$initrd

kvm=(
	qemu-system-x86_64
	-enable-kvm
	-cpu Haswell,+smep,+smap
	-kernel $kernel
	-initrd $initrd
	-m 320
	-smp 2
	-net nic,vlan=1,model=e1000
	-net user,vlan=1
	-boot order=nc
	-no-reboot
	-watchdog i6300esb
	-rtc base=localtime
	-serial stdio
	-display none
	-monitor null 
)

append=(
	hung_task_panic=1
	earlyprintk=ttyS0,115200
	rd.udev.log-priority=err
	systemd.log_target=journal
	systemd.log_level=warning
	debug
	apic=debug
	sysrq_always_enabled
	rcupdate.rcu_cpu_stall_timeout=100
	panic=-1
	softlockup_panic=1
	nmi_watchdog=panic
	oops=panic
	load_ramdisk=2
	prompt_ramdisk=0
	console=ttyS0,115200
	console=tty0
	vga=normal
	root=/dev/ram0
	rw
	drbd.minor_count=8
)

"${kvm[@]}" --append "${append[*]}"
----------------------------------------------------------------------------

Thanks,
Fengguang

View attachment "dmesg-quantal-kbuild-9:20150307125909:i386-randconfig-ib1-03071112:4.0.0-rc1-00065-g3103d80:7" of type "text/plain" (41233 bytes)

View attachment "config-4.0.0-rc1-00065-g3103d80" of type "text/plain" (86235 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ