[powerpc:next] BUILD SUCCESS a5d28039ecb288f4788ae98c8291e092961e8742

2022-05-22 Thread kernel test robot
sunxi_defconfig armzeus_defconfig mips jazz_defconfig xtensa audio_kc705_defconfig arm s3c6400_defconfig shedosk7760_defconfig arm randconfig-c002-20220522 x86_64

Re: [PATCH] powerpc: check previous kernel's ima-kexec-buffer against memory bounds

2022-05-22 Thread Vaibhav Jain
Rob Herring writes: > On Thu, May 19, 2022 at 01:35:47AM +0530, Vaibhav Jain wrote: >> Presently ima_get_kexec_buffer() doesn't check if the previous kernel's >> ima-kexec-buffer lies outside the addressable memory range. This can result >> in a kernel panic if the new kernel is booted with

Re: [RFC PATCH 3/3] objtool/mcount: Add powerpc specific functions

2022-05-22 Thread Naveen N. Rao
Peter Zijlstra wrote: On Sat, May 21, 2022 at 09:38:35AM +, Christophe Leroy wrote: I gave it a try this morning, I selected HAVE_OBJTOOL and HAVE_OBJTOOL_MCOUNT from arch/powerpc/Kconfig Seems like there are still some x86 arch specific stuff in common common code and I get the

Re: [PATCH V9 20/20] riscv: compat: Add COMPAT Kbuild skeletal support

2022-05-22 Thread Guenter Roeck
On Tue, Mar 22, 2022 at 10:40:03PM +0800, guo...@kernel.org wrote: > From: Guo Ren > > Adds initial skeletal COMPAT Kbuild (Running 32bit U-mode on > 64bit S-mode) support. > - Setup kconfig & dummy functions for compiling. > - Implement compat_start_thread by the way. > > Signed-off-by: Guo

Re: [PATCH 2/2] drm/tiny: Add ofdrm for Open Firmware framebuffers

2022-05-22 Thread Thomas Zimmermann
Hi Javier Am 20.05.22 um 08:19 schrieb Javier Martinez Canillas: Hello Thomas, On 5/18/22 20:30, Thomas Zimmermann wrote: +config DRM_OFDRM + tristate "Open Firmware display driver" + depends on DRM && MMU && PPC Shouldn't depend on OF? I mean, is a DRM driver for Open

[PATCH v7 21/25] Kbuild: add Rust support

2022-05-22 Thread Miguel Ojeda
Having all the new files in place, we now enable Rust support in the build system, including `Kconfig` entries related to Rust, the Rust configuration printer, the target specification generation script, the version detection script and a few other bits. Co-developed-by: Alex Gaynor

Re: [PATCH] cxl: fix typo in comment

2022-05-22 Thread Andrew Donnellan
On 21/5/22 21:11, Julia Lawall wrote: Spelling mistake (triple letters) in comment. Detected with the help of Coccinelle. Signed-off-by: Julia Lawall Acked-by: Andrew Donnellan -- Andrew Donnellan OzLabs, ADL Canberra a...@linux.ibm.com IBM Australia Limited

[PATCH v7 00/25] Rust support

2022-05-22 Thread Miguel Ojeda
Rust support This is the patch series (v7) to add support for Rust as a second language to the Linux kernel. If you are interested in following this effort, please join us in the mailing list at: rust-for-li...@vger.kernel.org and take a look at the project itself at:

Re: [PATCH] powerpc: check previous kernel's ima-kexec-buffer against memory bounds

2022-05-22 Thread Michael Ellerman
Vaibhav Jain writes: > Rob Herring writes: >> On Thu, May 19, 2022 at 01:35:47AM +0530, Vaibhav Jain wrote: >>> Presently ima_get_kexec_buffer() doesn't check if the previous kernel's >>> ima-kexec-buffer lies outside the addressable memory range. This can result >>> in a kernel panic if the new

[PATCH] powerpc/perf: Optimize clearing the pending PMI and remove WARN_ON for PMI check in power_pmu_disable

2022-05-22 Thread Athira Rajeev
commit 2c9ac51b850d ("powerpc/perf: Fix PMU callbacks to clear pending PMI before resetting an overflown PMC") added a new function "pmi_irq_pending" in hw_irq.h. This function is to check if there is a PMI marked as pending in Paca (PACA_IRQ_PMI).This is used in power_pmu_disable in a WARN_ON.

Re: [PATCH 1/5] kallsyms: pass buffer size in sprint_* APIs

2022-05-22 Thread Andy Shevchenko
On Fri, May 20, 2022 at 03:52:01PM -0400, Waiman Long wrote: > On 5/20/22 04:36, Maninder Singh wrote: ... > > - sprint_symbol(sym, addr); > > + sprint_symbol(sym, KSYM_SYMBOL_LEN, addr); > > Instead of hardcoding KSYM_SYMBOL_LEN everywhere, will it better to hide it > like

Re: [PATCH 0/5] kallsyms: make kallsym APIs more safe with scnprintf

2022-05-22 Thread Christoph Hellwig
On Fri, May 20, 2022 at 02:06:56PM +0530, Maninder Singh wrote: > kallsyms functionality depends on KSYM_NAME_LEN directly. > but if user passed array length lesser than it, sprintf > can cause issues of buffer overflow attack. > > So changing *sprint* and *lookup* APIs in this patch set > to