From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 BD60B3191B9; Wed, 3 Dec 2025 16:38:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764779911; cv=none; b=BtUgfr3DGlcpZQ3d8QX3vxHJqfB/FBXN+oH8iWZ0g/C2zgQHMDbzttHKd7T1JXvtshgHqqktBWQL/khL6ugEitOqI1seaeXb9TSwjPti4blUx5Ion1qDPHHbgC+ZhRH5GStjq67jR44/5jZ5Y7ORatzEpe82LkrqyplVcGnCsNA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764779911; c=relaxed/simple; bh=BPHt5wQ2YVMmxSQoax7ujd30Z/7sC20afkso1vZCpJs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WpGj0zxr15fDICdxda7VjyB/R/cRhEzAyGl/L4IBMW6xwzBH9niLwIr7Cg7UQ7fcNM0N3j1O8mO6v5kkgnF40SnaQ5/mnR5VrpdnXMxISJwefwSRnbRWPOTuCo6cE9355odIw6og9givRrDNsl4BcYPOZFnCTg/i7QjXjb0qaQk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RuW0COZm; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="RuW0COZm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D24C0C4CEF5; Wed, 3 Dec 2025 16:38:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1764779911; bh=BPHt5wQ2YVMmxSQoax7ujd30Z/7sC20afkso1vZCpJs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RuW0COZmpZXo27wM+ejrTgrVHQMDIqc6N3qD8QqltoguzWlgKNSmEtpuGbiP9aBXC MIMUB1Z2+rUyI0ucpCtvV/PK4vhz1F3ayWl6txlKluPmgmvEO5Mcdji41PtGHj05Ey DowayjxqulzsPhCsI8pIRyxiKfHJo8jmT83w1f7k= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Barry Song , Qinxin Xia , Jonathan Cameron , Marek Szyprowski Subject: [PATCH 6.1 400/568] dma-mapping: benchmark: Restore padding to ensure uABI remained consistent Date: Wed, 3 Dec 2025 16:26:42 +0100 Message-ID: <20251203152455.342308959@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251203152440.645416925@linuxfoundation.org> References: <20251203152440.645416925@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Qinxin Xia commit 23ee8a2563a0f24cf4964685ced23c32be444ab8 upstream. The padding field in the structure was previously reserved to maintain a stable interface for potential new fields, ensuring compatibility with user-space shared data structures. However,it was accidentally removed by tiantao in a prior commit, which may lead to incompatibility between user space and the kernel. This patch reinstates the padding to restore the original structure layout and preserve compatibility. Fixes: 8ddde07a3d28 ("dma-mapping: benchmark: extract a common header file for map_benchmark definition") Cc: stable@vger.kernel.org Acked-by: Barry Song Signed-off-by: Qinxin Xia Reported-by: Barry Song Closes: https://lore.kernel.org/lkml/CAGsJ_4waiZ2+NBJG+SCnbNk+nQ_ZF13_Q5FHJqZyxyJTcEop2A@mail.gmail.com/ Reviewed-by: Jonathan Cameron Signed-off-by: Marek Szyprowski Link: https://lore.kernel.org/r/20251028120900.2265511-2-xiaqinxin@huawei.com Signed-off-by: Greg Kroah-Hartman --- include/linux/map_benchmark.h | 1 + 1 file changed, 1 insertion(+) --- a/include/linux/map_benchmark.h +++ b/include/linux/map_benchmark.h @@ -27,5 +27,6 @@ struct map_benchmark { __u32 dma_dir; /* DMA data direction */ __u32 dma_trans_ns; /* time for DMA transmission in ns */ __u32 granule; /* how many PAGE_SIZE will do map/unmap once a time */ + __u8 expansion[76]; /* For future use */ }; #endif /* _KERNEL_DMA_BENCHMARK_H */