mbox series

[SRU,Xenial,0/2] LP: #1905475 Fix powerpc build

Message ID 20201124231007.2309907-1-cascardo@canonical.com
Headers show
Series LP: #1905475 Fix powerpc build | expand

Message

Thadeu Lima de Souza Cascardo Nov. 24, 2020, 11:10 p.m. UTC
After uaccess flush backport, a powerpc flavor stopped building. This was due
to a backport of a file that was not present in 4.4 and was even broken on
upstream stable 4.4. We were just a little more broken due to differences in
the backport.

The potential regression might sound a little scary, but it's due to changes in
the area of code that copies data to and from userspace. I managed to at least
test that one of the flavors boot on an G4 iBook, though not the one that was
failing to build.

[Impact]
powerpc flavor powerpc64-emb fails to build with kernel 4.4.0-196.

[Test case]
Build the kernel with all powerpc flavors.

[Potential regression]
The kernel might still not boot. Userspace data might be corrupted when kernel
writes to it. Kernel might not read userspace data correctly and on-disk data
would get corrupted.

Daniel Axtens (1):
  powerpc/uaccess-flush: fix corenet64_smp_defconfig build

Thadeu Lima de Souza Cascardo (1):
  UBUNTU: SAUCE: powerpc/uaccess: only include kup-radix.h on
    PPC_BOOK3S_64

 arch/powerpc/include/asm/kup.h  | 2 +-
 arch/powerpc/kernel/ppc_ksyms.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

Comments

Kamal Mostafa Nov. 24, 2020, 11:17 p.m. UTC | #1
LGTM.

Acked-by: Kamal Mostafa <kamal@canonical.com>

 -Kamal

On Tue, Nov 24, 2020 at 08:10:05PM -0300, Thadeu Lima de Souza Cascardo wrote:
> After uaccess flush backport, a powerpc flavor stopped building. This was due
> to a backport of a file that was not present in 4.4 and was even broken on
> upstream stable 4.4. We were just a little more broken due to differences in
> the backport.
> 
> The potential regression might sound a little scary, but it's due to changes in
> the area of code that copies data to and from userspace. I managed to at least
> test that one of the flavors boot on an G4 iBook, though not the one that was
> failing to build.
> 
> [Impact]
> powerpc flavor powerpc64-emb fails to build with kernel 4.4.0-196.
> 
> [Test case]
> Build the kernel with all powerpc flavors.
> 
> [Potential regression]
> The kernel might still not boot. Userspace data might be corrupted when kernel
> writes to it. Kernel might not read userspace data correctly and on-disk data
> would get corrupted.
> 
> Daniel Axtens (1):
>   powerpc/uaccess-flush: fix corenet64_smp_defconfig build
> 
> Thadeu Lima de Souza Cascardo (1):
>   UBUNTU: SAUCE: powerpc/uaccess: only include kup-radix.h on
>     PPC_BOOK3S_64
> 
>  arch/powerpc/include/asm/kup.h  | 2 +-
>  arch/powerpc/kernel/ppc_ksyms.c | 4 ++--
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> -- 
> 2.27.0
> 
> 
> -- 
> kernel-team mailing list
> kernel-team@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
Ian May Nov. 24, 2020, 11:31 p.m. UTC | #2
LGTM

Acked-by: Ian May <ian.may@canonical.com>

On 2020-11-24 20:10:05 , Thadeu Lima de Souza Cascardo wrote:
> After uaccess flush backport, a powerpc flavor stopped building. This was due
> to a backport of a file that was not present in 4.4 and was even broken on
> upstream stable 4.4. We were just a little more broken due to differences in
> the backport.
> 
> The potential regression might sound a little scary, but it's due to changes in
> the area of code that copies data to and from userspace. I managed to at least
> test that one of the flavors boot on an G4 iBook, though not the one that was
> failing to build.
> 
> [Impact]
> powerpc flavor powerpc64-emb fails to build with kernel 4.4.0-196.
> 
> [Test case]
> Build the kernel with all powerpc flavors.
> 
> [Potential regression]
> The kernel might still not boot. Userspace data might be corrupted when kernel
> writes to it. Kernel might not read userspace data correctly and on-disk data
> would get corrupted.
> 
> Daniel Axtens (1):
>   powerpc/uaccess-flush: fix corenet64_smp_defconfig build
> 
> Thadeu Lima de Souza Cascardo (1):
>   UBUNTU: SAUCE: powerpc/uaccess: only include kup-radix.h on
>     PPC_BOOK3S_64
> 
>  arch/powerpc/include/asm/kup.h  | 2 +-
>  arch/powerpc/kernel/ppc_ksyms.c | 4 ++--
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> -- 
> 2.27.0
> 
> 
> -- 
> kernel-team mailing list
> kernel-team@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
Thadeu Lima de Souza Cascardo Nov. 25, 2020, 11:02 a.m. UTC | #3
Applied to xenial master-next branch.

Thanks.
Cascardo.