Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp216956rdh; Mon, 18 Dec 2023 17:29:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IE0JCHM3w4KBnq951g4KrfEF2tGomDUJLZtkezlpBvK5BwPG+Hme4o4A5+mPUA/4HgNfy/9 X-Received: by 2002:a05:6512:3b9f:b0:50e:35a3:a90d with SMTP id g31-20020a0565123b9f00b0050e35a3a90dmr2224014lfv.36.1702949376870; Mon, 18 Dec 2023 17:29:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702949376; cv=none; d=google.com; s=arc-20160816; b=I8LnzGJLSkgS2CpSF8z47svkr5BxOvXh23vtH28tSC6YuKwII6W3q2jypaAoMRLgtl saKIu24C9mdJQxOYXVYqqTnKkREh/9x04TlUR6cjq7O60mD4kleOmQ866TKV3Oe26iTs a1yufGb+rfu5zkC74U96B9f/x1/xaaxLTlraUBwHZNlK5hFWIpZJ8JdlLk3w6Mg8192O odKYymHmDosGP7IuH95HZla+MVC8bzTUw9suqGpwbSjClI+jBs8m8BYSQRtakY9x77ST TGra+LFxgxq4n/FiChpEqnIN2N0WzlEbbTjXCptU9tEHm5S5Q9JiThs/ZmSC01Ke0ic1 l0aA== ARC-Message-Signature: i=1; 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:dkim-signature:date; bh=J+2lN3dxvu7LEkdLrAg6MbL3/i/2eiwYJm2xRVYEtng=; fh=b4yDpRzQZjxnD1UgrAWHsnqbJi+dpOTTrJVVaKbGA28=; b=qHgA0gX3fjsp3WZttFgaey+B90mgssSdwDQalVa6JgR/99T0qyq1aQDf6pBvXjurO7 zfvSXNcFW66AeI7AWMlrTlUDrw95fbNYoLzoUhCZQ0FNRn13iLNb/gInW1LnIaGRJ6qD s7nwRrmnl5vcj5KXFWo0tQXKaVpvPBZkcFSOkE3WEO+4kUc19IyroP9QCrLf0rwaPVxC QQ7Mss6oRrjmxZCTVi2TzDOUU14P+lPAY6hitPaqcvbcca5zvBko6PvkEYsdb5plsnNB UE2BsGqwX589CGxcN+O4amVDCp6JgspoTWUJ2IEOMirHyk4oMS1yLS3tPcoOmu64gO84 5G1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="D8qiBgm/"; spf=pass (google.com: domain of linux-kernel+bounces-4558-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4558-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a26-20020a1709063a5a00b00a1fa4f852aesi7622396ejf.654.2023.12.18.17.29.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 17:29:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4558-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=@linux.dev header.s=key1 header.b="D8qiBgm/"; spf=pass (google.com: domain of linux-kernel+bounces-4558-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4558-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 9AAEA1F24173 for ; Tue, 19 Dec 2023 01:29:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3BE717D9; Tue, 19 Dec 2023 01:29:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="D8qiBgm/" X-Original-To: linux-kernel@vger.kernel.org Received: from out-182.mta0.migadu.com (out-182.mta0.migadu.com [91.218.175.182]) (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 60ACA15AC for ; Tue, 19 Dec 2023 01:29:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Mon, 18 Dec 2023 20:29:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1702949363; 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=J+2lN3dxvu7LEkdLrAg6MbL3/i/2eiwYJm2xRVYEtng=; b=D8qiBgm/y4+/+VFA7Y6CB9YD5OTNXu73nKS+7ONO4Dn4ru4YR4iPT9ppe2QTOaThNAoBGU c1oSF5bkGyho/w4bex0/mNUN6OcfrJkfT/zAYNATrLlllkhjsLUFFZkRoZkGfkb//Frx1a oSrF4aWWGgyXMjvp2COreukKF6SfIgA= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: "Gustavo A. R. Silva" Cc: Brian Foster , linux-bcachefs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH][next] bcachefs: Use array_size() in call to copy_from_user() Message-ID: <20231219012919.cpxuybc5mfozlpvp@moria.home.lan> References: 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: X-Migadu-Flow: FLOW_OUT On Mon, Dec 18, 2023 at 06:26:26PM -0600, Gustavo A. R. Silva wrote: > Use array_size() helper, instead of the open-coded version in > call to copy_from_user(). > > Signed-off-by: Gustavo A. R. Silva Applied