[Bug 206525] BUG: KASAN: stack-out-of-bounds in test_bit+0x30/0x44 (kernel 5.6-rc1)

2020-02-15 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=206525 --- Comment #3 from Christophe Leroy (christophe.le...@c-s.fr) --- Bug introduced by commit ("cf5bddb95cbe net: bridge: vlan: add rtnetlink group and notify support") RTNLGRP_MAX is now 33. 'unsigned long groups' is 32 bits long on PPC32

Re: [PATCH] powerpc/kprobes: Fix trap address when trap happened in real mode

2020-02-15 Thread Christophe Leroy
Hi, Le 14/02/2020 à 14:54, Masami Hiramatsu a écrit : Hi, On Fri, 14 Feb 2020 12:47:49 + (UTC) Christophe Leroy wrote: When a program check exception happens while MMU translation is disabled, following Oops happens in kprobe_handler() in the following test: } else if

Re: [PATCH] powerpc/kprobes: Fix trap address when trap happened in real mode

2020-02-15 Thread Christophe Leroy
Le 14/02/2020 à 13:47, Christophe Leroy a écrit : When a program check exception happens while MMU translation is disabled, following Oops happens in kprobe_handler() in the following test: } else if (*addr != BREAKPOINT_INSTRUCTION) { [ 33.098554] BUG: Unable to handle

Re: [PATCH] powerpc/8xx: Fix clearing of bits 20-23 in ITLB miss

2020-02-15 Thread Christophe Leroy
Le 15/02/2020 à 07:28, Leonardo Bras a écrit : On Sun, 2020-02-09 at 18:14 +, Christophe Leroy wrote: In ITLB miss handled the line supposed to clear bits 20-23 on the L2 ITLB entry is buggy and does indeed nothing, leading to undefined value which could allow execution when it

[PATCH v4] powerpc/32s: Fix DSI and ISI exceptions for CONFIG_VMAP_STACK

2020-02-15 Thread Christophe Leroy
hash_page() needs to read page tables from kernel memory. When entire kernel memory is mapped by BATs, which is normally the case when CONFIG_STRICT_KERNEL_RWX is not set, it works even if the page hosting the page table is not referenced in the MMU hash table. However, if the page where the page