Received: by 10.213.65.68 with SMTP id h4csp1388434imn; Wed, 4 Apr 2018 18:50:20 -0700 (PDT) X-Google-Smtp-Source: AIpwx49t7twTpibFqSJ/qrOlsbmZXoFutrO+YVznkANvdL4/aYJX+s/zj00v4dPisHo6bfzYcDKD X-Received: by 2002:a17:902:7688:: with SMTP id m8-v6mr10273651pll.340.1522893020236; Wed, 04 Apr 2018 18:50:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522893020; cv=none; d=google.com; s=arc-20160816; b=MrmOhrmP2hBxc2SZBJrnAUEasTfY3e26IOwY0MmyBL1BzFMv9qGe3D81aefwbFEP98 Sye31hLprIlGsIc0S4WA4LXLr6i7njKh1Jso+1f2+DN0EDTIsT1ZryaECAuQDIqS3Gnx 0twWozQli96pfSomKLcN7KsR0i7jEXUK8w1cDFV2pCWYPBol7RQCwF7nl33B0zV7GRqz dgdRje1xa62ih3WiIayL7BDXo0jl9P3PjzKuaFGS59fMTnctsfZTbIAjQvB2wpCd4MVl B6xgiQ4okqUYwqqDZBgxOb+eEhdpIsrqsOM0KGtxT1IGxabHphx2z3MnQ4vtItgJQTxe qIxw== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=wDlxBFInT+nbIBYx7Ow4QmkeMHsXiRQv5r+HVqJTLlI=; b=hjdY9z0UOAWJjgSYWPt2jGzBoe8W9jUP5Mqd7x910gNfpIE16OnVQ3HnZLUyqFXDy/ zFS/2LD2mYUa20Lmsr78ynEIWK8kO2o/U/T24KloilxQWHjqq2qbNpIY86U8GO8N80X3 VOD5mabKuhOPE4oHuIU1s/aV+TO0QYAZWDdOXaMRfddfCS3V8s9p33N/WUbDs/rynmaF lRjKH7y4Vrpa3rtiAATBXD+b2iTslIqaJUUM5w9bK07trsDPFDj4NoO3WfSXo9iTHUf9 +iR0ndKeHkvphPXBze6R/n4FDNZQpQfKORS84x5Bur6ta5bJz+OYmUmpxWdNE/WggrM8 wBLA== ARC-Authentication-Results: i=1; mx.google.com; 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 u188si5220519pfb.220.2018.04.04.18.50.06; Wed, 04 Apr 2018 18:50:20 -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; 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 S1752802AbeDEBs4 (ORCPT + 99 others); Wed, 4 Apr 2018 21:48:56 -0400 Received: from smtp.nue.novell.com ([195.135.221.5]:44983 "EHLO smtp.nue.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752642AbeDEBsy (ORCPT ); Wed, 4 Apr 2018 21:48:54 -0400 Received: from linux-l9pv.suse (124-11-22-254.static.tfn.net.tw [124.11.22.254]) by smtp.nue.novell.com with ESMTP (TLS encrypted); Thu, 05 Apr 2018 03:48:30 +0200 Date: Thu, 5 Apr 2018 09:48:20 +0800 From: joeyli To: David Howells Cc: Jann Horn , Alexei Starovoitov , Andy Lutomirski , Greg Kroah-Hartman , "Theodore Y. Ts'o" , Matthew Garrett , Linus Torvalds , Ard Biesheuvel , James Morris , Alan Cox , Linux Kernel Mailing List , Justin Forbes , linux-man , LSM List , Linux API , Kees Cook , linux-efi Subject: Re: An actual suggestion (Re: [GIT PULL] Kernel lockdown for secure boot) Message-ID: <20180405014820.GB7362@linux-l9pv.suse> References: <1119.1522858644@warthog.procyon.org.uk> <15406.1522880367@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15406.1522880367@warthog.procyon.org.uk> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 04, 2018 at 11:19:27PM +0100, David Howells wrote: > Jann Horn wrote: > > > > Uh, no. bpf, for example, can be used to modify kernel memory. > > > > I'm pretty sure bpf isn't supposed to be able to modify arbitrary > > kernel memory. AFAIU if you can use BPF to write to arbitrary kernel > > memory, that's a bug; with CAP_SYS_ADMIN, you can read from userspace, > > write to userspace, and read from kernelspace, but you shouldn't be > > able to write to kernelspace. > > Ah - you may be right. I seem to have misremembered what Joey Lee wrote in > his patch description. > Sorry for it's my fault to misunderstood the behavoir of bpf with CAP_SYS_ADMIN. Joey Lee