Received: by 10.213.65.68 with SMTP id h4csp175599imn; Mon, 12 Mar 2018 23:51:22 -0700 (PDT) X-Google-Smtp-Source: AG47ELulcdRWxcGU/G1JkoybYpTI04PXobk2IL7nwMAFOK23fPkjsqXPGKl+2DTMxUyTkyJFI3X5 X-Received: by 10.98.180.13 with SMTP id h13mr10496807pfn.139.1520923882574; Mon, 12 Mar 2018 23:51:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520923882; cv=none; d=google.com; s=arc-20160816; b=M7nMYRgQWaspOkGQdbmy9ROVkYcRDTXNsn3v7Sdvs/fvtIfH7iA1fo3PSwN0Sl71O8 U+UBmYDa45VkTdZtSZeRlc2coCc+bgwKWtZrcwAoD8UoO/SIqsuYTPojJ9sHlyl6occ0 PVX7VMYkaEHGyT41trxTmqG2auafNnQ948GgFH6ElFUFIJfcdxREmywrZLvIU0r3zf5Q pfkseWYNS3oVvUK5fJCZ3JcAzvyF7sU11mtD1eatN5yAp1Q+4NnlgdD592jR8VplEzOC LXhHWof++vdraO44uDbMxbe1qRXbm9YEVloEZH/pJScOuzVwNpRChJ6bZlZ4NwQ/3gXm nsuA== 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=+vj7SFTLmsYg3p7qH+929qBRxhvPcawBJgNwCwx4oi4=; b=wZj1QX1OWOg+un5giKul6CABy7jn9cOf3NKZynruMW12AvO59Sk6VWz6y8582PyrAN E263vT+oUB9+t8zyS1KVgVzw/4XEjTrXtfnQz/XDQGB343WoVXtW0fiNzv4i/Rs2I1iV 8PfXm0qhIIG1J2Ir6wVbGcu5UhCpMMN2Qw9f53O2M9PvvAfvCXBmqfxra2pit3wrWYLp lyOEu7wxGQVJe98HBvvI8nuWehUkAtx4XtaXIQcwz+3tyISShyVbjZo8zobocknR8mmo SgyfDlea9QHXupe/oA/6MCWVtg/wNFisxJguc4cWlbJlXxBj0cHwuEL36w0vWzDIgfM6 kXGw== 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 g3-v6si7129724plp.662.2018.03.12.23.51.04; Mon, 12 Mar 2018 23:51:22 -0700 (PDT) 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 S1751787AbeCMGuI (ORCPT + 99 others); Tue, 13 Mar 2018 02:50:08 -0400 Received: from a.mx.secunet.com ([62.96.220.36]:54146 "EHLO a.mx.secunet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751462AbeCMGuG (ORCPT ); Tue, 13 Mar 2018 02:50:06 -0400 Received: from localhost (localhost [127.0.0.1]) by a.mx.secunet.com (Postfix) with ESMTP id CB034201CC; Tue, 13 Mar 2018 07:50:04 +0100 (CET) X-Virus-Scanned: by secunet Received: from a.mx.secunet.com ([127.0.0.1]) by localhost (a.mx.secunet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LHWOqgO79Nyy; Tue, 13 Mar 2018 07:50:04 +0100 (CET) Received: from mail-essen-01.secunet.de (mail-essen-01.secunet.de [10.53.40.204]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a.mx.secunet.com (Postfix) with ESMTPS id 53FA62007E; Tue, 13 Mar 2018 07:50:04 +0100 (CET) Received: from gauss2.secunet.de (10.182.7.193) by mail-essen-01.secunet.de (10.53.40.204) with Microsoft SMTP Server id 14.3.382.0; Tue, 13 Mar 2018 07:50:03 +0100 Received: by gauss2.secunet.de (Postfix, from userid 1000) id C970131824C6; Tue, 13 Mar 2018 07:50:03 +0100 (CET) Date: Tue, 13 Mar 2018 07:50:03 +0100 From: Steffen Klassert To: Greg Hackmann CC: Herbert Xu , "David S. Miller" , , Subject: Re: [PATCH v2 net] net: xfrm: use preempt-safe this_cpu_read() in ipcomp_alloc_tfms() Message-ID: <20180313065003.pwir4pvhr4jwmdbs@gauss3.secunet.de> References: <20180307224253.152470-1-ghackmann@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20180307224253.152470-1-ghackmann@google.com> User-Agent: NeoMutt/20170609 (1.8.3) X-G-Data-MailSecurity-for-Exchange-State: 0 X-G-Data-MailSecurity-for-Exchange-Error: 0 X-G-Data-MailSecurity-for-Exchange-Sender: 23 X-G-Data-MailSecurity-for-Exchange-Server: d65e63f7-5c15-413f-8f63-c0d707471c93 X-EXCLAIMER-MD-CONFIG: 2c86f778-e09b-4440-8b15-867914633a10 X-G-Data-MailSecurity-for-Exchange-Guid: 3CCA2F9B-5DD3-41EB-AAB5-5CF57A0B0EE5 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 02:42:53PM -0800, Greg Hackmann wrote: > f7c83bcbfaf5 ("net: xfrm: use __this_cpu_read per-cpu helper") added a > __this_cpu_read() call inside ipcomp_alloc_tfms(). > > At the time, __this_cpu_read() required the caller to either not care > about races or to handle preemption/interrupt issues. 3.15 tightened > the rules around some per-cpu operations, and now __this_cpu_read() > should never be used in a preemptible context. On 3.15 and later, we > need to use this_cpu_read() instead. > ... > Signed-off-by: Greg Hackmann Patch applied, thanks!