linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Kefeng Wang <wangkefeng.wang@huawei.com>
To: Andrew Morton <akpm@linux-foundation.org>,
	Russell King <linux@armlinux.org.uk>,
	Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>,
	<linux-arm-kernel@lists.infradead.org>, <linux-mm@kvack.org>,
	Cristian Marussi <cristian.marussi@arm.com>,
	Mark Brown <broonie@kernel.org>,
	Aishwarya TCV <aishwarya.tcv@arm.com>,
	Kefeng Wang <wangkefeng.wang@huawei.com>
Subject: [PATCH v2 0/2] mm: remove arch's private VM_FAULT_BADMAP/BADACCESS
Date: Thu, 11 Apr 2024 21:09:23 +0800	[thread overview]
Message-ID: <20240411130925.73281-1-wangkefeng.wang@huawei.com> (raw)

Directly set SEGV_MAPRR or SEGV_ACCERR for arm/arm64 to remove the last
two arch's private vm_fault reasons.

v2:
- fix unbalanced mmap lock and set si_code to SEGV_MAPERR by default
  before error handling, which also fix ltp fail reported by Aishwarya

Kefeng Wang (2):
  arm64: mm: drop VM_FAULT_BADMAP/VM_FAULT_BADACCESS
  arm: mm: drop VM_FAULT_BADMAP/VM_FAULT_BADACCESS

 arch/arm/mm/fault.c   | 30 +++++++++++++++---------------
 arch/arm64/mm/fault.c | 43 ++++++++++++++++++++-----------------------
 2 files changed, 35 insertions(+), 38 deletions(-)

-- 
2.41.0



             reply	other threads:[~2024-04-11 12:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-11 13:09 Kefeng Wang [this message]
2024-04-11 13:09 ` [PATCH v2 1/2] arm64: mm: drop VM_FAULT_BADMAP/VM_FAULT_BADACCESS Kefeng Wang
2024-04-11 17:31   ` Catalin Marinas
2024-04-11 13:09 ` [PATCH v2 2/2] arm: " Kefeng Wang

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=20240411130925.73281-1-wangkefeng.wang@huawei.com \
    --to=wangkefeng.wang@huawei.com \
    --cc=aishwarya.tcv@arm.com \
    --cc=akpm@linux-foundation.org \
    --cc=broonie@kernel.org \
    --cc=catalin.marinas@arm.com \
    --cc=cristian.marussi@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-mm@kvack.org \
    --cc=linux@armlinux.org.uk \
    --cc=will@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