Re: [PATCH] arm64: uprobes: Optimize cache flushes for xol slot

2024-09-26 Thread Oleg Nesterov
On 09/26, Liao, Chang wrote: > > 在 2024/9/23 18:52, Oleg Nesterov 写道: > > On 09/23, Will Deacon wrote: > >> > >> However, we should use __GFP_ZERO anyway > >> because I don't think it's a good idea to map an uninitialised page into > >> userspace. > > > > Agreed, and imo this even needs a separate

Re: [PATCH] Documentation/tracing: Mention that RESET_ATTACK_MITIGATION can clear memory

2024-09-26 Thread Hans de Goede
Hi, On 26-Sep-24 7:01 PM, Steven Rostedt wrote: > From: Steven Rostedt > > At the 2024 Linux Plumbers Conference, I was talking with Hans de Goede > about the persistent buffer to display traces from previous boots. He > mentioned that UEFI can clear memory. In my own tests I have not seen > thi

Re: [PATCH v7 5/8] mm/util: Fix possible race condition in kstrdup()

2024-09-26 Thread Andy Shevchenko
On Thu, Sep 26, 2024 at 7:44 PM Yafang Shao wrote: > > In kstrdup(), it is critical to ensure that the dest string is always > NUL-terminated. However, potential race condidtion can occur between a condition > writer and a reader. > > Consider the following scenario involving task->comm: > >

[PATCH] Documentation/tracing: Mention that RESET_ATTACK_MITIGATION can clear memory

2024-09-26 Thread Steven Rostedt
From: Steven Rostedt At the 2024 Linux Plumbers Conference, I was talking with Hans de Goede about the persistent buffer to display traces from previous boots. He mentioned that UEFI can clear memory. In my own tests I have not seen this. He later informed me that it requires the config option:

Re: [PATCH v8 00/11] fs: multigrain timestamp redux

2024-09-26 Thread Randy Dunlap
Hi Jeff, On 9/14/24 10:07 AM, Jeff Layton wrote: > This is a fairly small update to the v7 set. It seems to pass all of my > testing. Again, most of the changes are in the first two patches, but > there are some differences in the patch that adds percpu counters as > well. > > Since the report of

[PATCH] rtla: Fix consistency in getopt_long for timerlat_hist

2024-09-26 Thread Gabriele Monaco
Commit e9a4062e1527 ("rtla: Add --trace-buffer-size option") adds a new long option to rtla utilities, but among all affected files, timerlat_hist misses a trailing `:` in the corresponding short option inside the getopt string (e.g. `\3:`). This patch propagates the `:`. Although this change is n

[PATCH] tracing/fprobe: Call trace_probe_log_set_index(0) only once in __trace_fprobe_create()

2024-09-26 Thread Markus Elfring
From: Markus Elfring Date: Thu, 26 Sep 2024 16:22:32 +0200 A trace_probe_log_set_index(0) call was immediately used after a condition check in this function implementation. Thus call such a function only once instead directly before the check. This issue was transformed by using the Coccinelle s

Re: [syzbot] [trace?] [bpf?] possible deadlock in __mod_timer (4)

2024-09-26 Thread Petr Mladek
On Thu 2024-09-26 00:53:21, Steven Rostedt wrote: > On Sat, 21 Sep 2024 23:39:17 -0700 > syzbot wrote: > > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit:a940d9a43e62 Merge tag 'soc-arm-6.12' of git://git.kernel... > > git tree: upstream > > console output:

Re: [PATCH 0/5] tracing: Fix several deadlock/race issues in timerlat and hwlat tracer

2024-09-26 Thread Steven Rostedt
Daniel, is unfortunately no longer the maintainer of this code: https://lwn.net/Articles/979912/ I'll try to take a look at this next week. Thanks, -- Steve On Tue, 24 Sep 2024 17:45:10 +0800 Wei Li wrote: > These issues are found in concurrent CPU-hotplug and tracer-toggling > testing,

Re: [PATCH v2] trace/trace_event_perf: remove duplicate samples on the first tracepoint event

2024-09-26 Thread Steven Rostedt
Can one of the perf folks give me an Ack, and I'll take this through my tree. -- Steve On Fri, 13 Sep 2024 03:13:47 +0100 Levi Yun wrote: > When a tracepoint event is created with attr.freq = 1, > 'hwc->period_left' is not initialized correctly. As a result, > in the perf_swevent_overflow() fu

Re: [PATCH] arm64: uprobes: Optimize cache flushes for xol slot

2024-09-26 Thread Liao, Chang
在 2024/9/23 18:52, Oleg Nesterov 写道: > On 09/23, Will Deacon wrote: >> >> However, we should use __GFP_ZERO anyway >> because I don't think it's a good idea to map an uninitialised page into >> userspace. > > Agreed, and imo this even needs a separate "fix info leak" patch. Do you mean to fill

[PATCH v3] mm: move mm flags to mm_types.h

2024-09-26 Thread Nanyong Sun
The types of mm flags are now far beyond the core dump related features. This patch moves mm flags from linux/sched/coredump.h to linux/mm_types.h. The linux/sched/coredump.h has include the mm_types.h, so the C files related to coredump does not need to change head file inclusion. In addition, the