[Bug 214913] New: [xfstests generic/051] BUG: Kernel NULL pointer dereference on read at 0x00000108 NIP [c0000000000372e4] tm_cgpr_active+0x14/0x40

2021-11-02 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=214913 Bug ID: 214913 Summary: [xfstests generic/051] BUG: Kernel NULL pointer dereference on read at 0x0108 NIP [c00372e4] tm_cgpr_active+0x14/0x40 Product: Platform S

[Bug 214913] [xfstests generic/051] BUG: Kernel NULL pointer dereference on read at 0x00000108 NIP [c0000000000372e4] tm_cgpr_active+0x14/0x40

2021-11-02 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=214913 --- Comment #1 from Zorro Lang (zl...@redhat.com) --- Created attachment 299403 --> https://bugzilla.kernel.org/attachment.cgi?id=299403&action=edit .config file -- You may reply to this email to add a comment. You are receiving this mail bec

Re: [V3] powerpc/perf: Enable PMU counters post partition migration if PMU is active

2021-11-02 Thread Athira Rajeev
> On 29-Oct-2021, at 11:46 AM, Nicholas Piggin wrote: > > Excerpts from Athira Rajeev's message of October 29, 2021 1:05 pm: >> During Live Partition Migration (LPM), it is observed that perf >> counter values reports zero post migration completion. However >> 'perf stat' with workload continue

Re: [V3] powerpc/perf: Enable PMU counters post partition migration if PMU is active

2021-11-02 Thread Nicholas Piggin
Excerpts from Michael Ellerman's message of October 29, 2021 11:15 pm: > Nicholas Piggin writes: >> Excerpts from Athira Rajeev's message of October 29, 2021 1:05 pm: >>> @@ -631,12 +632,18 @@ static int pseries_migrate_partition(u64 handle) >>> if (ret) >>> return ret; >>> >>> +

Re: [PATCH 1/3] powerpc/nohash: Fix __ptep_set_access_flags() and ptep_set_wrprotect()

2021-11-02 Thread Michael Ellerman
On Tue, 26 Oct 2021 07:39:24 +0200, Christophe Leroy wrote: > Commit 26973fa5ac0e ("powerpc/mm: use pte helpers in generic code") > changed those two functions to use pte helpers to determine which > bits to clear and which bits to set. > > This change was based on the assumption that bits to be s

Re: [PATCH 0/4] Update mpc5200 dts files to fix warnings

2021-11-02 Thread Michael Ellerman
On Thu, 14 Oct 2021 00:05:28 +0200, Anatolij Gustschin wrote: > This series fixes localbus, memory and pci node build warnings. > It was tested with current linux-next on digsy_mtc and tqm5200 > boards. > > Anatolij Gustschin (4): > powerpc/5200: dts: add missing pci ranges > powerpc/5200: dts

Re: [PATCH] powerpc/32: Don't use lmw/stmw for saving/restoring non volatile regs

2021-11-02 Thread Michael Ellerman
On Mon, 23 Aug 2021 15:29:12 + (UTC), Christophe Leroy wrote: > Instructions lmw/stmw are interesting for functions that are rarely > used and not in the cache, because only one instruction is to be > copied into the instruction cache instead of 19. However those > instruction are less performa

Re: [PATCH] powerpc: Activate CONFIG_STRICT_KERNEL_RWX by default

