Re: [PATCH v5 1/7] kvmppc: HMM backend driver to manage pages of secure guest

2019-07-10 Thread Bharata B Rao
On Wed, Jul 10, 2019 at 10:47:34AM -0300, Jason Gunthorpe wrote: > On Tue, Jul 09, 2019 at 01:55:28PM -0500, janani wrote: > > > > +int kvmppc_hmm_init(void) > > > +{ > > > + int ret = 0; > > > + unsigned long size; > > > + > > > + size = kvmppc_get_secmem_size(); > > > + if (!size) { > > > +

Re: [PATCH v2] powerpc/imc: Dont create debugfs files for cpu-less nodes

2019-07-10 Thread Michael Ellerman
Hi Maddy, Madhavan Srinivasan writes: > diff --git a/arch/powerpc/platforms/powernv/opal-imc.c > b/arch/powerpc/platforms/powernv/opal-imc.c > index 186109bdd41b..e04b20625cb9 100644 > --- a/arch/powerpc/platforms/powernv/opal-imc.c > +++ b/arch/powerpc/platforms/powernv/opal-imc.c > @@ -69,20

[PATCH 1/2] powerpc/64s: remplement power4_idle code in C

2019-07-10 Thread Nicholas Piggin
This implements the tricky tracing and soft irq handling bits in C, leaving the low level bit to asm. A functional difference is that this redirects the interrupt exit to a return stub to execute blr, rather than the lr address itself. This is probably barely measurable on real hardware, but it

[PATCH 2/2] powerpc/64s: Remove idle workaround code from restore_cpu_cpufeatures

2019-07-10 Thread Nicholas Piggin
Idle code no longer uses the .cpu_restore CPU operation to restore SPRs, so this workaround is no longer required. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/dt_cpu_ftrs.c | 21 + 1 file changed, 1 insertion(+), 20 deletions(-) diff --git

Re: pata-macio on PowerBook G3: stuck interrupt with MATSHITA CR-174 CD-ROM

2019-07-10 Thread Finn Thain
On Fri, 28 Jun 2019, Finn Thain wrote: > Hi All, > > I've received a bug report concerning the pata-macio driver, when running > on a PowerBook G3 (Wallstreet). > > With CONFIG_PATA_MACIO=n && CONFIG_BLK_DEV_IDE_PMAC=y, everything works. > > With CONFIG_PATA_MACIO=y &&

Re: [PATCH V3 2/2] ASoC: fsl_esai: recover the channel swap after xrun

2019-07-10 Thread Nicolin Chen
Hi Shengjiu, Mostly looks good to me, just some small comments. On Mon, Jul 08, 2019 at 02:38:52PM +0800, shengjiu.w...@nxp.com wrote: > +static void fsl_esai_hw_reset(unsigned long arg) > +{ > + struct fsl_esai *esai_priv = (struct fsl_esai *)arg; > + u32 saisr, tfcr, rfcr; > +

Re: [PATCH v3 5/7] kexec_elf: remove elf_addr_to_cpu macro

2019-07-10 Thread Sven Schnelle
Hi Christophe, On Wed, Jul 10, 2019 at 05:09:29PM +0200, Christophe Leroy wrote: > > > Le 10/07/2019 à 16:29, Sven Schnelle a écrit : > > It had only one definition, so just use the function directly. > > It had only one definition because it was for ppc64 only. > But as far as I understand

Re: [PATCH v4 5/8] KVM: PPC: Ultravisor: Restrict flush of the partition tlb cache

2019-07-10 Thread Ram Pai
On Mon, Jul 08, 2019 at 02:54:52PM -0500, janani wrote: > On 2019-06-28 15:08, Claudio Carvalho wrote: > >From: Ram Pai > > > >Ultravisor is responsible for flushing the tlb cache, since it manages > >the PATE entries. Hence skip tlb flush, if the ultravisor firmware is > >available. > > >

[Bug 204125] FTBFS on ppc64 big endian and gcc9 because of -mcall-aixdesc and missing __linux__

2019-07-10 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204125 --- Comment #4 from Segher Boessenkool (seg...@kernel.crashing.org) --- I meant GNU userland. I don't know any project that officially support BE ELFv2. No BE ELFv2 Linux ABI is defined, either, as far as I know. It's great to hear that a lot

[Bug 204125] FTBFS on ppc64 big endian and gcc9 because of -mcall-aixdesc and missing __linux__

2019-07-10 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204125 --- Comment #5 from Daniel Kolesa (li...@octaforge.org) --- I have an entire distro built with it. A small number of things require minor patches. Some of these have been upstreamed, some of these are pending (for example, to make OpenSSL

[Bug 204125] FTBFS on ppc64 big endian and gcc9 because of -mcall-aixdesc and missing __linux__

2019-07-10 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204125 --- Comment #3 from Daniel Kolesa (li...@octaforge.org) --- Also, reported in gcc: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91135 Let's see what the compiler people have to say... -- You are receiving this mail because: You are watching

[Bug 204125] FTBFS on ppc64 big endian and gcc9 because of -mcall-aixdesc and missing __linux__

2019-07-10 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204125 --- Comment #2 from Daniel Kolesa (li...@octaforge.org) --- ELFv2 works perfectly fine in BE userland, the musl libc *requires* ELFv2 on both endians and glibc works okay using either. ELFv2 was defined for both endians and there are distros that

[Bug 204125] FTBFS on ppc64 big endian and gcc9 because of -mcall-aixdesc and missing __linux__

2019-07-10 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204125 Segher Boessenkool (seg...@kernel.crashing.org) changed: What|Removed |Added CC|

[PATCH v2 16/16] powerpc/64s/exception: machine check improve labels and comments

2019-07-10 Thread Nicholas Piggin
Short forward and backward branches can be given number labels, but larger significant divergences in code path a more readable if they're given descriptive names. Also adjusts a comment to account for guest delivery. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 14

[PATCH v2 15/16] powerpc/64s/exception: untangle early machine check handler branch

2019-07-10 Thread Nicholas Piggin
machine_check_early_common now branches to machine_check_handle_early which is its only caller. Move interleaving code out of the way, and remove the branch. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 129 +-- 1 file changed, 62

[PATCH v2 14/16] powerpc/64s/exception: machine check move unrecoverable handling out of line

2019-07-10 Thread Nicholas Piggin
Similarly to the previous change, all callers of the unrecoverable handler run relocated so can reach it with a direct branch. This makes it easy to move out of line, which makes the "normal" path less cluttered and easier to follow. MSR[ME] manipulation still requires the rfi, so that is moved

[PATCH v2 13/16] powerpc/64s/exception: simplify machine check early path

2019-07-10 Thread Nicholas Piggin
machine_check_handle_early_common can reach machine_check_handle_early directly now that it runs at the relocated address, so just branch directly. The rfi sequence is required to enable MSR[ME] but that step is moved into a helper function, making the code easier to follow. Signed-off-by:

[PATCH v2 12/16] powerpc/64s/exception: machine check move tramp code

2019-07-10 Thread Nicholas Piggin
Following convention, move the tramp code (unrelocated) above the common handlers (relocated). Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git

[PATCH v2 11/16] powerpc/64s/exception: machine check restructure to reuse common macros

2019-07-10 Thread Nicholas Piggin
Follow the pattern of sreset and HMI handlers more closely: use EXCEPTION_PROLOG_COMMON_1 rather than open-coding it, and run the handler at the relocated location. This helps later simplification and code sharing. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 71

[PATCH v2 10/16] powerpc/64s/exception: machine check pseries should skip the late handler for host kernel MCEs

2019-07-10 Thread Nicholas Piggin
The powernv machine check handler copes with taking a MCE from one of three contexts, guest, host kernel, and host user. In each case the early handler runs first on a special stack. Then: - The guest case branches to the KVM interrupt handler (via standard interrupt macros). - The host user

[PATCH v2 09/16] powerpc/64s/pseries: machine check convert to use common event code

2019-07-10 Thread Nicholas Piggin
The common machine_check_event data structures and queues are mostly platform independent, with powernv decoding SRR1/DSISR/etc., into machine_check_event objects. This patch converts pseries to use this infrastructure by decoding fwnmi/rtas data into machine_check_event objects. This allows

[PATCH v2 08/16] powerpc/64s/powernv: machine check dump SLB contents

2019-07-10 Thread Nicholas Piggin
Re-use the code introduced in pseries to save and dump the contents of the SLB in the case of an SLB involved machine check exception. This patch also avoids allocating the SLB save array on pseries radix. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/mce.c | 6 ++

[PATCH v2 07/16] powerpc/64s/exception: machine check use correct cfar for late handler

2019-07-10 Thread Nicholas Piggin
Bare metal machine checks run an "early" handler in real mode before running the main handler which reports the event. The main handler runs exactly as a normal interrupt handler, after the "windup" which sets registers back as they were at interrupt entry. CFAR does not get restored by the

[PATCH v2 06/16] powerpc/64s/exception: machine check remove machine_check_pSeries_0 branch

2019-07-10 Thread Nicholas Piggin
This label has only one caller, so unwind the branch and move it inline. The location of the comment is adjusted to match similar one in system reset. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 23 ++- 1 file changed, 10 insertions(+), 13

[PATCH v2 05/16] powerpc/64s/exception: machine check pseries should always run the early handler

2019-07-10 Thread Nicholas Piggin
Now that pseries with fwnmi registered runs the early machine check handler, there is no good reason to special case the non-fwnmi case and skip the early handler. Reducing the code and number of paths is a top priority for asm code, it's better to handle this in C where possible (and the pseries

[PATCH v2 04/16] powerpc/64s/exception: machine check adjust RFI target

2019-07-10 Thread Nicholas Piggin
The host kernel delivery case for powernv does RFI_TO_USER_OR_KERNEL, but should just use RFI_TO_KERNEL which makes it clear this is not a user case. This is not a bug because RFI_TO_USER_OR_KERNEL deals with kernel returns just fine. Signed-off-by: Nicholas Piggin ---

[PATCH v2 03/16] powerpc/64s/exception: machine check fix KVM guest test

2019-07-10 Thread Nicholas Piggin
The machine_check_handle_early hypervisor guest test is skipped if !HVMODE or MSR[HV]=0, which is wrong for PR or nested hypervisors that could be running a guest in this state. Test HSTATE_IN_GUEST up front and use that to branch out to the KVM handler, then MSR[PR] alone can test for this

[PATCH v2 02/16] powerpc/64s/exception: machine check remove bitrotted comment

2019-07-10 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 4 1 file changed, 4 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index db7ef8c8566f..e8734a1dfdb9 100644 --- a/arch/powerpc/kernel/exceptions-64s.S +++

[PATCH v2 01/16] powerpc/64s/exception: machine check fwnmi remove HV case

2019-07-10 Thread Nicholas Piggin
fwnmi does not trigger in HV mode, so remove always-true feature test. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index

[PATCH v2 00/16] powerpc/64s: machine check cleanup series

2019-07-10 Thread Nicholas Piggin
This series is mostly unchanged from last time, except that it adjusts the pseries machine check handler to use machine check events for queueing, which fixes some corner cases and allows the interrupt code to be consolidated nicely. Thanks, Nick Nicholas Piggin (16): powerpc/64s/exception:

Re: Coccinelle: Checking of_node_put() calls with SmPL

2019-07-10 Thread Markus Elfring
> we developed a coccinelle script to detect such problems. Would you find the implementation of the function “dt_init_idle_driver” suspicious according to discussed source code search patterns?

Re: [PATCH v3 5/7] kexec_elf: remove elf_addr_to_cpu macro

2019-07-10 Thread Christophe Leroy
Le 10/07/2019 à 16:29, Sven Schnelle a écrit : It had only one definition, so just use the function directly. It had only one definition because it was for ppc64 only. But as far as I understand (at least from the name of the new file), you want it to be generic, don't you ? Therefore I

Re: [PATCH] powerpc/irq: Don't WARN continuously in arch_local_irq_restore()

2019-07-10 Thread Michael Ellerman
On Mon, 2019-07-08 at 06:10:46 UTC, Michael Ellerman wrote: > When CONFIG_PPC_IRQ_SOFT_MASK_DEBUG is enabled (uncommon), we have a > series of WARN_ON's in arch_local_irq_restore(). > > These are "should never happen" conditions, but if they do happen they > can flood the console and render the

[PATCH] powerpc/eeh: Handle hugepages in ioremap space

2019-07-10 Thread Oliver O'Halloran
In commit 4a7b06c157a2 ("powerpc/eeh: Handle hugepages in ioremap space") support for using hugepages in the vmalloc and ioremap areas was enabled for radix. Unfortunately this broke EEH MMIO error checking. Detection works by inserting a hook which checks the results of the ioreadXX() set of

Re: [PATCH v3 1/2] powerpc/boot: add {get, put}_unaligned_be32 to xz_config.h

2019-07-10 Thread Michael Ellerman
On Fri, 2019-07-05 at 10:01:43 UTC, Masahiro Yamada wrote: > The next commit will make the way of passing CONFIG options more robust. > Unfortunately, it would uncover another hidden issue; without this > commit, skiroot_defconfig would be broken like this: > > | WRAP

Re: [PATCH] ocxl: Update for AFU descriptor template version 1.1

2019-07-10 Thread Michael Ellerman
On Wed, 2019-06-05 at 11:15:45 UTC, Frederic Barrat wrote: > From: Alastair D'Silva > > The OpenCAPI discovery and configuration specification has been > updated and introduces version 1.1 of the AFU descriptor template, > with new fields to better define the memory layout of an OpenCAPI >

Re: [PATCH v3 6/7] kexec_elf: remove Elf_Rel macro

2019-07-10 Thread Christophe Leroy
Le 10/07/2019 à 16:29, Sven Schnelle a écrit : It wasn't used anywhere, so lets drop it. And also, it is already defined in asm-generic/module.h Signed-off-by: Sven Schnelle Reviewed-by: Christophe Leroy --- kernel/kexec_elf.c | 4 1 file changed, 4 deletions(-) diff --git

Re: [PATCH v3 7/7] kexec_elf: remove unused variable in kexec_elf_load()

2019-07-10 Thread Christophe Leroy
Le 10/07/2019 à 16:29, Sven Schnelle a écrit : base was never unsigned, so we can remove it. Do you mean never assigned ? Signed-off-by: Sven Schnelle Reviewed-by: Christophe Leroy --- kernel/kexec_elf.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git

[PATCH v3 3/7] kexec_elf: remove parsing of section headers

2019-07-10 Thread Sven Schnelle
We're not using them, so we can drop the parsing. Signed-off-by: Sven Schnelle --- include/linux/kexec.h | 1 - kernel/kexec_elf.c| 137 -- 2 files changed, 138 deletions(-) diff --git a/include/linux/kexec.h b/include/linux/kexec.h index

[PATCH v3 7/7] kexec_elf: remove unused variable in kexec_elf_load()

2019-07-10 Thread Sven Schnelle
base was never unsigned, so we can remove it. Signed-off-by: Sven Schnelle --- kernel/kexec_elf.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/kernel/kexec_elf.c b/kernel/kexec_elf.c index b7e47ddd7cad..a56ec5481e71 100644 --- a/kernel/kexec_elf.c +++

[PATCH v3 5/7] kexec_elf: remove elf_addr_to_cpu macro

2019-07-10 Thread Sven Schnelle
It had only one definition, so just use the function directly. Signed-off-by: Sven Schnelle --- kernel/kexec_elf.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/kernel/kexec_elf.c b/kernel/kexec_elf.c index 70d31b8feeae..99e6d63b5dfc 100644 ---

[PATCH v3 4/7] kexec_elf: remove PURGATORY_STACK_SIZE

2019-07-10 Thread Sven Schnelle
It's not used anywhere so just drop it. Signed-off-by: Sven Schnelle --- kernel/kexec_elf.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/kexec_elf.c b/kernel/kexec_elf.c index effe9dc0b055..70d31b8feeae 100644 --- a/kernel/kexec_elf.c +++ b/kernel/kexec_elf.c @@ -8,8 +8,6 @@

[PATCH v3 2/7] kexec_elf: change order of elf_*_to_cpu() functions

2019-07-10 Thread Sven Schnelle
Change the order to have a 64/32/16 order, no functional change. Signed-off-by: Sven Schnelle --- kernel/kexec_elf.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kernel/kexec_elf.c b/kernel/kexec_elf.c index 6e9f52171ede..76e7df64d715 100644 ---

[PATCH v3 1/7] kexec: add KEXEC_ELF

2019-07-10 Thread Sven Schnelle
Right now powerpc provides an implementation to read elf files with the kexec_file() syscall. Make that available as a public kexec interface so it can be re-used on other architectures. Signed-off-by: Sven Schnelle --- arch/Kconfig | 3 + arch/powerpc/Kconfig

[PATCH v3 6/7] kexec_elf: remove Elf_Rel macro

2019-07-10 Thread Sven Schnelle
It wasn't used anywhere, so lets drop it. Signed-off-by: Sven Schnelle --- kernel/kexec_elf.c | 4 1 file changed, 4 deletions(-) diff --git a/kernel/kexec_elf.c b/kernel/kexec_elf.c index 99e6d63b5dfc..b7e47ddd7cad 100644 --- a/kernel/kexec_elf.c +++ b/kernel/kexec_elf.c @@ -8,10 +8,6 @@

[PATCH v3 0/7] kexec: add generic support for elf kernel images

2019-07-10 Thread Sven Schnelle
Hi List, this is the same changeset as v2, but (hopefully) with git format-patch -C. Changes to v2: - use git format-patch -C Changes to v1: - split up patch into smaller pieces - rebase onto powerpc/next - remove unused variable in kexec_elf_load() Changes to RFC version: - remove unused

Re: [PATCH v2 1/7] kexec: add KEXEC_ELF

2019-07-10 Thread Sven Schnelle
Hi Christophe, On Wed, Jul 10, 2019 at 01:19:13PM +, Christophe Leroy wrote: > Hi Sven, > > On 07/09/2019 07:43 PM, Sven Schnelle wrote: > > Right now powerpc provides an implementation to read elf files > > with the kexec_file() syscall. Make that available as a public > > kexec interface

Re: [PATCH] powerpc: mm: Limit rma_size to 1TB when running without HV mode

2019-07-10 Thread David Gibson
On Wed, Jul 10, 2019 at 03:20:18PM +1000, Suraj Jitindar Singh wrote: > The virtual real mode addressing (VRMA) mechanism is used when a > partition is using HPT (Hash Page Table) translation and performs > real mode accesses (MSR[IR|DR] = 0) in non-hypervisor mode. In this > mode effective

Re: [PATCH v5 7/7] KVM: PPC: Ultravisor: Add PPC_UV config option

2019-07-10 Thread Jason Gunthorpe
On Wed, Jul 10, 2019 at 08:24:56AM -0500, janani wrote: > On 2019-07-09 05:25, Bharata B Rao wrote: > > From: Anshuman Khandual > > > > CONFIG_PPC_UV adds support for ultravisor. > > > > Signed-off-by: Anshuman Khandual > > Signed-off-by: Bharata B Rao > > Signed-off-by: Ram Pai > > [ Update

Re: [PATCH v5 1/7] kvmppc: HMM backend driver to manage pages of secure guest

2019-07-10 Thread Jason Gunthorpe
On Tue, Jul 09, 2019 at 01:55:28PM -0500, janani wrote: > > +int kvmppc_hmm_init(void) > > +{ > > + int ret = 0; > > + unsigned long size; > > + > > + size = kvmppc_get_secmem_size(); > > + if (!size) { > > + ret = -ENODEV; > > + goto out; > > + } > > + > > +

Re: [RFC PATCH v5 6/7] kvmppc: Support reset of secure guest

2019-07-10 Thread janani
On 2019-07-09 05:25, Bharata B Rao wrote: Add support for reset of secure guest via a new ioctl KVM_PPC_SVM_OFF. This ioctl will be issued by QEMU during reset and includes the the following steps: - Ask UV to terminate the guest via UV_SVM_TERMINATE ucall - Unpin the VPA pages so that they can

[Bug 204125] New: FTBFS on ppc64 big endian and gcc9 because of -mcall-aixdesc and missing __linux__

2019-07-10 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204125 Bug ID: 204125 Summary: FTBFS on ppc64 big endian and gcc9 because of -mcall-aixdesc and missing __linux__ Product: Platform Specific/Hardware Version: 2.5 Kernel Version: any

Re: [PATCH v2 1/7] kexec: add KEXEC_ELF

2019-07-10 Thread Christophe Leroy
Hi Sven, On 07/09/2019 07:43 PM, Sven Schnelle wrote: Right now powerpc provides an implementation to read elf files with the kexec_file() syscall. Make that available as a public kexec interface so it can be re-used on other architectures. Signed-off-by: Sven Schnelle --- arch/Kconfig

Re: [PATCH v5 7/7] KVM: PPC: Ultravisor: Add PPC_UV config option

2019-07-10 Thread janani
On 2019-07-09 05:25, Bharata B Rao wrote: From: Anshuman Khandual CONFIG_PPC_UV adds support for ultravisor. Signed-off-by: Anshuman Khandual Signed-off-by: Bharata B Rao Signed-off-by: Ram Pai [ Update config help and commit message ] Signed-off-by: Claudio Carvalho Reviewed-by: Janani

Re: [PATCH v5] cpufreq/pasemi: fix an use-after-free in pas_cpufreq_cpu_init()

2019-07-10 Thread Rafael J. Wysocki
On Tuesday, July 9, 2019 10:12:05 AM CEST Viresh Kumar wrote: > On 09-07-19, 16:04, Wen Yang wrote: > > The cpu variable is still being used in the of_get_property() call > > after the of_node_put() call, which may result in use-after-free. > > > > Fixes: a9acc26b75f ("cpufreq/pasemi: fix

Re: [PATCH] sound: ppc: snd_ps3: Remove Unneeded variable: "ret"

2019-07-10 Thread Takashi Iwai
On Wed, 10 Jul 2019 04:39:46 +0200, Hariprasad Kelam wrote: > > This patch fixes below issue reported by coccicheck > sound/ppc/snd_ps3.c:631:5-8: Unneeded variable: "ret". Return "0" on > line 668 > > We cannot change return type of snd_ps3_pcm_trigger as it is registered > with

Re: [1/2] powerpc/83xx: fix use-after-free in mpc831x_usb_cfg()

2019-07-10 Thread Markus Elfring
> we developed a coccinelle script to detect such problems. How do you think about to give any attribution to this development software in your commit descriptions? > After a period of testing, we will send it to the LMKL mailing list later. I am also curious then on how this area will evolve

[PATCH v3] cpufreq/pasemi: fix an use-after-free inpas_cpufreq_cpu_init()

2019-07-10 Thread Christian Zigotzky
Is a final patch available for testing? Please do not release it without testing. - Christian On 09-07-19, 16:04, Wen Yang wrote: > The cpu variable is still being used in the of_get_property() call > after the of_node_put() call, which may result in use-after-free. > > Fixes: a9acc26b75f

Re: [1/2] powerpc/83xx: fix use-after-free in mpc831x_usb_cfg()

2019-07-10 Thread wen.yang99
> > The immr_node variable is still being used after the of_node_put() call, > > which may result in use-after-free. > > Was any known source code analysis tool involved to point such > a questionable implementation detail out for further software > development considerations? Hi Markus, we

Re: [PATCH] powerpc: mm: Limit rma_size to 1TB when running without HV mode

2019-07-10 Thread Satheesh Rajendran
On Wed, Jul 10, 2019 at 03:20:18PM +1000, Suraj Jitindar Singh wrote: > The virtual real mode addressing (VRMA) mechanism is used when a > partition is using HPT (Hash Page Table) translation and performs > real mode accesses (MSR[IR|DR] = 0) in non-hypervisor mode. In this > mode effective

Re: [1/2] powerpc/83xx: fix use-after-free in mpc831x_usb_cfg()

2019-07-10 Thread Markus Elfring
> The immr_node variable is still being used after the of_node_put() call, > which may result in use-after-free. Was any known source code analysis tool involved to point such a questionable implementation detail out for further software development considerations? Regards, Markus

Re: [PATCH v3 2/3] Powerpc64/Watchpoint: Don't ignore extraneous exceptions

2019-07-10 Thread Ravi Bangoria
On 7/10/19 11:57 AM, Christophe Leroy wrote: > > > Le 10/07/2019 à 06:54, Ravi Bangoria a écrit : >> On Powerpc64, watchpoint match range is double-word granular. On >> a watchpoint hit, DAR is set to the first byte of overlap between >> actual access and watched range. And thus it's quite

Re: [PATCH v3 2/3] Powerpc64/Watchpoint: Don't ignore extraneous exceptions

2019-07-10 Thread Christophe Leroy
Le 10/07/2019 à 06:54, Ravi Bangoria a écrit : On Powerpc64, watchpoint match range is double-word granular. On a watchpoint hit, DAR is set to the first byte of overlap between actual access and watched range. And thus it's quite possible that DAR does not point inside user specified range.

Re: [PATCH 3/5] x86: Kconfig: Remove CONFIG_NODES_SPAN_OTHER_NODES

2019-07-10 Thread Hoan Tran OS
Hi Thomas, On 7/10/19 12:58 PM, Thomas Gleixner wrote: > Hoan, > > On Wed, 10 Jul 2019, Hoan Tran OS wrote: >> On 6/25/19 3:45 PM, Thomas Gleixner wrote: >>> On Tue, 25 Jun 2019, Hoan Tran OS wrote: @@ -1567,15 +1567,6 @@ config X86_64_ACPI_NUMA ---help---

Re: [PATCH 3/5] x86: Kconfig: Remove CONFIG_NODES_SPAN_OTHER_NODES

2019-07-10 Thread Thomas Gleixner
Hoan, On Wed, 10 Jul 2019, Hoan Tran OS wrote: > On 6/25/19 3:45 PM, Thomas Gleixner wrote: > > On Tue, 25 Jun 2019, Hoan Tran OS wrote: > >> @@ -1567,15 +1567,6 @@ config X86_64_ACPI_NUMA > >>---help--- > >> Enable ACPI SRAT based node topology detection. > >> > >> -# Some NUMA nodes