[PATCH v2] powerpc/pseries: fix potential memory leak in init_cpu_associativity()

2022-12-13 Thread Wang Yufen
If the vcpu_associativity alloc memory successfully but the pcpu_associativity fails to alloc memory, the vcpu_associativity memory leaks. Fixes: d62c8deeb6e6 ("powerpc/pseries: Provide vcpu dispatch statistics") Signed-off-by: Wang Yufen --- arch/powerpc/platforms/pseries/lpar.c | 4 +++- 1 fil

Re: [PATCH] powerpc/pseries: fix potential memory leak in init_cpu_associativity()

2022-12-13 Thread wangyufen
在 2022/12/13 14:06, Naveen N. Rao 写道: Wang Yufen wrote: If the vcpu_associativity alloc memory successfully but the pcpu_associativity fails to alloc memory, the vcpu_associativity memory leaks. Fixes: d62c8deeb6e6 ("powerpc/pseries: Provide vcpu dispatch statistics") Signed-off-by: Wang Yuf

[PATCH] powerpc/64: Implement arch_within_stack_frames

2022-12-13 Thread Nicholas Miehlbradt
Walks the stack when copy_{to,from}_user address is in the stack to ensure that the object being copied is entirely within a single stack frame. Substatially similar to the x86 implementation except using the back chain to traverse the stack and identify stack frame boundaries. Signed-off-by: Nic

Re: sched/debug: CPU hotplug operation suffers in a large cpu systems

2022-12-13 Thread Phil Auld
On Wed, Dec 14, 2022 at 10:41:25AM +1100 Michael Ellerman wrote: > Phil Auld writes: > > On Tue, Dec 13, 2022 at 07:23:54AM +0100 Greg Kroah-Hartman wrote: > >> On Mon, Dec 12, 2022 at 02:17:58PM -0500, Phil Auld wrote: > >> > Hi, > >> > > >> > On Tue, Nov 08, 2022 at 01:24:39PM +0100 Greg Kroah-

Re: sched/debug: CPU hotplug operation suffers in a large cpu systems

2022-12-13 Thread Michael Ellerman
Phil Auld writes: > On Tue, Dec 13, 2022 at 07:23:54AM +0100 Greg Kroah-Hartman wrote: >> On Mon, Dec 12, 2022 at 02:17:58PM -0500, Phil Auld wrote: >> > Hi, >> > >> > On Tue, Nov 08, 2022 at 01:24:39PM +0100 Greg Kroah-Hartman wrote: >> > > On Tue, Nov 08, 2022 at 03:30:46PM +0530, Vishal Choura

Re: [PATCH v8 4/9] phy: fsl: Add Lynx 10G SerDes driver

2022-12-13 Thread Sean Anderson
On 12/12/22 18:37, Stephen Boyd wrote: > Quoting Sean Anderson (2022-12-08 07:36:45) >> On 12/6/22 21:17, Stephen Boyd wrote: >> > Quoting Sean Anderson (2022-11-01 16:27:21) >> >> On 11/1/22 16:10, Stephen Boyd wrote: >> >> >> >> >> >> Oh, I remember why I did this. I need the reference clock for

Re: powerpc-part: was: Re: [PATCH v6] livepatch: Clear relocation targets on a module removal

2022-12-13 Thread Joe Lawrence
On 12/13/22 8:29 AM, Petr Mladek wrote: > On Tue 2022-12-13 00:13:46, Song Liu wrote: >> )() ()On Mon, Dec 12, 2022 at 9:12 AM Petr Mladek wrote: >>> >>> On Fri 2022-12-09 11:59:35, Song Liu wrote: On Fri, Dec 9, 2022 at 3:41 AM Petr Mladek wrote: > On Mon 2022-11-28 17:57:06, Song Liu w

Re: [PATCH] [BACKPORT FOR 4.14] libtraceevent: Fix build with binutils 2.35

2022-12-13 Thread Segher Boessenkool
On Tue, Dec 13, 2022 at 07:03:07PM +0100, Christophe Leroy wrote: > In binutils 2.35, 'nm -D' changed to show symbol versions along with > symbol names, with the usual @@ separator. 2.37 instead? And --without-symbol-versions is there to restore the old behaviour. The script is parsing the outpu

