Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp283747lqd; Wed, 24 Apr 2024 02:04:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUlrga9x73vinl1FT4HkxT22F05CqW57hqcV7BcaZZuwadLbQd3JxZYlBhzM/P1wbB1osJhboZx8Mc17YljRv38xkz5F5k1qiRMiA9knw== X-Google-Smtp-Source: AGHT+IHkJJLRxJ1+g2zX4zAZYQWIL2q9x/WnOy5eW6LmBrshTxkr642bibxMAGHI4xZ48VOEfFmj X-Received: by 2002:a05:6a00:4f86:b0:6ec:e785:98b9 with SMTP id ld6-20020a056a004f8600b006ece78598b9mr2467193pfb.27.1713949479645; Wed, 24 Apr 2024 02:04:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713949479; cv=pass; d=google.com; s=arc-20160816; b=lZg5SnKv96GglzJWJ8hGRe7dc6km26YEkRdOENr82EWPDpsKJl1y29cNoHDwpKMXwr xBMzpo+796ihdgButArZ2JlG5F5AdVd5/dU0pug2oiOgF7VldBvvhM9Zp0ItdHvJor3Z LF7DklmHVTRSjk1RzgzOjOme3gskVxWaEkD/kYTS1BilR1jkdUOSdwQ1FZHqZVJcXp7K 141JdTQSI7FctLNW25mIt01qqgF+ErhnyaU6tXy3HI3YgS1yUSes/5oHUjxMUgrEiVW8 FoylVFls1R/j3LuuBOoiGbFX0STbUVc7OsqVJ7a43psfPen9PYNgGqSmHaPk90f4bOlG PPnA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:date:message-id:from:subject :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=WEbIjX/VCTRrzM4suC6KMN4WNzvbpW9gDGpW/tcAzwM=; fh=spbO4/2SXKLN6SbsQfOUcwZ3EkdMi50xA5DsZQdgE7k=; b=Ctr2rvfMxbCpWriH+UnwrTiicea/Og2/IwHnZymj1YpSDgePTzvna2sy0zdKWGTC0S eWgDyEwWmOt4JEHYsep3rjgkgYUmwDiy1o7DgKJX1QlABrAtnLdgFs7tEog2PDVmOo4G QQMoyJDFHnXqN04d1Dg8ib83h9z3g59AhK8vhvjue1DgoxvEyAKeB6ZkSF2+9Ya6g3NN 1x54lY8SAnJk6tvrEoF4HqfQbCic5aM2hhCYnhDYV4OJhyLQGos5sVQltPCvvCQOJKMl eSs7cAl71K6+3aLPmYCWAqyH/pSUpoNM0u9T7NkuIvc2o0DHeFkuULGZj7/Vacmso1SE zaxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b6SaCtae; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-156577-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156577-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id fd2-20020a056a002e8200b006ecfc7f651asi9805295pfb.285.2024.04.24.02.04.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 02:04:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156577-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b6SaCtae; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-156577-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156577-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 32232B240BD for ; Wed, 24 Apr 2024 08:52:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 892D7158A1B; Wed, 24 Apr 2024 08:51:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="b6SaCtae" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ABCF1157489; Wed, 24 Apr 2024 08:51:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713948710; cv=none; b=Z/u5kOqEPIpzb6ojr4kJMPsowbbsvE7l7S6xUsyI+XihyD4O5Z1/cZBex+ZcaS4ARmV3q3L5I4FkVqoRb62fVJkMDtSHAhIsGcdc4UcyM4O8zNq2XZeqFg2SyITPt8yOix+PqfDokNkyF4Ss2QxkpsmD0FNCSVn5NzuadUGWJzU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713948710; c=relaxed/simple; bh=Rg4e9txP5oX9sV/aUZHZulZUF6DxQi+sn7vMiXtVOIY=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=DwI9zrNDYyoZQ6GP3R17PaYOxutc8VJq2D27X6x1LHtNuSMg3frCTa2058f96c5tGd18hieUh7+olRFIdXzcxX6XbSOcCx5E8PTpCPs42tYQPtwHFHxudfehJk/dGnKDI9kGRej+6bygF6kxelH1sHJNUKhjKbD6HyA3qgefeRE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=b6SaCtae; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 2EF8BC32781; Wed, 24 Apr 2024 08:51:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713948710; bh=Rg4e9txP5oX9sV/aUZHZulZUF6DxQi+sn7vMiXtVOIY=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=b6SaCtaeUiH/y+HsEFw64JUzzAKOeS3mn22EIp2rvbeKz31/e3ZmhzLqHCVMicrFA Yw9qzh9fD+S3fdYWiWHdBmSsJ/5ACVXrYQ6IN8ctCdmn5CuP5aB0X9TJplKi6lFG1J CC3a2dozyo1x7GR7QZjhobhjfAkJDPCrJ3/v5aIuwwX6MGf+A3WEmPH7sBPckhjiZj EreN0PL5vFdgQXAKkDOurK1UAPGWAWbWWhrLQMLKt/N8ZbQ6C9NPTletzHt2ELH76O 6654WmyRb0EPmnb70ejusDn1ai9k5dwMnaLiENPfLjHyIqZSc1XfsaKCnjtg7bmYZ5 NUiq/5hw0QfcA== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 18605C433E9; Wed, 24 Apr 2024 08:51:50 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] platform/chrome: cros_ec_uart: properly fix race condition From: patchwork-bot+chrome-platform@kernel.org Message-Id: <171394871009.3441.4963068263841932091.git-patchwork-notify@kernel.org> Date: Wed, 24 Apr 2024 08:51:50 +0000 References: <20240410182618.169042-2-noah@noahloomans.com> In-Reply-To: <20240410182618.169042-2-noah@noahloomans.com> To: Noah Loomans Cc: bhanumaiya@chromium.org, bleung@chromium.org, tzungbi@kernel.org, groeck@chromium.org, robertzieba@google.com, chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org, stable@vger.kernel.org Hello: This patch was applied to chrome-platform/linux.git (for-kernelci) by Tzung-Bi Shih : On Wed, 10 Apr 2024 20:26:19 +0200 you wrote: > The cros_ec_uart_probe() function calls devm_serdev_device_open() before > it calls serdev_device_set_client_ops(). This can trigger a NULL pointer > dereference: > > BUG: kernel NULL pointer dereference, address: 0000000000000000 > ... > CPU: 5 PID: 103 Comm: kworker/u16:3 Not tainted 6.8.4-zen1-1-zen #1 4a88f2661038c2a3bb69aa70fb41a5735338823c > Hardware name: Google Morphius/Morphius, BIOS MrChromebox-4.22.2-1-g2a93624aebf 01/22/2024 > Workqueue: events_unbound flush_to_ldisc > RIP: 0010:ttyport_receive_buf+0x3f/0xf0 > ... > Call Trace: > > ? __die+0x10f/0x120 > ? page_fault_oops+0x171/0x4e0 > ? srso_return_thunk+0x5/0x5f > ? exc_page_fault+0x7f/0x180 > ? asm_exc_page_fault+0x26/0x30 > ? ttyport_receive_buf+0x3f/0xf0 > flush_to_ldisc+0x9b/0x1c0 > process_one_work+0x17b/0x340 > worker_thread+0x301/0x490 > ? __pfx_worker_thread+0x10/0x10 > kthread+0xe8/0x120 > ? __pfx_kthread+0x10/0x10 > ret_from_fork+0x34/0x50 > ? __pfx_kthread+0x10/0x10 > ret_from_fork_asm+0x1b/0x30 > > > [...] Here is the summary with links: - platform/chrome: cros_ec_uart: properly fix race condition https://git.kernel.org/chrome-platform/c/5e700b384ec1 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html