From nobody Sun Feb 8 07:58:10 2026 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 C7FAF50276 for ; Sat, 20 Dec 2025 05:45:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766209554; cv=none; b=ewvqfxWlPfbt3JcNQ4rC1eTeX4903NwTnj9VZI4n7rN3qHwQQQZnaF4jR0YQ8ydPsJe3k+AkCjcVj2BAC3lvXmdT3f1xnvWU0rZ5TqgJC0N5bHC7K+BL212Aw+Xo/JAWl7KRhQtX2E1lW43faeqqgeSY1uT8MXTnzuahvniCILI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766209554; c=relaxed/simple; bh=aU2KMpgOYXcm8qLsqFcw9MgdnTg37YuFpLcrKsQtiD4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=X4aBlubYVqPaYj183jKvqfIedozNv9fYc+QqELcghye5U5ocUPv3Ne7l+a/MsuLapA2Bx79N7HGs2tC2rsPW3kaJv4MbIYDbCzftIisbqM77JH9wD0vWEYKTJZfYHp5mvQXnnEEfG0am78TWYbgnqEa08Jmhzu64xctLah0WH/8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (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=IZWkl4TP; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="IZWkl4TP" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=BPL4DepoUCsz5HkHghlcAdF/Beny2GuzQbI65YwjhIc=; b=IZWkl4TP0Gf0Lizn8p/TBFMoH9 VCSYmOsQHSbjIOio70SfkBWXCPcfs5QiYyuNNjrgR7hYNDiXdbKHmQGKCQ/lb3uon2O6PzE3tKe5r K/NusNgsaYLTFnuAcPFZJBy8ad1J5M3pRhRUJmfCkndKopq020gZ3Pl9rF6U13ekBu2UfY2oiae4g Jh/ExDTK6qgCSWIwl9qcKWY9qJ1YYp2kZekfZ9xOSDA4ALkN0XvSGq6g6lHmtT8adDSRWTDiLiOBq wMKE9REaU/QpgtYLglfzMb1+eqgbPFpntsydk67fMTA4SWOpbuSR9h0ACiE9dPagOB180D+sbhPsh BwOMbyEQ==; Received: from [50.53.43.113] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.98.2 #2 (Red Hat Linux)) id 1vWpmf-0000000BKqg-44g7; Sat, 20 Dec 2025 05:45:42 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Stefani Seibold , Andrew Morton , Vlastimil Babka Subject: [PATCH] kfifo: fix kmalloc_array_node() argument order Date: Fri, 19 Dec 2025 21:45:41 -0800 Message-ID: <20251220054541.2295599-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.52.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" To be consistent, pass the kmalloc_array_node() parameters in the order (number_of_elements, element_size). Since only the product of the two values is used, this is not a bug fix. Closes: https://bugzilla.kernel.org/show_bug.cgi?id=3D216015 Signed-off-by: Randy Dunlap --- Cc: Stefani Seibold Cc: Andrew Morton Cc: Vlastimil Babka --- lib/kfifo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20251219.orig/lib/kfifo.c +++ linux-next-20251219/lib/kfifo.c @@ -41,7 +41,7 @@ int __kfifo_alloc_node(struct __kfifo *f return -EINVAL; } =20 - fifo->data =3D kmalloc_array_node(esize, size, gfp_mask, node); + fifo->data =3D kmalloc_array_node(size, esize, gfp_mask, node); =20 if (!fifo->data) { fifo->mask =3D 0;