Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp903621pxj; Fri, 4 Jun 2021 00:44:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhkSlOo5wqNTm3tsUiZVSWOBlogTdca6PT94ASQhMSlxnQHlvFwbKAq4q7TOR7YjbNyRGO X-Received: by 2002:a17:906:f9d1:: with SMTP id lj17mr3002812ejb.345.1622792689648; Fri, 04 Jun 2021 00:44:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622792689; cv=none; d=google.com; s=arc-20160816; b=xq6/wBtL9a4asX0GbMYpb9jjHsih76uVUg1fea02if/O9ch6yqeghH2/Os/lnY90mq bsoRhQ6XeoPAPb5RbxyeY8UHgx4hriCkEicqvTqLV4mDFIhHR9pRetptikgEW5LC6Cpi 55VKxPULVD1k7f3xDqUKebwjbBRhPAmg+9PUZwnzCydyy2NFvd31MkWRdjTa9RS/1fux ZPKSSrbOZPcCcPwICvkqu9MFEJnyoyRNVlWqFef482TaRHbzF3NS175UV94einf8U0iE GaCJYKLOs8A8PFLS/RxiHsyT6byLp6ldK0aae7gpApVsgn2poYtWr3nCxRaO72HMRFil PuHg== 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=Bt60OhRIf9DQXwFcH2qEeakqg462PcTbUYSoCURxdX0=; b=ZA+s2R2IMFpEg8ga00uKLMaGTZ/Qxtyrl8B4I1kb/oXHYkg31oCVqckECIXky2ojla Taqum4BOyhfWMwkYrYC/4VCEGrAHcb6VWAQqMSKvpwMZIuYL7mTUhCR38X79OJDhxXGq pEDZwJT1XbEqLbt8RmSZPKIS5N1VGj0xewmRmuEY3wF8ud4hJwcSGjGtcZMtH8eoCn0h ECmJqbg6HCXBNWDdE5Mkt3NUodwchC170G9j2hHYSb3HImeswStXL9/zay71EBKD20Al +lOwPAj+IKcA6jZiuONzRPQXZ+Bobjw3tBbwv6PhtprZWmCwwvOo09MUtt+X7L2HtCjz NK4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FOM0bCh2; 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 b8si4287133ejl.618.2021.06.04.00.44.26; Fri, 04 Jun 2021 00:44:49 -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=FOM0bCh2; 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 S230072AbhFDHpU (ORCPT + 99 others); Fri, 4 Jun 2021 03:45:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:34754 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229917AbhFDHpU (ORCPT ); Fri, 4 Jun 2021 03:45:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0DA2F613AE; Fri, 4 Jun 2021 07:43:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622792614; bh=WrDpt4hAcOHkwVevesF63swf+VlR+oxSw38ZXyr++TM=; h=From:To:Cc:Subject:Date:From; b=FOM0bCh2FbV/zHyahOdf1uYgAIDe3d9D1Gg/1CDo0bklPT3ktjNiHyXcmTQe/+sVB 3ATjIyEJ4xuCdDig+H/DSdnN024YaTne/0ITy/Ytiyj0Q2LQ10lYGqt6FdAJ0wbKaT yJukzlWtlJvQ0WmK5Fx3DMC9oHAT3nk7i8OEvSRRgWQQEmB07OqyjG+zzYCg5zwTA/ qi1TpLLvvgwMc/zhgDU+ZsRPq2y2BdwHMVbcTjE3dPm/YvDZsomRktHAk8gWcvPAoV 4lYVhvUcs8HwNjCbwcinB8ERqZvkY9Fc45u00HsgoXNqddPq+fz8LbyYMStn3LhU0s yqOb5UgVgZ+Pw== From: Ming Lin To: Linus Torvalds , Hugh Dickins , Simon Ser , Matthew Wilcox Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org Subject: [PATCH v2 0/2] mm: support NOSIGBUS on fault of mmap Date: Fri, 4 Jun 2021 00:43:20 -0700 Message-Id: <1622792602-40459-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 v2: - make MAP_NOSIGBUS generic instead of being restricted to shmem - use do_anonymous_page() to insert zero page - fix build warnings/errors reported by LKP test robot v1: https://lkml.org/lkml/2021/6/1/1076 Ming Lin (2): mm: make "vm_flags" be an u64 mm: adds NOSIGBUS extension to mmap() arch/arm64/Kconfig | 1 - arch/parisc/include/uapi/asm/mman.h | 1 + arch/powerpc/Kconfig | 1 - arch/x86/Kconfig | 1 - drivers/android/binder.c | 6 +- drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 2 +- drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c | 2 +- drivers/gpu/drm/amd/amdkfd/kfd_events.c | 2 +- drivers/infiniband/hw/hfi1/file_ops.c | 2 +- drivers/infiniband/hw/qib/qib_file_ops.c | 4 +- fs/exec.c | 2 +- fs/userfaultfd.c | 6 +- include/linux/huge_mm.h | 4 +- include/linux/ksm.h | 4 +- include/linux/mm.h | 108 +++++++++++++-------------- include/linux/mm_types.h | 6 +- include/linux/mman.h | 5 +- include/uapi/asm-generic/mman-common.h | 1 + mm/Kconfig | 2 - mm/debug.c | 4 +- mm/khugepaged.c | 2 +- mm/ksm.c | 2 +- mm/madvise.c | 2 +- mm/memory.c | 15 +++- mm/mmap.c | 14 ++-- mm/mprotect.c | 4 +- mm/mremap.c | 2 +- tools/include/uapi/asm-generic/mman-common.h | 1 + 28 files changed, 108 insertions(+), 98 deletions(-) -- 1.8.3.1