Re: Object debugging warning from efivar

2018-11-10 Thread Qian Cai



> On Nov 10, 2018, at 6:48 AM, Ard Biesheuvel  wrote:
> 
> On 9 November 2018 at 23:19, Qian Cai  wrote:
>> Booting this aarch64 server with the latest mainline (3541833fd1f2) get this 
>> warning
>> using object debugging. Any idea?
>> 
> 
> Thanks Qian
> 
> Fix is here
> https://lore.kernel.org/lkml/1540304307-2806-1-git-send-email-long...@redhat.com/
> 
> and is queued in efi/urgent
Tested-by: Qian Cai 
> 
> 
>> [   34.716558] ODEBUG: object (ptrval) is NOT on stack 
>> (ptrval), but annotated.
>> [   34.725266] WARNING: CPU: 0 PID: 1 at lib/debugobjects.c:369 
>> __debug_object_init+0x910/0x918
>> [   34.733806] Modules linked in:
>> [   34.736903] CPU: 0 PID: 1 Comm: swapper/0 Tainted: GW 
>> 4.20.0-rc1+ #1
>> [   34.744740] Hardware name: Huawei TaiShan 2280 /BC11SPCD, BIOS 1.50 
>> 06/01/2018
>> [   34.752051] pstate: 2085 (nzCv daIf -PAN -UAO)
>> [   34.756902] pc : __debug_object_init+0x910/0x918
>> [   34.761576] lr : __debug_object_init+0x594/0x918
>> [   34.766249] sp : 8096c1a0f420
>> [   34.769603] x29: 8096c1a0f420 x28: 1012d8341ec6
>> [   34.774984] x27: 2bc21000 x26: 2bc34e40
>> [   34.780364] x25: 8096c411e8c8 x24: 8096c411e8d0
>> [   34.785743] x23: 2c5654d0 x22: 2bc21c40
>> [   34.791123] x21: 801ec1a00060 x20: 801ec1a00040
>> [   34.796502] x19: 801ec1a00040 x18: 003f
>> [   34.801881] x17:  x16: 
>> [   34.807260] x15: 7fff x14: 6e6120747562202c
>> [   34.812640] x13: 295f5f5f5f6c6176 x12: 1012d8341ceb
>> [   34.818019] x11: f2f2f2f2 x10: dfff2000
>> [   34.823399] x9 : 2a0e9848 x8 : 801ec1a00b70
>> [   34.828778] x7 : f2f2f204 x6 : f2f2f204
>> [   34.834157] x5 : 41b58ab3 x4 : dfff2000
>> [   34.839537] x3 : dfff2000 x2 : 2b6ba53cf7873600
>> [   34.844916] x1 :  x0 : 0050
>> [   34.850295] Call trace:
>> [   34.852772]  __debug_object_init+0x910/0x918
>> [   34.857095]  debug_object_init_on_stack+0x20/0x28
>> [   34.861859]  __init_work+0x34/0x50
>> [   34.865304]  virt_efi_get_next_variable+0xbc/0x190
>> [   34.870153]  efivar_init+0x144/0x4b0
>> [   34.873773]  efisubsys_init+0x1a8/0x428
>> [   34.877656]  do_one_initcall+0x160/0x6bc
>> [   34.881628]  kernel_init_freeable+0x74c/0x814
>> [   34.886040]  kernel_init+0x18/0x11c
>> [   34.889572]  ret_from_fork+0x10/0x1c
>> [   34.893189] irq event stamp: 882290
>> [   34.896723] hardirqs last  enabled at (882289): [] 
>> _raw_spin_unlock_irqrestore+0x80/0x88
>> [   34.906496] hardirqs last disabled at (882290): [] 
>> _raw_spin_lock_irqsave+0x34/0x98
>> [   34.915829] softirqs last  enabled at (881706): [] 
>> __do_softirq+0x7c8/0x9c8
>> [   34.924460] softirqs last disabled at (881697): [] 
>> irq_exit+0x25c/0x2f0
>> [   34.932736] ---[ end trace f86eaf2ac70822cc ]---



