Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1253226rdb; Mon, 19 Feb 2024 08:54:51 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXx9lt3UoVg9q5gYiG8aXw4A1a2PoU2h2Z5P+kgDga/EO3j8ueOmYZOsZqXFRZKqYAYT5llB0SkbKd/XiqwmYNa33kRX8xHFAgfbZM9KQ== X-Google-Smtp-Source: AGHT+IGeIGrlWECBvX/VkdmqP54qo/SPyCO6nVdNX6NzTVGx43wWWPBvzHSsvqORgQ3i1670e7Ug X-Received: by 2002:a05:6808:1893:b0:3c1:558d:fc60 with SMTP id bi19-20020a056808189300b003c1558dfc60mr4925775oib.43.1708361691431; Mon, 19 Feb 2024 08:54:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708361691; cv=pass; d=google.com; s=arc-20160816; b=KQtUiL8AmyCQbFuQR9/h/cmjaPg8WUVw9+zZPPboN2OtGqW2ozL6OfX7fiiRnPvP3K eGUBrDal3e1J1n7pbpWbVnG7FdASJKgZ0qOjnMEpXmQ+ICVpPAujneOtQxpIPY1oHJuD 6jMeT60/srcV+1aogxNENxNR2joyBWLqfL2A3pp6yNRBy+GAmKJOjzDHF4vsmTA+BhyP 3Zf+L0tYXmtootI1NCsKlz0QKrBR9oqmGq2WxvPX4ESiZcMIFirsRiiW7NUgM7v17Ufl 2SFHiHAll+UARjLprICafAm5syOlCvH8jKhxuJBaGXwgB10I9S8TDk9+aZxXDfcbI1xg yK8Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UA0zSdCdoiDx17eLepIKHTwRQfmJAAj0B1OmftPBvCU=; fh=eNUzlZgipL92qt2Uq/BJW9x1rRT2N8QkeT6uclP3fe4=; b=E/cmH7IITjzd3xDhkHMBN4vJhkas6Cw/VvMibXTPIU6viw1g1+Qo8+9LHUXbZLmxLb YvTzzffv20/hV9RqGk5lA/1OUr9JXW7fiZCLQ1dbL8ImrHH9PdyZY3O7t3KYI5uAvI13 iYii5jnj+Eu22MD1JUFBJGIqLOIT9UnJOmtyrGjTHt0yz0JqJ2C8ItYGj236jXm88Wpl Hu8udiG40OBzNuOpSgaaBhMKS2oDXdtWgFTFO6N9wH3oJxLjFB5OYa3uWQ+Q70oLEPRF jFTcXG7YiQZsi8TVnDKVz0lv2Vrsy2i+pJICk7fgzaYoIlqm3KugEx4yXvEHKpD6vAFe ysfg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=MNs0ogeY; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-71716-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71716-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 r20-20020a056214125400b0068c71d0cf61si6586817qvv.446.2024.02.19.08.54.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 08:54:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71716-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=@infradead.org header.s=casper.20170209 header.b=MNs0ogeY; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-71716-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71716-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 1EFF31C22B7E for ; Mon, 19 Feb 2024 16:54:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D9E67446A2; Mon, 19 Feb 2024 16:54:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="MNs0ogeY" Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ADE2D41C85; Mon, 19 Feb 2024 16:54:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708361684; cv=none; b=bB8qfuk6wBRrgi3pkfD6pQGZZQQxPP9xaznbBBFCOJLwhC5nfehsSdSCUWbDzcKh+5icRuAzEUcCKL0JDAuDxeGC4PWnbQi0ZTwWsYZRuyRKTLj1fzCJ/ng96pwTr7NlhExjXl9/19xMZlelRN1rnSjr2K5tpyvpuT2lL2dk2Ik= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708361684; c=relaxed/simple; bh=yUPZofgi/Cbwfp1xWRriBGvlPuQtbUzrKZZm9vexYGs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HKOzj4+8JTyZ+6CErTOVTWwmzbuCGbJHYAAmRHSFd7G+PVD5YbKVsCahBrHWv5utbNm1zNuprpaMvYL+Ubj7fO6NK3wMAEjd0n+aMQNNHCZzsFRyhFMDjl2g40e3GNEinnQ5wrCka0kvcZ7R1R2ornThUzMn4v5tRFPwFiyuZCQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=MNs0ogeY; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=UA0zSdCdoiDx17eLepIKHTwRQfmJAAj0B1OmftPBvCU=; b=MNs0ogeYPKq6Yi9e17KE7p1o6e OQmhpcZfUdN4S4+BiPeDrIXGHbp44yPum7VvcN2pFaaDeyEMEHqAn0FPMueYb8xKg7k70SmydLgUT OxbrLY14FJ+RIwEoKA6e3QiV1PiBEOkG3kuE4N5OxPfSX05zT4yLUndGSMjg+SgIMvPaa2fFMTh0v a9WfgD75aZNwQduy7mKkHwaQt8h5pmAasQ2/8fkMk3JKv1vfW0VmfABgS8MITOxx/kOHZp2Cr1lWd 7VEnP+MQoCxzox2HFsm3A6livQMnK0/n0EBpP9nHcKYyE8fVfajzB+OUTvTUHugP42X06B35kAZ0+ RFCHNPAQ==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rc6ud-0000000DIpA-3H5r; Mon, 19 Feb 2024 16:54:39 +0000 Date: Mon, 19 Feb 2024 16:54:39 +0000 From: Matthew Wilcox To: David Howells Cc: Christian Brauner , Markus Suvanto , Marc Dionne , Daniil Dulov , linux-afs@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] afs: Increase buffer size in afs_update_volume_status() Message-ID: References: <20240219143906.138346-1-dhowells@redhat.com> <20240219143906.138346-3-dhowells@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240219143906.138346-3-dhowells@redhat.com> On Mon, Feb 19, 2024 at 02:39:03PM +0000, David Howells wrote: > From: Daniil Dulov > > The max length of volume->vid value is 20 characters. > So increase idbuf[] size up to 24 to avoid overflow. > > Found by Linux Verification Center (linuxtesting.org) with SVACE. > > [DH: Actually, it's 20 + NUL, so increase it to 24 and use snprintf()] > > Fixes: d2ddc776a458 ("afs: Overhaul volume and server record caching and fileserver rotation") > Signed-off-by: Daniil Dulov > Signed-off-by: David Howells > Link: https://lore.kernel.org/r/20240211150442.3416-1-d.dulov@aladdin.ru/ # v1 > Link: https://lore.kernel.org/r/20240212083347.10742-1-d.dulov@aladdin.ru/ # v2 Tag it for stable?