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 3D6B2C433F5 for ; Mon, 29 Nov 2021 12:28:01 +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-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sP2LnKQfOE87LzMGqXRmm7zwy3apklSTNRy6ODlO80Y=; b=Yji21+6fqXzUAn hB6wCe7L2fyfAenAt+kQmhBAaF1g2qre2cfDKRJslVus9baM5+pRT33xhtcGs4eG1jZsXSNYcCPzV dT5jtHr2zLkFkBuGO5Pa+YSg9H1OpcZ/MrwAh2GHorL5kOckZzq/5tfxI85qL1sExyx816nFUbqmb ZYbLa3sB72PIJ0AYPZBtxJfkLdbZ8rVixF22XFtsHVBjk+pNsZptHk5X86XY5CM9LRjV4KRes48As w09ONGFghk1LxvKpaKUbFMODZUrZA7SyTbPP3xzgi8UWi7DUEa5E9MayESVWcF/S/ExdWnYtf+upb HYspqoV0+mJqLPWW5RAw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrfjt-000h18-OJ; Mon, 29 Nov 2021 12:26:34 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrfjo-000gzI-HW for linux-arm-kernel@lists.infradead.org; Mon, 29 Nov 2021 12:26:30 +0000 Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 1AT8UeAC024974; Mon, 29 Nov 2021 13:26:12 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=date : from : to : subject : message-id : references : mime-version : content-type : in-reply-to; s=selector1; bh=G6PSSYkYmZM0MaQPoLImSJDApg8FN1Eq02Ab0suxV6U=; b=C+yRdUm4u05HRyZBVfUMGlaA8sdhNHX/m9bNNcKbUJWQRLMaY1xyV2Ne9x6y70g3ELhH f6UJ8bvsOJRr3hjW4DL97EbL/4nfQOWE2mP+VVC7VeOEcrLo3JOkxMl3H4Xz8v2qbqn/ pkJpKnOAl0/mbDWQvO7tRV795uc32INN5GAsa4XdHULWIoJtEB1sRykajaCYgahQaMYE oF0g2nhpqnYL/GgWLiPaxgRCxXOv34wQ6DmBdd5U3r3pLQjmoVQT8yWujEYyXMqEkRq9 BqP0SkUVbA5uhNDFsRpbgntc2zQNkkKjE0Oy6S3tLk2fJqZDF2EdnnjbGObQpk7LE3lL /A== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3cmudrsedc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Nov 2021 13:26:12 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 1739810002A; Mon, 29 Nov 2021 13:26:11 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 7AF88214D22; Mon, 29 Nov 2021 13:26:11 +0100 (CET) Received: from gnbcxd0016.gnb.st.com (10.75.127.47) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Mon, 29 Nov 2021 13:26:11 +0100 Date: Mon, 29 Nov 2021 13:25:45 +0100 From: Alain Volmat To: Wolfram Sang , , , , , , , , Subject: Re: [PATCH 3/3] i2c: stm32f7: prevent calling slave handling if no slave running Message-ID: <20211129122545.GA486850@gnbcxd0016.gnb.st.com> Mail-Followup-To: Wolfram Sang , 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 Content-Disposition: inline In-Reply-To: X-Disclaimer: ce message est personnel / this message is private X-Originating-IP: [10.75.127.47] X-ClientProxiedBy: SFHDAG2NODE2.st.com (10.75.127.5) To SFHDAG2NODE2.st.com (10.75.127.5) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-11-29_07,2021-11-28_01,2020-04-07_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211129_042629_463161_B596C9D3 X-CRM114-Status: GOOD ( 20.02 ) 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Wolfram, On Mon, Nov 29, 2021 at 01:21:05PM +0100, Wolfram Sang wrote: > 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. > > > > Without this commit, an OOPS can be generated due to a NULL ptr dereference > > 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. > > > > Fixes: 60d609f30de2 ("i2c: i2c-stm32f7: Add slave support") > > > > Signed-off-by: Alain Volmat > > Is this one still of interest? You resent patches 1 and 2 but not this > one? No you can ignore it. Thanks. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel