2018-10-10 14:20:17 |
Paolo Pisati |
bug |
|
|
added bug |
2018-10-10 14:20:26 |
Paolo Pisati |
nominated for series |
|
Ubuntu Cosmic |
|
2018-10-10 14:20:26 |
Paolo Pisati |
nominated for series |
|
Ubuntu Bionic |
|
2018-10-10 14:25:10 |
Paolo Pisati |
description |
Impact:
Upon boot on a recent bionic or cosmic kernel:
...
[ 0.049776] WARNING: CPU: 0 PID: 1 at arch/arm64/kernel/setup.c:271 reserve_memblock_reserved_regions+0xe0/0x148
[ 0.049783] Modules linked in:
[ 0.049797] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.18.0-8-snapdragon #9
[ 0.049803] Hardware name: Qualcomm Technologies, Inc. APQ 8016 SBC (DT)
[ 0.049813] pstate: 80400005 (Nzcv daif +PAN -UAO)
[ 0.049821] pc : reserve_memblock_reserved_regions+0xe0/0x148
[ 0.049829] lr : reserve_memblock_reserved_regions+0xd8/0x148
[ 0.049836] sp : ffff000008033d40
[ 0.049841] x29: ffff000008033d40 x28: 0000000000000000
[ 0.049852] x27: ffff000009410584 x26: ffff000009577018
[ 0.049863] x25: 0000000000000000 x24: 0000000000488020
[ 0.049874] x23: 00000000bfffffff x22: ffff0000090e8928
[ 0.049885] x21: ffff000008ffb578 x20: ffff000009a48708
[ 0.049896] x19: ffff80003a409280 x18: 0000000000000000
[ 0.049906] x17: 0000000000000000 x16: 0000000000000000
[ 0.049917] x15: ffffffffffffffff x14: ffff000009a48708
[ 0.049927] x13: 0000000000000000 x12: 0000000000000028
[ 0.049938] x11: 0101010101010101 x10: 7f7f7f7f7f7f7f7f
[ 0.049949] x9 : 0000000000000000 x8 : ffff80003a409300
[ 0.049959] x7 : 0000000000000000 x6 : 000000000000003f
[ 0.049969] x5 : 0000000000000040 x4 : ffff80003d9ffc70
[ 0.049980] x3 : 00000000bd9fffff x2 : ffff000009c241b0
[ 0.049990] x1 : 0000000000000000 x0 : 0000000000000000
[ 0.050001] Call trace:
[ 0.050010] reserve_memblock_reserved_regions+0xe0/0x148
[ 0.050021] do_one_initcall+0x54/0x1e0
[ 0.050031] kernel_init_freeable+0x254/0x2f8
[ 0.050043] kernel_init+0x18/0x110
[ 0.050052] ret_from_fork+0x10/0x18
[ 0.050063] ---[ end trace dc768b294fafe4aa ]---
...
commit 50d7ba36b916 upstream ("arm64: export memblock_reserve()d regions via
/proc/iomem") backported in commit 62289841 in bionic/master, wrongly assumed that memblock_reserve() would not be used to reserve regions that aren't memory. It turns out, this is exactly what early_init_dt_reserve_memory_arch() will do if it finds a reservation
that was also carved out of the memory node.
Fix:
Apply the attached patch and recompile
The fix wad discussed here: https://www.spinics.net/lists/arm-kernel/msg675580.html
How to test:
Boot the patched kernel and check for the above WARNING in dmesg
Regression potential:
The patch didn't make it upstream yet, but the fix is very small and was tested on the lkml.
Proposing for Bionic and Cosmic. |
Impact:
Upon boot on a dragonboard410c using a recent bionic or cosmic kernel:
...
[ 0.049776] WARNING: CPU: 0 PID: 1 at arch/arm64/kernel/setup.c:271 reserve_memblock_reserved_regions+0xe0/0x148
[ 0.049783] Modules linked in:
[ 0.049797] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.18.0-8-snapdragon #9
[ 0.049803] Hardware name: Qualcomm Technologies, Inc. APQ 8016 SBC (DT)
[ 0.049813] pstate: 80400005 (Nzcv daif +PAN -UAO)
[ 0.049821] pc : reserve_memblock_reserved_regions+0xe0/0x148
[ 0.049829] lr : reserve_memblock_reserved_regions+0xd8/0x148
[ 0.049836] sp : ffff000008033d40
[ 0.049841] x29: ffff000008033d40 x28: 0000000000000000
[ 0.049852] x27: ffff000009410584 x26: ffff000009577018
[ 0.049863] x25: 0000000000000000 x24: 0000000000488020
[ 0.049874] x23: 00000000bfffffff x22: ffff0000090e8928
[ 0.049885] x21: ffff000008ffb578 x20: ffff000009a48708
[ 0.049896] x19: ffff80003a409280 x18: 0000000000000000
[ 0.049906] x17: 0000000000000000 x16: 0000000000000000
[ 0.049917] x15: ffffffffffffffff x14: ffff000009a48708
[ 0.049927] x13: 0000000000000000 x12: 0000000000000028
[ 0.049938] x11: 0101010101010101 x10: 7f7f7f7f7f7f7f7f
[ 0.049949] x9 : 0000000000000000 x8 : ffff80003a409300
[ 0.049959] x7 : 0000000000000000 x6 : 000000000000003f
[ 0.049969] x5 : 0000000000000040 x4 : ffff80003d9ffc70
[ 0.049980] x3 : 00000000bd9fffff x2 : ffff000009c241b0
[ 0.049990] x1 : 0000000000000000 x0 : 0000000000000000
[ 0.050001] Call trace:
[ 0.050010] reserve_memblock_reserved_regions+0xe0/0x148
[ 0.050021] do_one_initcall+0x54/0x1e0
[ 0.050031] kernel_init_freeable+0x254/0x2f8
[ 0.050043] kernel_init+0x18/0x110
[ 0.050052] ret_from_fork+0x10/0x18
[ 0.050063] ---[ end trace dc768b294fafe4aa ]---
...
commit 50d7ba36b916 upstream ("arm64: export memblock_reserve()d regions via
/proc/iomem") backported in commit 62289841 in bionic/master, wrongly assumed that memblock_reserve() would not be used to reserve regions that aren't memory. It turns out, this is exactly what early_init_dt_reserve_memory_arch() will do if it finds a reservation
that was also carved out of the memory node.
Fix:
Apply the attached patch and recompile
The fix wad discussed here: https://www.spinics.net/lists/arm-kernel/msg675580.html
How to test:
Boot the patched kernel and check for the above WARNING in dmesg
Regression potential:
The patch didn't make it upstream yet, but the fix is very small and was tested on the lkml.
Proposing for Bionic and Cosmic. |
|
2018-10-10 14:26:14 |
Paolo Pisati |
description |
Impact:
Upon boot on a dragonboard410c using a recent bionic or cosmic kernel:
...
[ 0.049776] WARNING: CPU: 0 PID: 1 at arch/arm64/kernel/setup.c:271 reserve_memblock_reserved_regions+0xe0/0x148
[ 0.049783] Modules linked in:
[ 0.049797] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.18.0-8-snapdragon #9
[ 0.049803] Hardware name: Qualcomm Technologies, Inc. APQ 8016 SBC (DT)
[ 0.049813] pstate: 80400005 (Nzcv daif +PAN -UAO)
[ 0.049821] pc : reserve_memblock_reserved_regions+0xe0/0x148
[ 0.049829] lr : reserve_memblock_reserved_regions+0xd8/0x148
[ 0.049836] sp : ffff000008033d40
[ 0.049841] x29: ffff000008033d40 x28: 0000000000000000
[ 0.049852] x27: ffff000009410584 x26: ffff000009577018
[ 0.049863] x25: 0000000000000000 x24: 0000000000488020
[ 0.049874] x23: 00000000bfffffff x22: ffff0000090e8928
[ 0.049885] x21: ffff000008ffb578 x20: ffff000009a48708
[ 0.049896] x19: ffff80003a409280 x18: 0000000000000000
[ 0.049906] x17: 0000000000000000 x16: 0000000000000000
[ 0.049917] x15: ffffffffffffffff x14: ffff000009a48708
[ 0.049927] x13: 0000000000000000 x12: 0000000000000028
[ 0.049938] x11: 0101010101010101 x10: 7f7f7f7f7f7f7f7f
[ 0.049949] x9 : 0000000000000000 x8 : ffff80003a409300
[ 0.049959] x7 : 0000000000000000 x6 : 000000000000003f
[ 0.049969] x5 : 0000000000000040 x4 : ffff80003d9ffc70
[ 0.049980] x3 : 00000000bd9fffff x2 : ffff000009c241b0
[ 0.049990] x1 : 0000000000000000 x0 : 0000000000000000
[ 0.050001] Call trace:
[ 0.050010] reserve_memblock_reserved_regions+0xe0/0x148
[ 0.050021] do_one_initcall+0x54/0x1e0
[ 0.050031] kernel_init_freeable+0x254/0x2f8
[ 0.050043] kernel_init+0x18/0x110
[ 0.050052] ret_from_fork+0x10/0x18
[ 0.050063] ---[ end trace dc768b294fafe4aa ]---
...
commit 50d7ba36b916 upstream ("arm64: export memblock_reserve()d regions via
/proc/iomem") backported in commit 62289841 in bionic/master, wrongly assumed that memblock_reserve() would not be used to reserve regions that aren't memory. It turns out, this is exactly what early_init_dt_reserve_memory_arch() will do if it finds a reservation
that was also carved out of the memory node.
Fix:
Apply the attached patch and recompile
The fix wad discussed here: https://www.spinics.net/lists/arm-kernel/msg675580.html
How to test:
Boot the patched kernel and check for the above WARNING in dmesg
Regression potential:
The patch didn't make it upstream yet, but the fix is very small and was tested on the lkml.
Proposing for Bionic and Cosmic. |
Impact:
Upon boot on a dragonboard410c using a recent Bionic or Cosmic kernel:
...
[ 0.049776] WARNING: CPU: 0 PID: 1 at arch/arm64/kernel/setup.c:271 reserve_memblock_reserved_regions+0xe0/0x148
[ 0.049783] Modules linked in:
[ 0.049797] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.18.0-8-snapdragon #9
[ 0.049803] Hardware name: Qualcomm Technologies, Inc. APQ 8016 SBC (DT)
[ 0.049813] pstate: 80400005 (Nzcv daif +PAN -UAO)
[ 0.049821] pc : reserve_memblock_reserved_regions+0xe0/0x148
[ 0.049829] lr : reserve_memblock_reserved_regions+0xd8/0x148
[ 0.049836] sp : ffff000008033d40
[ 0.049841] x29: ffff000008033d40 x28: 0000000000000000
[ 0.049852] x27: ffff000009410584 x26: ffff000009577018
[ 0.049863] x25: 0000000000000000 x24: 0000000000488020
[ 0.049874] x23: 00000000bfffffff x22: ffff0000090e8928
[ 0.049885] x21: ffff000008ffb578 x20: ffff000009a48708
[ 0.049896] x19: ffff80003a409280 x18: 0000000000000000
[ 0.049906] x17: 0000000000000000 x16: 0000000000000000
[ 0.049917] x15: ffffffffffffffff x14: ffff000009a48708
[ 0.049927] x13: 0000000000000000 x12: 0000000000000028
[ 0.049938] x11: 0101010101010101 x10: 7f7f7f7f7f7f7f7f
[ 0.049949] x9 : 0000000000000000 x8 : ffff80003a409300
[ 0.049959] x7 : 0000000000000000 x6 : 000000000000003f
[ 0.049969] x5 : 0000000000000040 x4 : ffff80003d9ffc70
[ 0.049980] x3 : 00000000bd9fffff x2 : ffff000009c241b0
[ 0.049990] x1 : 0000000000000000 x0 : 0000000000000000
[ 0.050001] Call trace:
[ 0.050010] reserve_memblock_reserved_regions+0xe0/0x148
[ 0.050021] do_one_initcall+0x54/0x1e0
[ 0.050031] kernel_init_freeable+0x254/0x2f8
[ 0.050043] kernel_init+0x18/0x110
[ 0.050052] ret_from_fork+0x10/0x18
[ 0.050063] ---[ end trace dc768b294fafe4aa ]---
...
commit 50d7ba36b916 upstream ("arm64: export memblock_reserve()d regions via
/proc/iomem") backported in commit 62289841 in bionic/master, wrongly assumed that memblock_reserve() would not be used to reserve regions that aren't memory. It turns out, this is exactly what early_init_dt_reserve_memory_arch() will do if it finds a reservation
that was also carved out of the memory node.
Fix:
Apply the attached patch and recompile
The fix wad discussed here: https://www.spinics.net/lists/arm-kernel/msg675580.html
How to test:
Boot the patched kernel and check for the above WARNING in dmesg
Regression potential:
The patch didn't make it upstream yet, but the fix is very small and was tested on the lkml.
Proposing for Bionic and Cosmic. |
|
2018-10-10 14:27:02 |
Paolo Pisati |
attachment added |
|
0001-arm64-Fix-proc-iomem-for-reserved-but-not-memory-reg.patch https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1797139/+attachment/5199511/+files/0001-arm64-Fix-proc-iomem-for-reserved-but-not-memory-reg.patch |
|
2018-10-10 14:30:05 |
Ubuntu Kernel Bot |
linux (Ubuntu): status |
New |
Incomplete |
|
2018-10-10 14:30:06 |
Ubuntu Kernel Bot |
tags |
|
cosmic |
|
2018-10-10 14:40:35 |
Paolo Pisati |
linux (Ubuntu): status |
Incomplete |
Invalid |
|
2018-10-10 14:41:03 |
Paolo Pisati |
linux (Ubuntu): status |
Invalid |
Confirmed |
|
2018-10-10 16:19:57 |
Ubuntu Foundations Team Bug Bot |
tags |
cosmic |
cosmic patch |
|
2018-10-10 16:19:57 |
Ubuntu Foundations Team Bug Bot |
bug |
|
|
added subscriber Joseph Salisbury |
2018-10-11 08:17:29 |
Stefan Bader |
bug task added |
|
linux (Ubuntu Bionic) |
|
2018-10-11 08:17:34 |
Stefan Bader |
bug task added |
|
linux (Ubuntu Cosmic) |
|
2018-10-23 14:48:37 |
Kleber Sacilotto de Souza |
linux (Ubuntu Bionic): status |
New |
Fix Committed |
|
2018-10-24 13:35:22 |
Brad Figg |
tags |
cosmic patch |
cosmic patch verification-needed-bionic |
|
2018-10-24 14:50:10 |
Brad Figg |
tags |
cosmic patch verification-needed-bionic |
cosmic patch verification-needed-bionic verification-needed-cosmic |
|
2018-10-25 13:41:15 |
Paolo Pisati |
linux (Ubuntu Cosmic): status |
Confirmed |
Invalid |
|
2018-11-08 11:14:20 |
Paolo Pisati |
tags |
cosmic patch verification-needed-bionic verification-needed-cosmic |
cosmic patch verification-done-bionic verification-needed-cosmic |
|
2018-11-08 12:07:28 |
Paolo Pisati |
tags |
cosmic patch verification-done-bionic verification-needed-cosmic |
cosmic patch verification-done-bionic verification-done-cosmic |
|
2018-11-13 18:51:26 |
Launchpad Janitor |
linux (Ubuntu Bionic): status |
Fix Committed |
Fix Released |
|
2018-11-13 18:51:26 |
Launchpad Janitor |
cve linked |
|
2017-13168 |
|
2018-11-13 18:51:26 |
Launchpad Janitor |
cve linked |
|
2018-15471 |
|
2018-11-13 18:51:26 |
Launchpad Janitor |
cve linked |
|
2018-16658 |
|
2018-11-13 18:51:26 |
Launchpad Janitor |
cve linked |
|
2018-9363 |
|
2018-11-13 19:09:36 |
Launchpad Janitor |
linux (Ubuntu Cosmic): status |
Invalid |
Fix Released |
|
2018-11-17 03:22:23 |
Launchpad Janitor |
linux (Ubuntu): status |
Invalid |
Fix Released |
|
2019-07-24 21:28:17 |
Brad Figg |
tags |
cosmic patch verification-done-bionic verification-done-cosmic |
cosmic cscc patch verification-done-bionic verification-done-cosmic |
|