Re: powerpc-part: was: Re: [PATCH v6] livepatch: Clear relocation targets on a module removal

2022-12-13 Thread Song Liu
On Fri, Dec 9, 2022 at 3:41 AM Petr Mladek wrote: > > Hi, > > this reply is only about the powerpc-specific part. > > Also adding Kamalesh and Michael into Cc who worked on the related > commit a443bf6e8a7674b86221f49 ("powerpc/modules: Add REL24 relocation > support of livepatch symbols"). > > >

[linux-next:master] BUILD REGRESSION 39ab32797f072eaf86b1faa7384ac73450684110

2022-12-13 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: 39ab32797f072eaf86b1faa7384ac73450684110 Add linux-next specific files for 20221213 Error/Warning reports: https://lore.kernel.org/oe-kbuild-all/202211142244.sgkxbwo2-...@intel.com https

[PATCH] [BACKPORT FOR 4.14] libtraceevent: Fix build with binutils 2.35

2022-12-13 Thread Christophe Leroy
From: Ben Hutchings [upstream commit 39efdd94e314336f4acbac4c07e0f37bdc3bef71] In binutils 2.35, 'nm -D' changed to show symbol versions along with symbol names, with the usual @@ separator. When generating libtraceevent-dynamic-list we need just the names, so strip off the version suffix if pr

Re: [PATCH v3 0/8] Generic IPI sending tracepoint

2022-12-13 Thread Palmer Dabbelt
On Fri, 02 Dec 2022 07:58:09 PST (-0800), vschn...@redhat.com wrote: Background == Detecting IPI *reception* is relatively easy, e.g. using trace_irq_handler_{entry,exit} or even just function-trace flush_smp_call_function_queue() for SMP calls. Figuring out their *origin*, is trickier

Re: sched/debug: CPU hotplug operation suffers in a large cpu systems

2022-12-13 Thread Phil Auld
On Tue, Dec 13, 2022 at 03:31:06PM +0100 Greg Kroah-Hartman wrote: > On Tue, Dec 13, 2022 at 08:22:58AM -0500, Phil Auld wrote: > > On Tue, Dec 13, 2022 at 07:23:54AM +0100 Greg Kroah-Hartman wrote: > > > On Mon, Dec 12, 2022 at 02:17:58PM -0500, Phil Auld wrote: > > > > Hi, > > > > > > > > On Tue

Re: [PATCH v6] livepatch: Clear relocation targets on a module removal

2022-12-13 Thread Petr Mladek
On Tue 2022-12-13 00:28:34, Song Liu wrote: > On Fri, Dec 9, 2022 at 4:55 AM Miroslav Benes wrote: > > > > Hi, > > > > first thank you for taking over and I also appologize for not replying > > much sooner. > > > > On Thu, 1 Sep 2022, Song Liu wrote: > > > > > From: Miroslav Benes > > > > > > Jos

Re: sched/debug: CPU hotplug operation suffers in a large cpu systems

2022-12-13 Thread Greg Kroah-Hartman
On Tue, Dec 13, 2022 at 08:22:58AM -0500, Phil Auld wrote: > On Tue, Dec 13, 2022 at 07:23:54AM +0100 Greg Kroah-Hartman wrote: > > On Mon, Dec 12, 2022 at 02:17:58PM -0500, Phil Auld wrote: > > > Hi, > > > > > > On Tue, Nov 08, 2022 at 01:24:39PM +0100 Greg Kroah-Hartman wrote: > > > > On Tue, No

Re: [PATCH v1 06/10] powerpc/bpf: Perform complete extra passes to update addresses

2022-12-13 Thread Naveen N. Rao
Christophe Leroy wrote: BPF core calls the jit compiler again for an extra pass in order to properly set subprog addresses. Unlike other architectures, powerpc only updates the addresses during that extra pass. It means that holes must have been left in the code in order to enable the maximum po

Re: powerpc-part: was: Re: [PATCH v6] livepatch: Clear relocation targets on a module removal

2022-12-13 Thread Petr Mladek
On Tue 2022-12-13 00:13:46, Song Liu wrote: > )() ()On Mon, Dec 12, 2022 at 9:12 AM Petr Mladek wrote: > > > > On Fri 2022-12-09 11:59:35, Song Liu wrote: > > > On Fri, Dec 9, 2022 at 3:41 AM Petr Mladek wrote: > > > > On Mon 2022-11-28 17:57:06, Song Liu wrote: > > > > > On Fri, Nov 18, 2022 at

