Received: by 10.223.185.116 with SMTP id b49csp5498611wrg; Wed, 7 Mar 2018 12:51:25 -0800 (PST) X-Google-Smtp-Source: AG47ELt2z21avh5IUrqtW3uAfDXuFNJktIhULs9mvsD1DoE0pgkbLt634TUSGDHps/hRzTtHnoBM X-Received: by 2002:a17:902:51e9:: with SMTP id y96-v6mr21763714plh.344.1520455885086; Wed, 07 Mar 2018 12:51:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520455885; cv=none; d=google.com; s=arc-20160816; b=U5XiWqpGkmi1uXrZMr9xA/qfTxD+h6HKhvbXTJyLTWIM1JStGL6CMBLLwjJzSfsyZz 85JI/b/szX5Ds1iNlMve52zn/KqH0hO9C49679x0rUyhyCWu2l8WT2j4iCIJ1MhfsJyL uxMA+sFhCgUeJ7Cry9AmZojBsSWcIimC2Tcol1aw/45gOYjn7OBfo9KcleIS8MiDCSnn OwgiSE922Hvv8Z/uTHxBUtMRgHpqu0vn8AZyxY6jldhVJRkwtBeUsnmW0yjLsx0IzYBn ECIEa97sM9RWirlYMVulNzzf6RyrZvGt6EY0+L+oxuAa1QwXfLiNB83KFA0eOkDFZ3Ho omTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=Qa0OHQyfrvfaw1tCkcWUZUqzxAjphNSh6+kAKUxAHE8=; b=e1XAyk6fRotYWkS+4y420OUuOi6PmqVNF1fbfW5boH6ny5FLw9DG+y5FeZsYEcNw/n 8NzKYt+dC5HveVHgtBTNmqUVJ8FLYLr9fTzoVseltmyEvOf4rDR7PxlYJArCgN6gweZn PAkTXEhVPpXodzau0jQqDdS1spoSK9l7DmFBgwcWqHddlq1q5k2aiKviOmW8/sGnvdPy dRUtJlpB5kmgD5WNO8dyRFne0cp5rKq+P8TtTiuKUiC8B/28y7Xjbnv5i0NqKtGc9NKH TM+OpRJWblvlME/sB8VeKn63yXqIGKKSwTMvG8RGST+ZDkkV+IUMIKMNj+fwhmryQ4o7 Iw9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=qHg5Ehs6; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 37-v6si13573037plq.451.2018.03.07.12.51.11; Wed, 07 Mar 2018 12:51:25 -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=@google.com header.s=20161025 header.b=qHg5Ehs6; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934718AbeCGUuF (ORCPT + 99 others); Wed, 7 Mar 2018 15:50:05 -0500 Received: from mail-pl0-f67.google.com ([209.85.160.67]:36006 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934509AbeCGUuD (ORCPT ); Wed, 7 Mar 2018 15:50:03 -0500 Received: by mail-pl0-f67.google.com with SMTP id 61-v6so2039260plf.3 for ; Wed, 07 Mar 2018 12:50:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Qa0OHQyfrvfaw1tCkcWUZUqzxAjphNSh6+kAKUxAHE8=; b=qHg5Ehs6N54JOciJPae1jffe+SKNIH/Hlj58Kc7xZ5KNe9bxkAN//47l2TA9EUtKTR wdAOaeKsIYltnCKDlYpqeHC8Z/UoHqixpJw2eDno6hMK/bklo4nUd5AxN8HavN42X55e h15uE3cFtjwrJcNXYF5g7X9Y21vY4ZiWZEMRGl9OfXCXWliBD5d7C/PRkRotTbEkkHId upt6qz0Vmb6+X7S/cqNJysCyTJAPhLFMnA61oLe1px3jFTXSdmDd3Jfud7/BIf0Ehqsj efIU3mDPev2fNEbvbY5BdsBZ5LtAPyYxHuGZGjPDqrpzhauMrXS4VUO6n1uMnNrqAHvm FUiQ== 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-language :content-transfer-encoding; bh=Qa0OHQyfrvfaw1tCkcWUZUqzxAjphNSh6+kAKUxAHE8=; b=JOBdyBRWQzI7wws4M7hdK52wUXFfNWuLICdlFWYUYRrgOlGMwFUhhVlLMA66MHgZbZ i+Edl1NnpdbPIlm+Zq7dvIMGnDZ2T8SDEoUmbv0YutZRwRXeqMggOkX259aoBvpjGh5O FZbN4oL3ZZftIqHPm9QaDmAvfsTIluivv4vJVTDy9r46/up3drToYn/lPqRS086INAtw o4espgzGKTqVzrhw1kLh31kKpbg4KuqUJk4GwvR5/N/MGF6gBxD3buekDS+GWuj/XzyW mxe5ZDHugMEI4WmSuL7l4Y2z5kVAXlTr2g1XaICOPgpx5Xvug78nYTKUKVAHJ2JejzSw Xnsw== X-Gm-Message-State: APf1xPB+J5bmULv8cH6/gVUnm9bA76ObJyrdcVgAa/ncxrMh3o5X11HH J3aojnH9v8tghDX8uLrmdXGnejxo594= X-Received: by 2002:a17:902:8c93:: with SMTP id t19-v6mr21535987plo.304.1520455802005; Wed, 07 Mar 2018 12:50:02 -0800 (PST) Received: from hackmann.mtv.corp.google.com ([2620:0:1000:1601:82f7:8f1:8c08:a97a]) by smtp.gmail.com with ESMTPSA id t14sm28003299pfa.178.2018.03.07.12.50.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Mar 2018 12:50:01 -0800 (PST) Subject: Re: [PATCH] net: xfrm: use preempt-safe this_cpu_read() in ipcomp_alloc_tfms() To: Eric Dumazet , Steffen Klassert , Herbert Xu , "David S. Miller" Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180307192416.233202-1-ghackmann@google.com> <1520454081.109662.54.camel@gmail.com> From: Greg Hackmann Message-ID: Date: Wed, 7 Mar 2018 12:50:00 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1520454081.109662.54.camel@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/07/2018 12:21 PM, Eric Dumazet wrote: > On Wed, 2018-03-07 at 11:24 -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: >> >> >> Cc: stable@vger.kernel.org > > Hi Greg, thanks for this patch. > > 1) Please read Documentation/networking/netdev-FAQ.txt > around line 133 > > 2) If you believe this needs to be backported, you must provide > a Fixes: tag to clearly identify commit that changed the behavior. > > Otherwise dozens of stable teams will have to figure out by themselves, > wasting precious time. > > Thanks. > Apologies, I forgot that netdev has its own stable rules. I'll double-check which kernels are impacted and resend with an updated commit log.