Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2788108lqt; Tue, 23 Apr 2024 01:14:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXX/aJhar5pEOIHer8bebjtzWiACeJyoQ+Bgw8CZdpCK6kbNIipyEn26KFEnzoGrnCWzQTMotr6Tp+LC/gqNXMjiic0sQSb/usOT25iug== X-Google-Smtp-Source: AGHT+IHyVstNc10O1tO43q6+JPUjfBwMptse2c76iZJPlGeznOgOc23qLStjOIMNbimAHio3SHJh X-Received: by 2002:a05:620a:2894:b0:790:7883:fafc with SMTP id j20-20020a05620a289400b007907883fafcmr3673282qkp.16.1713860075099; Tue, 23 Apr 2024 01:14:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713860075; cv=pass; d=google.com; s=arc-20160816; b=yJ/fD4cFrIrZqgVjxsQ3ruS3vnE80OOOlnkQLZA09kq+Bisazv8/CVzdLcuKhQf653 WRMc/vVjCPEjTtEH9AqyX/zPRIItWOhoM1LUhhAPo9sMnNk3ncKJU6+ErD37vz9xkTu2 hFgVh7wbUv3yTSH61OJphLw7A1+lrk//de5jb5vqxhAQXtVT2mBUx/4ViXCfZSc7VUAf QsoDVg7LL3raRrWd/8P0p2oLDh7FapEHue1lFh4OTkjbVzYQQ1aPMBwDFxb+h/PhldL9 i9nyi/F4mjeuH19ZVPxk3RamIJ9Y3WVV8ALWAG8kfbRSr8xIgAlASZL2h+txgs/5O2Co Yaig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=XnrklfKDWUIqP05rELUPFXo38TCciTnfkiMrHFZcSA0=; fh=OUAWSaEYWkP5Q/O7id5k83sYiW+ysyp3GQbPKx9r1FA=; b=X2jo9wsRzcab4ZxwcyopQsN+8SzV2Rww3XTckQjgI5kcqXEc3S1ZCbiXudu3F8xJ7T 3fyhW0sPWUS9Cr39yplrroPtTyxao3qQ/b1JVYYX+Hnq4u0M7OG+sir1angOnneEpWIC qEeBSFcucbQqHs3ttnaL7CiNSB74HvCifVR1mcZJUVyLTiu5j1pX2s6KXq2jI5ass7p0 pqrbVisuZpvrxZYKrcK3IoE9c0U7TGno0T+JzQsyO3rlLjdmf8JFurJb3zsq1uaAuBnU 7I/NpUhxSzKEOeYbl2dn3qKI1miq0OYSCiE/EUZLiq56mDznpbTe5+L6ioJjCqaCx3Bj TQsQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=0edhszBe; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-154664-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154664-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bk34-20020a05620a1a2200b0078d6632b605si13615105qkb.434.2024.04.23.01.14.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 01:14:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154664-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=0edhszBe; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-154664-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154664-linux.lists.archive=gmail.com@vger.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id CEA921C22541 for ; Tue, 23 Apr 2024 08:14:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24828482FA; Tue, 23 Apr 2024 08:14:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="0edhszBe" Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A455245BF3 for ; Tue, 23 Apr 2024 08:14:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713860070; cv=none; b=ud/eiRdydnW9UMY8aAWVbWxoB6/xY+W3jSrOfu2Z2uawbImVnSic1XvmIXhDW/CzzmCkDSB4SMEEnVgjBRHRYUC9K223L26q++EvwQGEYE9h/xsDagmQrkmUj7sdTHFMzNhIBc7RMKvur0zC/ZB4E7lgTiVxT1saaWtaysxPWbE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713860070; c=relaxed/simple; bh=wG6WZUpRd/kgpR3jnKexoyxO7GupX187v2aFnXW6ETE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=NZSF2fAje0m8SyvT5zyFZ0ShUjH9weU5EoIjqQdRrOlk6O6HDBG4ZusvJnobUU/BBxfLXkTp3KOGM5A2zv/6cHQge00p7oJPbOlDnQFZLxhrzwZ6YDZUI4xorPD42jMcJfzsVy4rJyQFOeAjYGPLTG16w+hYShwG6T1mtAn4764= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=0edhszBe; arc=none smtp.client-ip=209.85.167.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-516d1ecaf25so6954149e87.2 for ; Tue, 23 Apr 2024 01:14:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1713860067; x=1714464867; 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=XnrklfKDWUIqP05rELUPFXo38TCciTnfkiMrHFZcSA0=; b=0edhszBeZKglHxghgKzf3jItk/+SToJzlfeZzOKrpBbF52aT35vbknnhmgvR17L+nw RDkfsazmNmFvaGv/ENvnEC7oWFeXuY5/2ynV9IOc68xio+Z3D17slj1UvTnslsQHvoso jgjIfkdJ6n1Efx3uLiu6hGxVtX6MQbRW6MiVHUr3W24kkPELA6pNfrtYDPEaCViRZ8xa JPGRo4qc268DrJxmEqjolNdi0gLDDXC90eAVTcd+U9pD4iJxH2O2CKUKlMkOisAKiLQO oOsV7SGijdW1JwShIleGXVQIocu3rKKRdGqYAmtuJTT2RsrR8iPwWedwo1NbjLUSsbDA fvew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713860067; x=1714464867; 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=XnrklfKDWUIqP05rELUPFXo38TCciTnfkiMrHFZcSA0=; b=n3VXeJLwBETMmANznSEw/TBFedu73Yhs9FR/RfIw1gPGMR4kqQkvIkZzVCf/KDt429 CsJHzf91LiV55qoig3xo67aWBSA5s7YdVa9TYXU0ZlH84FYL/Gs6Fj/yUrXYlyIj60+d Zf3yzfT46sSgArDQq7nW7bRWi3NDmoMLtyQpeatR5ZLY6jgRrrU7JVpFRV9IPsANM/WF v7D3Gpd9SvEcpG26EMHeDJTtYkcqdNVG2z/BJMHw1XwzU5rgqpbVBW53VB4XD3NFDdDf yFGN8EOxrvZdCyM698aPR39UFvTaZ8eTnmI2e35yr+OMAdeuFe+B36morXGHe97Rz7ZN QT4Q== X-Forwarded-Encrypted: i=1; AJvYcCVzI7qvX3DJ3FxcRNQbfVQso64CIUF1Y4WiGWP3pnaQalt3G/locog2eMur6Q48GslKPo6l/LLP7niqPm9uxMdfihRtjAFd5zV72Ls3 X-Gm-Message-State: AOJu0YwilV8KAG02K2urz/EJUMkci89qKiZL6Kyo8lrBgvbrVCeRPXzH UtLXSJzzwQEwFBvmcJW5h3KKDizZJZeXLHHhW15v+JBNtJNO+eKKIYw/fMTKhWez9WKQkY3zA91 CvwY11u004hsdLWdoovtI0eEl+npDjvG2fvY02Q== X-Received: by 2002:a19:f80d:0:b0:516:c9a7:82de with SMTP id a13-20020a19f80d000000b00516c9a782demr7121805lff.38.1713860066879; Tue, 23 Apr 2024 01:14:26 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240422174337.2487142-1-dtokazaki@google.com> <2024042324-public-disgrace-2674@gregkh> In-Reply-To: <2024042324-public-disgrace-2674@gregkh> From: Bartosz Golaszewski Date: Tue, 23 Apr 2024 10:14:16 +0200 Message-ID: Subject: Re: [PATCH v3] eeprom: at24: fix memory corruption race condition To: Greg Kroah-Hartman Cc: Daniel Okazaki , Arnd Bergmann , kernel-team@android.com, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Apr 23, 2024 at 12:09=E2=80=AFAM Greg Kroah-Hartman wrote: > > On Mon, Apr 22, 2024 at 05:43:36PM +0000, Daniel Okazaki wrote: > > If the eeprom is not accessible, an nvmem device will be registered, th= e > > read will fail, and the device will be torn down. If another driver > > accesses the nvmem device after the teardown, it will reference > > invalid memory. > > > > Move the failure point before registering the nvmem device. > > > > Signed-off-by: Daniel Okazaki > > Fixes: b20eb4c1f026 ("eeprom: at24: drop unnecessary label") > > --- > > Changed sha length to 12 in description > > --- > > Hi, > > This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him > a patch that has triggered this response. He used to manually respond > to these common problems, but in order to save his sanity (he kept > writing the same thing over and over, yet to different people), I was > created. Hopefully you will not take offence and will fix the problem > in your patch and resubmit it so that it can be accepted into the Linux > kernel tree. > > You are receiving this message because of the following common error(s) > as indicated below: > > - You have marked a patch with a "Fixes:" tag for a commit that is in an > older released kernel, yet you do not have a cc: stable line in the > signed-off-by area at all, which means that the patch will not be > applied to any older kernel releases. To properly fix this, please > follow the documented rules in the > Documentation/process/stable-kernel-rules.rst file for how to resolve > this. I fixed it when applying. Bart > > If you wish to discuss this problem further, or you have questions about > how to resolve this issue, please feel free to respond to this email and > Greg will reply once he has dug out from the pending patches received > from other developers. > > thanks, > > greg k-h's patch email bot