[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <yt9dr0a1uu9k.fsf@linux.ibm.com>
Date: Tue, 03 Sep 2024 08:27:19 +0200
From: Sven Schnelle <svens@...ux.ibm.com>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Nathan Chancellor
<nathan@...nel.org>,
Michael Ellerman <mpe@...erman.id.au>, linux-mm@...ck.org,
linuxppc-dev@...ts.ozlabs.org, christophe.leroy@...roup.eu,
jeffxu@...gle.com, Liam.Howlett@...cle.com,
linux-kernel@...r.kernel.org, npiggin@...il.com, oliver.sang@...el.com,
pedro.falcato@...il.com, linux-um@...ts.infradead.org,
linux-s390@...r.kernel.org,
Ravi Bangoria
<ravi.bangoria@...ux.ibm.com>,
Steven Rostedt <rostedt@...dmis.org>
Subject: Re: [PATCH v2 1/4] mm: Add optional close() to struct
vm_special_mapping
Linus Torvalds <torvalds@...ux-foundation.org> writes:
> On Mon, 2 Sept 2024 at 13:49, Andrew Morton <akpm@...ux-foundation.org> wrote:
>>
>> uprobe_clear_state() is a pretty simple low-level thing. Side-effects
>> seem unlikely?
>
> I think uprobe_clear_state() should be removed from fork.c entirely,
> made 'static', and then we'd have
>
> area->xol_mapping.close = uprobe_clear_state;
>
> in __create_xol_area() instead (ok, the arguments change, instead of
> looking up "mm->uprobes_state.xol_area", it would get it as the vma
> argument)
>
> That's how it should always have been, except we didn't have a close() function.
>
> Hmm?
Indeed, that's much better. I'll prepare a patch.
Thanks!
Powered by blists - more mailing lists