Repository navigation
Closed
Description
Summary
Kernel panic when tried to remove sof module, regression commit id(dc3c64b)
To reproduce
sudo rmmod sof_pci_dev
Actual result
Kernel Panic
Test recipe
Date: 2019-04-23
Kernel: 596d392
Firmware: 0c93261
Topology: sof-apl-nocodec.tplg
dmesg log
[ 18.869418] sof-audio-pci 0000:00:0e.0: DSP core(s) enabled? 0 : core_mask 3
[ 18.870330] sof-nocodec sof-nocodec: Topology forgot to remove link Port0?
[ 18.870334] sof-nocodec sof-nocodec: Topology forgot to remove link Port1?
[ 18.870336] sof-nocodec sof-nocodec: Topology forgot to remove link Port3?
[ 18.870337] sof-nocodec sof-nocodec: Topology forgot to remove link Port5?
[ 18.870339] sof-nocodec sof-nocodec: Topology forgot to remove link DMIC01?
[ 18.870500] BUG: unable to handle kernel NULL pointer dereference at 0000000000000138
[ 18.870506] #PF error: [normal kernel read fault]
[ 18.870508] PGD 0 P4D 0
[ 18.870512] Oops: 0000 [#1] SMP NOPTI
[ 18.870516] CPU: 1 PID: 2547 Comm: rmmod Not tainted 5.0.0+ #1
[ 18.870518] Hardware name: AAEON UP-APL01/UP-APL01, BIOS UPA1AM40 08/06/2018
[ 18.870528] RIP: 0010:snd_soc_remove_dai_link+0x6b/0xc0 [snd_soc_core]
[ 18.870530] Code: f5 75 0a eb 4b 48 39 c5 74 46 48 89 f0 48 8b 90 b0 00 00 00 48 8d 88 b0 00 00 00 48 39 cf 48 8d b2 50 ff ff ff 75 de 5b 5d c3 <48> 8b 87 38 01 00 00 48 85 c0 74 a4 e8 14 45 5f cf eb 9d 48 8b bf
[ 18.870532] RSP: 0018:ffff9cb4820c3d60 EFLAGS: 00010206
[ 18.870535] RAX: ffff8dba32bccad8 RBX: 0000000000000000 RCX: dead000000000200
[ 18.870536] RDX: 0000000000000006 RSI: ffff8dba34866000 RDI: 0000000000000000
[ 18.870538] RBP: ffff8dba34866000 R08: 0000000000000000 R09: ffffffffc0221100
[ 18.870539] R10: ffff8dba333f6580 R11: 0000000000000001 R12: 0000000000000000
[ 18.870541] R13: ffff8dba34866000 R14: ffff8dba32bcca28 R15: ffff8dba35fcff10
[ 18.870543] FS: 00007fe08721e540(0000) GS:ffff8dba37a80000(0000) knlGS:0000000000000000
[ 18.870545] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 18.870547] CR2: 0000000000000138 CR3: 0000000254a10000 CR4: 00000000003406e0
[ 18.870548] Call Trace:
[ 18.870558] snd_soc_tplg_component_remove+0x206/0x4b0 [snd_soc_core]
[ 18.870565] snd_soc_unregister_component+0x76/0xc0 [snd_soc_core]
[ 18.870571] release_nodes+0x121/0x220
[ 18.870577] device_release_driver_internal+0x190/0x240
[ 18.870580] driver_detach+0x48/0x80
[ 18.870583] bus_remove_driver+0x4c/0xc0
[ 18.870587] pci_unregister_driver+0x1d/0x90
[ 18.870592] __x64_sys_delete_module+0x155/0x240
[ 18.870596] do_syscall_64+0x43/0xf0
[ 18.870601] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 18.870604] RIP: 0033:0x7fe086d3c1b7
[ 18.870607] Code: 73 01 c3 48 8b 0d d1 8c 2c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 b0 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d a1 8c 2c 00 f7 d8 64 89 01 48
[ 18.870609] RSP: 002b:00007ffdd420f898 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0
[ 18.870611] RAX: ffffffffffffffda RBX: 00007ffdd420f8f8 RCX: 00007fe086d3c1b7
[ 18.870613] RDX: 000000000000000a RSI: 0000000000000800 RDI: 000055be303367f8
[ 18.870614] RBP: 000055be30336790 R08: 00007ffdd420e811 R09: 0000000000000000
[ 18.870616] R10: 00007fe086db8cc0 R11: 0000000000000206 R12: 00007ffdd420fac0
[ 18.870618] R13: 00007ffdd42117d3 R14: 000055be30335260 R15: 000055be30336790
[ 18.870620] Modules linked in: snd_soc_dmic x86_pkg_temp_thermal intel_lpss_pci intel_lpss sof_pci_dev(-) mfd_core snd_sof_intel_hda_common snd_soc_wm8804_i2c snd_soc_wm8804 snd_sof_xtensa_dsp mei_me snd_sof snd_sof_nocodec snd_soc_acpi_intel_match snd_soc_pcm512x_i2c snd_soc_acpi mei snd_soc_pcm512x snd_soc_core snd_pcm efivarfs mmc_block sdhci_pci cqhci xhci_pci sdhci xhci_hcd
[ 18.870638] CR2: 0000000000000138
[ 18.870641] ---[ end trace b811783e88c0d84a ]---
[ 18.870646] RIP: 0010:snd_soc_remove_dai_link+0x6b/0xc0 [snd_soc_core]
[ 18.870648] Code: f5 75 0a eb 4b 48 39 c5 74 46 48 89 f0 48 8b 90 b0 00 00 00 48 8d 88 b0 00 00 00 48 39 cf 48 8d b2 50 ff ff ff 75 de 5b 5d c3 <48> 8b 87 38 01 00 00 48 85 c0 74 a4 e8 14 45 5f cf eb 9d 48 8b bf
[ 18.870650] RSP: 0018:ffff9cb4820c3d60 EFLAGS: 00010206
[ 18.870652] RAX: ffff8dba32bccad8 RBX: 0000000000000000 RCX: dead000000000200
[ 18.870653] RDX: 0000000000000006 RSI: ffff8dba34866000 RDI: 0000000000000000
[ 18.870655] RBP: ffff8dba34866000 R08: 0000000000000000 R09: ffffffffc0221100
[ 18.870657] R10: ffff8dba333f6580 R11: 0000000000000001 R12: 0000000000000000
[ 18.870658] R13: ffff8dba34866000 R14: ffff8dba32bcca28 R15: ffff8dba35fcff10
[ 18.870660] FS: 00007fe08721e540(0000) GS:ffff8dba37a80000(0000) knlGS:0000000000000000
[ 18.870662] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 18.870664] CR2: 0000000000000138 CR3: 0000000254a10000 CR4: 00000000003406e0
Activity
ranj063 commentedon Apr 23, 2019
@stevyan this sounds fishy. The issue is filed 9 hours ago and the regression points to a commit from 22 days ago?
wenqingfu commentedon Apr 23, 2019
I'm thinking about the same thing.. :( will check. I originally thought it's a dup of 837, seems not...