Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8888592ybi; Tue, 23 Jul 2019 17:27:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTKGaJEWWe6wo4DjzWP4Zl3/Gte/BcKD2HljjEOwW8UIW7aI20ZFMDGeGt3cUliqsXZaCo X-Received: by 2002:a63:2ec9:: with SMTP id u192mr77115764pgu.16.1563928021811; Tue, 23 Jul 2019 17:27:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563928021; cv=none; d=google.com; s=arc-20160816; b=caqroPQxo5Vydp0ACEIOSOC75lW23DarTVMiMi6Xk1gBn6OINUHv3Ns7aJIjSSFbTs yOxKlZH5NS6FYtH13IfkNZNWDG2p2pH9fN9qKk7juwwsRZyFMYJFYLQHx1X/2cV4h/vv V8hqRoOVmgvQZ0DAo7TGVWdwAzGxaG4HMBSkThQunvsaJIygC9LzSHkfFpWUFHdzyCLl Khj9U7ShWglW4J2lOCPiM1r9AEYrMCQGlY250HhEa2dw08PD9JEWDSXhkrt2+Ke72wri N1hfGUiKYZWYSz/CXLORmq7lf/K3AuwLHwWwYIcgZVPfNGqstCiHbwvg0sDj3uIf/3NE FBrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZQsVTPSDNSDkcFW9cXj3JbR5Y7NqzGJBRE1PkZOgQkU=; b=lb2HW56Yi2fMDRikQEQ2SdDxV4uui9cWZYo4QScuokrToMsPOCtbQ4crxqyAngb/YU v7qKDJrQ54gCsxTJfxoXo8+ZMdVVzXDfxZYcDEKHlvDC5MTKY6gNDlbFxAxaFUrFHlNf MrdX9+BgGWeiz847+CD0ADdcgNSx0UuiBxadxiBUYZ7RUxycXie8mpWbTkbdyGJtGzCX fbnr+tZEJSx4/yWrqEnFWzsm50ZVeHKT/YzedVBBJ5FeqUPKi6/sNf+7ASH/cbcrwfqb KgeTUIoF46IHunyK0xiGgTuABDXILxoWNAjZm/ceKxQFZVnwBkotNW2W9aaVOpO5noex BU7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=JSZ6PnpI; 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 g5si13758341pgn.360.2019.07.23.17.26.45; Tue, 23 Jul 2019 17:27:01 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=JSZ6PnpI; 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 S2390811AbfGWPOy (ORCPT + 99 others); Tue, 23 Jul 2019 11:14:54 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:49566 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729358AbfGWPOx (ORCPT ); Tue, 23 Jul 2019 11:14:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZQsVTPSDNSDkcFW9cXj3JbR5Y7NqzGJBRE1PkZOgQkU=; b=JSZ6PnpIJD6Tf8e+dQZEVPK9D+ NFsTUDdmiXl23ETstYe91SHCcUomsasfk9da7+u2KmA48gUfVpFRNjoPA6jHAeG7ZQt9myQrhsF14 g+E5B7n7wh83RWBc+DY60kRjreeRj2rbem4He4bvL5rSNgIsNvXkykj0Thyz9pxqBDsCEZVwynkBe XcCkqBKMPZkHGCY9lj3CmCPnQbCCVekvYrZ5v81f3DDBjZOT/bcpWoZwTFERELx8vCYK26HbD2ygw qlXNmFO63P+oXuCOAk+sJTP9xwVxkvKDDpUTNz5Exm0iZZNKy+nTVn8b/J4wQRg7IirMGjb+PjRPd MKNdUk7w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hpwV7-0000Q7-9p; Tue, 23 Jul 2019 15:14:49 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 4A21A201A57EF; Tue, 23 Jul 2019 17:14:47 +0200 (CEST) Date: Tue, 23 Jul 2019 17:14:47 +0200 From: Peter Zijlstra To: Andy Lutomirski Cc: Andy Lutomirski , Kees Cook , Thomas Gleixner , Sean Christopherson , Vincenzo Frascino , X86 ML , LKML Subject: Re: [5.2 REGRESSION] Generic vDSO breaks seccomp-enabled userspace on i386 Message-ID: <20190723151447.GO3419@hirez.programming.kicks-ass.net> References: <20190719170343.GA13680@linux.intel.com> <19EF7AC8-609A-4E86-B45E-98DFE965DAAB@amacapital.net> <201907221012.41504DCD@keescook> <201907221135.2C2D262D8@keescook> <201907221620.F31B9A082@keescook> <20190723091820.GZ3402@hirez.programming.kicks-ass.net> <17F255F9-5084-4E30-9AD6-80A4F49BD0D8@amacapital.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <17F255F9-5084-4E30-9AD6-80A4F49BD0D8@amacapital.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 23, 2019 at 07:04:46AM -0700, Andy Lutomirski wrote: > > > > On Jul 23, 2019, at 2:18 AM, Peter Zijlstra wrote: > > > >> On Mon, Jul 22, 2019 at 04:47:36PM -0700, Andy Lutomirski wrote: > >> > >> I don't love this whole concept, but I also don't have a better idea. > > > > Are we really talking about changing the kernel because BPF is expecting > > things? That is, did we just elevate everything BPF can observe to ABI? > > > > No, this isn’t about internals in the kernel mode sense. *phew*, I was scared for a wee moment. > It’s about the smallish number of cases where the kernel causes user > code to do a specific syscall and the user has a policy that doesn’t > allow that syscall. This is visible to user code via seccomp and > ptrace. > > Yes, it’s obnoxious. Do you have any suggestions? Not really; I think I just demonstrated I don't fully understand the problem space here :/