Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1713246pxa; Sat, 29 Aug 2020 00:03:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNaOcSg0DMbMIi7LTHOlvq6VueqsB52gYeLUo5Lm/Sc61n4nVIR/Xgga4Eht2ertz12ZAj X-Received: by 2002:aa7:ca0d:: with SMTP id y13mr2232441eds.169.1598684607384; Sat, 29 Aug 2020 00:03:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598684607; cv=none; d=google.com; s=arc-20160816; b=MBz03MnFcRjQnxoS5eOiJawiyIj3TUwDeafrDsZ3hw0UlsmvCTPCfKxcjOYDRb6+Tb TY1AVjoomiLkVY+Z/5ThWMt8PdnK9ZkWAoWH1PRPjj1o+F3nJd9PsiGshMA3jbKH6LIK R5QEqf/qxcWeqTkKFE/EpxHf0ENT3YqFrmvwFJBL5U9VH4sPwuE8oVdFEP1gNNNMEnea WfCjzdxV/Yy5AdSxTB8I9VZX15I/JoWdn/ouPynfCnLls4BlDPHmHrYHK0qFpH9d+T4a GkHhNYKe4qt8rBJTU/CQmcMT7fa5HuqRez0Amhy8zO8f5ZjeiM21Kr12qdWErUd6huH7 tFjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=9U9dGK0bqJLSVOUuBWXaxoDilhxzVYEaDPKgn3CAclI=; b=fhkXGTlSz9wvH/qxx6Imv5jEtvnn0JefcwGuZOKPGoBvMV0isK0XJcfJ0qASmSS4fd jIIAiwzNabgl3C1Vxuwjs8tX12EX4q2gQT2nCbYRFs8mqo66DuVagO6RHBsj83sKw2ZI KsecI3wG1J44SnM60L8h6ikQuC00wvsrb9ZCaCd9bDMTBBAyT82ENeKPl7FvDDAiNZtM n3AOMF7hN9JH8qF9ryGxXFGO7aUs5MZZnDi+hzMO81bntx0lYohLnaRwRnCpK0d+u33f 1IMj98FZ/zAoU38hZPx3G/G0O6Dr0ZyRrKquT/rkVqWHazX5trvrM4MPUbTVyyITOS+K kDIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=YfaX1TJf; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q3si1286132ejb.543.2020.08.29.00.03.04; Sat, 29 Aug 2020 00:03:27 -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=fail header.i=@infradead.org header.s=casper.20170209 header.b=YfaX1TJf; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726170AbgH2HCh (ORCPT + 99 others); Sat, 29 Aug 2020 03:02:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725886AbgH2HCg (ORCPT ); Sat, 29 Aug 2020 03:02:36 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F73BC061236; Sat, 29 Aug 2020 00:02:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=9U9dGK0bqJLSVOUuBWXaxoDilhxzVYEaDPKgn3CAclI=; b=YfaX1TJf7HA6uhNhJQiWhVOa96 f0ehNVUSyn/j0g/TXrjTt2eoL7mJwEB4PB/JJiVMi5LP9i0Al6Caf4Lm0tnG4qPm+56zU1QgHO5KD zRUe6vhjo0W4XXSUuEeI/I+YhnlDlJDIpE0Vz0B3crHHkxS+LD7Ce5nKBERAGV3SrwNdc5jXEkH+L TT9HMk6Idvnye6juI2mrnxGfJz/Y9+Bftdi20lxWcnnRC5XMrPf7C8x6ilSfuCiEiXoBdRoCP3Rv1 ADtVbrtSOnk1GeYxMvqzbU/Yz18EpXB8qaJ0Olsk4Ci3SFrP0SCj75p0juusf5HA04sAnypvPh5mq hT3wh4Ww==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBusg-0000WP-5C; Sat, 29 Aug 2020 07:02:30 +0000 Date: Sat, 29 Aug 2020 08:02:30 +0100 From: Christoph Hellwig To: Arnd Bergmann Cc: Minchan Kim , Andrew Morton , LKML , Christian Brauner , linux-mm , Linux API , Oleksandr Natalenko , Suren Baghdasaryan , Tim Murray , Sandeep Patil , Sonny Rao , Brian Geffon , Michal Hocko , Johannes Weiner , Shakeel Butt , John Dias , Joel Fernandes , Jann Horn , alexander.h.duyck@linux.intel.com, SeongJae Park , David Rientjes , Arjun Roy , Vlastimil Babka , Christian Brauner , Daniel Colascione , Jens Axboe , Kirill Tkhai , SeongJae Park , linux-man Subject: Re: [PATCH v8 3/4] mm/madvise: introduce process_madvise() syscall: an external memory hinting API Message-ID: <20200829070230.GA1099@infradead.org> References: <20200622192900.22757-1-minchan@kernel.org> <20200622192900.22757-4-minchan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 28, 2020 at 07:40:08PM +0200, Arnd Bergmann wrote: > Every syscall that passes an iovec seems to do this. If we make import_iovec() > handle both cases directly, this syscall and a number of others can > be simplified, and you avoid the x32 entry point I mentioned above FYI, I do have a series that does this (even tested) and kills tons of compat syscalls by that. But by doing that I found the problem that compat syscalls issued by io_uring don't trigger in_compat_syscall(). I need to go back to fixing the io_uring vs in_compat_syscall() issue (probably for 5.9) and then submit the whole thing.