Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2575220pxk; Sun, 20 Sep 2020 08:59:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOZ9I2I+hZ0oRhe5aXqaKinoTPrYtzSKkSOtJYU+3Yt7iFaD8AucWnncqOIb2aY5fDEKXl X-Received: by 2002:a17:906:4107:: with SMTP id j7mr47705963ejk.533.1600617548751; Sun, 20 Sep 2020 08:59:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600617548; cv=none; d=google.com; s=arc-20160816; b=SosYT86dXXD4HpiKvqsw6URgqlRibu9LBjWr4c/kzV6X2WVqzks5SravIAfuy9bBDI ALVadpv9LPNSwzkuYg5Td8Q2ItnXtqjRvRpymH0yz1h5e+RF/FQeYR1tL2Zo9U8STg6P FY7dTbh70WVlx28RNxvoghhCPR33+Yon2fcK7ufk3YcrxMbdbXUHLlaVijatjvAW+LKp UUj/pCFgpPZxluSmoby1YVyC/ugXO+SsbqLcRwu8GKhyhiDQZs4wDMTUkVWh5UTq8BRC fsxEScrpWl+tN+5cxls4Z8LcCpax5ysP7ru9nmV2D+Sb63+48coZUHByt1HTw/1rdEGn BDqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:in-reply-to:cc:references:message-id:date :subject:mime-version:from:content-transfer-encoding:dkim-signature; bh=wK83tl6Aps7O/Nyle+fjor+3BT0ZPHQ73i72gH6haeo=; b=0R2/Hbk2bt8huAZYzvDLQ6U5LIPw2bJxup447xgnSH73yEdyRzvxqUWe+2+nax5mMw k/cvCaaDWo2/vlYyUvqHnyFUIRyJh5nEINAo4lxxu3hq4UtyF2eCgS78+BvupCqw+xnR STaQ0jjd4PnPceyFlk7R6yggYyEe6L/EHzK5YwTpY7CEojm1kYc+LKRKU636u25P9gFi Nd4m2LtlMM7ca6+WOPoMRfkZ4fmGefqFl2swAV8nuH+Nr+oNuE7VxCPG60xHklfS4PXG zfjrwPyb4oebYBor1/3K1xHSXxrTPDE5gmC1bnB5N9byvHkuKliy0wK9MBTO0MF5byss nKoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j4uRAT2E; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g10si6691939edp.138.2020.09.20.08.58.43; Sun, 20 Sep 2020 08:59:08 -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=@gmail.com header.s=20161025 header.b=j4uRAT2E; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726392AbgITPzq (ORCPT + 99 others); Sun, 20 Sep 2020 11:55:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726267AbgITPzp (ORCPT ); Sun, 20 Sep 2020 11:55:45 -0400 Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA728C061755; Sun, 20 Sep 2020 08:55:44 -0700 (PDT) Received: by mail-qk1-x742.google.com with SMTP id 16so12427329qkf.4; Sun, 20 Sep 2020 08:55:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=wK83tl6Aps7O/Nyle+fjor+3BT0ZPHQ73i72gH6haeo=; b=j4uRAT2E8fdr2YaqrsiSPOPm8SjiSJMcVFWHVJQhudY7AjMagOuTaPaUrJZNB/DBxT RsSoXPsH0OZD1fdr6pAc+sedSbMtOJwM9dBbGX8EN9WBkRUekzOQnQi4yezBjIKvjoxp 4pTmIYXjTwfM8Ld7eN31Snn3HDl+xaBbxHqYulOMGjuIpzvi82ZxqqNXiPf1uBPbl0mW R3NIOxISkFL7B3tRSyYt+xnjnX4aUHUa0CKdIWEe71XW1d+175gN1d4Ezj+1k468etjw /p5aXBL9ieWXzE65cwKlIMBtQsaHBRTVaj0KGV3HN1O35ptGSjHCYh1Za9qlu8Ia58/F 0ILw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=wK83tl6Aps7O/Nyle+fjor+3BT0ZPHQ73i72gH6haeo=; b=MVEvg7GVE0UwEB/ZAZ6gif/de22ie6uJH02CpMntE3eCjMiLc4mtOVY35v/lCpmGI1 do5epLnA0IOlZBcyYJpJHy+yAE8B81RoKiT9KIGTWhoAxJlwGBtfxriBrAhPIN4/Z+dT lYvjOZGNloV1B9R88+E8aovv9+C0tXS2KAzlzsu3JfAoYVTi1qGiwO56odm9U3yH9zOl v4mAHouV/IVfNaPp8CP2slwszyXAgV/E53rz/xQfbxx07tnK3mONhiXFmK6QA5GW3Jk5 vzfvcTK3oF5O/ozhCfkXIZpf7cEQU6BkLSBjkFcZx1zpDKXuSwY5oCkOnw/E+cXcsY6a HPjw== X-Gm-Message-State: AOAM53079/7R18hIx/eWVGFWm1GSrmbGEBNsXKkfLXBXONkxCpNv9qkt qlqM8bYTN9eBcVOFs/2dhI3mekHPJDjjcD++ X-Received: by 2002:a05:620a:c10:: with SMTP id l16mr40194491qki.245.1600617343577; Sun, 20 Sep 2020 08:55:43 -0700 (PDT) Received: from localhost.localdomain ([65.140.37.34]) by smtp.gmail.com with ESMTPSA id v30sm7605819qtj.52.2020.09.20.08.55.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Sep 2020 08:55:42 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: William Kucharski Mime-Version: 1.0 (1.0) Subject: Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag Date: Sun, 20 Sep 2020 09:55:40 -0600 Message-Id: <76A432F3-4532-42A4-900E-16C0AC2D21D8@gmail.com> References: <20200920151510.GS32101@casper.infradead.org> Cc: Christoph Hellwig , Alexander Viro , Andrew Morton , Jens Axboe , Arnd Bergmann , David Howells , linux-arm-kernel@lists.infradead.org, x86@kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org, linux-block@vger.kernel.org, linux-scsi@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-aio@kvack.org, io-uring@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org In-Reply-To: <20200920151510.GS32101@casper.infradead.org> To: Matthew Wilcox X-Mailer: iPhone Mail (18B5052h) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I really like that as it=E2=80=99s self-documenting and anyone debugging it c= an see what is actually being used at a glance. > On Sep 20, 2020, at 09:15, Matthew Wilcox wrote: >=20 > =EF=BB=BFOn Fri, Sep 18, 2020 at 02:45:25PM +0200, Christoph Hellwig wrote= : >> Add a flag to force processing a syscall as a compat syscall. This is >> required so that in_compat_syscall() works for I/O submitted by io_uring >> helper threads on behalf of compat syscalls. >=20 > Al doesn't like this much, but my suggestion is to introduce two new > opcodes -- IORING_OP_READV32 and IORING_OP_WRITEV32. The compat code > can translate IORING_OP_READV to IORING_OP_READV32 and then the core > code can know what that user pointer is pointing to.