[linux-yocto] fa3c776f1c47bd8cdbaaf1080420a67d4bfdc867 causing kernel stack corruption

Yong, Jonathan jonathan.yong at intel.com
Mon Apr 25 21:55:07 PDT 2016


Hi,

I'm seeing kernel stack corruptions in thermal_zone_device_register with 
fa3c776f1c47bd8cdbaaf1080420a67d4bfdc867. After reviewing the patch, I'm 
not see how it could cause a crash:

> [    9.385380] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: ffffffff8166ec21
> [    9.385380]
> [    9.400784] CPU: 0 PID: 1374 Comm: udevd Not tainted 4.1.22+ #4
> [    9.408933] Hardware name:
> [    9.421332]  0000000000000086 0000000064f5d616 ffff88007a54f998 ffffffff81905d67
> [    9.431269]  ffffffff81bb8458 0000000000000001 ffff88007a54fa18 ffffffff81904a6d
> [    9.441166]  ffff880000000010 ffff88007a54fa28 ffff88007a54f9c8 0000000064f5d616
> [    9.451065] Call Trace:
> [    9.455433]  [<ffffffff81905d67>] dump_stack+0x4f/0x65
> [    9.462733]  [<ffffffff81904a6d>] panic+0xc5/0x1fd
> [    9.469652]  [<ffffffff8166ec21>] ? thermal_zone_device_register+0x861/0x950
> [    9.479081]  [<ffffffff8105b4a6>] __stack_chk_fail+0x16/0x20
> [    9.487010]  [<ffffffff8166ec21>] thermal_zone_device_register+0x861/0x950
> [    9.496281]  [<ffffffffc00471cc>] acpi_thermal_add+0x252/0x42c [thermal]
> [    9.505260]  [<ffffffff8144db79>] acpi_device_probe+0x4b/0xf2
> [    9.513147]  [<ffffffff814e6519>] driver_probe_device+0x229/0x4f0
> [    9.521444]  [<ffffffff814e6873>] __driver_attach+0x93/0xa0
> [    9.529241]  [<ffffffff814e67e0>] ? driver_probe_device+0x4f0/0x4f0
> [    9.537740]  [<ffffffff814e4003>] bus_for_each_dev+0x73/0xc0
> [    9.545588]  [<ffffffff814e5e69>] driver_attach+0x19/0x20
> [    9.553191]  [<ffffffff814e5988>] bus_add_driver+0x1f8/0x2a0
> [    9.561047]  [<ffffffffc004c000>] ? 0xffffffffc004c000
> [    9.568327]  [<ffffffff814e736f>] driver_register+0x5f/0xf0
> [    9.576083]  [<ffffffff8144e461>] acpi_bus_register_driver+0x38/0x3a
> [    9.584710]  [<ffffffffc004c068>] acpi_thermal_init+0x68/0x1000 [thermal]
> [    9.593725]  [<ffffffff81000408>] do_one_initcall+0xd8/0x200
> [    9.601518]  [<ffffffff81904f74>] do_init_module+0x5c/0x1b6
> [    9.609246]  [<ffffffff810d7a65>] load_module+0x2275/0x2630
> [    9.616908]  [<ffffffff810d38e0>] ? m_show+0x1c0/0x1c0
> [    9.624195]  [<ffffffff810d3ca1>] ? copy_module_from_fd.isra.47+0x131/0x190
> [    9.633415]  [<ffffffff810d804e>] SYSC_finit_module+0x9e/0xd0
> [    9.641307]  [<ffffffff810d8099>] SyS_finit_module+0x9/0x10
> [    9.648999]  [<ffffffff8190ed1b>] system_call_fastpath+0x16/0x6e
> [    9.657246] Kernel Offset: disabled
> [    9.662601] ---[ end Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: ffffffff8166ec21
> [    9.662601]
>


More information about the linux-yocto mailing list