[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 1 Jan 2024 14:26:58 -0700
From: Jens Axboe <axboe@...nel.dk>
To: Guoxin Pu <pugokushin@...il.com>
Cc: linux-block@...r.kernel.org, linux-kernel@...r.kernel.org,
stable@...r.kernel.org
Subject: Re: [PATCH] block: fix length of strscpy()
On 1/1/24 10:50 AM, Guoxin Pu wrote:
> In commit 146afeb235ccec10c17ad8ea26327c0c79dbd968 ("block: use strscpy()
> to instead of strncpy()") , the length that should now represent the length
> of the string with the terminating NULL was not updated alongside the
> change.
>
> This has caused blkdevparts= definition on kernel cmdline to be not
> correctly recognized and partitions not correctly initialized, breaking any
> device relying on such partitions to boot, on stable releases since 6.6
>
> This patch fixes the lengths to contain the terminating NULL.
This needs a Fixes line.
--
Jens Axboe
Powered by blists - more mailing lists