Skip to contentSkip to conversation

91c1832579: BUG: unable to handle kernel NULL pointer dereference

ASoC Ye Xiaolong 2 participants 3 messages Jul 8, 2016 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Ye Xiaolong

author Tested-by
#1 lore raw
Quoted 5 lines · Vedang

Hi Xialong.

Is it possible for you try the attached change and see if you are still able to reproduce the issue?

Hi, Patel

Tried 3-times boot test with your fix patch applied on 91c18325 ("ASoC: Intel:
Skylake: Increase loglevel of debug messages."), no kernel panic found.

Thanks,
Xiaolong

Quoted 257 lines

Thanks,
Vedang

Quoted 4 lines · Vedang

Can you send me your test setup to reproduce the bug? In the command you send, there seem to be some arguments pointing to files on the subsystem. (like initrd.)

Quoted 222 lines

It will be helpful if I can replicate exactly what you did.

Thanks,
Vedang

Quoted 216 lines · kernel test robot

FYI, we noticed the following commit:

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
master
commit 91c1832579700891747820862633f9a8d0d81fa4 ("ASoC: Intel:
Skylake: Increase loglevel of debug messages.")

in testcase: boot

on test machine: 1 threads qemu-system-i386 -enable-kvm with 360M memory

caused below changes:

+------------------------------------------------------------+-----
--
-----+------------+

Quoted 4 lines

                                                           | ef06b6f391 | 91c1832579 |

+------------------------------------------------------------+-----
--
-----+------------+

Quoted 26 lines

boot_successes                                             | 0          | 0          |
boot_failures                                              | 14         | 14         | genirq:Flags_mismatch_irq##(serial)vs.#(goldfish_pdev_bus) | 14         |            | invoked_oom-killer:gfp_mask=0x                             | 1          |            |
Mem-Info                                                   | 1          |            | Out_of_memory:Kill_process                                 | 1          |            |
backtrace:do_writev                                        | 1          |            |
backtrace:SyS_writev                                       | 1          |            |
backtrace:vfs_write                                        | 1          |            |
backtrace:SyS_write                                        | 1          |            | BUG:unable_to_handle_kernel                                | 0          | 14         |
Oops:#[##]                                                 | 0          | 14         |

Quoted 8 lines

EIP_is_at_strlen                                           | 0          | 14         | Kernel_panic-not_syncing:Fatal_exception                   | 0          | 14         | backtrace:dynamic_debug_init                               | 0          | 14         | backtrace:kernel_init_freeable                             | 0          | 14         |

+------------------------------------------------------------+-----
--
-----+------------+

[    0.291679] Performance Events:
[    0.291679] Performance Events: Broken PMU hardware detected, using software events only.
Broken PMU hardware detected, using software events only. [    0.309122] BUG: unable to handle kernel
[    0.309122] BUG: unable to handle kernel NULL pointer dereferenceNULL pointer dereference at   (null)
 at   (null)
[    0.310586] IP:
[    0.310586] IP: [<c131a701>] strlen+0xb/0x17 [<c131a701>] strlen+0xb/0x17
[    0.311438] *pdpt = 0000000000000000
[    0.311438] *pdpt = 0000000000000000 *pde = f000ff53f000ff53 *pde
= f000ff53f000ff53

[    0.312549] Oops: 0000 [#1]
[    0.312549] Oops: 0000 [#1]
[    0.313064] CPU: 0 PID: 1 Comm: swapper Not tainted 4.7.0-rc1- 00046-g91c1832 #1
[    0.313064] CPU: 0 PID: 1 Comm: swapper Not tainted 4.7.0-rc1- 00046-g91c1832 #1
[    0.314469] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
BIOS Debian-1.8.2-1 04/01/2014
[    0.314469] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
BIOS Debian-1.8.2-1 04/01/2014
[    0.316115] task: c0058040 ti: c004e000 task.ti: c004e000 [    0.316115] task: c0058040 ti: c004e000 task.ti: c004e000 [    0.317110] EIP: 0060:[<c131a701>] EFLAGS: 00210246 CPU: 0 [    0.317110] EIP: 0060:[<c131a701>] EFLAGS: 00210246 CPU: 0 [    0.318160] EIP is at strlen+0xb/0x17
[    0.318160] EIP is at strlen+0xb/0x17
[    0.318866] EAX: 00000000 EBX: c21facc0 ECX: ffffffff EDX:
c20bc808
[    0.318866] EAX: 00000000 EBX: c21facc0 ECX: ffffffff EDX:
c20bc808
[    0.320029] ESI: 00000004 EDI: 00000000 EBP: c004ff00 ESP:
c004fefc
[    0.320029] ESI: 00000004 EDI: 00000000 EBP: c004ff00 ESP:
c004fefc
[    0.321264]  DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068 [    0.321264]  DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068 [    0.322264] CR0: 80050033 CR2: 00000000 CR3: 022a1000 CR4:
000006b0
[    0.322264] CR0: 80050033 CR2: 00000000 CR3: 022a1000 CR4:
000006b0
[    0.323471] Stack:
[    0.323471] Stack:
[    0.323861]  0000003a
[    0.323861]  0000003a c004ff2c c004ff2c c2225b46 c2225b46 c20bc808
c20bc808 00000024 00000024 00001aa5 00001aa5 000adc33 000adc33 00000256 00000256

[    0.325492]  c21fac60
[    0.325492]  c21fac60 c2225abd c2225abd ffffffff ffffffff 00000000
00000000 c004ff8c c004ff8c c2201c4f c2201c4f 7fffffff 7fffffff c2250884 c2250884

[    0.327033]  c0058000
[    0.327033]  c0058000 7fffffff 7fffffff c004ff4c c004ff4c c1ad6a4b
c1ad6a4b c004ff80 c004ff80 c1ad4825 c1ad4825 00000000 00000000 c1ad61f2 c1ad61f2

[    0.328680] Call Trace:
[    0.328680] Call Trace:
[    0.329134]  [<c2225b46>] dynamic_debug_init+0x89/0x1ee [    0.329134]  [<c2225b46>] dynamic_debug_init+0x89/0x1ee [    0.330100]  [<c2225abd>] ? dynamic_debug_init_debugfs+0x5f/0x5f [    0.330100]  [<c2225abd>] ? dynamic_debug_init_debugfs+0x5f/0x5f [    0.331237]  [<c2201c4f>] do_one_initcall+0x89/0x112 [    0.331237]  [<c2201c4f>] do_one_initcall+0x89/0x112 [    0.332161]  [<c1ad6a4b>] ? _raw_spin_unlock_irq+0xd/0x15 [    0.332161]  [<c1ad6a4b>] ? _raw_spin_unlock_irq+0xd/0x15 [    0.333158]  [<c1ad4825>] ? __wait_for_common+0xed/0xf7 [    0.333158]  [<c1ad4825>] ? __wait_for_common+0xed/0xf7 [    0.334158]  [<c1ad61f2>] ? console_conditional_schedule+0x24/0x24
[    0.334158]  [<c1ad61f2>] ?

console_conditional_schedule+0x24/0x24
[    0.335303]  [<c2201d1e>] kernel_init_freeable+0x46/0x165
[    0.335303]  [<c2201d1e>] kernel_init_freeable+0x46/0x165
[    0.336383]  [<c1ad2e5d>] kernel_init+0x8/0xcb
[    0.336383]  [<c1ad2e5d>] kernel_init+0x8/0xcb
[    0.337209]  [<c1ad6c62>] ret_from_kernel_thread+0xe/0x24
[    0.337209]  [<c1ad6c62>] ret_from_kernel_thread+0xe/0x24
[    0.338236]  [<c1ad2e55>] ? rest_init+0x65/0x65
[    0.338236]  [<c1ad2e55>] ? rest_init+0x65/0x65

[    0.339151] Code:
[    0.339151] Code: 5d 5d c3 c3 55 55 89 89 e5 e5 56 56 89 89 c6 c6
89 89 d0 d0 88 88 c4 c4 ac ac 38 38 e0 e0 74 74 09 09 84 84 c0 c0 75
75 f7 f7 be be 01 01 00 00 00 00 00 00 89 89 f0 f0 48 48 5e 5e 5d 5d
c3 c3 55 55 83 83 c9 c9 ff ff 89 89 e5 e5 57 57 89 89 c7 c7 31 31 c0
c0 <f2> <f2> ae ae 5f 5f b8 b8 fe fe ff ff ff ff ff ff 29 29 c8 c8 5d
5d c3 c3 85 85 c9 c9 74 74 16 16 55 55 89 89 e5 e5 57 57 89 89

[    0.343525] EIP: [<c131a701>]
[    0.343525] EIP: [<c131a701>] strlen+0xb/0x17strlen+0xb/0x17 SS:ESP 0068:c004fefc
 SS:ESP 0068:c004fefc
[    0.344739] CR2: 0000000000000000
[    0.344739] CR2: 0000000000000000
[    0.345342] ---[ end trace 04f806a67a86eccc ]---
[    0.345342] ---[ end trace 04f806a67a86eccc ]---

FYI, raw QEMU command line is:

	qemu-system-i386 -enable-kvm -kernel /pkg/linux/i386-

randconfig-c0-06280858/gcc- 6/91c1832579700891747820862633f9a8d0d81fa4/vmlinuz-4.7.0-rc1-00046- g91c1832 -append 'root=/dev/ram0 user=lkp job=/lkp/scheduled/vm- lkp- wsx03-quantal-i386-3/rand_boot-1-quantal-core-i386.cgz-i386- randconfig-c0-06280858-91c1832579700891747820862633f9a8d0d81fa4- 20160628-92876-1qu8nei-0.yaml ARCH=i386 kconfig=i386-randconfig-c0- 06280858 branch=linux-devel/devel-hourly-2016062804 commit=91c1832579700891747820862633f9a8d0d81fa4 BOOT_IMAGE=/pkg/linux/i386-randconfig-c0-06280858/gcc- 6/91c1832579700891747820862633f9a8d0d81fa4/vmlinuz-4.7.0-rc1-00046- g91c1832 max_uptime=600 RESULT_ROOT=/result/boot/1/vm-lkp-wsx03- quantal-i386/quantal-core-i386.cgz/i386-randconfig-c0-06280858/gcc- 6/91c1832579700891747820862633f9a8d0d81fa4/0 LKP_SERVER=inn earlyprintk=ttyS0,115200 systemd.log_level=err 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 rw ip=::::vm-lkp-wsx03-quantal-i386-3::dhcp drbd.minor_count=8'  - initrd
/fs/sdc1/initrd-vm-lkp-wsx03-quantal-i386-3 -m 360 -smp 1 -device e1000,netdev=net0 -netdev user,id=net0 -boot order=nc -no-reboot -watchdog i6300esb -rtc base=localtime -pidfile /dev/shm/kboot/pid- vm-lkp-wsx03-quantal-i386-3 -serial file:/dev/shm/kboot/serial-vm- lkp-wsx03-quantal-i386-3 -daemonize -display none -monitor null

Thanks,
Xiaolong

From 8602d6c24a0159be050849aa934ac18f8d13fef3 Mon Sep 17 00:00:00 2001
From: Vedang Patel <[email protected]>
Date: Thu, 7 Jul 2016 17:38:44 -0700
Subject: [PATCH] ASoC: Intel: Skylake: Fix error while dynamic debug.

Change-Id: I1e99896a0de5576d8eccdce4dbd666f05b4263ea
---
sound/soc/intel/skylake/skl-sst-ipc.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/skylake/skl-sst-ipc.c +1 -1
index c141f24..96f2f68 100644
@@ -692,7 +692,7 @@ int skl_ipc_init_instance(struct sst_generic_ipc *ipc,
 	 /* param_block_size must be in dwords */
 	u16 param_block_size = msg->param_data_size / sizeof(u32);
 
-	print_hex_dump_debug(NULL, DUMP_PREFIX_NONE,
+	print_hex_dump_debug("Param data:", DUMP_PREFIX_NONE,
 		16, 4, buffer, param_block_size, false);
 
 	header.primary = IPC_MSG_TARGET(IPC_MOD_MSG);
Signature · 1 line
2.8.2
#2 lore raw
Quoted 12 lines · Ye Xiaolong
Quoted 5 lines · Vedang

Hi Xialong.

Is it possible for you try the attached change and see if you are still able to reproduce the issue?

Hi, Patel

Tried 3-times boot test with your fix patch applied on 91c18325 ("ASoC: Intel:
Skylake: Increase loglevel of debug messages."), no kernel panic found.

Attached the dmesg for the test.

Quoted 267 lines

Thanks,
Xiaolong

Quoted 257 lines

Thanks,
Vedang

Quoted 4 lines · Vedang

Can you send me your test setup to reproduce the bug? In the command you send, there seem to be some arguments pointing to files on the subsystem. (like initrd.)

Quoted 222 lines

It will be helpful if I can replicate exactly what you did.

Thanks,
Vedang

Quoted 216 lines · kernel test robot

FYI, we noticed the following commit:

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
master
commit 91c1832579700891747820862633f9a8d0d81fa4 ("ASoC: Intel:
Skylake: Increase loglevel of debug messages.")

in testcase: boot

on test machine: 1 threads qemu-system-i386 -enable-kvm with 360M memory

caused below changes:

+------------------------------------------------------------+-----
--
-----+------------+

Quoted 4 lines

                                                           | ef06b6f391 | 91c1832579 |

+------------------------------------------------------------+-----
--
-----+------------+

Quoted 26 lines

boot_successes                                             | 0          | 0          |
boot_failures                                              | 14         | 14         | genirq:Flags_mismatch_irq##(serial)vs.#(goldfish_pdev_bus) | 14         |            | invoked_oom-killer:gfp_mask=0x                             | 1          |            |
Mem-Info                                                   | 1          |            | Out_of_memory:Kill_process                                 | 1          |            |
backtrace:do_writev                                        | 1          |            |
backtrace:SyS_writev                                       | 1          |            |
backtrace:vfs_write                                        | 1          |            |
backtrace:SyS_write                                        | 1          |            | BUG:unable_to_handle_kernel                                | 0          | 14         |
Oops:#[##]                                                 | 0          | 14         |

Quoted 8 lines

EIP_is_at_strlen                                           | 0          | 14         | Kernel_panic-not_syncing:Fatal_exception                   | 0          | 14         | backtrace:dynamic_debug_init                               | 0          | 14         | backtrace:kernel_init_freeable                             | 0          | 14         |

+------------------------------------------------------------+-----
--
-----+------------+

[    0.291679] Performance Events:
[    0.291679] Performance Events: Broken PMU hardware detected, using software events only.
Broken PMU hardware detected, using software events only. [    0.309122] BUG: unable to handle kernel
[    0.309122] BUG: unable to handle kernel NULL pointer dereferenceNULL pointer dereference at   (null)
 at   (null)
[    0.310586] IP:
[    0.310586] IP: [<c131a701>] strlen+0xb/0x17 [<c131a701>] strlen+0xb/0x17
[    0.311438] *pdpt = 0000000000000000
[    0.311438] *pdpt = 0000000000000000 *pde = f000ff53f000ff53 *pde
= f000ff53f000ff53

[    0.312549] Oops: 0000 [#1]
[    0.312549] Oops: 0000 [#1]
[    0.313064] CPU: 0 PID: 1 Comm: swapper Not tainted 4.7.0-rc1- 00046-g91c1832 #1
[    0.313064] CPU: 0 PID: 1 Comm: swapper Not tainted 4.7.0-rc1- 00046-g91c1832 #1
[    0.314469] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
BIOS Debian-1.8.2-1 04/01/2014
[    0.314469] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
BIOS Debian-1.8.2-1 04/01/2014
[    0.316115] task: c0058040 ti: c004e000 task.ti: c004e000 [    0.316115] task: c0058040 ti: c004e000 task.ti: c004e000 [    0.317110] EIP: 0060:[<c131a701>] EFLAGS: 00210246 CPU: 0 [    0.317110] EIP: 0060:[<c131a701>] EFLAGS: 00210246 CPU: 0 [    0.318160] EIP is at strlen+0xb/0x17
[    0.318160] EIP is at strlen+0xb/0x17
[    0.318866] EAX: 00000000 EBX: c21facc0 ECX: ffffffff EDX:
c20bc808
[    0.318866] EAX: 00000000 EBX: c21facc0 ECX: ffffffff EDX:
c20bc808
[    0.320029] ESI: 00000004 EDI: 00000000 EBP: c004ff00 ESP:
c004fefc
[    0.320029] ESI: 00000004 EDI: 00000000 EBP: c004ff00 ESP:
c004fefc
[    0.321264]  DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068 [    0.321264]  DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068 [    0.322264] CR0: 80050033 CR2: 00000000 CR3: 022a1000 CR4:
000006b0
[    0.322264] CR0: 80050033 CR2: 00000000 CR3: 022a1000 CR4:
000006b0
[    0.323471] Stack:
[    0.323471] Stack:
[    0.323861]  0000003a
[    0.323861]  0000003a c004ff2c c004ff2c c2225b46 c2225b46 c20bc808
c20bc808 00000024 00000024 00001aa5 00001aa5 000adc33 000adc33 00000256 00000256

[    0.325492]  c21fac60
[    0.325492]  c21fac60 c2225abd c2225abd ffffffff ffffffff 00000000
00000000 c004ff8c c004ff8c c2201c4f c2201c4f 7fffffff 7fffffff c2250884 c2250884

[    0.327033]  c0058000
[    0.327033]  c0058000 7fffffff 7fffffff c004ff4c c004ff4c c1ad6a4b
c1ad6a4b c004ff80 c004ff80 c1ad4825 c1ad4825 00000000 00000000 c1ad61f2 c1ad61f2

[    0.328680] Call Trace:
[    0.328680] Call Trace:
[    0.329134]  [<c2225b46>] dynamic_debug_init+0x89/0x1ee [    0.329134]  [<c2225b46>] dynamic_debug_init+0x89/0x1ee [    0.330100]  [<c2225abd>] ? dynamic_debug_init_debugfs+0x5f/0x5f [    0.330100]  [<c2225abd>] ? dynamic_debug_init_debugfs+0x5f/0x5f [    0.331237]  [<c2201c4f>] do_one_initcall+0x89/0x112 [    0.331237]  [<c2201c4f>] do_one_initcall+0x89/0x112 [    0.332161]  [<c1ad6a4b>] ? _raw_spin_unlock_irq+0xd/0x15 [    0.332161]  [<c1ad6a4b>] ? _raw_spin_unlock_irq+0xd/0x15 [    0.333158]  [<c1ad4825>] ? __wait_for_common+0xed/0xf7 [    0.333158]  [<c1ad4825>] ? __wait_for_common+0xed/0xf7 [    0.334158]  [<c1ad61f2>] ? console_conditional_schedule+0x24/0x24
[    0.334158]  [<c1ad61f2>] ?

console_conditional_schedule+0x24/0x24
[    0.335303]  [<c2201d1e>] kernel_init_freeable+0x46/0x165
[    0.335303]  [<c2201d1e>] kernel_init_freeable+0x46/0x165
[    0.336383]  [<c1ad2e5d>] kernel_init+0x8/0xcb
[    0.336383]  [<c1ad2e5d>] kernel_init+0x8/0xcb
[    0.337209]  [<c1ad6c62>] ret_from_kernel_thread+0xe/0x24
[    0.337209]  [<c1ad6c62>] ret_from_kernel_thread+0xe/0x24
[    0.338236]  [<c1ad2e55>] ? rest_init+0x65/0x65
[    0.338236]  [<c1ad2e55>] ? rest_init+0x65/0x65

[    0.339151] Code:
[    0.339151] Code: 5d 5d c3 c3 55 55 89 89 e5 e5 56 56 89 89 c6 c6
89 89 d0 d0 88 88 c4 c4 ac ac 38 38 e0 e0 74 74 09 09 84 84 c0 c0 75
75 f7 f7 be be 01 01 00 00 00 00 00 00 89 89 f0 f0 48 48 5e 5e 5d 5d
c3 c3 55 55 83 83 c9 c9 ff ff 89 89 e5 e5 57 57 89 89 c7 c7 31 31 c0
c0 <f2> <f2> ae ae 5f 5f b8 b8 fe fe ff ff ff ff ff ff 29 29 c8 c8 5d
5d c3 c3 85 85 c9 c9 74 74 16 16 55 55 89 89 e5 e5 57 57 89 89

[    0.343525] EIP: [<c131a701>]
[    0.343525] EIP: [<c131a701>] strlen+0xb/0x17strlen+0xb/0x17 SS:ESP 0068:c004fefc
 SS:ESP 0068:c004fefc
[    0.344739] CR2: 0000000000000000
[    0.344739] CR2: 0000000000000000
[    0.345342] ---[ end trace 04f806a67a86eccc ]---
[    0.345342] ---[ end trace 04f806a67a86eccc ]---

FYI, raw QEMU command line is:

	qemu-system-i386 -enable-kvm -kernel /pkg/linux/i386-

randconfig-c0-06280858/gcc- 6/91c1832579700891747820862633f9a8d0d81fa4/vmlinuz-4.7.0-rc1-00046- g91c1832 -append 'root=/dev/ram0 user=lkp job=/lkp/scheduled/vm- lkp- wsx03-quantal-i386-3/rand_boot-1-quantal-core-i386.cgz-i386- randconfig-c0-06280858-91c1832579700891747820862633f9a8d0d81fa4- 20160628-92876-1qu8nei-0.yaml ARCH=i386 kconfig=i386-randconfig-c0- 06280858 branch=linux-devel/devel-hourly-2016062804 commit=91c1832579700891747820862633f9a8d0d81fa4 BOOT_IMAGE=/pkg/linux/i386-randconfig-c0-06280858/gcc- 6/91c1832579700891747820862633f9a8d0d81fa4/vmlinuz-4.7.0-rc1-00046- g91c1832 max_uptime=600 RESULT_ROOT=/result/boot/1/vm-lkp-wsx03- quantal-i386/quantal-core-i386.cgz/i386-randconfig-c0-06280858/gcc- 6/91c1832579700891747820862633f9a8d0d81fa4/0 LKP_SERVER=inn earlyprintk=ttyS0,115200 systemd.log_level=err 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 rw ip=::::vm-lkp-wsx03-quantal-i386-3::dhcp drbd.minor_count=8'  - initrd
/fs/sdc1/initrd-vm-lkp-wsx03-quantal-i386-3 -m 360 -smp 1 -device e1000,netdev=net0 -netdev user,id=net0 -boot order=nc -no-reboot -watchdog i6300esb -rtc base=localtime -pidfile /dev/shm/kboot/pid- vm-lkp-wsx03-quantal-i386-3 -serial file:/dev/shm/kboot/serial-vm- lkp-wsx03-quantal-i386-3 -daemonize -display none -monitor null

Thanks,
Xiaolong

From 8602d6c24a0159be050849aa934ac18f8d13fef3 Mon Sep 17 00:00:00 2001
From: Vedang Patel <[email protected]>
Date: Thu, 7 Jul 2016 17:38:44 -0700
Subject: [PATCH] ASoC: Intel: Skylake: Fix error while dynamic debug.

Change-Id: I1e99896a0de5576d8eccdce4dbd666f05b4263ea
---
sound/soc/intel/skylake/skl-sst-ipc.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/skylake/skl-sst-ipc.c +1 -1
index c141f24..96f2f68 100644
@@ -692,7 +692,7 @@ int skl_ipc_init_instance(struct sst_generic_ipc *ipc,
 	 /* param_block_size must be in dwords */
 	u16 param_block_size = msg->param_data_size / sizeof(u32);
 
-	print_hex_dump_debug(NULL, DUMP_PREFIX_NONE,
+	print_hex_dump_debug("Param data:", DUMP_PREFIX_NONE,
 		16, 4, buffer, param_block_size, false);
 
 	header.primary = IPC_MSG_TARGET(IPC_MOD_MSG);
Signature · 1 line
2.8.2

_______________________________________________
LKP mailing list
LKP(a)lists.01.org
https://lists.01.org/mailman/listinfo/lkp

#3 lore raw

Thanks Xiaolong for testing it,

I will submit a fix to the alsa-devel mailing list CCing all the relavant people.

-Vedang

Quoted 348 lines · Ye Xiaolong
Quoted 9 lines · Ye Xiaolong
Quoted 7 lines · Vedang

Hi Xialong.

Is it possible for you try the attached change and see if you are still
able to reproduce the issue?

Quoted 7 lines

Hi, Patel

Tried 3-times boot test with your fix patch applied on 91c18325 ("ASoC: Intel:
Skylake: Increase loglevel of debug messages."), no kernel panic found.

Attached the dmesg for the test.

Quoted 329 lines

Thanks,
Xiaolong

Quoted 323 lines

Thanks,
Vedang

Quoted 288 lines · Vedang

Can you send me your test setup to reproduce the bug? In the command
you send, there seem to be some arguments pointing to files on the
subsystem. (like initrd.)

It will be helpful if I can replicate exactly what you did.

Thanks,
Vedang

Quoted 275 lines · kernel test robot

FYI, we noticed the following commit:

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-ne
xt.git
master
commit 91c1832579700891747820862633f9a8d0d81fa4 ("ASoC:
Intel:
Skylake: Increase loglevel of debug messages.")

in testcase: boot

on test machine: 1 threads qemu-system-i386 -enable-kvm with 360M
memory

caused below changes:

+----------------------------------------------------------
--+-----
--
-----+------------+

Quoted 6 lines


|
ef06b6f391 | 91c1832579 |

+----------------------------------------------------------
--+-----
--
-----+------------+

Quoted 43 lines

boot_successes
|
0          | 0          |
boot_failures
|
14         | 14         | genirq:Flags_mismatch_irq##(serial)vs.#(goldfish_pdev_bus) |
14         |            |
invoked_oom-
killer:gfp_mask=0x                             | 1          |            |
Mem-
Info                                                   | 1          |            | Out_of_memory:Kill_process
|
1          |            |
backtrace:do_writev
|
1          |            |
backtrace:SyS_writev
|
1          |            |
backtrace:vfs_write
|
1          |            |
backtrace:SyS_write
|
1          |            | BUG:unable_to_handle_kernel
|
0          | 14         |
Oops:#[##]
|
0          | 14         |
EIP_is_at_strlen
|
0          | 14         |
Kernel_panic-

Quoted 8 lines

not_syncing:Fatal_exception                   |
0          | 14         |
backtrace:dynamic_debug_init
|
0          | 14         |
backtrace:kernel_init_freeable
|
0          | 14         |

+----------------------------------------------------------
--+-----
--
-----+------------+

[    0.291679] Performance Events:
[    0.291679] Performance Events: Broken PMU hardware detected,
using software events only.
Broken PMU hardware detected, using software events only. [    0.309122] BUG: unable to handle kernel
[    0.309122] BUG: unable to handle kernel NULL pointer dereferenceNULL pointer dereference at   (null) at   (null)
[    0.310586] IP:
[    0.310586] IP: [<c131a701>] strlen+0xb/0x17 [<c131a701>] strlen+0xb/0x17
[    0.311438] *pdpt = 0000000000000000
[    0.311438] *pdpt = 0000000000000000 *pde = f000ff53f000ff53
*pde
= f000ff53f000ff53

[    0.312549] Oops: 0000 [#1]
[    0.312549] Oops: 0000 [#1]
[    0.313064] CPU: 0 PID: 1 Comm: swapper Not tainted 4.7.0- rc1-
00046-g91c1832 #1
[    0.313064] CPU: 0 PID: 1 Comm: swapper Not tainted 4.7.0- rc1-
00046-g91c1832 #1
[    0.314469] Hardware name: QEMU Standard PC (i440FX + PIIX,
1996),
BIOS Debian-1.8.2-1 04/01/2014
[    0.314469] Hardware name: QEMU Standard PC (i440FX + PIIX,
1996),
BIOS Debian-1.8.2-1 04/01/2014
[    0.316115] task: c0058040 ti: c004e000 task.ti: c004e000 [    0.316115] task: c0058040 ti: c004e000 task.ti: c004e000 [    0.317110] EIP: 0060:[<c131a701>] EFLAGS: 00210246 CPU: 0 [    0.317110] EIP: 0060:[<c131a701>] EFLAGS: 00210246 CPU: 0 [    0.318160] EIP is at strlen+0xb/0x17
[    0.318160] EIP is at strlen+0xb/0x17
[    0.318866] EAX: 00000000 EBX: c21facc0 ECX: ffffffff EDX:
c20bc808
[    0.318866] EAX: 00000000 EBX: c21facc0 ECX: ffffffff EDX:
c20bc808
[    0.320029] ESI: 00000004 EDI: 00000000 EBP: c004ff00 ESP:
c004fefc
[    0.320029] ESI: 00000004 EDI: 00000000 EBP: c004ff00 ESP:
c004fefc
[    0.321264]  DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068 [    0.321264]  DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068 [    0.322264] CR0: 80050033 CR2: 00000000 CR3: 022a1000 CR4:
000006b0
[    0.322264] CR0: 80050033 CR2: 00000000 CR3: 022a1000 CR4:
000006b0
[    0.323471] Stack:
[    0.323471] Stack:
[    0.323861]  0000003a
[    0.323861]  0000003a c004ff2c c004ff2c c2225b46 c2225b46 c20bc808
c20bc808 00000024 00000024 00001aa5 00001aa5 000adc33 000adc33
00000256 00000256

[    0.325492]  c21fac60
[    0.325492]  c21fac60 c2225abd c2225abd ffffffff ffffffff 00000000
00000000 c004ff8c c004ff8c c2201c4f c2201c4f 7fffffff 7fffffff
c2250884 c2250884

[    0.327033]  c0058000
[    0.327033]  c0058000 7fffffff 7fffffff c004ff4c c004ff4c c1ad6a4b
c1ad6a4b c004ff80 c004ff80 c1ad4825 c1ad4825 00000000 00000000
c1ad61f2 c1ad61f2

[    0.328680] Call Trace:
[    0.328680] Call Trace:
[    0.329134]  [<c2225b46>] dynamic_debug_init+0x89/0x1ee [    0.329134]  [<c2225b46>] dynamic_debug_init+0x89/0x1ee [    0.330100]  [<c2225abd>] ? dynamic_debug_init_debugfs+0x5f/0x5f
[    0.330100]  [<c2225abd>] ?

dynamic_debug_init_debugfs+0x5f/0x5f
[    0.331237]  [<c2201c4f>] do_one_initcall+0x89/0x112
[    0.331237]  [<c2201c4f>] do_one_initcall+0x89/0x112
[    0.332161]  [<c1ad6a4b>] ? _raw_spin_unlock_irq+0xd/0x15
[    0.332161]  [<c1ad6a4b>] ? _raw_spin_unlock_irq+0xd/0x15
[    0.333158]  [<c1ad4825>] ? __wait_for_common+0xed/0xf7
[    0.333158]  [<c1ad4825>] ? __wait_for_common+0xed/0xf7
[    0.334158]  [<c1ad61f2>] ?
console_conditional_schedule+0x24/0x24
[    0.334158]  [<c1ad61f2>] ?
console_conditional_schedule+0x24/0x24
[    0.335303]  [<c2201d1e>] kernel_init_freeable+0x46/0x165
[    0.335303]  [<c2201d1e>] kernel_init_freeable+0x46/0x165
[    0.336383]  [<c1ad2e5d>] kernel_init+0x8/0xcb
[    0.336383]  [<c1ad2e5d>] kernel_init+0x8/0xcb
[    0.337209]  [<c1ad6c62>] ret_from_kernel_thread+0xe/0x24
[    0.337209]  [<c1ad6c62>] ret_from_kernel_thread+0xe/0x24
[    0.338236]  [<c1ad2e55>] ? rest_init+0x65/0x65
[    0.338236]  [<c1ad2e55>] ? rest_init+0x65/0x65

[    0.339151] Code:
[    0.339151] Code: 5d 5d c3 c3 55 55 89 89 e5 e5 56 56 89 89 c6
c6
89 89 d0 d0 88 88 c4 c4 ac ac 38 38 e0 e0 74 74 09 09 84 84 c0 c0
75
75 f7 f7 be be 01 01 00 00 00 00 00 00 89 89 f0 f0 48 48 5e 5e 5d
5d
c3 c3 55 55 83 83 c9 c9 ff ff 89 89 e5 e5 57 57 89 89 c7 c7 31 31
c0
c0 <f2> <f2> ae ae 5f 5f b8 b8 fe fe ff ff ff ff ff ff 29 29 c8 c8
5d
5d c3 c3 85 85 c9 c9 74 74 16 16 55 55 89 89 e5 e5 57 57 89 89

[    0.343525] EIP: [<c131a701>]
[    0.343525] EIP: [<c131a701>] strlen+0xb/0x17strlen+0xb/0x17
SS:ESP 0068:c004fefc
 SS:ESP 0068:c004fefc
[    0.344739] CR2: 0000000000000000
[    0.344739] CR2: 0000000000000000
[    0.345342] ---[ end trace 04f806a67a86eccc ]--- [    0.345342] ---[ end trace 04f806a67a86eccc ]---

FYI, raw QEMU command line is:

	qemu-system-i386 -enable-kvm -kernel /pkg/linux/i386-

randconfig-c0-06280858/gcc- 6/91c1832579700891747820862633f9a8d0d81fa4/vmlinuz-4.7.0-rc1- 00046-
g91c1832 -append 'root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-
lkp- wsx03-quantal-i386-3/rand_boot-1-quantal-core-i386.cgz-i386- randconfig-c0-06280858- 91c1832579700891747820862633f9a8d0d81fa4- 20160628-92876-1qu8nei-0.yaml ARCH=i386 kconfig=i386- randconfig-c0-
06280858 branch=linux-devel/devel-hourly-2016062804 commit=91c1832579700891747820862633f9a8d0d81fa4 BOOT_IMAGE=/pkg/linux/i386-randconfig-c0-06280858/gcc- 6/91c1832579700891747820862633f9a8d0d81fa4/vmlinuz-4.7.0-rc1- 00046-
g91c1832 max_uptime=600 RESULT_ROOT=/result/boot/1/vm-lkp- wsx03- quantal-i386/quantal-core-i386.cgz/i386-randconfig-c0- 06280858/gcc- 6/91c1832579700891747820862633f9a8d0d81fa4/0 LKP_SERVER=inn earlyprintk=ttyS0,115200 systemd.log_level=err 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 rw
ip=::::vm-lkp-wsx03-quantal-i386-3::dhcp drbd.minor_count=8'  -
initrd
/fs/sdc1/initrd-vm-lkp-wsx03-quantal-i386-3 -m 360 -smp 1 -device
e1000,netdev=net0 -netdev user,id=net0 -boot order=nc -no- reboot
-watchdog i6300esb -rtc base=localtime -pidfile /dev/shm/kboot/pid-
vm-lkp-wsx03-quantal-i386-3 -serial file:/dev/shm/kboot/serial-vm- lkp-wsx03-quantal-i386-3 -daemonize -display none -monitor null

Quoted 2 lines
Quoted 2 lines

Thanks,
Xiaolong

From 8602d6c24a0159be050849aa934ac18f8d13fef3 Mon Sep 17 00:00:00 2001
From: Vedang Patel <[email protected]>
Date: Thu, 7 Jul 2016 17:38:44 -0700
Subject: [PATCH] ASoC: Intel: Skylake: Fix error while dynamic debug.

Change-Id: I1e99896a0de5576d8eccdce4dbd666f05b4263ea
---
sound/soc/intel/skylake/skl-sst-ipc.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/skylake/skl-sst-ipc.c +1 -1
index c141f24..96f2f68 100644
@@ -692,7 +692,7 @@ int skl_ipc_init_instance(struct
 sst_generic_ipc *ipc,
 	 /* param_block_size must be in dwords */
 	u16 param_block_size = msg->param_data_size / sizeof(u32);
 
-	print_hex_dump_debug(NULL, DUMP_PREFIX_NONE,
+	print_hex_dump_debug("Param data:", DUMP_PREFIX_NONE,
 		16, 4, buffer, param_block_size, false);
 
	header.primary = IPC_MSG_TARGET(IPC_MOD_MSG);