Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4648884rdh; Wed, 29 Nov 2023 07:09:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IGN85zdZJU1WtRjjC/uQCkiWCsdOS8av90ZwRpqYGCS0Hwtl/miiwSqlRtNUOj0e1glQizZ X-Received: by 2002:a05:6a20:2451:b0:18b:8475:410a with SMTP id t17-20020a056a20245100b0018b8475410amr24129379pzc.7.1701270551259; Wed, 29 Nov 2023 07:09:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701270551; cv=none; d=google.com; s=arc-20160816; b=mYmKLdCAaloijtCKYCv8ZKDEfrgll7Nd7CyFQzRCK6hgdvvpeWYm1jaQlInivsaDn4 ap7DAGwIyvqucA0ySYDT+YYbX90HGXolxxZ3OilihPn3EGWX5qqLhDSlViD1pW2c5Fx9 PYng7pKvCXfUO5xuEMC6Q1j4jxe0F3v0RPKNhP99IXAVielHcLEjhuuH6lIM3Oh+FBIB giXW7+8zZsKQTubE66GRhvR+gGQuFEsBam7BjslbU9K7eqbgCptWSIxpiPokCWHAHVm/ 95Yjf1bu64F2ZBEImMhDJINQ0HbW5XrxkdDQcJgKPJYiXyV950a3Wu+si3xQL4t8/Ike wkNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=zXic/+6itk3TGberNCqdj0WRwhs080Vma5guEUi6jGo=; fh=n+gQ2bUUqmKiUN2zTAA+nnVTHhn0gjXJAIWutM9B4Cs=; b=yaJP4YNO5A2uCnxo7smqdvMq2+xDO1e8f3m9xZ4A+PsZX9Tvfb+KVgb/GIqHMaPSAG Yd6GazFne1Ff1pIjcSmrIGKjlMdcCRXrWPIYqj5CqHePTtk9bjZQltoUC4mpTwpLPvpZ SlvJADVPeET8weuB3JQDuvu+/yoTbmcvF/+D6md37heo0qtYAZjpRukMzAV2kD/NDnRA 1xn7gaz2YTrHCJPdPSqObV9GtC4T/bOY9h0RVPfK+HoHZwEra2xSTXFwN7J+3BEiBSof 7Co/xJ0hytzGKBxRmd7+plrUOzH1n/oxfFdH3v/rSiqdyhRNqta7BO22zcQL/RKDs21p lAVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IZde46Vm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id w8-20020a656948000000b005c1cc7273basi16417541pgq.257.2023.11.29.07.09.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 07:09:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IZde46Vm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 99C39804019B; Wed, 29 Nov 2023 07:09:08 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234787AbjK2PIy (ORCPT + 99 others); Wed, 29 Nov 2023 10:08:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234805AbjK2PIt (ORCPT ); Wed, 29 Nov 2023 10:08:49 -0500 Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2BB610E2 for ; Wed, 29 Nov 2023 07:08:53 -0800 (PST) Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-5cc66213a34so70567557b3.1 for ; Wed, 29 Nov 2023 07:08:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701270532; x=1701875332; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=zXic/+6itk3TGberNCqdj0WRwhs080Vma5guEUi6jGo=; b=IZde46VmHNIIbuY24qvFOn6esBY00ngqFYFsgR5gyuXiSn+C7CdX3JnHzPrGYiKKy7 kP91XdBiN0VomlmBvuH7KV9uTSN4ccA6P6m5rLkzqqZE9tbh/B3CcZV8wBZjHXuko/Ug a5Apw8ej9NkUx4opLrBqwKbbjo8BjIEmCCxbVDJ8np1Hzoe3OVPhZ53Tzhu7M7Ylvdpq 5jqTd7+NUjTU2CmTPcQkgFxUPr7dq/JuaJIBlueDsjSf1YRsjfNKG5M2DTSJzxOd3NDm prwzGCSfuPDq417l/mkD563bVamc/yb5UgaixLOtiAg4H38anUPSta64Uh/e2cQ3NROC nUEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701270532; x=1701875332; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zXic/+6itk3TGberNCqdj0WRwhs080Vma5guEUi6jGo=; b=puMMPWfj0/5yGehN5/HI71rkccAnkyz0kYlJ/QuD0NdZQmL0R+PH2Y8dScuVcWcNwJ rLRgAwb2h5ZhASr1mwrUsmjqKrnqVHAQxLBSfZXohGqzK8QkvRRbubicMBCah+iu1/zs 6Mv54lKjOP7tzl8Dl+KsRhaeBxGhvdKp47bCLA3nKfa+h2FGsLej1aYMc4f5tzwPagVh 3IEaxn1BvCNmInPva/vOrHhCA78iFVRkNAg7RyfBXzoQiX/bhIpddiEUHig7Wjxy94vY Segyv9tWWFRk9wGUe0cFnQsS1+5DaXVsCDv8tGw0ntdFbUenf7v46FSP2mRzD1RB58FI NNCA== X-Gm-Message-State: AOJu0YwiCHgHwW/YSMQOokYTv4u2W/pyPFgnGTlPHeRj0b28PsB7trj4 sA3yRK0h4Yjt9eltpdzL23//AUrOfU7yZjF5+CI65w== X-Received: by 2002:a81:5c05:0:b0:5ce:4dfb:bce8 with SMTP id q5-20020a815c05000000b005ce4dfbbce8mr20114025ywb.7.1701270532587; Wed, 29 Nov 2023 07:08:52 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Linus Walleij Date: Wed, 29 Nov 2023 16:08:40 +0100 Message-ID: Subject: Re: [GIT PULL] Pin control fixes for v6.7 To: Linus Torvalds Cc: "open list:GPIO SUBSYSTEM" , linux-kernel , Maria Yu , Charles Keepax , Chester Lin Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 29 Nov 2023 07:09:08 -0800 (PST) On Wed, Nov 29, 2023 at 3:56=E2=80=AFPM Linus Torvalds wrote: > On Wed, 29 Nov 2023 at 04:09, Linus Walleij wr= ote: > > > > The most interesting patch is the list iterator fix in the core by Mari= a > > Yu, it took a while for me to realize what was going on there. > > That commit message still doesn't explain what the problem was. > > Why is p->state volatile there? It seems to be a serious locking bug > if p->state can randomly change there, and the READ_ONCE() looks like > a "this hides the problem" rather than an actual real fix. Thanks for looking into it Linus, Maria can you look closer at this and try to pinpoint exactly what happens? Is the bug never manifesting with GCC for example? In the meantime I'll cook a fixes branch without this one commit. Yours, Linus Walleij