Received: by 10.223.185.116 with SMTP id b49csp5474149wrg; Wed, 7 Mar 2018 12:22:52 -0800 (PST) X-Google-Smtp-Source: AG47ELsfNEm3HbBWPF6TUh5SvaCubTxgnIzYFhXmo7svNknd1jIdcBnaZ994/pv1W2/KJNVbfjIy X-Received: by 2002:a17:902:b597:: with SMTP id a23-v6mr8558860pls.156.1520454172064; Wed, 07 Mar 2018 12:22:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520454172; cv=none; d=google.com; s=arc-20160816; b=PTKtj0hsFHgteLqF7hL5H4hbT5UVItVMvRfeBkdvtc9dlPUNl3mc5pYGQXYrBZcFJb KMKc6k5kX4XfKdCr30bFkCVszPMqPP6S/AyYtcyqyiDR5IPyAZ86uJKXNZM3EmVMqjRL hMv4gA/8/Z45MppAvrY5LepCVmwO4E/iDNVy0Q7yVuBtt6wkfy2EegpVW60XuYs5DcBA cDlnzSIWi5TGkB6CY5bp2zClXoCytt9WpwFJqrEpdVwgiO0xZqlKcFk5AMPkJwCzHYQ9 kZGccHmm/uFOkQ+Ww2uxbsigvV7pwQhBKsfywkj/DRwSs3+PV4ppbECFrwoefqgcpxlX Rq4w== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature:arc-authentication-results; bh=kkiNx8P19G21EIrkUTGounaQkkgQkh+wxtdvYtJrWkk=; b=BlpQG+lqiBaert+uHP2dLW2vRNhLWWd6UCY7PAOGUJXLq5vyhK4+cOfBePoJW4I32Z 3JOWa8SZuSe2F+piyjXM8xY7goqupmKmmADwYUfahqM5PefJeuEfsCsHSPuiWdeVsmqe mdEIca2FPq0OBVRR49PfoMm+1t3/Ros6OaPQuP8Gg0U+gm8waSGljNeiADaxrJhY7bG9 DH58YTE/QSqUDEGiOdqH5XAdeoDKqMWG7L489oBeIbv+QnTBg9/dtt8xaWaoNrt9dZgz vcUKu3bx85e0yLQUOqx8mwisLJXeyvAaJT8SDs1oloz4XVtrctlgNyv5jdm8l8UPoTNT f1BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=anGqHu3N; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e87si14466925pfj.381.2018.03.07.12.22.37; Wed, 07 Mar 2018 12:22:52 -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=@gmail.com header.s=20161025 header.b=anGqHu3N; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965058AbeCGUVs (ORCPT + 99 others); Wed, 7 Mar 2018 15:21:48 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:45988 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964991AbeCGUVX (ORCPT ); Wed, 7 Mar 2018 15:21:23 -0500 Received: by mail-pf0-f194.google.com with SMTP id h19so1387067pfd.12; Wed, 07 Mar 2018 12:21:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=kkiNx8P19G21EIrkUTGounaQkkgQkh+wxtdvYtJrWkk=; b=anGqHu3NA1EU6OSVCflTGNXFxgJNTRrcOKfPbyMEDajBjSIQ9isMdjbibTlRkJU/vu r/aDEiyauD5aT1UM5NSKS756w3zpZwn79zo+QGK5vv2VWCSsgQRsmrviCk+3gKZTI/pK /ra3XpXRUN2q77r+xSPKD6Hu7Cgv0oQOadatS1zZ5tVrU7QvDAVfIEyudMHb0/+oDGnF OFRNDG6jfmRU4UxHumAGsh6acD0ovO9QlG9ZVppp2rDFCDhoXTOWRMQAQ6hfmW5cSJGP EuvP25wDSbijdaQ6kH0oRQ2/5HUYD3sUZAqyxAHCQO30wJAPR8fh3+4gwiWGh5T2d5Af qsmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=kkiNx8P19G21EIrkUTGounaQkkgQkh+wxtdvYtJrWkk=; b=pPhPmgHzMD4ZU80yVVufNLNii+vGvENuRV/KtEq6W7DURbd5ZUKvQuvTmxMBr3yrnW Tq5/AEA59q2t0iGvhQppZms2HmaGBJ2MpY517zMDuAQXRTGknJ4bcN2dfTEmDnn9mURg PyPhvQoJR33aBanOHMP1ktIiGxHbT3Ot554CeTvJm91MgzXZ0g5YjbFklY4sMNulNeXK 77zQpcor4GWi3bu/gHa1vTiLUYR6lIOd8T0yDa+A0QJF/9Z++Ab77Rq3Py7xDRZoDxsA ymm9U7XF2jFfOp8XwVcKDgfm/8gr9wi4IlX3dWN4Us0DkhJ1k8I0FhjFKTlyqC/O189M hs2w== X-Gm-Message-State: APf1xPB/fLgWC7I0wSUvREjcLTX28I35bVJxcTqnsuF6NbPIwb7yRcyO 3cNveajgG9rbTCpFZz981Ck= X-Received: by 10.101.69.66 with SMTP id x2mr19036179pgr.438.1520454082716; Wed, 07 Mar 2018 12:21:22 -0800 (PST) Received: from ?IPv6:2a00:79e1:abc:100:641:391c:2715:1239? ([2a00:79e1:abc:100:641:391c:2715:1239]) by smtp.googlemail.com with ESMTPSA id n79sm39798803pfa.55.2018.03.07.12.21.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Mar 2018 12:21:21 -0800 (PST) Message-ID: <1520454081.109662.54.camel@gmail.com> Subject: Re: [PATCH] net: xfrm: use preempt-safe this_cpu_read() in ipcomp_alloc_tfms() From: Eric Dumazet To: Greg Hackmann , Steffen Klassert , Herbert Xu , "David S. Miller" Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 07 Mar 2018 12:21:21 -0800 In-Reply-To: <20180307192416.233202-1-ghackmann@google.com> References: <20180307192416.233202-1-ghackmann@google.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.