From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.openvz.org (mail.openvz.org [69.168.225.77]) by lore.virtuozzo.com (Postfix) with ESMTPS id 698F48002A for ; Thu, 19 Nov 2026 12:05:01 +0000 (UTC) Received: from mail.openvz.org (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AJC3oPt023705; Thu, 19 Nov 2026 15:03:51 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AJC3oPt023705 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz.org; s=default; t=1795089832; bh=DvcgBf+rqZKojlPP/RJVXO+szKKpGsElzmzeyy05XYI=; h=From:To:Date:In-Reply-To:References:Cc:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe; b=QCAgigigqrkNBWfzERlWJbrcqRcf2usTxbUuSbeWr1vxGmouBR0IEcqAo0FRwyl1A mLdGLgsOajLLFiTS3cDLOxIVvG37uIXRqhhGHdeD6vBlvFH96xD98jmfS0LDvfGC5G ICvC+Rm2oaC1m5vcRvhgnTclup1O9Gq8vuD3SctZuDmURsI1Zd9Yep7ohFlMG0iBrF j5b2XoZlp//kwtprlTg7h+rcECrXtIc95JGMykc2D7pYhG/9Ld4mDZcr+II9hCDubf xT4/1OEeUsCYrFWie5VGeI2mk4ydoQf/2Y+6yYusOgkyV/pmAlZA5ZyRicc53wl+ns fIlG+4vIMjlIw== Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AJC3b3l023620 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Thu, 19 Nov 2026 15:03:37 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AJC3b3l023620 Authentication-Results: mail.openvz.org; dkim=pass (2048-bit key) header.d=openvz.org header.i=@openvz.org header.b="TQ04XSKk" Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-c506f007ae2so213387866b.1 for ; Thu, 19 Nov 2026 04:03:37 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErHrJFgMgW8XpFjoTZ69Nmihnxkx2qN6jy50WyLEfA0o0pRrzzHRuIW5mPty8L2c913W/Yrgbw==@openvz.org X-Gm-Message-State: APuU4Z8oXEOl/VoyDyGN5L2G3cXCjQAbBvXRDnoyQgxcsZL8JFx3Peur NbZ1zm5UL3mpQOlYAkFrle3lvg1ADtK8Ybg54ICWXzSYUqMkORi1stGWFNQtqxYaOyvcrKb/dKg 2Reu4UulGtN7knBnUpMfGBsz+dBdNtiCM0PFi/4LbIK2Gc5XuOljEiQ== X-Gm-Gg: AYBFou0qcv8tPSMipni5kvrPV+n/gbTEGk4Omovkt+Nzb9L2raC4hdiCQBAfLdhGHiG oe5q9vu88iPlHlE9YKFhzrY1VxaNZJ9x6NyRbeYK4hS2H3iOfBr1Dh7BIJNHMJ0sF0qwxhW9EmZ nwv/txrHHy8XZqSuIb0QudRG77TQmI+ONZT4Csmo8OJzKtvwY3i+9a4vWQ10PTqBx7A216+lPCd qQYAMfLEBt3xZVkZO1qoPg0X2UUlnfUlfmxcMzuT9/fCCxCUCo6uN+yHOo02iZDcX9uQ3sv7c8W cZv3ZDGOHQ== X-Received: by 2002:a17:906:a947:b0:c51:268c:a129 with SMTP id a640c23a62f3a-c51268cb47dmr206832166b.25.1795089817027; Thu, 19 Nov 2026 04:03:37 -0800 (PST) X-Received: by 2002:a17:906:a947:b0:c51:268c:a129 with SMTP id a640c23a62f3a-c51268cb47dmr206827866b.25.1795089816535; Thu, 19 Nov 2026 04:03:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1795089816; cv=none; d=google.com; s=arc-20260327; b=h4sQ5UmZAE7MOjw6ePa7Hz9f4PsoCXZX4yymOEQ0PCGr7MHfDXO6q+5jZQtRWIwiD2 pE7qNC1lMZWvNg9E0AIzZY55/fn5rVjnybyZEmLP1ly9N5F6yahmVTZa/oCzHPQvENlI 4drbuudD/f3pbTtPJH9vpuM7ZuJ3sG61tHcIsHKHUg2Dd28+oJp82COmsfvJTCgPJiAx VthjM51ZwoejZiFsQdX85wuulP3XGqNRY2WpoeF/cVAgpE13CoRIpF1XBW+gf+Ny+uhI cZu0X9PcDVN9LHi101Zjv3FKYzLN5xXi1v/1HbfJpyROUX1RS3hjZ7a+/aNc1FI52xs8 l59w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=mkCZj9nkYdqiU1NtwZVKQgqhVq1wzMuLN3qk3KFwiEo=; fh=p+YBBpXvMnfCiigGx3s57J7g44bbBb+KVy5k5h8ilcI=; b=Nl9Jd5AExOyfPd9wEarIL5Zs1lu9gthoyFJGk2RVPqfGX3LFSVmrrgfjOdgZqFhAOT 2G+lJJ7fHOYmrZhPNmMOZPKztAcufbL5gMZefH0rukt9gmvBqqPb8QhJ/y5RwrzU8DNg an0j2ioh7vOWl/ys1jNZVY57KQdqGSXCKVbeH6iEqddY3eiqypc+I9PIFchOFuBkMNJm m6c0psfgn+ADo95QbXMs/tFbWf7/nG3GS16jzR4ojuKTNnrvU2Kq7wQXdwPUeZWXDsv6 fJiBHS0ghWdvP+D0ldRDSWThV6AiWCXbvtF+y8Aqlt3QfpploXX0sDq438VARut/Ypkr wU0A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@openvz.org header.s=google header.b=TQ04XSKk; spf=softfail (google.com: domain of transitioning den@openvz.org does not designate 2a06:5b06:b600:300:989f:a206:d03d:c3d5 as permitted sender) smtp.mailfrom=den@openvz.org; dara=neutral header.i=@openvz.org Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a640c23a62f3a-c510cbd113bsor209564666b.14.2026.11.19.04.03.36 for (Google Transport Security); Thu, 19 Nov 2026 04:03:36 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning den@openvz.org does not designate 2a06:5b06:b600:300:989f:a206:d03d:c3d5 as permitted sender) client-ip=2a06:5b06:b600:300:989f:a206:d03d:c3d5; Authentication-Results: mx.google.com; dkim=pass header.i=@openvz.org header.s=google header.b=TQ04XSKk; spf=softfail (google.com: domain of transitioning den@openvz.org does not designate 2a06:5b06:b600:300:989f:a206:d03d:c3d5 as permitted sender) smtp.mailfrom=den@openvz.org; dara=neutral header.i=@openvz.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz.org; s=google; t=1795089816; x=1795694616; darn=openvz.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=mkCZj9nkYdqiU1NtwZVKQgqhVq1wzMuLN3qk3KFwiEo=; b=TQ04XSKkFb7rAUKVwU/7/UqeY1/GvLAYlGlcA/6kym+K6hu+yFQwfpMfiSn08UDdYV LKugVDBP1P8lpsQQhm1PXCCtJEWxvFCdssrEWrhq0FpDEYLo3Pi2bVtLHxMQHd0X1neC sr+gU6/BuR4SQybbIGU+RxMzCrc/8Y0AMCtlIryBJz2tVQR9KzTj4OpRQ/MlhdLHvC40 +HJqzdWsdubqAD8c8TIWShrdJcjncf1L73Fq/aRxCo9sz6Hulk6nToVGchmKRtujmCXE ukQrrPOvsnylYuIpDEt5gDqzqhoZJqEnUbs1CRWJLgiHCVeTQyL22llmOk4iv1t7RReD iO5w== X-Forwarded-Encrypted: i=1; AL+hErHgoSChiLb8gSW3DKtXIvMH72hxtL8s9NMLRpqQu2aVMRX48yRz7H+GY5iYihuSP3UhALKHpg==@openvz.org X-Received: by 2002:a17:907:1ca6:b0:c50:ac4e:3770 with SMTP id a640c23a62f3a-c510e516a2dmr565357266b.34.1795089815950; Thu, 19 Nov 2026 04:03:35 -0800 (PST) Received: from artemis.sw.ru ([2a06:5b06:b600:300:989f:a206:d03d:c3d5]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4a65541f3f7sm11036112f8f.24.2026.11.19.04.03.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Nov 2026 04:03:35 -0800 (PST) From: "Denis V. Lunev" To: ptikhomirov@virtuozzo.com, vasileios.almpanis@virtuozzo.com Date: Thu, 19 Nov 2026 13:03:24 +0100 Message-ID: <20261119120325.792064-8-den@openvz.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261119120325.792064-1-den@openvz.org> References: <20261119120325.792064-1-den@openvz.org> MIME-Version: 1.0 X-OZ-Fwd: true Cc: devel@openvz.org Subject: [Devel] [PATCH hci-8.2 7/8] ms/ext4: fix ext4_tune_sb_params padding X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org From: Arnd Bergmann The padding at the end of struct ext4_tune_sb_params is architecture specific and in particular is different between x86-32 and x86-64, since the __u64 member only enforces struct alignment on the latter. This shows up as a new warning when test-building the headers with -Wpadded: include/linux/ext4.h:144:1: error: padding struct size to alignment boundary with 4 bytes [-Werror=padded] All members inside the structure are naturally aligned, so the only difference here is the amount of padding at the end. Make the padding explicit, to have a consistent sizeof(struct ext4_tune_sb_params) of 232 on all architectures and avoid adding compat ioctl handling for EXT4_IOC_GET_TUNE_SB_PARAM/EXT4_IOC_SET_TUNE_SB_PARAM. This is an ABI break on x86-32 but hopefully this can go into 6.18.y early enough as a fixup so no actual users will be affected. Alternatively, the kernel could handle the ioctl commands for both sizes (232 and 228 bytes) on all architectures. Fixes: 04a91570ac67 ("ext4: implemet new ioctls to set and get superblock parameters") Signed-off-by: Arnd Bergmann Reviewed-by: Jan Kara Link: https://patch.msgid.link/20251204101914.1037148-1-arnd@kernel.org Signed-off-by: Theodore Ts'o Cc: stable@kernel.org (cherry picked from commit cd16edba1c6a24af138e1a5ded2711231fffa99f) https://virtuozzo.atlassian.net/browse/VSTOR-155988 Feature: fix ms/ext4 Signed-off-by: Denis V. Lunev --- include/uapi/linux/ext4.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/ext4.h b/include/uapi/linux/ext4.h index ced126504173..e62be1d49b78 100644 --- a/include/uapi/linux/ext4.h +++ b/include/uapi/linux/ext4.h @@ -159,7 +159,7 @@ struct ext4_tune_sb_params { __u32 clear_feature_incompat_mask; __u32 clear_feature_ro_compat_mask; __u8 mount_opts[64]; - __u8 pad[64]; + __u8 pad[68]; }; #define EXT4_TUNE_FL_ERRORS_BEHAVIOR 0x00000001 -- 2.55.0 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel