Received: by 10.223.185.116 with SMTP id b49csp6001813wrg; Wed, 7 Mar 2018 23:36:30 -0800 (PST) X-Google-Smtp-Source: AG47ELuVmDIJ9vWdKU6b8grdKM686Iq325CzxhseEP8XIApJdRnzjMSNq3FZhTHPLkEIu0QdWnqP X-Received: by 2002:a17:902:6c01:: with SMTP id q1-v6mr13431640plk.142.1520494590394; Wed, 07 Mar 2018 23:36:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520494590; cv=none; d=google.com; s=arc-20160816; b=bnFIgzA9MSW/NUMJ7pl43IuFekmWUlD8OqrGMiNnbz4T8w41HtcLX8Bc+FVfgYq3wO klfRPdShYhcuC06KTItN6UodsM0JZ+ytQuTiuhcBhRJ3XWDW4taaiOwgcWFrC0q70H9d WF3l5vNXdCbcYZdG4ET7YObTLc2J0XHp1ut2jFubOyNrgzbiGTfrsqcaaPIZ2fwb2K0O tKPcsa6B3ofwosBTlBVoIGfj6ibheH2TCu/sf7bxe3jsiG+MDLn+VayB61Ae4ku2xoWB TPFluzIjEp5fEIMkqp6p6T0UMVdeX28W75XJB+OcIepRB0h4boFYEulgF+DCmNKMwVI6 EOJg== 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=FZYsThoLs7/IS3X6YD9m8MgsDQ8MmNg8Gd98FSrBSGo=; b=NLRK0ILYEotn7decgYCtqDdNA4LELJKI729JwFlQWumZaNLCvtlQhkfAXVQuo69fe3 60arTdxaDMRNyU21sYfN9fTW4RDsG/5TEM5XeVDY2UUnzLLcHAW0triA5W0+HA3paE1p yU+s4ssfsL0UZf5DSbZQQtlM2QgKGJmN3SOJH6hQ3DXY+enlAihhuoGZ0SwQhhLEiBL4 HqQayPiBWS9gikmzlGTKdmeTG6tnXx8Z3ev31TanPjg0JBEBqlTMxhGqorDam4ATkw8f 6TiggVkINNSojQIzAqfa/07QgLC3fyrARTYI0f3BFMzTMTpo5MxTE4Jf0hc8queuVnxW MROQ== 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 w22-v6si1027264pll.350.2018.03.07.23.36.16; Wed, 07 Mar 2018 23:36:30 -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 S965171AbeCHHdq (ORCPT + 99 others); Thu, 8 Mar 2018 02:33:46 -0500 Received: from orcrist.hmeau.com ([104.223.48.154]:46978 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751297AbeCHHdp (ORCPT ); Thu, 8 Mar 2018 02:33:45 -0500 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtp (Exim 4.84_2 #2 (Debian)) id 1etq3U-0006nM-5Q; Thu, 08 Mar 2018 15:33:36 +0800 Received: from herbert by gondobar with local (Exim 4.84_2) (envelope-from ) id 1etq3M-00027c-8N; Thu, 08 Mar 2018 15:33:28 +0800 Date: Thu, 8 Mar 2018 15:33:28 +0800 From: Herbert Xu To: Greg Hackmann Cc: Steffen Klassert , "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] net: xfrm: use preempt-safe this_cpu_read() in ipcomp_alloc_tfms() Message-ID: <20180308073328.GA8111@gondor.apana.org.au> References: <20180307192416.233202-1-ghackmann@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180307192416.233202-1-ghackmann@google.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 07, 2018 at 11:24:16AM -0800, Greg Hackmann wrote: > f7c83bcbfaf5 ("net: xfrm: use __this_cpu_read per-cpu helper") added a > __this_cpu_read() call inside ipcomp_alloc_tfms(). Since this call was > introduced, the rules around per-cpu accessors have been tightened and > __this_cpu_read() cannot be used in a preemptible context. > > syzkaller reported this leading to the following kernel BUG while > fuzzing sendmsg: How about reverting f7c83bcbfaf5 instead? Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt