All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Fabio M. De Francesco" <fmdefrancesco@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: mm-commits@vger.kernel.org
Subject: Re: [merged mm-stable] mm-highmem-vm_bug_on-if-offset-len-page_size.patch removed from -mm tree
Date: Tue, 10 May 2022 11:58:43 +0200	[thread overview]
Message-ID: <10077676.nUPlyArG6x@leap> (raw)
In-Reply-To: <20220510041528.E53C7C385C2@smtp.kernel.org>

On martedì 10 maggio 2022 06:15:28 CEST Andrew Morton wrote:
> 
> The quilt patch titled
>      Subject: mm/highmem: VM_BUG_ON() if offset + len > PAGE_SIZE
> has been removed from the -mm tree.  Its filename was
>      mm-highmem-vm_bug_on-if-offset-len-page_size.patch
> 
> This patch was dropped because it was merged into mm-stable
> 
> ------------------------------------------------------
> From: "Fabio M. De Francesco" <fmdefrancesco@gmail.com>
> Subject: mm/highmem: VM_BUG_ON() if offset + len > PAGE_SIZE
> 
> Add VM_BUG_ON() bounds checking to make sure that, if "offset + len>
> PAGE_SIZE", memset() does not corrupt data in adjacent pages.
> 
> Mainly to match all the similar functions in highmem.h.
> 
> Link: https://lkml.kernel.org/r/20220426193020.8710-1-fmdefrancesco@gmail.com
> Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
> Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
> Cc: Ira Weiny <ira.weiny@intel.com>
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>
> Cc: Peter Collingbourne <pcc@google.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
> 
>  include/linux/highmem.h |    2 ++
>  1 file changed, 2 insertions(+)
> 
> --- a/include/linux/highmem.h~mm-highmem-vm_bug_on-if-offset-len-
page_size
> +++ a/include/linux/highmem.h
> @@ -358,6 +358,8 @@ static inline void memcpy_to_page(struct
>  static inline void memzero_page(struct page *page, size_t offset, size_t 
len)
>  {
>  	char *addr = kmap_local_page(page);
> +
> +	VM_BUG_ON(offset + len > PAGE_SIZE);
>  	memset(addr + offset, 0, len);
>  	flush_dcache_page(page);
>  	kunmap_local(addr);
> _
> 
> Patches currently in -mm which might be from fmdefrancesco@gmail.com are
> 
> 
> 
Hello Andrew,

I still see that the list of my patches currently in -mm is empty.

On April 28th I sent v4 of a series.[1] It received two "Reviewed-by" tags,
respectively from Ira Weiny[2] and Sebastian Andrzej Siewior.[3]

Therefore, I assume that the v4 of the series can be considered final. Can
you please take a look at it and either apply to -mm or let me know if
there is anything which should still be improved?

Thank you very much,

Fabio M. De Francesco

[1] [PATCH v4 0/4] Extend and reorganize Highmem's documentation
https://lore.kernel.org/lkml/20220428212455.892-1-fmdefrancesco@gmail.com/
https://lore.kernel.org/lkml/20220428212455.892-2-fmdefrancesco@gmail.com/
https://lore.kernel.org/lkml/20220428212455.892-3-fmdefrancesco@gmail.com/
https://lore.kernel.org/lkml/20220428212455.892-4-fmdefrancesco@gmail.com/
https://lore.kernel.org/lkml/20220428212455.892-5-fmdefrancesco@gmail.com/

[2] Reviewed-by: Ira Weiny <ira.weiny@intel.com> (for the series)
https://lore.kernel.org/lkml/Ym4WSstEQI7yYU0n@iweiny-server/

[3] Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> (for the 
series)
[3] https://lore.kernel.org/lkml/YmuK79YPRAi0fHhH@linutronix.de/



      reply	other threads:[~2022-05-10  9:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-10  4:15 [merged mm-stable] mm-highmem-vm_bug_on-if-offset-len-page_size.patch removed from -mm tree Andrew Morton
2022-05-10  9:58 ` Fabio M. De Francesco [this message]

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=10077676.nUPlyArG6x@leap \
    --to=fmdefrancesco@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mm-commits@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.