Received: by 10.223.176.5 with SMTP id f5csp2993380wra; Thu, 1 Feb 2018 09:06:47 -0800 (PST) X-Google-Smtp-Source: AH8x2246Spic2JY7adWJAr25GFnK3QaewOHoCpfT9Zr/SwxynFNBmt9BleJPZKSXqqg9pVmadg9K X-Received: by 10.99.110.3 with SMTP id j3mr29755273pgc.85.1517504807013; Thu, 01 Feb 2018 09:06:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517504806; cv=none; d=google.com; s=arc-20160816; b=Gf+YqGhQFASGKUrX1EqMlKLYXQHitGFNgO1qJl4jhJkEn1Cj5XIAyEE/CWshXxoWi+ cgih2B0aZu0QhH2EBz1y6Olb3Wagg86A24NrRRjhxIWSZ8gvBcWov+Aet2CpW2Sm4pSf vP2ADnnHKTkvNT34g1gTgsb00kSIQQqMUblmmSKvMx9kaMVOuPrK4x4gJhTCZanpe3gD KAG3sR2PyCvCwJJmGNv70Ea4DNxItggsf3sgS/jjRH8g6bl88PrdrASX2heooOXaXXMx fM4Bq3ah+1PXX6qqXJnlrhe4QwPD7N0J/mrERVbgoOM/UqtEUdFHBNLEbEyAzEtE8583 pVYw== 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=j8pjetKoEEdPIp8L0d1SMRXyisyrJ66x0zyTkpd0f8I=; b=lqNJwu61N+Xm5GCLyKK3E6hPAQRDF6D0s3f1C7l6nuak0wCIqT39YRLyuFGTuVTieO O1glqlG46xoq5Z5wdETd/hCkZTQRywOvkk+emsPZIG9mmHMfvTcD1radzrb5b1MxPxfT 1BmcicpWDHMneI8Lg6Oshp4pi5WBi9y/MzxxOyK/8cVIB4/LDMwuX4QblBTMQ41/T3qg Vg7BaUPypyNxP9dk1j2ahyYs9H1rLKG8Wr7art3hM/p1Z/N/pe1sP2JridvrPzJVq8tK v3bi9aUtg+36WVDzY63Bgyj26TqIObkC5Rgf/IL3pkI9Nz2v8lDea5p4/BNbl2ka9yma 6aKQ== 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 m24si13207pfj.124.2018.02.01.09.06.31; Thu, 01 Feb 2018 09:06:46 -0800 (PST) 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 S1752646AbeBARE4 (ORCPT + 99 others); Thu, 1 Feb 2018 12:04:56 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:48152 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752084AbeBAREx (ORCPT ); Thu, 1 Feb 2018 12:04:53 -0500 Received: from localhost (unknown [37.169.172.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id DA13CDDB; Thu, 1 Feb 2018 17:04:51 +0000 (UTC) Date: Thu, 1 Feb 2018 18:04:47 +0100 From: Greg KH To: Mark Salyzyn Cc: Paul Moore , linux-kernel@vger.kernel.org, Paul Moore , Eric Dumazet , Stephen Smalley , selinux@tycho.nsa.gov, linux-security-module@vger.kernel.org, Eric Paris , "Serge E . Hallyn" , stable , James Morris Subject: Re: [PATCH v2] general protection fault in sock_has_perm Message-ID: <20180201170447.GE12838@kroah.com> References: <20180201153708.63506-1-salyzyn@android.com> <5fb5622d-e58b-c174-3d5c-bfe55569b88e@android.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5fb5622d-e58b-c174-3d5c-bfe55569b88e@android.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 01, 2018 at 08:20:13AM -0800, Mark Salyzyn wrote: > On 02/01/2018 08:00 AM, Paul Moore wrote: > > On Thu, Feb 1, 2018 at 10:37 AM, Mark Salyzyn wrote: > > > In the absence of commit a4298e4522d6 ("net: add SOCK_RCU_FREE socket > > > flag") and all the associated infrastructure changes to take advantage > > > of a RCU grace period before freeing, there is a heightened > > > possibility that a security check is performed while an ill-timed > > > setsockopt call races in from user space. It then is prudent to null > > > check sk_security, and if the case, reject the permissions. > > > > > > . . . > > > ---[ end trace 7b5aaf788fef6174 ]--- > > > > > > Signed-off-by: Mark Salyzyn > > > Signed-off-by: Paul Moore > > No, in the previous thread I gave my ack, not my sign-off; please be > > more careful in the future. It may seem silly, especially in this > > particular case, but it is an important distinction when things like > > the DCO are concerned. > > > > Anyway, here is my ack again. > > > > Acked-by: Paul Moore > > > Ok, both Greg KH and yours should be considered Acked-By. Been overstepping > this boundary for _years_. AFAIK Signed-off-by is still pending from Stephen > Smalley before this can roll in. An ack is all I need here, or I can just rely on Paul's :) I'll edit up Paul's when I apply this. thanks, greg k-h