Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp5261674imm; Fri, 18 May 2018 21:17:31 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp530NM7+dpfjeDNDOf3OO704xdhZTOERjzGZmfliGep/9WgeydLEGbK5c8Eif3OoYyRL5+ X-Received: by 2002:a17:902:bd82:: with SMTP id q2-v6mr12077682pls.77.1526703451210; Fri, 18 May 2018 21:17:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526703451; cv=none; d=google.com; s=arc-20160816; b=mfEHDdJ+lek7fqsqAGIqm0NBT5/jo/zdF2hvrFoFkkKUt1tX++s424YHGwgxxmjxmW ga7KJZTJ/C/xnfRCkYrsfHszAu8J8Rpe/WPiqx8dfXIWroZJoxtDRixSX7EWTCC14Kku 2LgiA6PkTcXWbFQYltaiQ16njXQGiwDYR/HHWbIQJS63raUV5N8pcnome1IA14W/nyGU ax4nK97KchTkgEMIx7N62tMDpd2W5hB698Taqf8+tvGlxIUEecmGhzcqO3++y8MRq4bw GMLNLYMsWzRBwOoMNlZaXOfMgAXp8boLYOh7YVaQm9SRKW1oTjdHkegf0W19Mb9VkXfS EtBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=u4mP4auw6NYT9M8jFptbHkNa8Zw+XqZuhAeOwticlVg=; b=EqeR52H+vMpSlj9oAoQiJ6wx09rpmmYlfCitdITE7fbw6siFkBpG8LSPEkR1NEehm3 Q8zbqbxqzPQNhbMqmsKUv47NVWSF/jWVu+2ikCkCFWLUer0WbMMFmd3A/KKDBlBj524E MXMvRfOEZK212C6SEpp3y/DPtYA9S2JekF4Ez3On3lBpuDOE2rMx14SSzY4VRzV3xR61 2nGDaeWcmkwqVJeuqHVQBJLZm3togd3MO/sjO2iUvmPEAf4xYfRCOS7b+BnKsNti1bwR 2Bt6NYb7CH/64NQn+C+FnsJ/7wq2ssCwy8L3Gyok/aIaQELJIjYZzbRfoNysvz/6w0pE 5c3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=ZNhRddUp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i27-v6si9406050pfa.219.2018.05.18.21.16.41; Fri, 18 May 2018 21:17:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=ZNhRddUp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750955AbeESEQ3 (ORCPT + 99 others); Sat, 19 May 2018 00:16:29 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:39326 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750743AbeESEQ2 (ORCPT ); Sat, 19 May 2018 00:16:28 -0400 Received: by mail-io0-f194.google.com with SMTP id r9-v6so8555909iod.6 for ; Fri, 18 May 2018 21:16:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=u4mP4auw6NYT9M8jFptbHkNa8Zw+XqZuhAeOwticlVg=; b=ZNhRddUpUxTy/qYPBrjBEj57m5cAo77/gA8QhlEw4imbnsquP5owTlQ9wjJfNIY2rC kVyNxL9xgeJ1q9W1YgvyHb7MIN3AbWv/Me8dy49RXpziPG0ggI5mTNgPHjDpvL2aimbE 9SgVDXgtis/tI7jnpTfT7W/O6ilixKdu2FPGg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=u4mP4auw6NYT9M8jFptbHkNa8Zw+XqZuhAeOwticlVg=; b=AN9ZvIByODi8joRBOTXzNH5QCEWinlEwf21hJTWthgUxrXrR6fKJV2zGz7ZrnVH0BX XGXGur7Oy44dAyx5hi/fvSOxiAcda3sjb8zhqbWfpmhpVamtHhZnqXEYT9JgQNBpNYaF iQGLC3F7CLAoaimq3UGHfRWjR5UVlHdX9kjo3hc0wv+IJdjb43F60y5j+A2L9sNAE4rO 3R9K9Ih5aBlv19VWhVeNh7MTnQW4JktCY6RdnFAYj05OdVv+Z9LCI7bOGgvMzSZ5QCFC vjH3S5okvisvdSHxi8O+1Ns8cfHWoG3f8jLd2iyXqimIamyHdMC5fKkfFMzfPpzfjmlM 21FA== X-Gm-Message-State: ALKqPwfTBJq95Pcm6npmXDG7rj3DPHjbKatoC3VdAUKcb7+ruPEkTrXx Ni6Gct+pSdyNCGWqpZzBiO0CQpZii0fER5Ri7f4= X-Received: by 2002:a6b:8a26:: with SMTP id m38-v6mr13842730iod.259.1526703387561; Fri, 18 May 2018 21:16:27 -0700 (PDT) MIME-Version: 1.0 References: <20180519034338.GV30522@ZenIV.linux.org.uk> In-Reply-To: From: Linus Torvalds Date: Fri, 18 May 2018 21:16:16 -0700 Message-ID: Subject: Re: [PATCH] procfs: fix mmap() for /proc/vmcore To: Al Viro Cc: gor@linux.ibm.com, Andrew Morton , Linux Kernel Mailing List , Heiko Carstens Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 18, 2018 at 9:12 PM Linus Torvalds < torvalds@linux-foundation.org> wrote: > (So we'd still have a "sb_maxbytes" that filesystems would fill in, but it > would only be used as a "fill in inode value for regular files for this > superblock"). Actually, maybe we could just make rw_verify_area() use the new file_mmap_size_max() function. We'd just remove the "mmap" part of the name, and have all IO (and all mmap) use that limit. That doesn't sound like a horrible idea to try for 4.18. Hmm? Linus