Re: [PATCH 2/6] kallsyms: Emit symbol at the holes in the text

2024-07-17 Thread Zheng Yejian
On 2024/7/16 16:33, Masahiro Yamada wrote: On Thu, Jun 13, 2024 at 10:36 PM Zheng Yejian wrote: When a weak type function is overridden, its symbol will be removed from the symbol table, but its code will not be removed. Besides, due to lacking of size for kallsyms, kernel compute function siz

Re: [PATCH bpf-next] bpf: kprobe: remove unused declaring of bpf_kprobe_override

2024-07-17 Thread Menglong Dong
On Wed, Jul 10, 2024 at 10:18 PM Masami Hiramatsu wrote: > > On Wed, 10 Jul 2024 15:13:07 +0200 > Jiri Olsa wrote: > > > On Wed, Jul 10, 2024 at 04:59:39PM +0800, Menglong Dong wrote: > > > After the commit 5ad2f102 ("tracing/kprobe: bpf: Compare instruction > > > > should be in Fixes: tag pr

Re: [PATCH V2 5/7] vhost-vdpa: VHOST_IOTLB_REMAP

2024-07-17 Thread Jason Wang
On Thu, Jul 18, 2024 at 2:29 AM Steven Sistare wrote: > > On 7/16/2024 1:28 AM, Jason Wang wrote: > > On Mon, Jul 15, 2024 at 10:28 PM Steven Sistare > > wrote: > >> > >> On 7/14/2024 10:34 PM, Jason Wang wrote: > >>> On Fri, Jul 12, 2024 at 9:19 PM Steve Sistare > >>> wrote: > > When

Re: [GIT PULL] virtio: features, fixes, cleanups

2024-07-17 Thread Jason Wang
On Wed, Jul 17, 2024 at 5:30 PM Michael S. Tsirkin wrote: > > This is relatively small. > I had to drop a buggy commit in the middle so some hashes > changed from what was in linux-next. > Deferred admin vq scalability fix to after rc2 as a minor issue was > found with it recently, but the infrast

Re: [PATCH V2 0/7] vdpa live update

2024-07-17 Thread Jason Wang
On Thu, Jul 18, 2024 at 2:29 AM Steven Sistare wrote: > > On 7/16/2024 1:30 AM, Jason Wang wrote: > > On Mon, Jul 15, 2024 at 10:29 PM Steven Sistare > > wrote: > >> > >> On 7/14/2024 10:14 PM, Jason Wang wrote: > >>> On Fri, Jul 12, 2024 at 9:19 PM Steve Sistare > >>> wrote: > > Live

Re: [PATCH V2 0/7] vdpa live update

2024-07-17 Thread Steven Sistare
On 7/16/2024 1:30 AM, Jason Wang wrote: On Mon, Jul 15, 2024 at 10:29 PM Steven Sistare wrote: On 7/14/2024 10:14 PM, Jason Wang wrote: On Fri, Jul 12, 2024 at 9:19 PM Steve Sistare wrote: Live update is a technique wherein an application saves its state, exec's to an updated version of it

Re: [PATCH V2 5/7] vhost-vdpa: VHOST_IOTLB_REMAP

2024-07-17 Thread Steven Sistare
On 7/16/2024 1:28 AM, Jason Wang wrote: On Mon, Jul 15, 2024 at 10:28 PM Steven Sistare wrote: On 7/14/2024 10:34 PM, Jason Wang wrote: On Fri, Jul 12, 2024 at 9:19 PM Steve Sistare wrote: When device ownership is passed to a new process via VHOST_NEW_OWNER, some devices need to know the n

Re: [PATCH V2 3/7] vhost-vdpa: VHOST_NEW_OWNER

2024-07-17 Thread Steven Sistare
On 7/16/2024 1:16 AM, Jason Wang wrote: On Mon, Jul 15, 2024 at 10:27 PM Steven Sistare wrote: On 7/14/2024 10:26 PM, Jason Wang wrote: On Fri, Jul 12, 2024 at 9:19 PM Steve Sistare wrote: Add an ioctl to transfer file descriptor ownership and pinned memory accounting from one process to a

Re: [PATCH v3 0/5] perf build: libtraceevent, libtracefs feature check with pkg-config

2024-07-17 Thread Guilherme Amadio
On Wed, Jul 17, 2024 at 12:31:47PM -0400, Steven Rostedt wrote: > On Wed, 17 Jul 2024 09:27:58 -0700 > Namhyung Kim wrote: > > > Hello, > > > > On Fri, Jul 12, 2024 at 12:45 PM Guilherme Amadio wrote: > > > > > > Hi Namhyung, Arnaldo, > > > > > > Here is version 3 of the patchset. I see the cha

Re: [PATCH v3 0/5] perf build: libtraceevent, libtracefs feature check with pkg-config

2024-07-17 Thread Steven Rostedt
On Wed, 17 Jul 2024 09:27:58 -0700 Namhyung Kim wrote: > Hello, > > On Fri, Jul 12, 2024 at 12:45 PM Guilherme Amadio wrote: > > > > Hi Namhyung, Arnaldo, > > > > Here is version 3 of the patchset. I see the change to send output to > > devnull > > has already been applied, so I am submitting

Re: [PATCH v3 0/5] perf build: libtraceevent, libtracefs feature check with pkg-config

2024-07-17 Thread Namhyung Kim
Hello, On Fri, Jul 12, 2024 at 12:45 PM Guilherme Amadio wrote: > > Hi Namhyung, Arnaldo, > > Here is version 3 of the patchset. I see the change to send output to devnull > has already been applied, so I am submitting the remaining work only. > > The difference with previous changes is that in v

Re: [PATCH 05/17] arch, mm: pull out allocation of NODE_DATA to generic code

2024-07-17 Thread David Hildenbrand
On 16.07.24 13:13, Mike Rapoport wrote: From: "Mike Rapoport (Microsoft)" Architectures that support NUMA duplicate the code that allocates NODE_DATA on the node-local memory with slight variations in reporting of the addresses where the memory was allocated. Use x86 version as the basis for t

Re: [PATCH 01/17] mm: move kernel/numa.c to mm/

2024-07-17 Thread David Hildenbrand
On 16.07.24 13:13, Mike Rapoport wrote: From: "Mike Rapoport (Microsoft)" The stub functions in kernel/numa.c belong to mm/ rather than to kernel/ Signed-off-by: Mike Rapoport (Microsoft) --- Acked-by: David Hildenbrand -- Cheers, David / dhildenb

Re: [PATCH 04/17] arch, mm: move definition of node_data to generic code

2024-07-17 Thread David Hildenbrand
On 16.07.24 13:13, Mike Rapoport wrote: From: "Mike Rapoport (Microsoft)" Every architecture that supports NUMA defines node_data in the same way: struct pglist_data *node_data[MAX_NUMNODES]; No reason to keep multiple copies of this definition and its forward declarations, especially

Re: [PATCH 03/17] MIPS: loongson64: rename __node_data to node_data

2024-07-17 Thread David Hildenbrand
On 16.07.24 13:13, Mike Rapoport wrote: From: "Mike Rapoport (Microsoft)" Make definition of node_data match other architectures. This will allow pulling declaration of node_data to the generic mm code in the following commit. Signed-off-by: Mike Rapoport (Microsoft) --- Reviewed-by: David

Re: [PATCH 02/17] MIPS: sgi-ip27: make NODE_DATA() the same as on all other architectures

2024-07-17 Thread David Hildenbrand
On 16.07.24 13:13, Mike Rapoport wrote: From: "Mike Rapoport (Microsoft)" sgi-ip27 is the only system that defines NODE_DATA() differently than the rest of NUMA machines. Add node_data array of struct pglist pointers that will point to __node_data[node]->pglist and redefine NODE_DATA() to use

[PATCH pre-6.7] kprobes: Fix double free of kretprobe_holder

2024-07-17 Thread Petr Pavlu
Hello, Below is a patch for a kretprobe-related problem that was already fixed in v6.7 as a side-effect of the objpool optimization, in commit 4bbd93455659 ("kprobes: kretprobe scalability improvement"). I'm sending it to the list because it might be useful to pick the fix up for longterm or dist

Re: [PATCH v4 3/3] x86/sgx: Resolve EREMOVE page vs EAUG page data race

2024-07-17 Thread Jarkko Sakkinen
On Fri Jul 5, 2024 at 10:45 AM EEST, Dmitrii Kuvaiskii wrote: > Two enclave threads may try to add and remove the same enclave page > simultaneously (e.g., if the SGX runtime supports both lazy allocation > and MADV_DONTNEED semantics). Consider some enclave page added to the > enclave. User space

Re: [PATCH v4 2/3] x86/sgx: Resolve EAUG race where losing thread returns SIGBUS

2024-07-17 Thread Jarkko Sakkinen
On Fri Jul 5, 2024 at 10:45 AM EEST, Dmitrii Kuvaiskii wrote: > Imagine an mmap()'d file. Two threads touch the same address at the same > time and fault. Both allocate a physical page and race to install a PTE > for that page. Only one will win the race. The loser frees its page, but > still conti

Re: [PATCH v4 1/3] x86/sgx: Split SGX_ENCL_PAGE_BEING_RECLAIMED into two flags

2024-07-17 Thread Jarkko Sakkinen
On Fri Jul 5, 2024 at 10:45 AM EEST, Dmitrii Kuvaiskii wrote: > +/* > + * 'desc' bit indicating that PCMD page associated with the enclave page is > + * busy (e.g. because the enclave page is being reclaimed). > + */ > +#define SGX_ENCL_PAGE_PCMD_BUSY BIT(3) What are other situations when thi

Re: [PATCH v4 1/3] x86/sgx: Split SGX_ENCL_PAGE_BEING_RECLAIMED into two flags

2024-07-17 Thread Jarkko Sakkinen
On Fri Jul 5, 2024 at 10:45 AM EEST, Dmitrii Kuvaiskii wrote: > SGX_ENCL_PAGE_BEING_RECLAIMED flag is set when the enclave page is being > reclaimed (moved to the backing store). This flag however has two > logical meanings: side-effects Missing the actor. "The page r

[GIT PULL] virtio: features, fixes, cleanups

2024-07-17 Thread Michael S. Tsirkin
This is relatively small. I had to drop a buggy commit in the middle so some hashes changed from what was in linux-next. Deferred admin vq scalability fix to after rc2 as a minor issue was found with it recently, but the infrastructure for it is there now. The following changes since commit e9d22f

Re: [RFC PATCH v4] ptp: Add vDSO-style vmclock support

2024-07-17 Thread David Woodhouse
On Tue, 2024-07-16 at 15:20 +0200, Peter Hilber wrote: > On 16.07.24 14:32, David Woodhouse wrote: > > On 16 July 2024 12:54:52 BST, Peter Hilber > > wrote: > > > On 11.07.24 09:50, David Woodhouse wrote: > > > > On Thu, 2024-07-11 at 09:25 +0200, Peter Hilber wrote: > > > > > > > > > > IMHO thi

Re: [RFC PATCH v4] ptp: Add vDSO-style vmclock support

2024-07-17 Thread David Woodhouse
On Tue, 2024-07-16 at 13:54 +0200, Peter Hilber wrote: > On 08.07.24 11:27, David Woodhouse wrote: > > + > > +   /* > > +    * Time according to time_type field above. > > +    */ > > +   uint64_t time_sec;  /* Seconds since time_type epoch */ > > +   uint64_t time_f