Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4249038imw; Thu, 7 Jul 2022 15:33:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sP9QWN0ZoW1k8BEwdyserEpyz3VTb9FDWgMsTCr0IfQhx9aR3UOYT+MxUb8KuqmPhIaw55 X-Received: by 2002:a17:906:106:b0:715:7cdf:400f with SMTP id 6-20020a170906010600b007157cdf400fmr376258eje.1.1657233226600; Thu, 07 Jul 2022 15:33:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657233226; cv=none; d=google.com; s=arc-20160816; b=resnOtPcWrkZHFR+TkXUf2PHYAm62E01RNImaAQ7IRK5qvxMDG+BDtQRrRyHsePuDK aVUiQInxFxcC/KDIbuktGIujvuCMgkH4NxbS0CDCktPMbxU9SVyfTe5gqOesP+VFXy/p i1cEhvAD4iCYc+J+8DqPnPVeMHNcqtHrx0zWXCkwDMuQ03lVjKw0xzcJYvnjysSpFP60 aIhL9wzIUYRuxWUiOJcy6ijvej2HkBzjBBJKdn3xvO3eqdHjENiSjLMD1xdmnt0uu8k2 GU2FRio1aDWI+IuzGenu5hrDtccHWfR5YSFVeYli7dOIGahoZxnzgiYyct1pphILxRjM 4F+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BM2zMPU85nbWlOcfoqMc00B4n9YA5LFINlWt3reCGNg=; b=fueCmZRETzC9mxKQJ+aTeduujpAUbZK+xlWzvcOoMDhSb8uqFEIPnz+S0j6078A/xM hunS+nr3ISIuBg365IKRAvSuUrBzHldgZAhCtKM3yHHwOP4z99PPDmZSudUGGfOnKBGN tchR5p/N8UcQmuOJvdxnNkE5oYKwxnOfTBw7XAca0Zee2KWMlILN6bZ9LG2ELwLB4Pxo HLpt2hBXhyRI5Rf5p5PRU9P8PRyjiP1o/cNtU2rOkhxlCjxGElGAKH5TG8QB2YOoIBgG +4u4XTiBESoEIC3vO/P1RIXAZxs/LYenZONA48LTUFNrOLpuFZqHQv4kATiY5jwRNdZN wGPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=L4f8IQ4j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q5-20020a1709066b0500b00717917b7d99si38610134ejr.274.2022.07.07.15.33.18; Thu, 07 Jul 2022 15:33:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=L4f8IQ4j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236789AbiGGWQK (ORCPT + 99 others); Thu, 7 Jul 2022 18:16:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236216AbiGGWQI (ORCPT ); Thu, 7 Jul 2022 18:16:08 -0400 Received: from smtp-fw-2101.amazon.com (smtp-fw-2101.amazon.com [72.21.196.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD5B15C9CE; Thu, 7 Jul 2022 15:16:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1657232168; x=1688768168; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=BM2zMPU85nbWlOcfoqMc00B4n9YA5LFINlWt3reCGNg=; b=L4f8IQ4jUCiTNRrWWOhJP+m2xminJSU1KLDNH8zD4WtAMmGGXxwZUpX2 MBbyX2LKmJ666PszdcsHOYX4GQBASMhqXNdztHO3ypV+W+uupIQVtEIpd voopSYIeIbW0RWz3KOvSinrQqZERzPrqUNYmCx7N466L/OhB7Udy7scwN 0=; X-IronPort-AV: E=Sophos;i="5.92,253,1650931200"; d="scan'208";a="215922474" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-iad-1a-828bd003.us-east-1.amazon.com) ([10.43.8.2]) by smtp-border-fw-2101.iad2.amazon.com with ESMTP; 07 Jul 2022 22:15:54 +0000 Received: from EX13MTAUWB001.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan2.iad.amazon.com [10.40.163.34]) by email-inbound-relay-iad-1a-828bd003.us-east-1.amazon.com (Postfix) with ESMTPS id A286F81080; Thu, 7 Jul 2022 22:15:50 +0000 (UTC) Received: from EX19D004ANA001.ant.amazon.com (10.37.240.138) by EX13MTAUWB001.ant.amazon.com (10.43.161.249) with Microsoft SMTP Server (TLS) id 15.0.1497.36; Thu, 7 Jul 2022 22:15:49 +0000 Received: from 88665a182662.ant.amazon.com (10.43.162.50) by EX19D004ANA001.ant.amazon.com (10.37.240.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.1118.9; Thu, 7 Jul 2022 22:15:46 +0000 From: Kuniyuki Iwashima To: CC: , , , , , , , , , , Subject: Re: [PATCH v2 net 10/12] cipso: Fix data-races around sysctl. Date: Thu, 7 Jul 2022 15:15:37 -0700 Message-ID: <20220707221537.29461-1-kuniyu@amazon.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.43.162.50] X-ClientProxiedBy: EX13D36UWB002.ant.amazon.com (10.43.161.149) To EX19D004ANA001.ant.amazon.com (10.37.240.138) X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Paul Moore Date: Thu, 7 Jul 2022 15:15:52 -0400 > On Wed, Jul 6, 2022 at 7:43 PM Kuniyuki Iwashima wrote: > > > > While reading cipso sysctl variables, they can be changed concurrently. > > So, we need to add READ_ONCE() to avoid data-races. > > > > Fixes: 446fda4f2682 ("[NetLabel]: CIPSOv4 engine") > > Signed-off-by: Kuniyuki Iwashima > > --- > > CC: Paul Moore > > Thanks for the patch, this looks good to me. However, in the future > you should probably drop the extra "---" separator (just leave the one > before the diffstat below) and move my "Cc:" up above "Fixes:". > > Acked-by: Paul Moore I was wondering if both CC and Acked-by should stay in each commit, but will do so in the next time. Thank you for taking a look!