Re: sched/debug: CPU hotplug operation suffers in a large cpu systems

2022-12-13 Thread Phil Auld
On Tue, Dec 13, 2022 at 07:23:54AM +0100 Greg Kroah-Hartman wrote: > On Mon, Dec 12, 2022 at 02:17:58PM -0500, Phil Auld wrote: > > Hi, > > > > On Tue, Nov 08, 2022 at 01:24:39PM +0100 Greg Kroah-Hartman wrote: > > > On Tue, Nov 08, 2022 at 03:30:46PM +0530, Vishal Chourasia wrote: > > > > > > >

Re: Mass-building defconfigs: many fail with assembler errors

2022-12-13 Thread Segher Boessenkool
On Tue, Dec 13, 2022 at 09:41:59AM +0100, Jan-Benedict Glaw wrote: > On Tue, 2022-12-13 14:49:20 +1100, Michael Ellerman > wrote: > > So your script should exclude all files that end in ".config". > > Thanks! Will just drop those. > > > To find the names of the generated configs you can use so

[PATCH] [REBASED for 4.14] once: add DO_ONCE_SLOW() for sleepable contexts

2022-12-13 Thread Christophe Leroy
From: Eric Dumazet [ Upstream commit 62c07983bef9d3e78e71189441e1a470f0d1e653 ] Christophe Leroy reported a ~80ms latency spike happening at first TCP connect() time. This is because __inet_hash_connect() uses get_random_once() to populate a perturbation table which became quite big after commi

Re: Mass-building defconfigs: many fail with assembler errors

2022-12-13 Thread Jan-Benedict Glaw
Hi Segher! On Mon, 2022-12-12 18:26:13 -0600, Segher Boessenkool wrote: > On Mon, Dec 12, 2022 at 10:51:17PM +0100, Jan-Benedict Glaw wrote: [...] > > For PPC, a good number of those fail, > > and I probably don't understand PPC well enough to propose patches. Or > > did I pick wrongly targeted

Re: [PATCH] perf test bpf: Skip test if kernel-debuginfo is not present

2022-12-13 Thread Athira Rajeev
> On 13-Dec-2022, at 12:27 AM, Arnaldo Carvalho de Melo wrote: > > Em Thu, Nov 03, 2022 at 12:27:01PM +0530, Athira Rajeev escreveu: >>> On 28-Oct-2022, at 9:12 PM, Kajol Jain wrote: >>> >>> Perf BPF filter test fails in environment where "kernel-debuginfo" >>> is not installed. >>> >>> Tes

Re: Mass-building defconfigs: many fail with assembler errors

2022-12-13 Thread Jan-Benedict Glaw
Hi Michael, On Tue, 2022-12-13 14:49:20 +1100, Michael Ellerman wrote: > Jan-Benedict Glaw writes: > > Is anybody else routinely building current Binutils + GCC, to try to > > build all the Linux defconfigs? > > I did for several years, but eventually stopped because it was taking > too much ti

Re: [PATCH v6] livepatch: Clear relocation targets on a module removal

2022-12-13 Thread Song Liu
On Fri, Dec 9, 2022 at 4:55 AM Miroslav Benes wrote: > > Hi, > > first thank you for taking over and I also appologize for not replying > much sooner. > > On Thu, 1 Sep 2022, Song Liu wrote: > > > From: Miroslav Benes > > > > Josh reported a bug: > > > > When the object to be patched is a modul

Re: powerpc-part: was: Re: [PATCH v6] livepatch: Clear relocation targets on a module removal

2022-12-13 Thread Song Liu
)() ()On Mon, Dec 12, 2022 at 9:12 AM Petr Mladek wrote: > > On Fri 2022-12-09 11:59:35, Song Liu wrote: > > On Fri, Dec 9, 2022 at 3:41 AM Petr Mladek wrote: > > > On Mon 2022-11-28 17:57:06, Song Liu wrote: > > > > On Fri, Nov 18, 2022 at 8:24 AM Petr Mladek wrote: > > > > > > > > > > > --- a/