From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3BBA2C433F5 for ; Mon, 29 Nov 2021 12:22:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=lNOTSeB0RUA8pAXCHFxbWI7W7kRpgTc92JSg4ScVBI4=; b=HDlMYiSlieeWyrWXAIk35tWG8z m1btJNIJEIo7AV7+4szAbeifWvtDcOlcMk36kNUD0gth2mCNHY/vqTp+cSey2QV2XI8oGBENaHyx3 ZS+3C0CGRl5r/cLWJNgscQb5oXQzb1B7qAIXPyV2BH7FE6WB7fLeaOHak464s8sKX5Y6Zj1yzfi/D qv3bdY9ZHVul5jtFVv4X6N0xj50+WbHbtYgOK4CXQbQ7u9xEEHdQk4KR/9ZQ8vkdJMF+Ww+2dGA59 znAVBypL/k5vkuavnrZBRQW/0WDb58LtDJmm1NeOGrILqMwmGQEOdrA8h3qCnPi9aRdfY5zEx+5sF ibdeTscA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrfej-000fcN-KG; Mon, 29 Nov 2021 12:21:13 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrfef-000fbM-Kp for linux-arm-kernel@lists.infradead.org; Mon, 29 Nov 2021 12:21:11 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 247D9612E3; Mon, 29 Nov 2021 12:21:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6D65C004E1; Mon, 29 Nov 2021 12:21:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638188468; bh=nt9igO2VIrbX0Y0Juo8eoMFt94e14U8oE0NBFunmCIg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vA/pXtASqP4oik3rnGaIsuuOVwv+ZkbJG0x8CUqsHMBfI4FUmu9hZIrpx44i8lY8+ VtIFYho5Yh3Z4NBQmBF+v9JLbHCZsVp+UlTbYM7pcyfZtOJqqkdHq8fJRox/XTItpv d18lfqfF5Zq4+n5ZeM6BdV6+yNwN6GeqnuHlFhBS0zkba1ZJVyObHOtrmXvSdq6TYy G6R0V3Fl/OIZWrpBPIbmdFtF3y6qycYDtWodggHFxh/JuoGBK7HHPv8MujJyfj16/L d3/5FqBhfFE832fQG8VKtrsvTcYPdRvdzK7OOIIVSTMvT+QOwx+yjkSS0fzbLJledj SDhEh27mLVZFQ== Date: Mon, 29 Nov 2021 13:21:05 +0100 From: Wolfram Sang To: Alain Volmat Cc: pierre-yves.mordret@foss.st.com, alexandre.torgue@foss.st.com, linux-i2c@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, fabrice.gasnier@foss.st.com, amelie.delaunay@foss.st.com Subject: Re: [PATCH 3/3] i2c: stm32f7: prevent calling slave handling if no slave running Message-ID: Mail-Followup-To: Wolfram Sang , Alain Volmat , pierre-yves.mordret@foss.st.com, alexandre.torgue@foss.st.com, linux-i2c@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, fabrice.gasnier@foss.st.com, amelie.delaunay@foss.st.com References: <1625062303-15327-1-git-send-email-alain.volmat@foss.st.com> <1625062303-15327-4-git-send-email-alain.volmat@foss.st.com> MIME-Version: 1.0 In-Reply-To: <1625062303-15327-4-git-send-email-alain.volmat@foss.st.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211129_042109_803248_0ABC65DB X-CRM114-Status: GOOD ( 15.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============8405932037169259942==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============8405932037169259942== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="RG6K4j9bMxrgHdVg" Content-Disposition: inline --RG6K4j9bMxrgHdVg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 30, 2021 at 04:11:43PM +0200, Alain Volmat wrote: > Slave interrupt handler should only be called if there is actually > a slave registered and running to avoid accessing an invalid pointer. >=20 > Without this commit, an OOPS can be generated due to a NULL ptr dereferen= ce > while receiving an IT when there is no master transfer and no slave > running: > - stm32f7_i2c_isr_event > - no master_mode hence calling stm32f7_i2c_slave_isr_event > - access to i2c_dev->slave_running leading to oops due to > slave_running being NULL. >=20 > Fixes: 60d609f30de2 ("i2c: i2c-stm32f7: Add slave support") >=20 > Signed-off-by: Alain Volmat Is this one still of interest? You resent patches 1 and 2 but not this one? --RG6K4j9bMxrgHdVg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmGkxbEACgkQFA3kzBSg KbYw4g//XCjI9PEPvkuiZI/yOpA/zHmd7BYX//rxaUBeKAIzrE4vHos0V0QweIT9 LBBl2edf9sXervjTrNzs6TQ7GJ69VNTYX1wf4jk8xlezAnmKoCiH7L1pNcHpA2yn ueBi4NqjH9SRVbO9QzilVRODkillt6LD5FqByeqVJtdlmAjT2dsIwA3xsSGhv5EF u2aAX6IoWPjIwQaAvfQWu8ZQvD6q8hfp8nvIHZyT5gtjN8cEAWJGxuJTv7mkIpkU Wwv76pfPVpDeAXdqgMaRfhoWPIF37ptbSX6JZgUFRCf4O3Lub3v7FcYi2ckyBqrS 98Hc7a5zSyYUA5/q1AI35BwTtIbHuZObWjH3KwFThbqUgIwG8YJRlCnK3O/mjb3M 2C6CN0g3B3JuEJ3ds1yNje9i4T1N4hMH0KwozcG6xPwA5sKvB2EOwLZ7Gmo4mYu+ yVVn93mMbiX1qV1eWUi/4g51VSMOSaZt3ncA3B1dsY7dtA0EU4ievewJp3Fkbd60 UxEHWOookEfVneDjqWlRa0cuthoLURSXEgQZPlB7xMJf/dfypkN4Dz6lDCu1XCjc VZRKR5GvE0IBpCohjqeZpu16PVfouCO2jhR6jKgYH+UJ+6425xjhEMvL/w3OKtfm foq5rqD+2dAJ4KfbE9ZCPcQ8YqrcFByacDOr4dQeW0M+dc8EQJ4= =cZpw -----END PGP SIGNATURE----- --RG6K4j9bMxrgHdVg-- --===============8405932037169259942== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============8405932037169259942==--