Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp947037ybm; Wed, 27 May 2020 11:53:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuHNQ+0SuNeu3gG7kmmGGARF3ABgaxQONtC5BQaP1r2wK4B80/il+6kZdLCYfJYCN0Vluk X-Received: by 2002:aa7:cc84:: with SMTP id p4mr25473478edt.216.1590605614231; Wed, 27 May 2020 11:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590605614; cv=none; d=google.com; s=arc-20160816; b=N8t9ywrXGua4z+PgbUSDSsvePVL+21Me0sDDPl/XEkNl8R/24ZW+SEJjLBiZhEyxvl gcPOMf0Elzbvx6DUGD2grBw/QkNWD01IokoMXgGGFsvVhm2Sh+OHsI3Wo4nWRwfJqLBc SYkpoFzg3JEaeT1na0xSTsEerJs66xPxnwbEvMUHjol5C5+jxNZfjLH/DQhJqRSSlZiJ 4IaNA3mc67QLQiBYL1YYc6orAr0/p5adZsPQ1z1T2zZEPaaLTi0l75pljXNZzCueo/SA X2AKYnrfZdk8YD8FhI9RnaO49OttozEeNKiT9L4xfb+yp6zuaABKBewqK/+yU758MwNq OoEA== 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=EKLqhL8/M+tIyO02sMxRAXpD2SDCb6fjZhlp556eE3c=; b=HcOExmhaP5b2TN+NcxwiAI8zefM2/2rUrxHjj8CGrvhnlDRb0c6SYlplVjBvG81iFV 14M9M2qAYifIXdvg/FjRZloaUDc8K/jXp0AMkYyypkX/HSO/wYzD5CyEnXqRf5TDfCB8 zZKMgAeBs0fgraxmBgwFYskZPfYRPw/2MTkIqnWBbeON5M+F41Mpwg70n5nblg1wC7Bc H4RhqUF3z+/7LAXKr2jHqiY0Z2jUdf0w3AZDEl4YUenpjUTQvDBSxKGfN1Pie51PsLQu /33WY1Y0vvfn0Ll5Dnv1mM+2+UeCMm0csoca5vxu7g1/B6y9GgXh1GuwoGS2sOZpATPc 5mhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jXXSlSss; 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 k7si1709420edn.589.2020.05.27.11.53.10; Wed, 27 May 2020 11:53:34 -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=@kernel.org header.s=default header.b=jXXSlSss; 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 S1727894AbgE0Pbh (ORCPT + 99 others); Wed, 27 May 2020 11:31:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:43968 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728829AbgE0Pbd (ORCPT ); Wed, 27 May 2020 11:31:33 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3CA63208E4; Wed, 27 May 2020 15:31:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590593492; bh=FYlTjZDDWzv75K1cm++7jCZ9U5TmYAzARky7QAXahI0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jXXSlSss9GQcJwOVQ18QpEkpPQ0UHggQ0gnw7GFrNNzCuPWE5+rTO8d+c6uVeB6Cs 78bnb0WIkRzmYIS3AQo7EY1dOw9IStfAv5KBXtOZEmWdm4DU6tsewCwDtPxhwIJtUo seapiYMExTH/ZC9Us+4q6KTSv6ZC6Zm+15xcQP3E= Date: Wed, 27 May 2020 17:31:30 +0200 From: Greg KH To: Ashwin H Cc: "x86@kernel.org" , "dri-devel@lists.freedesktop.org" , "intel-gfx@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , "stable@kernel.org" , Srivatsa Bhat , "srivatsa@csail.mit.edu" , "rostedt@goodmis.org" , Steven Rostedt , Linus Torvalds Subject: Re: [PATCH v4.19.x] make 'user_access_begin()' do 'access_ok()' Message-ID: <20200527153130.GA525531@kroah.com> References: <20200513055548.GA743118@kroah.com> <89DE19F6-4CB0-4324-A630-C8574C8D591C@vmware.com> <20200513063455.GA752913@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 13, 2020 at 05:08:19PM +0000, Ashwin H wrote: > > Ok, but what does that mean for us? > > > > You need to say why you are sending a patch, otherwise we will guess wrong. > > In drivers/gpu/drm/i915/i915_gem_execbuffer.c, ioctl functions does user_access_begin() without doing access_ok(Checks if a user space pointer is valid) first. > A local attacker can craft a malicious ioctl function call to overwrite arbitrary kernel memory, resulting in a Denial of Service or privilege escalation (CVE-2018-20669) > > This patch makes sure that user_access_begin always does access_ok. > user_access_begin has been modified to do access_ok internally. I had this in the tree, but it broke the build on alpha, sh, and maybe a few others :( See: https://lore.kernel.org/r/20200527140225.GA214763@roeck-us.net for the details. Can you dig out all of the needed follow-on patches as well, and send them all as a patch series for 4.19.y so that I can queue them all up at once? thanks, greg k-h