* Re: Needed in 5.4.y: [PATCH 5.10 055/126] ACPI: tables: x86: Reserve memory occupied by ACPI tables
@ 2021-04-28 1:25 George Kennedy
0 siblings, 0 replies; 7+ messages in thread
From: George Kennedy @ 2021-04-28 1:25 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: stable
Hello Greg,
We need the following 2 upstream commits applied to 5.4.y to fix an iBFT
boot failure:
2021-03-29 rafael.j.wysocki@intel.com - 1a1c130a 2021-03-23 Rafael J.
Wysocki ACPI: tables: x86: Reserve memory occupied by ACPI tables
2021-04-13 rafael.j.wysocki@intel.com - 6998a88 2021-04-13 Rafael J.
Wysocki ACPI: x86: Call acpi_boot_table_init() after acpi_table_upgrade()
Currently, only the first commit (1a1c130a) is destined for 5.10 & 5.11.
The 2nd commit (6998a88) is needed as well and both commits are needed
in 5.4.y.
Thank you,
George
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Needed in 5.4.y: [PATCH 5.10 055/126] ACPI: tables: x86: Reserve memory occupied by ACPI tables
[not found] ` <69f6104e-ca54-5686-4cbf-dc14cb1697f3@oracle.com>
@ 2021-04-28 4:57 ` Greg Kroah-Hartman
2021-04-28 12:52 ` George Kennedy
0 siblings, 1 reply; 7+ messages in thread
From: Greg Kroah-Hartman @ 2021-04-28 4:57 UTC (permalink / raw)
To: George Kennedy; +Cc: Dhaval Giani, Konrad Rzeszutek Wilk, stable
On Tue, Apr 27, 2021 at 06:18:05PM -0400, George Kennedy wrote:
> CC+ stable@vger.kernel.org
>
> On 4/27/2021 6:17 PM, George Kennedy wrote:
> > Hello Greg,
> >
> > We need the following 2 upstream commits applied to 5.4.y to fix an iBFT
> > boot failure:
> >
> > 2021-03-29 rafael.j.wysocki@intel.com - 1a1c130a 2021-03-23 Rafael J.
> > Wysocki ACPI: tables: x86: Reserve memory occupied by ACPI tables
> > 2021-04-13 rafael.j.wysocki@intel.com - 6998a88 2021-04-13 Rafael J.
> > Wysocki ACPI: x86: Call acpi_boot_table_init() after
> > acpi_table_upgrade()
> >
> > Currently, only the first commit (1a1c130a) is destined for 5.10 & 5.11.
> >
> > The 2nd commit (6998a88) is needed as well and both commits are needed
> > in 5.4.y.
Is this a regression (i.e. did this hardware work on older kernels?),
and if so, what commit caused the problem?
These commits are already in 5.10.y, what changed in older kernels to
require this to be backported?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Needed in 5.4.y: [PATCH 5.10 055/126] ACPI: tables: x86: Reserve memory occupied by ACPI tables
2021-04-28 4:57 ` Needed in 5.4.y: [PATCH 5.10 055/126] ACPI: tables: x86: Reserve memory occupied by ACPI tables Greg Kroah-Hartman
@ 2021-04-28 12:52 ` George Kennedy
2021-04-29 17:24 ` George Kennedy
0 siblings, 1 reply; 7+ messages in thread
From: George Kennedy @ 2021-04-28 12:52 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: Dhaval Giani, Konrad Rzeszutek Wilk, stable
On 4/28/2021 12:57 AM, Greg Kroah-Hartman wrote:
> On Tue, Apr 27, 2021 at 06:18:05PM -0400, George Kennedy wrote:
>> CC+ stable@vger.kernel.org
>>
>> On 4/27/2021 6:17 PM, George Kennedy wrote:
>>> Hello Greg,
>>>
>>> We need the following 2 upstream commits applied to 5.4.y to fix an iBFT
>>> boot failure:
>>>
>>> 2021-03-29 rafael.j.wysocki@intel.com - 1a1c130a 2021-03-23 Rafael J.
>>> Wysocki ACPI: tables: x86: Reserve memory occupied by ACPI tables
>>> 2021-04-13 rafael.j.wysocki@intel.com - 6998a88 2021-04-13 Rafael J.
>>> Wysocki ACPI: x86: Call acpi_boot_table_init() after
>>> acpi_table_upgrade()
>>>
>>> Currently, only the first commit (1a1c130a) is destined for 5.10 & 5.11.
>>>
>>> The 2nd commit (6998a88) is needed as well and both commits are needed
>>> in 5.4.y.
> Is this a regression (i.e. did this hardware work on older kernels?),
> and if so, what commit caused the problem?
>
> These commits are already in 5.10.y, what changed in older kernels to
> require this to be backported?
Not sure. With KASAN enabled the bug is exposed, but only during boot as
the ACPI tables are freed and their memory re-alloc'd. Silent data
corruption occurs if KASAN not enabled.
This is a latent bug that in upstream was more readily exposed with the
following commit:
commit 7fef431be9c9ac255838a9578331567b9dba4477
Author: David Hildenbrand <david@redhat.com>
Date: Thu Oct 15 20:09:35 2020 -0700 mm/page_alloc: place pages to tail in __free_pages_core()
This is the failure with latest upstream stable and KASAN enabled:
[ 22.986842] OPA Virtual Network Driver - v1.0
[ 22.988565] iBFT detected.
[ 22.989244]
==================================================================
[ 22.990233] BUG: KASAN: use-after-free in ibft_init+0x134/0xb8b
[ 22.990233] Read of size 4 at addr ffff8880be451004 by task swapper/0/1
[ 22.990233]
[ 22.990233] CPU: 3 PID: 1 Comm: swapper/0 Not tainted 5.4.115-rc1.syzk #1
[ 22.990233] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
BIOS 0.0.0 02/06/2015
[ 22.990233] Call Trace:
[ 22.990233] dump_stack+0xd4/0x119
[ 22.990233] ? ibft_init+0x134/0xb8b
[ 22.990233] print_address_description.constprop.6+0x20/0x220
[ 22.990233] ? ibft_init+0x134/0xb8b
[ 22.990233] ? ibft_init+0x134/0xb8b
[ 22.990233] __kasan_report.cold.9+0x37/0x77
[ 22.990233] ? ibft_init+0x134/0xb8b
[ 22.990233] kasan_report+0x14/0x20
[ 22.990233] __asan_report_load_n_noabort+0xf/0x20
[ 22.990233] ibft_init+0x134/0xb8b
[ 22.990233] ? dmi_sysfs_init+0x1a5/0x1a5
[ 22.990233] ? dmi_walk+0x72/0x90
[ 22.990233] ? ibft_check_initiator_for+0x159/0x159
[ 22.990233] ? rvt_init_port+0x110/0x110
[ 22.990233] ? ibft_check_initiator_for+0x159/0x159
[ 22.990233] do_one_initcall+0xc3/0x480
[ 22.990233] ? perf_trace_initcall_level+0x410/0x410
[ 22.990233] kernel_init_freeable+0x54c/0x66e
[ 22.990233] ? start_kernel+0x94b/0x94b
[ 22.990233] ? __switch_to_asm+0x34/0x70
[ 22.990233] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20
[ 22.990233] ? __kasan_check_write+0x14/0x20
[ 22.990233] ? rest_init+0xe6/0xe6
[ 22.990233] kernel_init+0x16/0x1ca
[ 22.990233] ? rest_init+0xe6/0xe6
[ 22.990233] ret_from_fork+0x35/0x40
[ 22.990233]
[ 22.990233] The buggy address belongs to the page:
[ 22.990233] page:ffffea0002f91440 refcount:0 mapcount:0
mapping:0000000000000000 index:0x1
[ 22.990233] flags: 0xfffffc0000000()
[ 22.990233] raw: 000fffffc0000000 ffffea0002f914c8 ffffea0002fa4708
0000000000000000
[ 22.990233] raw: 0000000000000001 0000000000000000 00000000ffffffff
0000000000000000
[ 22.990233] page dumped because: kasan: bad access detected
[ 22.990233]
[ 22.990233] Memory state around the buggy address:
[ 22.990233] ffff8880be450f00: ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff
[ 22.990233] ffff8880be450f80: ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff
[ 22.990233] >ffff8880be451000: ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff
[ 22.990233] ^
[ 22.990233] ffff8880be451080: ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff
[ 22.990233] ffff8880be451100: ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff
[ 22.990233]
==================================================================
[ 22.990233] Disabling lock debugging due to kernel taint
[ 23.047129] Kernel panic - not syncing: panic_on_warn set ...
[ 23.048110] CPU: 3 PID: 1 Comm: swapper/0 Tainted: G B
5.4.115-rc1v5.4.114-21-gf9824ac.syzk #1
[ 23.048110] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
BIOS 0.0.0 02/06/2015
[ 23.048110] Call Trace:
[ 23.048110] dump_stack+0xd4/0x119
[ 23.048110] ? ibft_init+0xc3/0xb8b
[ 23.048110] panic+0x28f/0x6ad
[ 23.048110] ? add_taint.cold.9+0x16/0x16
[ 23.048110] ? ibft_init+0x134/0xb8b
[ 23.048110] ? add_taint+0x47/0x90
[ 23.048110] ? add_taint+0x47/0x90
[ 23.048110] ? ibft_init+0x134/0xb8b
[ 23.048110] ? ibft_init+0x134/0xb8b
[ 23.048110] end_report+0x4c/0x54
[ 23.048110] __kasan_report.cold.9+0x55/0x77
[ 23.048110] ? ibft_init+0x134/0xb8b
[ 23.048110] kasan_report+0x14/0x20
[ 23.048110] __asan_report_load_n_noabort+0xf/0x20
[ 23.048110] ibft_init+0x134/0xb8b
[ 23.048110] ? dmi_sysfs_init+0x1a5/0x1a5
[ 23.048110] ? dmi_walk+0x72/0x90
[ 23.048110] ? ibft_check_initiator_for+0x159/0x159
[ 23.048110] ? rvt_init_port+0x110/0x110
[ 23.048110] ? ibft_check_initiator_for+0x159/0x159
[ 23.048110] do_one_initcall+0xc3/0x480
[ 23.048110] ? perf_trace_initcall_level+0x410/0x410
[ 23.048110] kernel_init_freeable+0x54c/0x66e
[ 23.048110] ? start_kernel+0x94b/0x94b
[ 23.048110] ? __switch_to_asm+0x34/0x70
[ 23.048110] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20
[ 23.048110] ? __kasan_check_write+0x14/0x20
[ 23.048110] ? rest_init+0xe6/0xe6
[ 23.048110] kernel_init+0x16/0x1ca
[ 23.048110] ? rest_init+0xe6/0xe6
[ 23.048110] ret_from_fork+0x35/0x40
[ 23.048110] Dumping ftrace buffer:
[ 23.048110] ---------------------------------
[ 23.048110] rb_produ-210 3.... 7555323us :
ring_buffer_producer_thread: Starting ring buffer hammer
[ 23.048110] rb_produ-210 3.... 17555348us :
ring_buffer_producer_thread: End ring buffer hammer
[ 23.048110] rb_produ-210 3.... 17640105us :
ring_buffer_producer_thread: Running Consumer at nice: 19
[ 23.048110] rb_produ-210 3.... 17640111us :
ring_buffer_producer_thread: Running Producer at nice: 19
[ 23.048110] rb_produ-210 3.... 17640113us :
ring_buffer_producer_thread: WARNING!!! This test is running at lowest
priority.
[ 23.048110] rb_produ-210 3.... 17640118us :
ring_buffer_producer_thread: Time: 10000017 (usecs)
[ 23.048110] rb_produ-210 3.... 17640122us :
ring_buffer_producer_thread: Overruns: 4460970
[ 23.048110] rb_produ-210 3.... 17640129us :
ring_buffer_producer_thread: Read: 3807780 (by events)
[ 23.048110] rb_produ-210 3.... 17640134us :
ring_buffer_producer_thread: Entries: 0
[ 23.048110] rb_produ-210 3.... 17640137us :
ring_buffer_producer_thread: Total: 8268750
[ 23.048110] rb_produ-210 3.... 17640142us :
ring_buffer_producer_thread: Missed: 0
[ 23.048110] rb_produ-210 3.... 17640146us :
ring_buffer_producer_thread: Hit: 8268750
[ 23.048110] rb_produ-210 3.... 17640150us :
ring_buffer_producer_thread: Entries per millisec: 826
[ 23.048110] rb_produ-210 3.... 17640154us :
ring_buffer_producer_thread: 1210 ns per entry
[ 23.048110] rb_produ-210 3.... 17640157us :
ring_buffer_producer_thread: Sleeping for 10 secs
[ 23.048110] ---------------------------------
2021-04-26 gregkh@linuxfoundation.org - f9824ac 2021-04-26 Greg
Kroah-Hartman Linux 5.4.115-rc1
Because the failure occurs during boot, syzkaller did not expose this bug.
George
>
> thanks,
>
> greg k-h
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Needed in 5.4.y: [PATCH 5.10 055/126] ACPI: tables: x86: Reserve memory occupied by ACPI tables
2021-04-28 12:52 ` George Kennedy
@ 2021-04-29 17:24 ` George Kennedy
2021-04-30 13:40 ` Greg Kroah-Hartman
0 siblings, 1 reply; 7+ messages in thread
From: George Kennedy @ 2021-04-29 17:24 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: Dhaval Giani, Konrad Rzeszutek Wilk, stable
On 4/28/2021 8:52 AM, George Kennedy wrote:
>
>
> On 4/28/2021 12:57 AM, Greg Kroah-Hartman wrote:
>> On Tue, Apr 27, 2021 at 06:18:05PM -0400, George Kennedy wrote:
>>> CC+ stable@vger.kernel.org
>>>
>>> On 4/27/2021 6:17 PM, George Kennedy wrote:
>>>> Hello Greg,
>>>>
>>>> We need the following 2 upstream commits applied to 5.4.y to fix an
>>>> iBFT
>>>> boot failure:
>>>>
>>>> 2021-03-29 rafael.j.wysocki@intel.com - 1a1c130a 2021-03-23 Rafael J.
>>>> Wysocki ACPI: tables: x86: Reserve memory occupied by ACPI tables
>>>> 2021-04-13 rafael.j.wysocki@intel.com - 6998a88 2021-04-13 Rafael J.
>>>> Wysocki ACPI: x86: Call acpi_boot_table_init() after
>>>> acpi_table_upgrade()
>>>>
>>>> Currently, only the first commit (1a1c130a) is destined for 5.10 &
>>>> 5.11.
>>>>
>>>> The 2nd commit (6998a88) is needed as well and both commits are needed
>>>> in 5.4.y.
>> Is this a regression (i.e. did this hardware work on older kernels?),
>> and if so, what commit caused the problem?
>>
>> These commits are already in 5.10.y, what changed in older kernels to
>> require this to be backported?
Hello Greg,
Can the same 2 patches also be applied to 4.14.y, which one of distros
is based on?
4.14.y crashes during ibft boot with KASAN enabled without the 2 patches.
Thank you,
George
>
> Not sure. With KASAN enabled the bug is exposed, but only during boot
> as the ACPI tables are freed and their memory re-alloc'd. Silent data
> corruption occurs if KASAN not enabled.
>
> This is a latent bug that in upstream was more readily exposed with
> the following commit:
>
> commit 7fef431be9c9ac255838a9578331567b9dba4477
> Author: David Hildenbrand <david@redhat.com>
> Date: Thu Oct 15 20:09:35 2020 -0700 mm/page_alloc: place pages
> to tail in __free_pages_core()
>
>
>
> This is the failure with latest upstream stable and KASAN enabled:
>
> [ 22.986842] OPA Virtual Network Driver - v1.0
> [ 22.988565] iBFT detected.
> [ 22.989244]
> ==================================================================
> [ 22.990233] BUG: KASAN: use-after-free in ibft_init+0x134/0xb8b
> [ 22.990233] Read of size 4 at addr ffff8880be451004 by task
> swapper/0/1
> [ 22.990233]
> [ 22.990233] CPU: 3 PID: 1 Comm: swapper/0 Not tainted
> 5.4.115-rc1.syzk #1
> [ 22.990233] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
> BIOS 0.0.0 02/06/2015
> [ 22.990233] Call Trace:
> [ 22.990233] dump_stack+0xd4/0x119
> [ 22.990233] ? ibft_init+0x134/0xb8b
> [ 22.990233] print_address_description.constprop.6+0x20/0x220
> [ 22.990233] ? ibft_init+0x134/0xb8b
> [ 22.990233] ? ibft_init+0x134/0xb8b
> [ 22.990233] __kasan_report.cold.9+0x37/0x77
> [ 22.990233] ? ibft_init+0x134/0xb8b
> [ 22.990233] kasan_report+0x14/0x20
> [ 22.990233] __asan_report_load_n_noabort+0xf/0x20
> [ 22.990233] ibft_init+0x134/0xb8b
> [ 22.990233] ? dmi_sysfs_init+0x1a5/0x1a5
> [ 22.990233] ? dmi_walk+0x72/0x90
> [ 22.990233] ? ibft_check_initiator_for+0x159/0x159
> [ 22.990233] ? rvt_init_port+0x110/0x110
> [ 22.990233] ? ibft_check_initiator_for+0x159/0x159
> [ 22.990233] do_one_initcall+0xc3/0x480
> [ 22.990233] ? perf_trace_initcall_level+0x410/0x410
> [ 22.990233] kernel_init_freeable+0x54c/0x66e
> [ 22.990233] ? start_kernel+0x94b/0x94b
> [ 22.990233] ? __switch_to_asm+0x34/0x70
> [ 22.990233] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20
> [ 22.990233] ? __kasan_check_write+0x14/0x20
> [ 22.990233] ? rest_init+0xe6/0xe6
> [ 22.990233] kernel_init+0x16/0x1ca
> [ 22.990233] ? rest_init+0xe6/0xe6
> [ 22.990233] ret_from_fork+0x35/0x40
> [ 22.990233]
> [ 22.990233] The buggy address belongs to the page:
> [ 22.990233] page:ffffea0002f91440 refcount:0 mapcount:0
> mapping:0000000000000000 index:0x1
> [ 22.990233] flags: 0xfffffc0000000()
> [ 22.990233] raw: 000fffffc0000000 ffffea0002f914c8 ffffea0002fa4708
> 0000000000000000
> [ 22.990233] raw: 0000000000000001 0000000000000000 00000000ffffffff
> 0000000000000000
> [ 22.990233] page dumped because: kasan: bad access detected
> [ 22.990233]
> [ 22.990233] Memory state around the buggy address:
> [ 22.990233] ffff8880be450f00: ff ff ff ff ff ff ff ff ff ff ff ff
> ff ff ff ff
> [ 22.990233] ffff8880be450f80: ff ff ff ff ff ff ff ff ff ff ff ff
> ff ff ff ff
> [ 22.990233] >ffff8880be451000: ff ff ff ff ff ff ff ff ff ff ff ff
> ff ff ff ff
> [ 22.990233] ^
> [ 22.990233] ffff8880be451080: ff ff ff ff ff ff ff ff ff ff ff ff
> ff ff ff ff
> [ 22.990233] ffff8880be451100: ff ff ff ff ff ff ff ff ff ff ff ff
> ff ff ff ff
> [ 22.990233]
> ==================================================================
> [ 22.990233] Disabling lock debugging due to kernel taint
> [ 23.047129] Kernel panic - not syncing: panic_on_warn set ...
> [ 23.048110] CPU: 3 PID: 1 Comm: swapper/0 Tainted: G B
> 5.4.115-rc1v5.4.114-21-gf9824ac.syzk #1
> [ 23.048110] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
> BIOS 0.0.0 02/06/2015
> [ 23.048110] Call Trace:
> [ 23.048110] dump_stack+0xd4/0x119
> [ 23.048110] ? ibft_init+0xc3/0xb8b
> [ 23.048110] panic+0x28f/0x6ad
> [ 23.048110] ? add_taint.cold.9+0x16/0x16
> [ 23.048110] ? ibft_init+0x134/0xb8b
> [ 23.048110] ? add_taint+0x47/0x90
> [ 23.048110] ? add_taint+0x47/0x90
> [ 23.048110] ? ibft_init+0x134/0xb8b
> [ 23.048110] ? ibft_init+0x134/0xb8b
> [ 23.048110] end_report+0x4c/0x54
> [ 23.048110] __kasan_report.cold.9+0x55/0x77
> [ 23.048110] ? ibft_init+0x134/0xb8b
> [ 23.048110] kasan_report+0x14/0x20
> [ 23.048110] __asan_report_load_n_noabort+0xf/0x20
> [ 23.048110] ibft_init+0x134/0xb8b
> [ 23.048110] ? dmi_sysfs_init+0x1a5/0x1a5
> [ 23.048110] ? dmi_walk+0x72/0x90
> [ 23.048110] ? ibft_check_initiator_for+0x159/0x159
> [ 23.048110] ? rvt_init_port+0x110/0x110
> [ 23.048110] ? ibft_check_initiator_for+0x159/0x159
> [ 23.048110] do_one_initcall+0xc3/0x480
> [ 23.048110] ? perf_trace_initcall_level+0x410/0x410
> [ 23.048110] kernel_init_freeable+0x54c/0x66e
> [ 23.048110] ? start_kernel+0x94b/0x94b
> [ 23.048110] ? __switch_to_asm+0x34/0x70
> [ 23.048110] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20
> [ 23.048110] ? __kasan_check_write+0x14/0x20
> [ 23.048110] ? rest_init+0xe6/0xe6
> [ 23.048110] kernel_init+0x16/0x1ca
> [ 23.048110] ? rest_init+0xe6/0xe6
> [ 23.048110] ret_from_fork+0x35/0x40
> [ 23.048110] Dumping ftrace buffer:
> [ 23.048110] ---------------------------------
> [ 23.048110] rb_produ-210 3.... 7555323us :
> ring_buffer_producer_thread: Starting ring buffer hammer
> [ 23.048110] rb_produ-210 3.... 17555348us :
> ring_buffer_producer_thread: End ring buffer hammer
> [ 23.048110] rb_produ-210 3.... 17640105us :
> ring_buffer_producer_thread: Running Consumer at nice: 19
> [ 23.048110] rb_produ-210 3.... 17640111us :
> ring_buffer_producer_thread: Running Producer at nice: 19
> [ 23.048110] rb_produ-210 3.... 17640113us :
> ring_buffer_producer_thread: WARNING!!! This test is running at lowest
> priority.
> [ 23.048110] rb_produ-210 3.... 17640118us :
> ring_buffer_producer_thread: Time: 10000017 (usecs)
> [ 23.048110] rb_produ-210 3.... 17640122us :
> ring_buffer_producer_thread: Overruns: 4460970
> [ 23.048110] rb_produ-210 3.... 17640129us :
> ring_buffer_producer_thread: Read: 3807780 (by events)
> [ 23.048110] rb_produ-210 3.... 17640134us :
> ring_buffer_producer_thread: Entries: 0
> [ 23.048110] rb_produ-210 3.... 17640137us :
> ring_buffer_producer_thread: Total: 8268750
> [ 23.048110] rb_produ-210 3.... 17640142us :
> ring_buffer_producer_thread: Missed: 0
> [ 23.048110] rb_produ-210 3.... 17640146us :
> ring_buffer_producer_thread: Hit: 8268750
> [ 23.048110] rb_produ-210 3.... 17640150us :
> ring_buffer_producer_thread: Entries per millisec: 826
> [ 23.048110] rb_produ-210 3.... 17640154us :
> ring_buffer_producer_thread: 1210 ns per entry
> [ 23.048110] rb_produ-210 3.... 17640157us :
> ring_buffer_producer_thread: Sleeping for 10 secs
> [ 23.048110] ---------------------------------
>
> 2021-04-26 gregkh@linuxfoundation.org - f9824ac 2021-04-26 Greg
> Kroah-Hartman Linux 5.4.115-rc1
>
> Because the failure occurs during boot, syzkaller did not expose this
> bug.
>
> George
>
>>
>> thanks,
>>
>> greg k-h
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Needed in 5.4.y: [PATCH 5.10 055/126] ACPI: tables: x86: Reserve memory occupied by ACPI tables
2021-04-29 17:24 ` George Kennedy
@ 2021-04-30 13:40 ` Greg Kroah-Hartman
2021-04-30 15:57 ` George Kennedy
0 siblings, 1 reply; 7+ messages in thread
From: Greg Kroah-Hartman @ 2021-04-30 13:40 UTC (permalink / raw)
To: George Kennedy; +Cc: Dhaval Giani, Konrad Rzeszutek Wilk, stable
On Thu, Apr 29, 2021 at 01:24:06PM -0400, George Kennedy wrote:
>
>
> On 4/28/2021 8:52 AM, George Kennedy wrote:
> >
> >
> > On 4/28/2021 12:57 AM, Greg Kroah-Hartman wrote:
> > > On Tue, Apr 27, 2021 at 06:18:05PM -0400, George Kennedy wrote:
> > > > CC+ stable@vger.kernel.org
> > > >
> > > > On 4/27/2021 6:17 PM, George Kennedy wrote:
> > > > > Hello Greg,
> > > > >
> > > > > We need the following 2 upstream commits applied to 5.4.y to
> > > > > fix an iBFT
> > > > > boot failure:
> > > > >
> > > > > 2021-03-29 rafael.j.wysocki@intel.com - 1a1c130a 2021-03-23 Rafael J.
> > > > > Wysocki ACPI: tables: x86: Reserve memory occupied by ACPI tables
> > > > > 2021-04-13 rafael.j.wysocki@intel.com - 6998a88 2021-04-13 Rafael J.
> > > > > Wysocki ACPI: x86: Call acpi_boot_table_init() after
> > > > > acpi_table_upgrade()
> > > > >
> > > > > Currently, only the first commit (1a1c130a) is destined for
> > > > > 5.10 & 5.11.
> > > > >
> > > > > The 2nd commit (6998a88) is needed as well and both commits are needed
> > > > > in 5.4.y.
> > > Is this a regression (i.e. did this hardware work on older kernels?),
> > > and if so, what commit caused the problem?
> > >
> > > These commits are already in 5.10.y, what changed in older kernels to
> > > require this to be backported?
>
> Hello Greg,
>
> Can the same 2 patches also be applied to 4.14.y, which one of distros is
> based on?
>
> 4.14.y crashes during ibft boot with KASAN enabled without the 2 patches.
What about 4.19.y? You do not want to skip anything in the middle,
right?
And I need an ack from the authors and maintainers of these changes
before I can take them into the stable trees. Any reason you didn't cc:
them all?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Needed in 5.4.y: [PATCH 5.10 055/126] ACPI: tables: x86: Reserve memory occupied by ACPI tables
2021-04-30 13:40 ` Greg Kroah-Hartman
@ 2021-04-30 15:57 ` George Kennedy
2021-04-30 16:40 ` Rafael J. Wysocki
0 siblings, 1 reply; 7+ messages in thread
From: George Kennedy @ 2021-04-30 15:57 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: Dhaval Giani, Konrad Rzeszutek Wilk, stable, Rafael J. Wysocki,
Linux ACPI, Mike Rapoport, Thomas Gleixner, Ingo Molnar,
Borislav Petkov, x86 Maintainers
On 4/30/2021 9:40 AM, Greg Kroah-Hartman wrote:
> On Thu, Apr 29, 2021 at 01:24:06PM -0400, George Kennedy wrote:
>>
>> On 4/28/2021 8:52 AM, George Kennedy wrote:
>>>
>>> On 4/28/2021 12:57 AM, Greg Kroah-Hartman wrote:
>>>> On Tue, Apr 27, 2021 at 06:18:05PM -0400, George Kennedy wrote:
>>>>> CC+ stable@vger.kernel.org
>>>>>
>>>>> On 4/27/2021 6:17 PM, George Kennedy wrote:
>>>>>> Hello Greg,
>>>>>>
>>>>>> We need the following 2 upstream commits applied to 5.4.y to
>>>>>> fix an iBFT
>>>>>> boot failure:
>>>>>>
>>>>>> 2021-03-29 rafael.j.wysocki@intel.com - 1a1c130a 2021-03-23 Rafael J.
>>>>>> Wysocki ACPI: tables: x86: Reserve memory occupied by ACPI tables
>>>>>> 2021-04-13 rafael.j.wysocki@intel.com - 6998a88 2021-04-13 Rafael J.
>>>>>> Wysocki ACPI: x86: Call acpi_boot_table_init() after
>>>>>> acpi_table_upgrade()
>>>>>>
>>>>>> Currently, only the first commit (1a1c130a) is destined for
>>>>>> 5.10 & 5.11.
>>>>>>
>>>>>> The 2nd commit (6998a88) is needed as well and both commits are needed
>>>>>> in 5.4.y.
>>>> Is this a regression (i.e. did this hardware work on older kernels?),
>>>> and if so, what commit caused the problem?
>>>>
>>>> These commits are already in 5.10.y, what changed in older kernels to
>>>> require this to be backported?
>> Hello Greg,
>>
>> Can the same 2 patches also be applied to 4.14.y, which one of distros is
>> based on?
>>
>> 4.14.y crashes during ibft boot with KASAN enabled without the 2 patches.
> What about 4.19.y? You do not want to skip anything in the middle,
> right?
>
> And I need an ack from the authors and maintainers of these changes
> before I can take them into the stable trees. Any reason you didn't cc:
> them all?
CC+ maintainers
Rafael and Mike,
We need Rafael's 2 upstream ACPI commits (1a1c130a & 6998a88) backported
to more of the stable branches - at least in 5.4.y, 4.14.y, and 4.19.y.
Can you (along with the other maintainers) ACK the request?
Without the 2 ACPI commits, the failure occurs in latest 4.19.y and
other stable branches. Rafael's 2 ACPI commits fix the crash.
[ 17.239703] iscsi: registered transport (iser)
[ 17.241038] OPA Virtual Network Driver - v1.0
[ 17.242833] iBFT detected.
[ 17.243593]
==================================================================
[ 17.243615] BUG: KASAN: use-after-free in ibft_init+0x134/0xab7
[ 17.243615] Read of size 4 at addr ffff8880be451004 by task swapper/0/1
[ 17.243615]
[ 17.243615] CPU: 2 PID: 1 Comm: swapper/0 Not tainted
4.19.190-rc1-1bd8f1c #1
[ 17.243615] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
BIOS 0.0.0 02/06/2015
[ 17.243615] Call Trace:
[ 17.243615] dump_stack+0xb3/0xf0
[ 17.243615] ? ibft_init+0x134/0xab7
[ 17.243615] print_address_description+0x71/0x239
[ 17.243615] ? ibft_init+0x134/0xab7
[ 17.243615] kasan_report.cold.6+0x242/0x2fe
[ 17.243615] __asan_report_load_n_noabort+0x14/0x20
[ 17.243615] ibft_init+0x134/0xab7
[ 17.243615] ? dcdrbu_init+0x1e6/0x225
[ 17.243615] ? ibft_check_initiator_for+0x14a/0x14a
[ 17.243615] ? ibft_check_initiator_for+0x14a/0x14a
[ 17.243615] do_one_initcall+0xb6/0x3a0
[ 17.243615] ? perf_trace_initcall_level+0x430/0x430
[ 17.243615] ? kasan_unpoison_shadow+0x35/0x50
[ 17.243615] kernel_init_freeable+0x54d/0x64d
[ 17.243615] ? start_kernel+0x7e9/0x7e9
[ 17.243615] ? __switch_to_asm+0x41/0x70
[ 17.243615] ? kasan_check_read+0x11/0x20
[ 17.243615] ? rest_init+0xdc/0xdc
[ 17.243615] kernel_init+0x16/0x180
[ 17.243615] ? rest_init+0xdc/0xdc
[ 17.243615] ret_from_fork+0x35/0x40
[ 17.243615]
[ 17.243615] The buggy address belongs to the page:
[ 17.243615] page:ffffea0002f91440 count:0 mapcount:0
mapping:0000000000000000 index:0x1
[ 17.243615] flags: 0xfffffc0000000()
[ 17.243615] raw: 000fffffc0000000 ffffea0002df9708 ffffea0002f91408
0000000000000000
[ 17.243615] raw: 0000000000000001 0000000000000000 00000000ffffffff
0000000000000000
[ 17.243615] page dumped because: kasan: bad access detected
[ 17.243615]
[ 17.243615] Memory state around the buggy address:
[ 17.243615] ffff8880be450f00: ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff
[ 17.243615] ffff8880be450f80: ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff
[ 17.243615] >ffff8880be451000: ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff
[ 17.243615] ^
[ 17.243615] ffff8880be451080: ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff
[ 17.243615] ffff8880be451100: ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff
[ 17.243615]
==================================================================
Thank you,
George
>
> thanks,
>
> greg k-h
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Needed in 5.4.y: [PATCH 5.10 055/126] ACPI: tables: x86: Reserve memory occupied by ACPI tables
2021-04-30 15:57 ` George Kennedy
@ 2021-04-30 16:40 ` Rafael J. Wysocki
0 siblings, 0 replies; 7+ messages in thread
From: Rafael J. Wysocki @ 2021-04-30 16:40 UTC (permalink / raw)
To: George Kennedy
Cc: Greg Kroah-Hartman, Dhaval Giani, Konrad Rzeszutek Wilk, Stable,
Rafael J. Wysocki, Linux ACPI, Mike Rapoport, Thomas Gleixner,
Ingo Molnar, Borislav Petkov, x86 Maintainers
On Fri, Apr 30, 2021 at 5:57 PM George Kennedy
<george.kennedy@oracle.com> wrote:
>
>
>
> On 4/30/2021 9:40 AM, Greg Kroah-Hartman wrote:
> > On Thu, Apr 29, 2021 at 01:24:06PM -0400, George Kennedy wrote:
> >>
> >> On 4/28/2021 8:52 AM, George Kennedy wrote:
> >>>
> >>> On 4/28/2021 12:57 AM, Greg Kroah-Hartman wrote:
> >>>> On Tue, Apr 27, 2021 at 06:18:05PM -0400, George Kennedy wrote:
> >>>>> CC+ stable@vger.kernel.org
> >>>>>
> >>>>> On 4/27/2021 6:17 PM, George Kennedy wrote:
> >>>>>> Hello Greg,
> >>>>>>
> >>>>>> We need the following 2 upstream commits applied to 5.4.y to
> >>>>>> fix an iBFT
> >>>>>> boot failure:
> >>>>>>
> >>>>>> 2021-03-29 rafael.j.wysocki@intel.com - 1a1c130a 2021-03-23 Rafael J.
> >>>>>> Wysocki ACPI: tables: x86: Reserve memory occupied by ACPI tables
> >>>>>> 2021-04-13 rafael.j.wysocki@intel.com - 6998a88 2021-04-13 Rafael J.
> >>>>>> Wysocki ACPI: x86: Call acpi_boot_table_init() after
> >>>>>> acpi_table_upgrade()
> >>>>>>
> >>>>>> Currently, only the first commit (1a1c130a) is destined for
> >>>>>> 5.10 & 5.11.
> >>>>>>
> >>>>>> The 2nd commit (6998a88) is needed as well and both commits are needed
> >>>>>> in 5.4.y.
> >>>> Is this a regression (i.e. did this hardware work on older kernels?),
> >>>> and if so, what commit caused the problem?
> >>>>
> >>>> These commits are already in 5.10.y, what changed in older kernels to
> >>>> require this to be backported?
> >> Hello Greg,
> >>
> >> Can the same 2 patches also be applied to 4.14.y, which one of distros is
> >> based on?
> >>
> >> 4.14.y crashes during ibft boot with KASAN enabled without the 2 patches.
> > What about 4.19.y? You do not want to skip anything in the middle,
> > right?
> >
> > And I need an ack from the authors and maintainers of these changes
> > before I can take them into the stable trees. Any reason you didn't cc:
> > them all?
> CC+ maintainers
>
> Rafael and Mike,
>
> We need Rafael's 2 upstream ACPI commits (1a1c130a & 6998a88) backported
> to more of the stable branches - at least in 5.4.y, 4.14.y, and 4.19.y.
>
> Can you (along with the other maintainers) ACK the request?
Sure, please send an inclusion request to stable@vger.kernel.org as
per the documentation with a CC to me and I'll respond with an ACK if
needed.
Thanks!
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-04-30 16:40 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <13f5c864-9b15-b2dd-53e1-d71b27a94a74@oracle.com>
[not found] ` <69f6104e-ca54-5686-4cbf-dc14cb1697f3@oracle.com>
2021-04-28 4:57 ` Needed in 5.4.y: [PATCH 5.10 055/126] ACPI: tables: x86: Reserve memory occupied by ACPI tables Greg Kroah-Hartman
2021-04-28 12:52 ` George Kennedy
2021-04-29 17:24 ` George Kennedy
2021-04-30 13:40 ` Greg Kroah-Hartman
2021-04-30 15:57 ` George Kennedy
2021-04-30 16:40 ` Rafael J. Wysocki
2021-04-28 1:25 George Kennedy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).