2021-11-02 Thread Michael Ellerman
On Fri, 24 Sep 2021 19:13:53 +0200, Christophe Leroy wrote: > CONFIG_STRICT_KERNEL_RWX should be set by default on every > architectures (See https://github.com/KSPP/linux/issues/4) > > On PPC32 we have to find a compromise between performance and/or > memory wasting and selection of strict_kernel

Re: [PATCH] powerpc/breakpoint: Cleanup

2021-11-02 Thread Michael Ellerman
On Wed, 22 Sep 2021 15:37:18 +0200, Christophe Leroy wrote: > cache_op_size() does exactly the same as l1_dcache_bytes(). > > Remove it. > > MSR_64BIT already exists, no need to enclode the check > around #ifdef __powerpc64__ > > [...] Applied to powerpc/next. [1/1] powerpc/breakpoint: Cleanup

Re: [PATCH] powerpc: Don't provide __kernel_map_pages() without ARCH_SUPPORTS_DEBUG_PAGEALLOC

2021-11-02 Thread Michael Ellerman
On Thu, 28 Oct 2021 14:59:15 +0200, Christophe Leroy wrote: > When ARCH_SUPPORTS_DEBUG_PAGEALLOC is not selected, the user can > still select CONFIG_DEBUG_PAGEALLOC in which case __kernel_map_pages() > is provided by mm/page_poison.c > > So only define __kernel_map_pages() when both > CONFIG_ARCH_

Re: [PATCH] powerpc/lib/sstep: Don't use __{get/put}_user() on kernel addresses

2021-11-02 Thread Michael Ellerman
On Thu, 16 Sep 2021 20:43:36 +0200, Christophe Leroy wrote: > In the old days, when we didn't have kernel userspace access > protection and had set_fs(), it was wise to use __get_user() > and friends to read kernel memory. > > Nowadays, get_user() and put_user() are granting userspace access and >

Re: [PATCH] powerpc/machdep: Remove stale functions from ppc_md structure

2021-11-02 Thread Michael Ellerman
On Tue, 31 Aug 2021 08:30:24 + (UTC), Christophe Leroy wrote: > ppc_md.iommu_save() is not set anymore by any platform after > commit c40785ad305b ("powerpc/dart: Use a cachable DART"). > So iommu_save() has become a nop and can be removed. > > ppc_md.show_percpuinfo() is not set anymore by an

Re: [PATCH] powerpc: Mark .opd section read-only

2021-11-02 Thread Michael Ellerman
On Wed, 13 Oct 2021 16:43:54 +0200, Christophe Leroy wrote: > .opd section contains function descriptors used to locate > functions in the kernel. If someone is able to modify a > function descriptor he will be able to run arbitrary > kernel function instead of another. > > To avoid that, move .op

Re: [PATCH] powerpc/time: Remove generic_suspend_{dis/en}able_irqs()

2021-11-02 Thread Michael Ellerman
On Tue, 31 Aug 2021 08:29:35 + (UTC), Christophe Leroy wrote: > Commit d75d68cfef49 ("powerpc: Clean up obsolete code relating to > decrementer and timebase") made generic_suspend_enable_irqs() and > generic_suspend_disable_irqs() static. > > Fold them into their only caller. > > > [...] Ap

Re: [PATCH v1 1/8] powerpc/booke: Disable STRICT_KERNEL_RWX, DEBUG_PAGEALLOC and KFENCE

2021-11-02 Thread Michael Ellerman
On Fri, 15 Oct 2021 12:02:42 +0200, Christophe Leroy wrote: > fsl_booke and 44x are not able to map kernel linear memory with > pages, so they can't support DEBUG_PAGEALLOC and KFENCE, and > STRICT_KERNEL_RWX is also a problem for now. > > Enable those only on book3s (both 32 and 64 except KFENCE)

Re: [PATCH v2] powerpc/32: Don't use a struct based type for pte_t

2021-11-02 Thread Michael Ellerman
On Fri, 17 Sep 2021 15:57:31 +0200, Christophe Leroy wrote: > Long time ago we had a config item called STRICT_MM_TYPECHECKS > to build the kernel with pte_t defined as a structure in order > to perform additional build checks or build it with pte_t > defined as a simple type in order to get simple

Re: [PATCH v2] powerpc/8xx: Simplify TLB handling

2021-11-02 Thread Michael Ellerman
On Fri, 17 Sep 2021 15:57:12 +0200, Christophe Leroy wrote: > In the old days, TLB handling for 8xx was using tlbie and tlbia > instructions directly as much as possible. > > But commit f048aace29e0 ("powerpc/mm: Add SMP support to no-hash > TLB handling") broke that by introducing out-of-line unn

Re: [PATCH v2] powerpc: warn on emulation of dcbz instruction in kernel mode

2021-11-02 Thread Michael Ellerman
On Thu, 16 Sep 2021 16:52:09 +0200, Christophe Leroy wrote: > dcbz instruction shouldn't be used on non-cached memory. Using > it on non-cached memory can result in alignment exception and > implies a heavy handling. > > Instead of silentely emulating the instruction and resulting in high > perfor

Re: [PATCH v2 RESEND] powerpc/audit: Convert powerpc to AUDIT_ARCH_COMPAT_GENERIC

2021-11-02 Thread Michael Ellerman
On Tue, 24 Aug 2021 13:36:13 + (UTC), Christophe Leroy wrote: > Commit e65e1fc2d24b ("[PATCH] syscall class hookup for all normal > targets") added generic support for AUDIT but that didn't include > support for bi-arch like powerpc. > > Commit 4b58841149dc ("audit: Add generic compat syscall

Re: [PATCH v3] powerpc/32: Add support for out-of-line static calls

2021-11-02 Thread Michael Ellerman
On Wed, 1 Sep 2021 08:30:21 + (UTC), Christophe Leroy wrote: > Add support for out-of-line static calls on PPC32. This change > improve performance of calls to global function pointers by > using direct calls instead of indirect calls. > > The trampoline is initialy populated with a 'blr' or b

Re: [PATCH v3] powerpc/boot: Set LC_ALL=C in wrapper script

2021-11-02 Thread Michael Ellerman
On Tue, 26 Oct 2021 15:48:29 +0200, Christophe Leroy wrote: > While trying to build a simple Image for ACADIA platform, I got the > following error: > > WRAParch/powerpc/boot/simpleImage.acadia > INFO: Uncompressed kernel (size 0x6ae7d0) overlaps the address of the > wrapper(0x4

Re: [PATCH -next] powerpc/44x/fsp2: add missing of_node_put

2021-11-02 Thread Michael Ellerman
On Thu, 28 Oct 2021 15:28:22 +0800, Bixuan Cui wrote: > Early exits from for_each_compatible_node() should decrement the > node reference counter. Reported by Coccinelle: > > ./arch/powerpc/platforms/44x/fsp2.c:206:1-25: WARNING: Function > "for_each_compatible_node" should have of_node_put() bef

Re: [PATCH][next] powerpc/vas: Fix potential NULL pointer dereference

2021-11-02 Thread Michael Ellerman
On Fri, 15 Oct 2021 00:03:45 -0500, Gustavo A. R. Silva wrote: > (!ptr && !ptr->foo) strikes again. :) > > The expression (!ptr && !ptr->foo) is bogus and in case ptr is NULL, > it leads to a NULL pointer dereference: ptr->foo. > > Fix this by converting && to || > > [...] Applied to powerpc/ne

Re: [PATCH] powerpc/bpf: fix write protecting JIT code

2021-11-02 Thread Michael Ellerman
On Mon, 25 Oct 2021 11:26:49 +0530, Hari Bathini wrote: > Running program with bpf-to-bpf function calls results in data access > exception (0x300) with the below call trace: > > [c0113f28] bpf_int_jit_compile+0x238/0x750 (unreliable) > [c037d2f8] bpf_check+0x2008/0x2710 >

Re: [PATCH v2] powerpc/powernv/prd: Unregister OPAL_MSG_PRD2 notifier during module unload

2021-11-02 Thread Michael Ellerman
On Thu, 28 Oct 2021 22:27:16 +0530, Vasant Hegde wrote: > Commit 587164cd, introduced new opal message type (OPAL_MSG_PRD2) and added > opal notifier. But I missed to unregister the notifier during module unload > path. This results in below call trace if you try to unload and load > opal_prd modul

Re: [PATCH v2] powerpc/64s: Default to 64K pages for 64 bit book3s

2021-11-02 Thread Michael Ellerman
On Fri, 15 Oct 2021 10:46:49 +1030, Joel Stanley wrote: > For 64-bit book3s the default should be 64K as that's what modern CPUs > are designed for. > > The following defconfigs already set CONFIG_PPC_64K_PAGES: > > cell_defconfig > pasemi_defconfig > powernv_defconfig > ppc64_defconfig > ps

Re: [V3] powerpc/perf: Enable PMU counters post partition migration if PMU is active

2021-11-02 Thread Athira Rajeev
> On 29-Oct-2021, at 6:45 PM, Michael Ellerman wrote: > > Nicholas Piggin mailto:npig...@gmail.com>> writes: >> Excerpts from Athira Rajeev's message of October 29, 2021 1:05 pm: >>> During Live Partition Migration (LPM), it is observed that perf >>> counter values reports zero post migration c

Re: [PATCH v2] powerpc/s64: Clarify that radix lacks DEBUG_PAGEALLOC

2021-11-02 Thread Michael Ellerman
On Thu, 14 Oct 2021 08:04:38 +1030, Joel Stanley wrote: > The page_alloc.c code will call into __kernel_map_pages when > DEBUG_PAGEALLOC is configured and enabled. > > As the implementation assumes hash, this should crash spectacularly if > not for a bit of luck in __kernel_map_pages. In this func

Re: [PATCH] powerpc/xmon: fix task state output

2021-11-02 Thread Michael Ellerman
On Tue, 26 Oct 2021 16:31:08 +0300, Denis Kirjanov wrote: > p_state is unsigned since the commit 2f064a59a11f > > The patch also uses TASK_RUNNING instead of null. > > Applied to powerpc/next. [1/1] powerpc/xmon: fix task state output https://git.kernel.org/powerpc/c/b1f896ce3542eb2eede5

Re: [PATCH] MAINTAINERS: Update powerpc KVM entry

2021-11-02 Thread Michael Ellerman
On Wed, 27 Oct 2021 17:16:46 +1100, Michael Ellerman wrote: > Paul is no longer handling patches for kvmppc. > > Instead we'll treat them as regular powerpc patches, taking them via the > powerpc tree, using the topic/ppc-kvm branch when necessary. > > Also drop the web reference, it doesn't have

Re: [PATCH] powerpc/dcr: Use cmplwi instead of 3-argument cmpli

2021-11-02 Thread Michael Ellerman
On Thu, 14 Oct 2021 13:44:24 +1100, Michael Ellerman wrote: > In dcr-low.S we use cmpli with three arguments, instead of four > arguments as defined in the ISA: > > cmpli cr0,r3,1024 > > This appears to be a PPC440-ism, looking at the "PPC440x5 CPU Core > User’s Manual" it shows cmpli hav

Re: [PATCH v2] powerpc/pseries/mobility: ignore ibm, platform-facilities updates

2021-11-02 Thread Michael Ellerman
On Wed, 20 Oct 2021 14:47:03 -0500, Nathan Lynch wrote: > On VMs with NX encryption, compression, and/or RNG offload, these > capabilities are described by nodes in the ibm,platform-facilities device > tree hierarchy: > > $ tree -d /sys/firmware/devicetree/base/ibm,platform-facilities/ > /sys/

Re: [PATCH] KVM: PPC: Book3S HV: H_ENTER filter out reserved HPTE[B] value

2021-11-02 Thread Michael Ellerman
On Tue, 5 Oct 2021 00:57:49 +1000, Nicholas Piggin wrote: > The HPTE B field is a 2-bit field with values 0b10 and 0b11 reserved. > This field is also taken from the HPTE and used when KVM executes > TLBIEs to set the B field of those instructions. > > Disallow the guest setting B to a reserved va

Re: [PATCH] powerpc/32e: Ignore ESR in instruction storage interrupt handler

2021-11-02 Thread Michael Ellerman
On Thu, 28 Oct 2021 23:30:43 +1000, Nicholas Piggin wrote: > A e5500 machine running a 32-bit kernel sometimes hangs at boot, > seemingly going into an infinite loop of instruction storage interrupts. > The ESR SPR has a value of 0x80 (store) when this happens, which is > likely set by a previo

Re: [PATCH v1] powerpc/64s/interrupt: Fix check_return_regs_valid false positive

2021-11-02 Thread Michael Ellerman
On Tue, 26 Oct 2021 22:25:31 +1000, Nicholas Piggin wrote: > The check_return_regs_valid can cause a false positive if the return > regs are marked as norestart and they are an HSRR type interrupt, > because the low bit in the bottom of regs->trap causes interrupt > type matching to fail. > > This

Re: [PATCH v3] KVM: PPC: Tick accounting should defer vtime accounting 'til after IRQ handling

2021-11-02 Thread Michael Ellerman
On Thu, 28 Oct 2021 00:21:50 +1000, Nicholas Piggin wrote: > From: Laurent Vivier > > Commit 112665286d08 ("KVM: PPC: Book3S HV: Context tracking exit guest > context before enabling irqs") moved guest_exit() into the interrupt > protected area to avoid wrong context warning (or worse). The probl

Re: [PATCH] powerpc/security: Use a mutex for interrupt exit code patching

2021-11-02 Thread Michael Ellerman
On Wed, 27 Oct 2021 17:24:10 +1000, Russell Currey wrote: > The mitigation-patching.sh script in the powerpc selftests toggles > all mitigations on and off simultaneously, revealing that rfi_flush > and stf_barrier cannot safely operate at the same time due to races > in updating the static key. >

Re: [PATCH] selftests/powerpc: Use date instead of EPOCHSECONDS in mitigation-patching.sh

2021-11-02 Thread Michael Ellerman
On Mon, 25 Oct 2021 20:24:36 +1000, Russell Currey wrote: > The EPOCHSECONDS environment variable was added in bash 5.0 (released > 2019). Some distributions of the "stable" and "long-term" variety ship > older versions of bash than this, so swap to using the date command > instead. > > "%s" was

Re: [PATCH] powerpc: mpc8349emitx: Make mcu_gpiochip_remove() return void

2021-11-02 Thread Michael Ellerman
On Thu, 21 Oct 2021 12:56:57 +0200, Uwe Kleine-König wrote: > Up to now mcu_gpiochip_remove() returns zero unconditionally. Make it > return void instead which makes it easier to see in the callers that > there is no error to handle. > > Also the return value of i2c remove callbacks is ignored any

Re: [PATCH] powerpc/kexec_file: Add of_node_put() before goto

2021-11-02 Thread Michael Ellerman
On Sun, 17 Oct 2021 21:54:16 -0400, Wan Jiabing wrote: > Fix following coccicheck warning: > ./arch/powerpc/kexec/file_load_64.c:698:1-22: WARNING: Function > for_each_node_by_type should have of_node_put() before goto > > Early exits from for_each_node_by_type should decrement the > node referenc

Re: [PATCH] powerpc/pseries/iommu: Add of_node_put() before break

2021-11-02 Thread Michael Ellerman
On Thu, 14 Oct 2021 03:56:04 -0400, Wan Jiabing wrote: > Fix following coccicheck warning: > > ./arch/powerpc/platforms/pseries/iommu.c:924:1-28: WARNING: Function > for_each_node_with_property should have of_node_put() before break > > Early exits from for_each_node_with_property should decremen

Re: [PATCH] powerpc/bpf: fix write protecting JIT code

2021-11-02 Thread Naveen N. Rao
Michael Ellerman wrote: Daniel Borkmann writes: On 10/25/21 8:15 AM, Naveen N. Rao wrote: Hari Bathini wrote: Running program with bpf-to-bpf function calls results in data access exception (0x300) with the below call trace:     [c0113f28] bpf_int_jit_compile+0x238/0x750 (unreliable)

Re: [PATCH v2 RESEND] powerpc/audit: Convert powerpc to AUDIT_ARCH_COMPAT_GENERIC

2021-11-02 Thread Paul Moore
On Tue, Nov 2, 2021 at 7:38 AM Michael Ellerman wrote: > > On Tue, 24 Aug 2021 13:36:13 + (UTC), Christophe Leroy wrote: > > Commit e65e1fc2d24b ("[PATCH] syscall class hookup for all normal > > targets") added generic support for AUDIT but that didn't include > > support for bi-arch like powe

Re: [PATCH] powerpc/bpf: fix write protecting JIT code

2021-11-02 Thread Michael Ellerman
"Naveen N. Rao" writes: > Michael Ellerman wrote: >> Daniel Borkmann writes: >>> On 10/25/21 8:15 AM, Naveen N. Rao wrote: Hari Bathini wrote: > Running program with bpf-to-bpf function calls results in data access > exception (0x300) with the below call trace: > >     [c

Re: KVM on POWER8 host lock up since 10d91611f426 ("powerpc/64s: Reimplement book3s idle code in C")

2021-11-02 Thread Michal Suchánek
On Thu, Jan 14, 2021 at 11:08:03PM +1000, Nicholas Piggin wrote: > Excerpts from Michal Suchánek's message of January 14, 2021 10:40 pm: > > On Mon, Oct 19, 2020 at 02:50:51PM +1000, Nicholas Piggin wrote: > >> Excerpts from Nicholas Piggin's message of October 19, 2020 11:00 am: > >> > Excerpts fr

Re: [PATCH 03/13] nvdimm/btt: do not call del_gendisk() if not needed

2021-11-02 Thread Luis Chamberlain
On Sun, Oct 31, 2021 at 10:47:22AM -0700, Dan Williams wrote: > On Fri, Oct 15, 2021 at 4:53 PM Luis Chamberlain wrote: > > > > We know we don't need del_gendisk() if we haven't added > > the disk, so just skip it. This should fix a bug on older > > kernels, as del_gendisk() became able to deal wi

Re: [PATCH] powerpc/bpf: fix write protecting JIT code

2021-11-02 Thread Andrii Nakryiko
On Tue, Nov 2, 2021 at 6:48 AM Michael Ellerman wrote: > > "Naveen N. Rao" writes: > > Michael Ellerman wrote: > >> Daniel Borkmann writes: > >>> On 10/25/21 8:15 AM, Naveen N. Rao wrote: > Hari Bathini wrote: > > Running program with bpf-to-bpf function calls results in data access > >

Re: bug: usb: gadget: FSL_UDC_CORE Corrupted request list leads to unrecoverable loop.

2021-11-02 Thread Joakim Tjernlund
On Sat, 2021-10-30 at 14:20 +, Joakim Tjernlund wrote: > On Fri, 2021-10-29 at 17:14 +, Eugene Bordenkircher wrote: > > Hello all, > > > > We've discovered a situation where the FSL udc driver > > (drivers/usb/gadget/udc/fsl_udc_core.c) will enter a loop iterating over > > the request qu

Re: Fwd: Fwd: X stopped working with 5.14 on iBook

2021-11-02 Thread Christopher M. Riedl
On Mon Nov 1, 2021 at 9:20 PM CDT, Finn Thain wrote: > Hi Christopher, > > After many builds and tests, Stan and I were able to determine that this > regression only affects builds with CONFIG_USER_NS=y. That is, > > d3ccc9781560 + CONFIG_USER_NS=y --> fail > d3ccc9781560 + CONFIG_USER_NS=n --> oka

Re: [PATCH v2 RESEND] powerpc/audit: Convert powerpc to AUDIT_ARCH_COMPAT_GENERIC

2021-11-02 Thread Michael Ellerman
Michael Ellerman writes: > On Tue, 24 Aug 2021 13:36:13 + (UTC), Christophe Leroy wrote: >> Commit e65e1fc2d24b ("[PATCH] syscall class hookup for all normal >> targets") added generic support for AUDIT but that didn't include >> support for bi-arch like powerpc. >> >> Commit 4b58841149dc ("a

Re: [PATCH v2 RESEND] powerpc/audit: Convert powerpc to AUDIT_ARCH_COMPAT_GENERIC

2021-11-02 Thread Michael Ellerman
Paul Moore writes: > On Tue, Nov 2, 2021 at 7:38 AM Michael Ellerman > wrote: >> >> On Tue, 24 Aug 2021 13:36:13 + (UTC), Christophe Leroy wrote: >> > Commit e65e1fc2d24b ("[PATCH] syscall class hookup for all normal >> > targets") added generic support for AUDIT but that didn't include >> >

Re: [PATCH 06/13] nvdimm/blk: avoid calling del_gendisk() on early failures

2021-11-02 Thread Luis Chamberlain
On Fri, Oct 15, 2021 at 05:13:48PM -0700, Dan Williams wrote: > On Fri, Oct 15, 2021 at 4:53 PM Luis Chamberlain wrote: > > > > If nd_integrity_init() fails we'd get del_gendisk() called, > > but that's not correct as we should only call that if we're > > done with device_add_disk(). Fix this by p

Re: [PATCH 06/13] nvdimm/blk: avoid calling del_gendisk() on early failures

2021-11-02 Thread Dan Williams
On Tue, Nov 2, 2021 at 5:10 PM Luis Chamberlain wrote: > > On Fri, Oct 15, 2021 at 05:13:48PM -0700, Dan Williams wrote: > > On Fri, Oct 15, 2021 at 4:53 PM Luis Chamberlain wrote: > > > > > > If nd_integrity_init() fails we'd get del_gendisk() called, > > > but that's not correct as we should on

Re: [PATCH v2 RESEND] powerpc/audit: Convert powerpc to AUDIT_ARCH_COMPAT_GENERIC

2021-11-02 Thread Paul Moore
On Tue, Nov 2, 2021 at 7:19 PM Michael Ellerman wrote: > Paul Moore writes: > > On Tue, Nov 2, 2021 at 7:38 AM Michael Ellerman > > wrote: > >> > >> On Tue, 24 Aug 2021 13:36:13 + (UTC), Christophe Leroy wrote: > >> > Commit e65e1fc2d24b ("[PATCH] syscall class hookup for all normal > >> > t

Re: [PATCH 06/13] nvdimm/blk: avoid calling del_gendisk() on early failures

2021-11-02 Thread Jens Axboe
On 11/2/21 6:49 PM, Dan Williams wrote: > On Tue, Nov 2, 2021 at 5:10 PM Luis Chamberlain wrote: >> >> On Fri, Oct 15, 2021 at 05:13:48PM -0700, Dan Williams wrote: >>> On Fri, Oct 15, 2021 at 4:53 PM Luis Chamberlain wrote: If nd_integrity_init() fails we'd get del_gendisk() called, >>

[PATCH] powerpc/sysdev/of_rtc: Fix possible memory leak in of_instantiate_rtc

2021-11-02 Thread He Ying
If of_address_to_resource() in of_instantiate_rtc() fails, previously allocated memory res is not freed. Add missing kfree() for it. Signed-off-by: He Ying --- arch/powerpc/sysdev/of_rtc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/sysdev/of_rtc.c b/arch/powerpc/sysdev/of_r

[PATCH] powerpc/embedded6xx/hlwd-pic: Add missing of_node_put in hlwd_pic_probe

2021-11-02 Thread He Ying
Early exits from for_each_compatible_node() should decrease the node reference count. Signed-off-by: He Ying --- arch/powerpc/platforms/embedded6xx/hlwd-pic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/platforms/embedded6xx/hlwd-pic.c b/arch/powerpc/platforms/embedded6xx/h

Re: Fwd: Fwd: X stopped working with 5.14 on iBook

2021-11-02 Thread Riccardo Mottola
Hi All, Christopher M. Riedl wrote: Stan also tested a PowerMac G3 system and found that the regression is not present there. Thus far, only PowerMac G4 systems are known to be affected (Stan's Cube and Riccardo's PowerBook). I actually tested right now on an iBook G3 kernel 5.14.12-1 of 2021

Re: [PATCH v2 RESEND] powerpc/audit: Convert powerpc to AUDIT_ARCH_COMPAT_GENERIC

2021-11-02 Thread Konstantin Ryabitsev
On Wed, Nov 03, 2021 at 10:18:57AM +1100, Michael Ellerman wrote: > It's not in next, that notification is from the b4 thanks script, which > didn't notice that the commit has since been reverted. Yeah... I'm not sure how to catch that, but I'm open to suggestions. -K