Received: by 10.223.176.5 with SMTP id f5csp2940418wra; Thu, 1 Feb 2018 08:20:48 -0800 (PST) X-Google-Smtp-Source: AH8x227QHb/hNn3SnbM4fRoNWPmviJyA0gq39vWE9VkFDOdwZFBsCcj2s0AD8fcYdKL1v1zpjVFt X-Received: by 2002:a17:902:6a89:: with SMTP id n9-v6mr31920747plk.212.1517502048204; Thu, 01 Feb 2018 08:20:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517502048; cv=none; d=google.com; s=arc-20160816; b=0ETUlSEDbWVfJq3OnORNBii7EWuf6/slXwJvYCG1MO6q1Kr9Kts7VqELjheVjr301M /iK4TqwhJfRvz4Hx95hvvAEbspp/EIEXtuV2/F/fCZmgZ0M2jfcR+H48umru3N4/2PHI dsisrhTm/67qGFdXne9dHl7/8UxntUyVT/sjU8ZSv+qVfWqvYXNQiEbasvchPq0SN3P7 uDTruzRRAnOigysCcmx+1z1A8mQVAeeucJZaXxMmf1jhYTdQE19QvUs2wW0ih7lV76S/ /wLMb+mLOnQmcJGEJ4QAwAd5H3diMszI2L8Lma5euvMq0H4/V9p5zwa/QRQV+kcpMgNu ZhLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=1qudofcTZRbH1LBx0/rvoOvVDL53i36Kjg7F/CaSJgU=; b=vKJwmFSISgiU0eXBOocBMmzuiixvmmeySFKpGjVWP7gTpiltZUtzy7r3gFsdwjQhRM WmukpTeW4EdybQfHyKFWV5rn+eiZTq/2FY1kOydsnsmV25aPT9BVXOwAkz9v3I/Zn3Hb JLLo01eJj6vAUB2xXMjD5aUvCqF8UCZIPFe28LW9H65KMuuXMV77fwUSsRXx5d9QfcqN n/tfcpbuNOLCD/Pgl1+Ddp3GYq/xpZh8QXOhtoj7G8K98fBdYoVcshYXuFDIqbrDDDgf DWqanL0hPN9RsKIjDky6wlfkzwEH652mUWgm8ashqB8/c+B48UAAxmuFbA/OKOHRGmIK kj5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@android.com header.s=20161025 header.b=HIQDhEi/; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=android.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y16si6696377pfl.374.2018.02.01.08.20.33; Thu, 01 Feb 2018 08:20:48 -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; dkim=pass header.i=@android.com header.s=20161025 header.b=HIQDhEi/; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=android.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752236AbeBAQUS (ORCPT + 99 others); Thu, 1 Feb 2018 11:20:18 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:37270 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751378AbeBAQUP (ORCPT ); Thu, 1 Feb 2018 11:20:15 -0500 Received: by mail-pf0-f196.google.com with SMTP id p1so15694414pfh.4 for ; Thu, 01 Feb 2018 08:20:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=android.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=1qudofcTZRbH1LBx0/rvoOvVDL53i36Kjg7F/CaSJgU=; b=HIQDhEi/oaIYH0oEXwaY8ve2jLsdnA8QPYwQHIYlYvRvTyliJuAwbanRD6lWMz0zXp B2VJ3N3NfLUYz6M8+b0Q9UKUBMRz+v7OZZVutSVwU8lYigkAaUY93mCguXo7QciANv5o x1ul0PGKBTDdePRxW2lQjv5FbarnFZw0PXKuJSY5qGEw9Esovl6Ip8sA5eOPd5xLCxhC 9TAkfBP1rvYV7XqxKWZYFqaDVWAYMs85xF/mj2kKwyXt26ZPeyOkrNTPMyc3dK9aWqrf f1rXbcDH8JtvohL1eYuJcxkjpplkdNO0NLBwWVAg3JvOzo0uxU6gkdC9csXz+2HAlk/X FUeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=1qudofcTZRbH1LBx0/rvoOvVDL53i36Kjg7F/CaSJgU=; b=Nwj20LSmqHdCyoncaN3LsPWQC5yJKd7U+VlhxkVWpqf1Iwq42y7uBXRAqXfY0GyjGZ 5Kaha4440Jw5F88gtdPEF7diIEw/wCN4pqwgsD/Cae0mLB+ns3OtKY4jnvFaEfqBEodk FZLYb71aibP3HaJ4VKn6OhNvdy1++Fym41zGF0tnQtRpTI72X2nPzeYLQt50XWM/zY2d 2Jazm9T7teeeg+PGFAfbQoNsCOjCfuhklk/JtQ24fcW8lq2VWtVONIcfR1xdhDz4erMS gXFsXWqb5sumUoLy/iad3oLyy8eJnrytaX+yGGj1KwhUMfhqaa9QJCWiSSpHm1XbROQw UjJg== X-Gm-Message-State: AKwxytdgi1txdOEHTlYkS+vBlNxNm1cSwDGADEVVYtSF5YaQa6OaNd/Q BU5dVy8d6Q3KDvqMVmkvXKng8w== X-Received: by 10.98.46.2 with SMTP id u2mr37466768pfu.30.1517502014711; Thu, 01 Feb 2018 08:20:14 -0800 (PST) Received: from nebulus.mtv.corp.google.com ([2620:0:1000:1612:b4fb:6752:f21f:3502]) by smtp.googlemail.com with ESMTPSA id r30sm47050821pff.16.2018.02.01.08.20.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Feb 2018 08:20:14 -0800 (PST) Subject: Re: [PATCH v2] general protection fault in sock_has_perm To: Paul Moore Cc: linux-kernel@vger.kernel.org, Paul Moore , Greg KH , Eric Dumazet , Stephen Smalley , selinux@tycho.nsa.gov, linux-security-module@vger.kernel.org, Eric Paris , "Serge E . Hallyn" , stable , James Morris References: <20180201153708.63506-1-salyzyn@android.com> From: Mark Salyzyn Message-ID: <5fb5622d-e58b-c174-3d5c-bfe55569b88e@android.com> Date: Thu, 1 Feb 2018 08:20:13 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Lesson lurned -- Mark