Re: Object debugging warning from efivar

2018-11-10 Thread Ard Biesheuvel
On 9 November 2018 at 23:19, Qian Cai  wrote:
> Booting this aarch64 server with the latest mainline (3541833fd1f2) get this 
> warning
> using object debugging. Any idea?
>

Thanks Qian

Fix is here
https://lore.kernel.org/lkml/1540304307-2806-1-git-send-email-long...@redhat.com/

and is queued in efi/urgent


> [   34.716558] ODEBUG: object (ptrval) is NOT on stack 
> (ptrval), but annotated.
> [   34.725266] WARNING: CPU: 0 PID: 1 at lib/debugobjects.c:369 
> __debug_object_init+0x910/0x918
> [   34.733806] Modules linked in:
> [   34.736903] CPU: 0 PID: 1 Comm: swapper/0 Tainted: GW 
> 4.20.0-rc1+ #1
> [   34.744740] Hardware name: Huawei TaiShan 2280 /BC11SPCD, BIOS 1.50 
> 06/01/2018
> [   34.752051] pstate: 2085 (nzCv daIf -PAN -UAO)
> [   34.756902] pc : __debug_object_init+0x910/0x918
> [   34.761576] lr : __debug_object_init+0x594/0x918
> [   34.766249] sp : 8096c1a0f420
> [   34.769603] x29: 8096c1a0f420 x28: 1012d8341ec6
> [   34.774984] x27: 2bc21000 x26: 2bc34e40
> [   34.780364] x25: 8096c411e8c8 x24: 8096c411e8d0
> [   34.785743] x23: 2c5654d0 x22: 2bc21c40
> [   34.791123] x21: 801ec1a00060 x20: 801ec1a00040
> [   34.796502] x19: 801ec1a00040 x18: 003f
> [   34.801881] x17:  x16: 
> [   34.807260] x15: 7fff x14: 6e6120747562202c
> [   34.812640] x13: 295f5f5f5f6c6176 x12: 1012d8341ceb
> [   34.818019] x11: f2f2f2f2 x10: dfff2000
> [   34.823399] x9 : 2a0e9848 x8 : 801ec1a00b70
> [   34.828778] x7 : f2f2f204 x6 : f2f2f204
> [   34.834157] x5 : 41b58ab3 x4 : dfff2000
> [   34.839537] x3 : dfff2000 x2 : 2b6ba53cf7873600
> [   34.844916] x1 :  x0 : 0050
> [   34.850295] Call trace:
> [   34.852772]  __debug_object_init+0x910/0x918
> [   34.857095]  debug_object_init_on_stack+0x20/0x28
> [   34.861859]  __init_work+0x34/0x50
> [   34.865304]  virt_efi_get_next_variable+0xbc/0x190
> [   34.870153]  efivar_init+0x144/0x4b0
> [   34.873773]  efisubsys_init+0x1a8/0x428
> [   34.877656]  do_one_initcall+0x160/0x6bc
> [   34.881628]  kernel_init_freeable+0x74c/0x814
> [   34.886040]  kernel_init+0x18/0x11c
> [   34.889572]  ret_from_fork+0x10/0x1c
> [   34.893189] irq event stamp: 882290
> [   34.896723] hardirqs last  enabled at (882289): [] 
> _raw_spin_unlock_irqrestore+0x80/0x88
> [   34.906496] hardirqs last disabled at (882290): [] 
> _raw_spin_lock_irqsave+0x34/0x98
> [   34.915829] softirqs last  enabled at (881706): [] 
> __do_softirq+0x7c8/0x9c8
> [   34.924460] softirqs last disabled at (881697): [] 
> irq_exit+0x25c/0x2f0
> [   34.932736] ---[ end trace f86eaf2ac70822cc ]---