Re: Apply d799769188529abc6cbf035a10087a51f7832b6b to 5.17 and 5.15?

2022-04-21 Thread Michael Ellerman
Nathan Chancellor writes: > On Thu, Apr 21, 2022 at 05:46:52PM +1000, Michael Ellerman wrote: >> Nathan Chancellor writes: >> > Hi Greg, Sasha, and Michael, >> > >> > Commit d79976918852 ("powerpc/64: Add UADDR64 relocation support") fixes >> > a boot failure with CONFIG_RELOCATABLE=y kernels

Re: [RFC v4 PATCH 2/5] powerpc/crash hp: introduce a new config option CRASH_HOTPLUG

2022-04-21 Thread Michael Ellerman
Eric DeVolder writes: > On 4/21/22 06:34, Michael Ellerman wrote: >> Sourabh Jain writes: >>> The option CRASH_HOTPLUG enables, in kernel update to kexec segments on >>> hotplug events. >>> >>> All the updates needed on the capture kernel load path in the kernel for >>> both kexec_load and

[powerpc:next-test] BUILD SUCCESS 950cf957fe34d40d63dfa3bf3968210430b6491e

2022-04-21 Thread kernel test robot
xway_defconfig xtensa iss_defconfig microblaze defconfig xtensa cadence_csp_defconfig powerpc arches_defconfig x86_64randconfig-c001 arm randconfig-c002-20220421 ia64

[powerpc:fixes-test] BUILD SUCCESS bb82c574691daf8f7fa9a160264d15c5804cb769

2022-04-21 Thread kernel test robot
arches_defconfig x86_64randconfig-c001 arm randconfig-c002-20220421 ia64 allmodconfig ia64 allyesconfig ia64defconfig m68k

Re: [RFC v4 PATCH 4/5] powerpc/crash hp: add crash hotplug support for kexec_file_load

2022-04-21 Thread Eric DeVolder
On 4/19/22 03:31, Sourabh Jain wrote: On 14/04/22 22:02, Laurent Dufour wrote: On 11/04/2022, 10:43:56, Sourabh Jain wrote: Two major changes are done to enable the crash CPU hotplug handler. Firstly, updated the kexec load path to prepare kimage for hotplug changes, and secondly,

Re: [RFC v4 PATCH 2/5] powerpc/crash hp: introduce a new config option CRASH_HOTPLUG

2022-04-21 Thread Eric DeVolder
On 4/21/22 06:34, Michael Ellerman wrote: Sourabh Jain writes: The option CRASH_HOTPLUG enables, in kernel update to kexec segments on hotplug events. All the updates needed on the capture kernel load path in the kernel for both kexec_load and kexec_file_load system will be kept under this

Re: Apply d799769188529abc6cbf035a10087a51f7832b6b to 5.17 and 5.15?

2022-04-21 Thread Nathan Chancellor
On Thu, Apr 21, 2022 at 05:46:52PM +1000, Michael Ellerman wrote: > Nathan Chancellor writes: > > Hi Greg, Sasha, and Michael, > > > > Commit d79976918852 ("powerpc/64: Add UADDR64 relocation support") fixes > > a boot failure with CONFIG_RELOCATABLE=y kernels linked with recent > > versions of

[PATCH v2] macintosh: macio_asic: fix resource_size.cocci warnings

2022-04-21 Thread Yihao Han
drivers/macintosh/macio_asic.c:219:26-29: WARNING:Suspicious code. resource_size is maybe missing with res drivers/macintosh/macio_asic.c:221:26-29: WARNING:Suspicious code. resource_size is maybe missing with res Use resource_size function on resource object instead of explicit computation.

Re: [PATCH v2] powerpc/rtas: Keep MSR[RI] set when calling RTAS

2022-04-21 Thread Laurent Dufour
On 13/04/2022, 07:58:42, Nicholas Piggin wrote: > Excerpts from Laurent Dufour's message of April 2, 2022 12:06 am: >> RTAS runs in real mode (MSR[DR] and MSR[IR] unset) and in 32bits >> mode (MSR[SF] unset). >> >> The change in MSR is done in enter_rtas() in a relatively complex way, >> since the

Re: [RFC v4 PATCH 2/5] powerpc/crash hp: introduce a new config option CRASH_HOTPLUG

2022-04-21 Thread Michael Ellerman
Sourabh Jain writes: > The option CRASH_HOTPLUG enables, in kernel update to kexec segments on > hotplug events. > > All the updates needed on the capture kernel load path in the kernel for > both kexec_load and kexec_file_load system will be kept under this config. > > Signed-off-by: Sourabh

Re: [PATCH RFC 2/8] arm64: stacktrace: Add arch_within_stack_frames

2022-04-21 Thread He Zhe
On 4/19/22 22:40, Mark Rutland wrote: > Hi, > > On Mon, Apr 18, 2022 at 09:22:11PM +0800, He Zhe wrote: >> This function checks if the given address range crosses frame boundary. > I don't think that's quite true, becuase arm64's procedure call standard > (AAPCS64) doesn't give us enough

Re: [PATCH] misc: ocxl: fix possible double free in ocxl_file_register_afu

2022-04-21 Thread Frederic Barrat
On 21/04/2022 00:54, Michael Ellerman wrote: Hangyu Hua writes: info_release() will be called in device_unregister() when info->dev's reference count is 0. So there is no need to call ocxl_afu_put() and kfree() again. Double frees are often exploitable. But it looks to me like this error

Re: Apply d799769188529abc6cbf035a10087a51f7832b6b to 5.17 and 5.15?

2022-04-21 Thread Michael Ellerman
Nathan Chancellor writes: > Hi Greg, Sasha, and Michael, > > Commit d79976918852 ("powerpc/64: Add UADDR64 relocation support") fixes > a boot failure with CONFIG_RELOCATABLE=y kernels linked with recent > versions of ld.lld [1]. Additionally, it resolves a separate boot > failure that Paul

[PATCH] net: unexport csum_and_copy_{from,to}_user

2022-04-21 Thread Christoph Hellwig
csum_and_copy_from_user and csum_and_copy_to_user are exported by a few architectures, but not actually used in modular code. Drop the exports. Signed-off-by: Christoph Hellwig --- arch/alpha/lib/csum_partial_copy.c | 1 - arch/m68k/lib/checksum.c | 2 --

Re: [PATCH] powerpc/time: Always set decrementer in timer_interrupt()

2022-04-21 Thread Michael Ellerman
Michal Suchánek writes: > Hello, > > On Thu, Apr 21, 2022 at 12:16:57AM +1000, Michael Ellerman wrote: >> This is a partial revert of commit 0faf20a1ad16 ("powerpc/64s/interrupt: >> Don't enable MSR[EE] in irq handlers unless perf is in use"). >> >> Prior to that commit, we always set the