All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org,
	Billy Tsai <billy_tsai@aspeedtech.com>
Cc: BMC-SW@aspeedtech.com
Subject: Re: [PATCH v1] i3c/master/mipi-i3c-hci: Fix a kernel panic for accessing DAT_data.
Date: Sat, 4 Nov 2023 00:41:47 +0100	[thread overview]
Message-ID: <169905489155.439104.1007504050351939428.b4-ty@bootlin.com> (raw)
In-Reply-To: <20231023080237.560936-1-billy_tsai@aspeedtech.com>


On Mon, 23 Oct 2023 16:02:37 +0800, Billy Tsai wrote:
> The `i3c_master_bus_init` function may attach the I2C devices before the
> I3C bus initialization. In this flow, the DAT `alloc_entry`` will be used
> before the DAT `init`. Additionally, if the `i3c_master_bus_init` fails,
> the DAT `cleanup` will execute before the device is detached, which will
> execue DAT `free_entry` function. The above scenario can cause the driver
> to use DAT_data when it is NULL.
> 
> [...]

Applied, thanks!

[1/1] i3c/master/mipi-i3c-hci: Fix a kernel panic for accessing DAT_data.
      commit: b53e9758a31c683fc8615df930262192ed5f034b

Best regards,

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

WARNING: multiple messages have this Message-ID (diff)
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org,
	Billy Tsai <billy_tsai@aspeedtech.com>
Cc: BMC-SW@aspeedtech.com
Subject: Re: [PATCH v1] i3c/master/mipi-i3c-hci: Fix a kernel panic for accessing DAT_data.
Date: Sat, 4 Nov 2023 00:41:47 +0100	[thread overview]
Message-ID: <169905489155.439104.1007504050351939428.b4-ty@bootlin.com> (raw)
In-Reply-To: <20231023080237.560936-1-billy_tsai@aspeedtech.com>


On Mon, 23 Oct 2023 16:02:37 +0800, Billy Tsai wrote:
> The `i3c_master_bus_init` function may attach the I2C devices before the
> I3C bus initialization. In this flow, the DAT `alloc_entry`` will be used
> before the DAT `init`. Additionally, if the `i3c_master_bus_init` fails,
> the DAT `cleanup` will execute before the device is detached, which will
> execue DAT `free_entry` function. The above scenario can cause the driver
> to use DAT_data when it is NULL.
> 
> [...]

Applied, thanks!

[1/1] i3c/master/mipi-i3c-hci: Fix a kernel panic for accessing DAT_data.
      commit: b53e9758a31c683fc8615df930262192ed5f034b

Best regards,

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

-- 
linux-i3c mailing list
linux-i3c@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-i3c

  reply	other threads:[~2023-11-03 23:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-23  8:02 [PATCH v1] i3c/master/mipi-i3c-hci: Fix a kernel panic for accessing DAT_data Billy Tsai
2023-10-23  8:02 ` Billy Tsai
2023-11-03 23:41 ` Alexandre Belloni [this message]
2023-11-03 23:41   ` Alexandre Belloni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=169905489155.439104.1007504050351939428.b4-ty@bootlin.com \
    --to=alexandre.belloni@bootlin.com \
    --cc=BMC-SW@aspeedtech.com \
    --cc=billy_tsai@aspeedtech.com \
    --cc=linux-i3c@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.