Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: "Lorenzo Stoakes (ARM)" <ljs@kernel.org>
To: "David Hildenbrand (Arm)" <david@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	 "Liam R. Howlett" <liam@infradead.org>,
	Vlastimil Babka <vbabka@kernel.org>,
	 Jann Horn <jannh@google.com>, Mike Rapoport <rppt@kernel.org>,
	 Suren Baghdasaryan <surenb@google.com>,
	Michal Hocko <mhocko@suse.com>, Shuah Khan <shuah@kernel.org>,
	 linux-mm@kvack.org, linux-kernel@vger.kernel.org,
	linux-kselftest@vger.kernel.org,
	 Tal Zussman <tz2294@columbia.edu>,
	stable@vger.kernel.org
Subject: Re: [PATCH v2] mm/madvise: zap markers from guard regions
Date: Fri, 13 Nov 2026 21:40:57 +0000	[thread overview]
Message-ID: <aveD0GCxbs0Zuq_0@gremlin> (raw)
In-Reply-To: <a502f84a-b349-487d-94d9-aff7d9b95102@kernel.org>

On Fri, Nov 13, 2026 at 10:39:30PM +0100, David Hildenbrand (Arm) wrote:
> >>>  mm/madvise.c | 28 +++++++++++++++++++---------
> >>>  1 file changed, 19 insertions(+), 9 deletions(-)
> >>>
> >>> diff --git a/mm/madvise.c b/mm/madvise.c
> >>> index 0214efd2a014..4f7728583207 100644
> >>> --- a/mm/madvise.c
> >>> +++ b/mm/madvise.c
> >>> @@ -850,6 +850,19 @@ static int madvise_free_single_vma(struct madvise_behavior *madv_behavior)
> >>>  	return 0;
> >>>  }
> >>>
> >>> +static void zap_range(struct madvise_behavior *madv_behavior,
> >>> +		      zap_flags_t flags)
> >>
> >> Two ... ;) But maybe it's consistent like that in the file, didn't check.
> >
> > I'm a bit exhausted, can you or Andrew just fix up whitespace like this on
> > application?
> >
> > It'll be easier when I have the VMA tree.
>
> Yeah, absolutely. I'll let Andrew pick this one.

Thanks! :)

> >>>  	/*
> >>> @@ -1845,6 +1854,7 @@ static bool madvise_batch_tlb_flush(int behavior)
> >>>  	case MADV_DONTNEED:
> >>>  	case MADV_DONTNEED_LOCKED:
> >>>  	case MADV_FREE:
> >>> +	case MADV_GUARD_INSTALL:
> >>
> >> Huh why that change? Not spelled out above.
> >
> > It's just the established way madvise interacts with TLB maintenance.
> >
> > Anything that uses madv_behaviour->tlb has to return true here so
> > madvise_init_tlb() and madvise_finish_tlb() do the right thing.
>
> Ohhh, I see now.
>
> Acked-by: David Hildenbrand (Arm) <david@kernel.org>

Thanks :)

>
> --
> Cheers,
>
> David

--
Cheers, Lorenzo

  reply	other threads:[~2026-11-13 21:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-13 21:04 [PATCH v2] mm/madvise: zap markers from guard regions Lorenzo Stoakes (ARM)
2026-11-13 21:10 ` David Hildenbrand (Arm)
2026-11-13 21:18   ` Lorenzo Stoakes (ARM)
2026-11-13 21:39     ` David Hildenbrand (Arm)
2026-11-13 21:40       ` Lorenzo Stoakes (ARM) [this message]
2026-11-13 21:10 ` Lorenzo Stoakes (ARM)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aveD0GCxbs0Zuq_0@gremlin \
    --to=ljs@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=david@kernel.org \
    --cc=jannh@google.com \
    --cc=liam@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@suse.com \
    --cc=rppt@kernel.org \
    --cc=shuah@kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=surenb@google.com \
    --cc=tz2294@columbia.edu \
    --cc=vbabka@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox