Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp866071imm; Fri, 12 Oct 2018 07:58:44 -0700 (PDT) X-Google-Smtp-Source: ACcGV62mlSxqyHulDp3Rvs+Bx/RC7eRewOt0u4H9Xnng+9rwZURts8bTDOUIOzzJsz6mHtQePlEL X-Received: by 2002:a62:cac4:: with SMTP id y65-v6mr6405402pfk.27.1539356324830; Fri, 12 Oct 2018 07:58:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539356324; cv=none; d=google.com; s=arc-20160816; b=M1Bx73aGRQdLgazyHLbv17M9V1SfEELQMXuTXWZPsbmhHpFr4k9jxKCGMV49UUalO6 LODF5RSIPYrFBZeAFsAQTqWHxCaawGwHDH3SY7ec1pkMTZx2IXkYV+thf/wSYGTuJ7oo M7Kh4Ui5q84fTtyvKSyx/4sRLebNyMd6tbJVn6uk5xZ2UYD5TK341NiHe6hP95dm5kdv wdfw94DfiwMWpJqHR4CBltJuhbKvkPMFfCRDmGyyyv3heg8yxqVazqeWkVvFwj5tFL6s r4i9Nt33MWC5FG6HhusWjatfy5Ek9InlnhAYHcXp8UIJ+KuZCCF8N5UUjX8O4UDcK2Z6 mnFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=8J/lXtBqwvLGG6X7sYQfCs45879z4TSlkx4QK3kUxGc=; b=You2Y4hv8a6A3Xzqvi5Gm88Xurx6cdPrYTB7JXP4GRVA7LUfGfR3fmOISJNE1pLe36 zVk2pCQWfmPqcbOq1TmRJLazyXV0BHvIv5gQrQmuh9O1VIkI/2gWD9aUB6nEJfu8eAWL mTna8K5PKxxQo5i5bKE9p48WVdiLlm5s3K46Ptz8olH1j8KmH4pMHH1tTTZoK/k2/zBv rHOR/jkdwPmMZ0eanjYc7lbOblpwZzLfpPjOqHOqK7FPhTPi8iaAVg2OMpAMdwqIBVu2 A5Ln2uu5L7KTzJ+yh/kSVP9WOuOcAcmO5XCCxhoh/lAg4BHUDwpLpzpTv1GRD422BzNU h7xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b="hX/F9DkH"; 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 h90-v6si1365473plb.64.2018.10.12.07.58.29; Fri, 12 Oct 2018 07:58:44 -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=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b="hX/F9DkH"; 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 S1729004AbeJLWao (ORCPT + 99 others); Fri, 12 Oct 2018 18:30:44 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:38150 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728646AbeJLWan (ORCPT ); Fri, 12 Oct 2018 18:30:43 -0400 Received: by mail-pf1-f196.google.com with SMTP id f29-v6so6332897pff.5 for ; Fri, 12 Oct 2018 07:57:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=8J/lXtBqwvLGG6X7sYQfCs45879z4TSlkx4QK3kUxGc=; b=hX/F9DkHFWT/lsXaDM04MPv8u87ulX4FJwPpwTmXAYLtBFyzpwM4xfSLvknSG9oRpw U7u+9QGmzk9+x57na2uU+HzpyG3yw1Pj63Udi7DPdtrmIZXqWcpP7xQC8LFZR17PQ6s4 O+lI6AqMcmfeuoYuecBRH8wUDqVkmgQcu5dpg5lGnOF9Nth/EqJQs+aj74hIsHzq0vyJ hlv/hpRCVJyEdRcdo2fXFo4IBvkcikRKv7mDjm/qiApVOJYZoMQV+VZyxXSW0CuM5vFO gkQe++EqDsFyFHKrM9whOnrSnsTjiDjU4C2KBk8CZkgjHqKz9MDAbEizAHJjS+lSuF+f rOOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=8J/lXtBqwvLGG6X7sYQfCs45879z4TSlkx4QK3kUxGc=; b=nJ6W3MKjGkLbGn35whHndrPpJkbJWVO9xEqUi9U5eJG4vt8jos7R7QRJgtBg7Y6liS kscIwlud3NRFgfDyF7sBEC3loMBHsv8oijgLoUpqZGN8g3LGPABCKjl52f+91Taljvs6 TfvbmKCd66XoKsPdxfaJJ6ich+v3rLMaz4xO0hzns8oeDfBOvs4uFnMxyhP1ntcFL74b fRznsfhEM6y6jJtD24uORQ/7pNOt87jpppO+tINkmsMUKFm3oRyRx7LCqoRfZDh+MzS0 68+i88pvjGLhDLUGzYkBMoSaYtu5IlIVHZUEgK99p8a74nycEH/rLERUaREZl9o6/LGV 0b8A== X-Gm-Message-State: ABuFfog4YIfECmharPjQOvo54oc1COAk5X6tSjBy14Ook1Uy/cWRGsdW 3RGJlvt+zCOKIDRICNG32yMEPQ== X-Received: by 2002:a63:d40c:: with SMTP id a12-v6mr5770567pgh.394.1539356272988; Fri, 12 Oct 2018 07:57:52 -0700 (PDT) Received: from ?IPv6:2600:1010:b023:6e7d:49f6:3296:7822:7f09? ([2600:1010:b023:6e7d:49f6:3296:7822:7f09]) by smtp.gmail.com with ESMTPSA id g88-v6sm3068494pfd.181.2018.10.12.07.57.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Oct 2018 07:57:51 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: [RFC-resend 1/2] x86/compat: Adjust in_compat_syscall() to generic code under !COMPAT From: Andy Lutomirski X-Mailer: iPhone Mail (16A366) In-Reply-To: <20181012134253.23266-2-dima@arista.com> Date: Fri, 12 Oct 2018 07:57:50 -0700 Cc: linux-kernel@vger.kernel.org, Dmitry Safonov <0x7f454c46@gmail.com>, Ard Biesheuvel , Andy Lutomirsky , "David S. Miller" , Herbert Xu , "H. Peter Anvin" , Ingo Molnar , John Stultz , "Kirill A. Shutemov" , Oleg Nesterov , Steffen Klassert , Stephen Boyd , Steven Rostedt , Thomas Gleixner , x86@kernel.org, linux-efi@vger.kernel.org, netdev@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: <6135DDE6-C8C1-420E-A264-7FD0AB60DE82@amacapital.net> References: <20181012134253.23266-1-dima@arista.com> <20181012134253.23266-2-dima@arista.com> To: Dmitry Safonov Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Oct 12, 2018, at 6:42 AM, Dmitry Safonov wrote: > > The result of in_compat_syscall() can be pictured as: > > x86 platform: > --------------------------------------------------- > | Arch\syscall | 64-bit | ia32 | x32 | > |-------------------------------------------------| > | x86_64 | false | true | true | > |-------------------------------------------------| > | i686 | | | | > --------------------------------------------------- > > Other platforms: > ------------------------------------------- > | Arch\syscall | 64-bit | compat | > |-----------------------------------------| > | 64-bit | false | true | > |-----------------------------------------| > | 32-bit(?) | | | > ------------------------------------------- > > Yikes. This is probably even my fault! Reviewed-by: Andy Lutomirski And, if you want: Apologized-for-by: Andy Lutomirski