Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3785136ybz; Mon, 4 May 2020 09:39:22 -0700 (PDT) X-Google-Smtp-Source: APiQypI2URYaJ8Zr6QifdRe6ZvWNIFUVw9ImtEWxjdn0SrnnkI9wucpHsAYYOeqVNg6C+iLx9o/B X-Received: by 2002:a05:6402:888:: with SMTP id e8mr15714765edy.132.1588610362648; Mon, 04 May 2020 09:39:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588610362; cv=none; d=google.com; s=arc-20160816; b=hQ8302VAwVbStuJkUBqu+IHFOzAjcqTxsueloCSCbXBABbACOCkYZyMgWnj2qD5G+E LrmEy84wr00namOHAi+V5EX3wvHXovrygdKSwC7jfJ8TqBO/H3chkN5I5FsSbRFiQ/Vo 7wAb7T8RMn46hCce4fVdwdbZMdaEiojix5bZVuQBmGHpNxV7S9dfH0lhE0WZQUkUVDI0 REuvSHGrTGIP50wCbKYLv9F/OmXsPEOMxH8CWOgq1kzZO5tgafBcQqfQ9m4iAyxMcoOA aHBk96jXel9iELZ8ZdXiWg341mt16Fmns0YBFWeukUGi13ZB8kYgFQAqVYwpAruaxrEV 0GlA== 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:mime-version:user-agent:date:message-id:autocrypt :from:subject:cc:to:dkim-signature; bh=qC0SI+5SZ49ylQlp3ZhuDSCxoQ1HHJLYKeHEfROkZiA=; b=xfkq+X45r7+WdM5nAVpzW7j5u9LzC920F3NYoxbAltlw70o9cgbTD4dhEmp2wxps/6 IXkYGQJDfnog19q2EcxibJl3moGG5gxn7QYtYyZbgO4zwJ10lFq7/qN1PmHlF0OSO9E6 81R148eFmkuJiHxkf5WR/OUexnC7T9gl08VS3CNSvcQI8dHdZasVkQCM3yll/IN6jVjJ IKUtXcHOccRXZ+yRl0ukDbvARg5i1BzNdXt6cTcd6SJzHaDvQgSSPB1Zlxz8xc7VjI8N 7084ujmDpoDrhzlux6CIWUtaYFOUkVNroneVuvn8Z8vMEHO09A0ur/ju1bWB3TJolsBN 1WvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@web.de header.s=dbaedf251592 header.b=K257McYQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce9si7392505ejb.154.2020.05.04.09.38.56; Mon, 04 May 2020 09:39:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@web.de header.s=dbaedf251592 header.b=K257McYQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729709AbgEDQdx (ORCPT + 99 others); Mon, 4 May 2020 12:33:53 -0400 Received: from mout.web.de ([212.227.17.12]:56343 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729697AbgEDQdw (ORCPT ); Mon, 4 May 2020 12:33:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1588610021; bh=iKajeEThUjwNdKgviLkmcHAYeTjhUS1wUVRcmyQKF6Y=; h=X-UI-Sender-Class:To:Cc:Subject:From:Date; b=K257McYQeURBaqfoACrBFDGgBSXXGK/wQwEcNSOAL7hOdZGzJMw/igJwkWXB23waI QE5hc5dSGBjiFxVS44eAldPlQl8sPa0beenJ/A54YS8BhPM36tNdB9vmDkWDW6Ynym HHGIyBNv/pFzrg5wvpSWp/K+doxW+G46nUF5iJCw= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [192.168.1.2] ([93.133.152.69]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LxODe-1j3ir10BNy-016u7u; Mon, 04 May 2020 18:33:41 +0200 To: Jia-Ju Bai , jfs-discussion@lists.sourceforge.net Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Dave Kleikamp Subject: Re: [PATCH] fs: jfs: fix a possible data race in metapage_writepage() From: Markus Elfring Autocrypt: addr=Markus.Elfring@web.de; prefer-encrypt=mutual; keydata= mQINBFg2+xABEADBJW2hoUoFXVFWTeKbqqif8VjszdMkriilx90WB5c0ddWQX14h6w5bT/A8 +v43YoGpDNyhgA0w9CEhuwfZrE91GocMtjLO67TAc2i2nxMc/FJRDI0OemO4VJ9RwID6ltwt mpVJgXGKkNJ1ey+QOXouzlErVvE2fRh+KXXN1Q7fSmTJlAW9XJYHS3BDHb0uRpymRSX3O+E2 lA87C7R8qAigPDZi6Z7UmwIA83ZMKXQ5stA0lhPyYgQcM7fh7V4ZYhnR0I5/qkUoxKpqaYLp YHBczVP+Zx/zHOM0KQphOMbU7X3c1pmMruoe6ti9uZzqZSLsF+NKXFEPBS665tQr66HJvZvY GMDlntZFAZ6xQvCC1r3MGoxEC1tuEa24vPCC9RZ9wk2sY5Csbva0WwYv3WKRZZBv8eIhGMxs rcpeGShRFyZ/0BYO53wZAPV1pEhGLLxd8eLN/nEWjJE0ejakPC1H/mt5F+yQBJAzz9JzbToU 5jKLu0SugNI18MspJut8AiA1M44CIWrNHXvWsQ+nnBKHDHHYZu7MoXlOmB32ndsfPthR3GSv jN7YD4Ad724H8fhRijmC1+RpuSce7w2JLj5cYj4MlccmNb8YUxsE8brY2WkXQYS8Ivse39MX BE66MQN0r5DQ6oqgoJ4gHIVBUv/ZwgcmUNS5gQkNCFA0dWXznQARAQABtCZNYXJrdXMgRWxm cmluZyA8TWFya3VzLkVsZnJpbmdAd2ViLmRlPokCVAQTAQgAPhYhBHDP0hzibe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wT6oxng29LzZspTYUEzMz3wK2jQHw+U66qBFk8whA7B2uAU1QdGyPgahLYSOa4XAEGb6wbI FEE= Message-ID: Date: Mon, 4 May 2020 18:33:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:7YzZOCIxWKK/06F9z/ZoK6WsDS8atsDgIU4fFcNjE6d6Q+wNyQX TbHjc+gy8VxPl6nXw2MEX992I2z5RX7o3FEyn1hhQRCKfQviHJjoPn4YQ9Zn1UI4TT/7LnQ 5bTsgigi4YzCdVxOShXOLhDjtc4tFK8v5Vf/ZazivbflC/VT09VwzktchzAsYooQzhcZLIp WXyV3/ul3uZpfuPLJYI4Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:55LdT5xZYwQ=:CDw870Ji6yeC5L4Zf5gTqQ Pyrx1kQLYV9Te7BL8CgSFme9+0o5zNvlEFb6HH3kiOK7wt/H5U4jlwTTEDrrzrGUxa4HkUt6h BpCuVtiu2rZYsny2rWfdkdahOk9FWDuw/80EAQSckcVE1qBiz9Wgmv1LtOpwZiPs3dMOmP2qT hxvazXprI1eew5nIxph0V+YakkiKQ6lw1ZJumfvIr8I+Bj798TaWr3hZAKxdTfjDDVNf0EODH 7lGfDk/LPWUO7y+Ohe8NyXKtVOQ+AFGRQL0+0T00z/IMPglvM7ZiViijxGzeQAtWtRQ9m8YnV i1sviaI3nm94jm8xedRArAIuA/Y9eRTcg1KJhGVmXooB1A5QiJ10KyS1vEhyAjGoENh767Agp IQewBQtBwnICDiP+MqdOLRsoU7B5q0KVLN37l05MdwQctQGwKFKpLCR4poNaXQFv8q0V0kCSu 580M/v35nFkc3X4slRVS3+qIfFnlijH2wzaGySQYxiUukzmiYvvyGpfzqaSoGqJRIdUtcC3gR DFSceH2FRdPtubLmgjKycweYrSQepHVTP78ZL0Hv7LpXLgAb9aOfITuZnxHfZ9o0cbkThlDw1 C1+v4sYnNRCSYz3gBnKXar0zANdhBV8iovrQ651gk65f+9yTygvFNfzjpIs5maIrzy1zkhRNm tgWvX3UTvcmE9o525a6ukK5T99TqzI67z7lEJpvAeFts1TkysOh34RKTFQGfAN+IoiMURPxlC 2CvRQeuueisg4aWchdosIBiSLX/dGcaMotjAZwQy6iFJo0XipEmYNROGR6uXSArIQywt3lMRZ rDRO1rGosq9P6adtQyQroB0k5CFLBD6FsTgmXgTEfSAChetd6LluvNd7qMAf11olMom5snTQd lw7BoEIa+JWSEVkXpEPN/oOr4b+9uLyswxTGWYN54NsYK6QY+DmDcFV7U2ZaoMUIOWbul4Yjo 1BXegqTkUYCdUvcACjTYUZoNct4dkFNpb/irhPNZaLpnc5Kfz1yjmKAX2JAGJtqnVnWNnpTs7 iKEKXPKBXUuFgEnz2fUtByuHrbrEHCMxzMXVkowPvwE1ZVBLBv5FCd9WVXQA6q0vuaWnvLQp4 lTVdQXoookE0bPsZLc/QxQeBNFjy11oSz83LlZlidA/aMMQosRNs/t3KFlpiGcYfSPku/+qr4 K/RcRRijjMy7Edmls9frfz39CiSLM5r4S8/xG1JCeueoF06B5M8xWUWoSb8D9wGjy+MnJWMVL +/BDhs8ybSbfsF9E3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =E2=80=A6 > To fix this data race, the spinlock mp->log->gclock is used in > metapage_writepage(). > > This data race is found by our concurrency fuzzer. How do you think about a wording variant like the following? Change description: =E2=80=A6 This data race was found by our concurrency fuzzer. Thus use the spin lock =E2=80=9Cmp->log->gclock=E2=80=9D for the assign= ment of the data structure member =E2=80=9Clog->cflag=E2=80=9D to a local varia= ble in this function implementation. Would you like to add the tag =E2=80=9CFixes=E2=80=9D to the commit messag= e? Regards, Markus