Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2574995lqt; Mon, 22 Apr 2024 15:09:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVERC2FxNhYm+0Gyq3Oggjw6il2iTzWINGaVnHaRRs0ivOVy8ixY+8fXcMKfq0/KHMOZhr00wpyYMt1yOvjVRAO7EX4e5FODqdvAxcLmQ== X-Google-Smtp-Source: AGHT+IEhS+o7hztTaTIbt9MQFjuY4t24Mz9ZNtVhICbYPMEepzXDAZiPovoFO1niFOlR5nqxgYTv X-Received: by 2002:a05:6a00:23cc:b0:6ed:21bf:3420 with SMTP id g12-20020a056a0023cc00b006ed21bf3420mr14077209pfc.10.1713823794461; Mon, 22 Apr 2024 15:09:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713823794; cv=pass; d=google.com; s=arc-20160816; b=POmQze33dkAEqvdT7WNrLG1Ssh9Du6T0YEqe2gB99yviDeIvYN1as6Uw7o7blMW1hf vrt8bNnDiRthezDlNuqkA1DxKBKxrHVSTXY04xKZzsYN5LTHzjbwfaI4VMXsfTo3pg7d /9kZLVF2chpqMUx7rSAHZVplgJyIO76O5CwYyLpJcUAblgYLY7J6IXGtGJh4xMVu5VEE 1AYFoZy2s/xd73cVzbsy3ZgCLBnYRevxxA7rtue5l9MOcDZkM83oiLyuKtuT4zexflrh RwhuDit74JsLULL7+ri8vdK0GFChprEAgrg6046Z7vSDM+pU+zSaAfBUCeqqj0VgowvT 2OXg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Kg5a3ZNDdZMMUvf4365EKSxRk9IMhRxNYDkmIIovfZg=; fh=ihsVgixstrLhwvydgbOkTrvCMrMF4iv7Ay5S9rIv2bk=; b=llwGjAcfhk5OYIEY+xObBeVhc31caLt7GLsH2i2rz/8zb3UfZPBIhzMfgEw8bnYXrj tP1Al1x/K0rIZ5U4PtN/jVayVgxL8MygeR23Z4+tDo/MZ9pk14LOBxR0gTjYgb80wiy1 CWOwIqLM/OR5ZxKMC50nxd7pNFH/foOol3H3C9EX1gSG1XD8srL91SsTjLPXNOQfbHos yLYBr99SYbpa2OslVmpOWaeGxTZdLy5Ow8QxuDi0a1SoIg9x1pCyTQivWs4xW02wVKco wEL2/oEtjr8jIvtC9yGbbcfXIysxNT8CCzZ7YI3zN0J5eltT9ycsBD0X2++V/wokcOpW fJIA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=G2CjSUhN; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-154073-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154073-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ln9-20020a056a003cc900b006e6c374f109si8529631pfb.38.2024.04.22.15.09.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 15:09:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154073-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=G2CjSUhN; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-154073-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154073-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1E63E284442 for ; Mon, 22 Apr 2024 22:09:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 422361E862; Mon, 22 Apr 2024 22:09:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="G2CjSUhN" 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 619FA1CFBE; Mon, 22 Apr 2024 22:09:46 +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=1713823787; cv=none; b=q50tQL7G2QGewTies594yoeA7MU/OPfp9j6cLmv2NfOUcbtAuXNEAhqL9ni3xSBYqmVJRjfht2/xtWLQx1Nv3T6zPSDzKSUI+46vr8Lfb3l9xR/qr1hlmuy/+2No3+Tv2eHqSVkFrlXWQA5Qw9RBIckbcPHmQYmHexwFjPNZSUs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713823787; c=relaxed/simple; bh=bhzFxthcWnNZCQ2IVGZBg0BJmyrKdr+FtF8qDWZLzd8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OI3rRxvHuZp30U8ZOUrBPDiNcV6mdJ9w1PJuhKjdqALyyGAlf10RmOcBsvruX7CICyyRMGgwjDj61FL3I5hgLG+DFQcfNI5dRTBMjH0iSwzjUbl2FaAhIun5FkUu5e4jGxK06Rkh3kWTGx7WP+0qwOCCvK5wVVJVndjfNG5v51g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=G2CjSUhN; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C57A1C113CC; Mon, 22 Apr 2024 22:09:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1713823786; bh=bhzFxthcWnNZCQ2IVGZBg0BJmyrKdr+FtF8qDWZLzd8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=G2CjSUhNQbhoAi9rih+K50jMMb7mGAzlxZMRLdUqBm1io58+YyH1L8KcvwPkGIOE0 2gKCClDUPWvqw07j4Nefain7bejcZPYvppK0MfGoTS+87mA0z6Yvb60KKtlGoD0vSj 5VOp/BDyDMDOtfYYwkpSNvPKEDW3yyCuUcVTCLIE= Date: Tue, 23 Apr 2024 00:09:39 +0200 From: Greg Kroah-Hartman To: Daniel Okazaki Cc: Bartosz Golaszewski , Arnd Bergmann , kernel-team@android.com, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] eeprom: at24: fix memory corruption race condition Message-ID: <2024042324-public-disgrace-2674@gregkh> References: <20240422174337.2487142-1-dtokazaki@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240422174337.2487142-1-dtokazaki@google.com> 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, the > 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. 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