Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1049835rdb; Mon, 19 Feb 2024 02:36:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX6++RFW6CuzaptvAqRsVel3C6EeFxSXLqOAvb1H/W7EmhW61xKo1j/ryufxiAL8ywd3cn9sdjx8/Z1dgFLCw5aGn+JR0m9nijERsDkcQ== X-Google-Smtp-Source: AGHT+IHGe/PclTsAfv2ksH1mbHagbJ+z7b8ht3ZPPS1k5krd1fUaoPd176xEL7A0qz4lrND0Perl X-Received: by 2002:a05:6402:b24:b0:564:a820:d96 with SMTP id bo4-20020a0564020b2400b00564a8200d96mr199210edb.0.1708339001223; Mon, 19 Feb 2024 02:36:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708339001; cv=pass; d=google.com; s=arc-20160816; b=L959wu1z+NGHrFLm6laHWqbEScC+EiZDZklb8GHc1WXUoKCkTcDi828VBizUBxzAmQ 4bTua44wBGZLyHy6+iUKO4aHm5RniuIFP6FKWoV4Lcr+ck/m0wTHB1tq8PKbLgNq4JqZ SxQpFQ21Zwzkkm3TjGNM+hyyz6RwMLa//XNdxQdqe7whzbg04AT0u+rFOooAut7WGzN3 FzAhwPdNXL2HEkE8LzuB4FdK+0P/UWEid6NIgUiMKNxJd/ZrzwY/7tf4Nj3FmdYdFena ekIUwNqnfQCLdJztWKPGCUSSaIF8yafmvOXsefmchhB3/ihfcQCOsV9hGXjhun5nVP25 8Pvw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:content-id:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:cc:to:references :in-reply-to:from:organization:dkim-signature; bh=JFH4uSAgZBDlHo8RZhDoV0Zwh8MUzvUtZvaQhQoOVk0=; fh=v82kpSYRIieBv00zd7nMBZBtKT4mUsKpm7vUjupQr0E=; b=POnRenCgZM79m7hdlizEcx5e8Zp4evzJKwMsXwaFp8HmVAMqVM8mjFUCA6bhFfIDCd 7r4UB9x0muKu2wlMfyZYWiCtCdvd5l38k0VAutlFIm85DuZVBPh+LAo6stslcofDryiO K7ssshXP4vDPiHNjKHIL272fraFnhqcINDqszZgDG9qTLVI2Jn/uCavTiXqBb9M9vwNz q3MsxPzRUYIJvj197SYvk9tkpzL5x+h6pBlSFkldo+uSTEAM4PHRvj9sbJGqm9Db9WaV ChxhBbuv6Qe1iL4KQ7kUS37uPGimLZDJ7FZgP6lDR6BTagxm/r/mLeHW8YQF0HTgXBYG dCSw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=b0qMrdQn; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-71126-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71126-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m9-20020aa7d349000000b005640a72f972si2387876edr.396.2024.02.19.02.36.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 02:36:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71126-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=b0qMrdQn; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-71126-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71126-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id BF4331F2591B for ; Mon, 19 Feb 2024 10:28:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0911328DD0; Mon, 19 Feb 2024 10:28:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="b0qMrdQn" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 9AF9125635 for ; Mon, 19 Feb 2024 10:28:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708338503; cv=none; b=HP67kJy0zjcpYQQ0+OaHzop0Kmap2cngsVp3bL4K8LC/U5XXcR30luE8w6OGdbG2KyB6N4i1NLHQImQ51CKDi5WqsVPDYUbn6BWM23p8/m5GO0CB34BEAyzGPVf6GKag6AnwdQpQR5XT8rbavmEwLKq97OjcXfwjsT33XfooB/A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708338503; c=relaxed/simple; bh=nrAOxfXXPEWEvtWtLVExSs6J/pgiKbFC6fD39ZPxJ3U=; h=From:In-Reply-To:References:To:Cc:Subject:MIME-Version: Content-Type:Date:Message-ID; b=LJOtIVYbv2tcoxtNdNPgaXdEQa0uw4i7xThPOPVlCHIiXB4IVF81IQKQYtDkdiz1Znky2hiTEVsUC1fhOshdtDu/MVp7VfBNXvztlkrCaF8kfuvLNMvHWOnExioN3t/yH7gRTOLQ0x5xOTEblTHOV6i3vs4EdddQXnWoUW27zvc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=b0qMrdQn; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1708338500; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=JFH4uSAgZBDlHo8RZhDoV0Zwh8MUzvUtZvaQhQoOVk0=; b=b0qMrdQnJNlCI8WxAJ5XJ3TRB5bQJM6/OO3jC/vfuiKOHv+DCyg8xRUK4QxCAjnmuv1bG4 nnWhuE7xYUvOhHhdhLkflNWHSY7d0ygNSC+BXe8H61F7ReHZupJEmVvN4rT5uPmzNA9vQt 18CCRiMb4s9VzouxnBsYmq6Mnh9N0ro= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-638-gExweLWqNiS8dUe1kSvbAQ-1; Mon, 19 Feb 2024 05:28:15 -0500 X-MC-Unique: gExweLWqNiS8dUe1kSvbAQ-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7344583B9C9; Mon, 19 Feb 2024 10:28:15 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.15]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7DCCB40CD14A; Mon, 19 Feb 2024 10:28:13 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20240212083347.10742-1-d.dulov@aladdin.ru> References: <20240212083347.10742-1-d.dulov@aladdin.ru> To: Daniil Dulov Cc: dhowells@redhat.com, Jeffrey E Altman , linux-afs@lists.infradead.org, Marc Dionne , linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org Subject: Re: [PATCH v2] afs: Increase buffer size in afs_update_volume_status() 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-ID: <123872.1708338493.1@warthog.procyon.org.uk> Date: Mon, 19 Feb 2024 10:28:13 +0000 Message-ID: <123873.1708338493@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.2 Daniil Dulov wrote: > The max length of volume->vid value is 20 characters. > So increase idbuf[] size up to 20 to avoid overflow. Is that 20 including the NUL? If not, I'd increase it to 24 (it's likely to get rounded up to a multiple of 4 or 8 by the compiler). David