Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6211825rdb; Mon, 1 Jan 2024 13:27:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IFMnNcyJD5Ya9BpKXupLhy0CB+vCOEfoFEjXzM1Xe2ndJPhHh3zh/QTtxsmnEnx6AhHeomh X-Received: by 2002:a05:6214:212a:b0:67f:1d52:2b6c with SMTP id r10-20020a056214212a00b0067f1d522b6cmr27299757qvc.8.1704144433399; Mon, 01 Jan 2024 13:27:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704144433; cv=none; d=google.com; s=arc-20160816; b=CHoo5j2zOZ9Uc4Hgi47GmCoM/vChsSo/emwUhT/qRUJdIWTHsSF4b92TNXL0fKE3Ug lAt35FtHPKss0f70EV4ykv5R3Zssuqr8mK2QtbdrZIcYqzkNNSW9yUxCt4+cR/vy53Ym GvwNHNXmmU63JRgDCHwL9ZMG5TLqwYAiH3twLsuIMzsflF1tXOtBiYf1z/XPkRHbJnyy zzmFyQoIXGQa9aq0ND2Uk/OALfkNYOlcQJmoQ8UolZfR4DyVyYG1kL/ErTu6yYw0CEgL GCuyhwyXHTNAVjmtSBlTUlnNKCCn+Vg6dwPwbSsj5H59IEgnlth89xZ6arGJBgSr6b5v g3GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=8kpBoPyhUaQAP/gLzTZh/k1bq/vx+Y3mPraIQNXEeM8=; fh=1LLsSgIQ9I3DG6EuoctPu58sIfYJdAsGRYUCbspSZk0=; b=lg3q56btgvJlHfcOYukJNztxr2z9Js1ui4q2fsb1o3TiHInUPyHJszyJCjDiomVQuG EtHz298x8zqLsui2sFrJRjtoaBxAWI7+vWSpqflz91Ym2gK8Ap8XKWwchm9CcFA/NWrC 10bvdkmGRHjijzVgN2uYwroJR7Sdfvl7lca8MJZziiOhfywem8JaTes85vMhCxGnjeo4 tkSm/+XWoMae4PpQHWemMBTAfB5sYIjb+1dOQrtlImAS5+5mwnsaWrgkKDNYun3nBpOe jWbZbo9WkHNNpqqm8176WcI/dZ/8NJmorj1cxu6aQq/iS+j5juDpMj44EHf1XwBqbkX8 rDBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=hdsr7phr; spf=pass (google.com: domain of linux-kernel+bounces-13948-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13948-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u16-20020a0cf1d0000000b0067f2956fe05si25515782qvl.504.2024.01.01.13.27.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jan 2024 13:27:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13948-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=hdsr7phr; spf=pass (google.com: domain of linux-kernel+bounces-13948-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13948-linux.lists.archive=gmail.com@vger.kernel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0B5DC1C20ECD for ; Mon, 1 Jan 2024 21:27:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A3F08E559; Mon, 1 Jan 2024 21:27:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="hdsr7phr" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 974CBE555 for ; Mon, 1 Jan 2024 21:27:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Received: by mail-pg1-f178.google.com with SMTP id 41be03b00d2f7-58962bf3f89so1650252a12.0 for ; Mon, 01 Jan 2024 13:27:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1704144420; x=1704749220; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=8kpBoPyhUaQAP/gLzTZh/k1bq/vx+Y3mPraIQNXEeM8=; b=hdsr7phr/y9IYt06Z5ptd6KmNu6vQODXjRQ1LMdPvDKunk/cHKOtYtjzylBltoAhDi iqrSZg1ANSJRgcCO6/dT+vsZT+0MevhfHi4elDEXpnY+Ef160jlPrXFH65nFbpFepy3E rU6cz027U7V9BB8rqkP3SU88UmoyiFZaniDZMO0yDV+hsbrHYhSDszzoXrMSLkhKP4k7 UB40jEBPRs88I7VFM4cj0PeDZMKY9k9/WgMRUTr3B9IeBt/gSlPFHIb1mySkm7m0+kNC ldxgoGGEA9jOuQTCQgQ6oMwUrM6MiPj0k92sNz4LOR0H8OX4bUoTa93LeRpPQ4iMVhkg rvxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704144420; x=1704749220; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8kpBoPyhUaQAP/gLzTZh/k1bq/vx+Y3mPraIQNXEeM8=; b=XCCTSvueK7Q9MlMiCyuCW1s/z+kSdDyw5jOqdd4rpBoS8eFOQnFNpi0FHaiwmS5na7 LO3aPOfW5yBQCEYAkorCBhX4SHu2Kmm/nUeSLcCfjslqdZE0DawbMM0krxE/Xe7vwQ1m tNR4wC8DvijBxT/ak1X9H0jyJlzmbf6KaIjPcFIthsTSGhW2ULCUbRLPA8Vw8HbFfXa7 FueCOiFvJ2zXto1a8lcZyflFOy0GhK0QmXhgLiL7dW+dZIQ3A3cEgYq0EwPY1kKejPB6 mkjXGyiOGoVwfV5Yo0x3HXqVR/7Njxuybhcdd6Caalz/687aGf1idzgzOzA9FlZQJslr dl9g== X-Gm-Message-State: AOJu0YwZQygUR+jtbZtwy64KLGDi+YThBwSQrd43aolqc6a+ykDIP5ui iefslxFFc7aebVtT64fl0PQLt+SbqnYwsA== X-Received: by 2002:a05:6a00:6817:b0:6da:83a2:1d5e with SMTP id hq23-20020a056a00681700b006da83a21d5emr5282807pfb.2.1704144420574; Mon, 01 Jan 2024 13:27:00 -0800 (PST) Received: from [192.168.1.150] ([198.8.77.194]) by smtp.gmail.com with ESMTPSA id b5-20020a056a0002c500b006d9a16ca748sm15997842pft.122.2024.01.01.13.26.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 01 Jan 2024 13:26:59 -0800 (PST) Message-ID: Date: Mon, 1 Jan 2024 14:26:58 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] block: fix length of strscpy() To: Guoxin Pu Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org References: <20240101175051.38479-2-pugokushin@gmail.com> Content-Language: en-US From: Jens Axboe In-Reply-To: <20240101175051.38479-2-pugokushin@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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