Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp103979pxj; Tue, 1 Jun 2021 16:23:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2cpFmZGF6j/CjYesrHDP8wNFik1x9b9x03WF1a4DqhBGcxc/qqTuZ2utdyTss9TBs3C4C X-Received: by 2002:a02:7110:: with SMTP id n16mr27409741jac.69.1622589825879; Tue, 01 Jun 2021 16:23:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622589825; cv=none; d=google.com; s=arc-20160816; b=jyEStwZxDVUespgtgu0hYVMEbFbkvTlOUvfwyK9eksrePR9OmjOVv5hAAoM2CRIoy0 jScSyywLvwvf1sxIVnzbGWy0eEtGWtqI/EJRxkA8JztK7MPZbLmdjTWxrOnEdUhA/ynC UM4zDLZ1DcaU0eS74otgnm1l1+mjxMrKEncjCZKtSLWvbdn7Mo4yGdoesE6QdutlqZWg EQSOsrd1RPnpIXkFZZmSx0DhLvImZdXMqXvzQPBsrC7kVZgWVGQxdeX9+AS5uJ8OMSSP ph3D+GPvYmYHt8yOBiriYkTky5NcCHHRmA7znNxFBXLkz8w177qNSmhETdQlaBmEaNKP 44OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=LBgdkSUkOApSNcvT3hkbwtWdsXiy8I6guCLsFFZIxTI=; b=YmrQi01fhdlWvdgJvn/C6gfMCaO79Q5alobpq8OLK8QCGkHtry1BoKOhJTbGC+1HIN xMsDuMpy88/0iIrmgNKsKx67pVRk8ba/XL7nKIwdVXeRsImnETLsgKZX7brtCMFdlFwi 2SlnbhdlffxtlG7WPEtMbnbCPjy81xpkPfqJWRd0+JakO5gSDCOVIdQ4S+pf8V1GLDCa dVxt3vBvMzXpERf10l+ivn5EZcy0mZnDQxJfbKXumPAnzOeS3t8jZQIEpaNuvJp7+lBe ZpozwYPRqKjHxGwMkvhurBi9V21vvWYeThCIpwWBSVeEtOygx2JC0flHP3G5IYTYTJm+ Z36g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="lm5J/tOL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t3si17917363jaj.67.2021.06.01.16.23.32; Tue, 01 Jun 2021 16:23:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="lm5J/tOL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235150AbhFAXYS (ORCPT + 99 others); Tue, 1 Jun 2021 19:24:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:46280 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234766AbhFAXYR (ORCPT ); Tue, 1 Jun 2021 19:24:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F246461026; Tue, 1 Jun 2021 23:22:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622589755; bh=Se0vr8HjjuDI8G7XYVGiPoR/r6XQrsDheJYzxnwLFiA=; h=From:To:Cc:Subject:Date:From; b=lm5J/tOLNt1E6CBn8MvYDvNyPnF6vnpKrF7mLRGMR5DjINnhiOWID2oaRBxMdKnoH hfVeg5z9RDRwYGuaZUiXAZxKlqk3czXqV04hFTUpW6U6gyZhMmCKwTCPmP2KQB/HaH myQ5Z1TP0piPwxBlAxRiyKo5HStdz7iaRo6VR2PBwY0bviyRM2q0ki9sxrBbAugpdJ Lu6S5WPGpbXfpBGdwtc+TYkOpQVMKGF/5BrflodcqhDYa0bwkmhotrE1kyNpK24S2B gdeN7evdS/69FUK0IcZ6xrmC6+OAKeJpshrNiTkwZk1eY7zwK/gSVuIlLar72jrrds 7xEhG4SwjOCuw== From: Ming Lin To: Linus Torvalds , Hugh Dickins , Simon Ser Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Ming Lin Subject: [PATCH 0/2] mm: adds MAP_NOSIGBUS extension for shmem read Date: Tue, 1 Jun 2021 16:22:31 -0700 Message-Id: <1622589753-9206-1-git-send-email-mlin@kernel.org> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These 2 patches are based on the discussion of "Sealed memfd & no-fault mmap" at https://bit.ly/3pdwOGR patch 1: make "vm_flags" be an u64, so we can have enough bits on 32-bit architectures. Then we can add VM_NOSIGBUS which is bit 38. patch 2: support no-fault mmap for shmem read Ming Lin (2): mm: make "vm_flags" be an u64 mm: adds NOSIGBUS extension for out-of-band shmem read arch/arm64/Kconfig | 1 - arch/powerpc/Kconfig | 1 - arch/x86/Kconfig | 1 - include/linux/mm.h | 102 ++++++++++++++++----------------- include/linux/mm_types.h | 4 +- include/linux/mman.h | 5 +- include/uapi/asm-generic/mman-common.h | 1 + mm/Kconfig | 2 - mm/memory.c | 2 +- mm/mmap.c | 5 +- mm/shmem.c | 17 +++++- 11 files changed, 76 insertions(+), 65 deletions(-) -- 1.8.3.1