Message ID | 20250429-conversions-modify_ldt-v9-0-97e4664c25c5@suse.com |
---|---|
Headers | show
Return-Path: <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=lists.linux.it header.i=@lists.linux.it header.a=rsa-sha256 header.s=picard header.b=dDAJuyRU; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=suse.com header.i=@suse.com header.a=rsa-sha256 header.s=google header.b=dWREBnBP; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=patchwork.ozlabs.org) Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Zmxl82z5wz1yMf for <incoming@patchwork.ozlabs.org>; Tue, 29 Apr 2025 20:44:20 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.linux.it; i=@lists.linux.it; q=dns/txt; s=picard; t=1745923474; h=date : message-id : mime-version : to : subject : list-id : list-unsubscribe : list-archive : list-post : list-help : list-subscribe : from : reply-to : cc : content-type : content-transfer-encoding : sender : from; bh=JQAS0NAXNlm78CXXUULdGEw/flpCxxTHW0/+hm1hbxQ=; b=dDAJuyRUCMqzB67/5cOA+NbJdsyDhKWcnmaNwpUbbsK7JoqOKx/x2w88FldmgTcaJh/4l K3VqU3v4kKmqWvagnM1zGGtR0a8D92eTB85pMy2UraLge1GbK0r7p+XfnGGnFE+lbXjSrul WTOVQTjdY/9q49Un2Re1AVxdXDnTn64= Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id E03913CBC0E for <incoming@patchwork.ozlabs.org>; Tue, 29 Apr 2025 12:44:34 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [217.194.8.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 635133C82FB for <ltp@lists.linux.it>; Tue, 29 Apr 2025 12:44:31 +0200 (CEST) Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-7.smtp.seeweb.it (Postfix) with ESMTPS id 2DA412000FE for <ltp@lists.linux.it>; Tue, 29 Apr 2025 12:44:30 +0200 (CEST) Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5f62ef3c383so10855817a12.2 for <ltp@lists.linux.it>; Tue, 29 Apr 2025 03:44:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1745923469; x=1746528269; darn=lists.linux.it; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=PhhPBVxJF1VptTm/Bo6/FNuxPoXuKFKfq+NmvwpjmXY=; b=dWREBnBPtn08K2mFV1zzQW0AI9JJYHEzA1X9KZRkTVAqRpVmi8pNuW2BsO8F1f7Uay fdt6o/DwdyZrQAj5x4bFNR7a7daBsCg4+UKC1h3RGSwoszck2cllLpVQh9MbIUbaEby6 WVIAsooM+Nk2lkIOA6tN1pWQQV9SlcR19XZJSyRtNhT6jEbZTxoEyCqTlgNAghZIpZMk RGVXtR8ufvgd0EuxLu78oEY7NjsP3vk90Qep/mTBXwv0OlLxqLixBL+dWL86gJn7I16W kNb5T2tQn+/20wGK4PJfVpdz2hYHeYGxd1Am33oxMV5wonzPbrxGANLtl7wwS38+B7Mc ufiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745923469; x=1746528269; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PhhPBVxJF1VptTm/Bo6/FNuxPoXuKFKfq+NmvwpjmXY=; b=CfXhI8kXW5RPyMm7JaUfgNpImhMGl3XFfnC1gI0Rg0Drb/uv6Q1SUWG0EiyNbGzNAK NUNW07hpK9GPmKPfzU1eziUtd5/uI9CWKEW6DL+eRE48z7HamDAbhYx8eK19bk/1uJDE EUNUQZvFs59gbUOkRZO2Cjq9SVhwt5ZTCb1GsqbCdfb2SJfVXkctoAbw/kKwvvNFu8dP U/We3JrBSQR9HQ1icoi+afF1XcywwO5veDSPDXTWVKKicmb8tJO6CX4Q4HUX2EBc6lnw Ayfqz3fB3RHPYShae6HX+R45qaOYK2pJqM/Zqzktvxbc6w+k0ipyjb6vNLri12PNTB9I mH8w== X-Gm-Message-State: AOJu0YxXkADdgOvRO36qEi33wUh0kbr6ngmZwXOpwU0bH0fDGaocnYX/ jKOyjNoxOv7/PGPwEyxPsa6XDVvAEE3ajK+R+MHR0U+6292LWHSV4czJS9Y6nXB0we+jnu0M02k Z X-Gm-Gg: ASbGncsyLJH5n8wbaXf59fbU6V8+YE8nl/rQyw1DTSjLs17ZqzktUWHKCTivQlS5psD mFcyrqGs0E6jaMaeEGvqUuf37le9W6/8bwF8YLqnIjrkxOhJL1Vq/qYkNR0lc9qTCmRHSe2Jvts wDz57AdCDLnZ5XKh4hJFECgUdCi7OvgmofoGNU2uSwVa6NEK/4zdBdi/LI+83Dgnl1I3b+Vv5RN bZqIzNR+6sxI+PjZVvMDqfopWC2gLzUlHrtJN4+USz6q8BgPeCYvwPnPkXu4Vg+taX0YVNa9z9N r42K1+Fxf4RBRkj4bmaEElGUVO/L1w== X-Google-Smtp-Source: AGHT+IFh7LQcIQAJZUa3FG2is2gJiFOKwuVEmhmR1aZFM2tl1gJz1OaiRUMcKfIrR1sdNVDDKIlhFg== X-Received: by 2002:a17:907:3d4e:b0:ace:3c0b:1951 with SMTP id a640c23a62f3a-ace84aad6e5mr1210701566b.46.1745923469261; Tue, 29 Apr 2025 03:44:29 -0700 (PDT) Received: from localhost ([179.228.213.210]) by smtp.gmail.com with UTF8SMTPSA id 98e67ed59e1d1-309f77521cfsm8988672a91.14.2025.04.29.03.44.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Apr 2025 03:44:28 -0700 (PDT) Date: Tue, 29 Apr 2025 07:44:22 -0300 Message-Id: <20250429-conversions-modify_ldt-v9-0-97e4664c25c5@suse.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAIatEGgC/43Qy0rFMBAG4Fc5ZG0k94sr30NEcpnagG0lqcXDo e9ucjaGQtHlwJ9vJv8NFcgJCnq63FCGLZW0zHWwDxcURje/A06xzogRJglnAodl3iC3WMHTEtN wffuIKzZUcWYZ44MCVB9/ZhjS9x1+ea2zdwWwz24OY+MmV1bILTimsi75ej9goy3+566NYoJNV NGwgRKtzHP5KvAYlgm1VRvrFX2qsKowS3QUsV4dyEHhvWJOFV6VQXkFQIOlQhwU8T9FVMVJAO1 N/ZVzB0V2Cqenimy3RAWOCkutVAdF/SqCsFNFtV5AeAJMG03goOheOW9XVyV48FxbroiTB8X0y nkvpiraR+8oMYMSfS/7vv8Arctuwb4CAAA= X-Change-ID: 20250324-conversions-modify_ldt-816329223f6e To: Linux Test Project <ltp@lists.linux.it> X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3621; i=rbm@suse.com; h=from:subject:message-id; bh=i/hN3pUArrGrWP81w6Y9ZV2C2tdldZKYv/v1xAtqsyc=; b=owEBbQKS/ZANAwAIAckLinxjhlimAcsmYgBoEK2I04FRlKodmlCWMF2Xw9MV29uf5C3PyXabQ 9V3NFF8ESSJAjMEAAEIAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCaBCtiAAKCRDJC4p8Y4ZY pkLRD/0Xe9G4ZPw54MTSZn5bDvp9wz2ZfPEQR2xh4o7v5m4lHOUPZ1XnvpMVLI1pUAfXVYEGWua +Wjh0LNhk5+ObCCRlIoXAcpvi0qjBlRtldRXm/h09fBZcvJbSyzjQ+GilNa5LpDIUBt7U/vPeOk XgMPrQizrTsUrTOGXezHZ+RtBv19RcU4WDSpavqkWYJSmBGq9G2Vo2VsK5fVGj6bKI8js8GdIsU nmAMPI+OEc7rNCuxXt9Z0XsH5zrGhfIH6w2MwbMcMRRhqwjiesUGVvt3YtSxxjZGTXYaSKYmc2q TG2KOo8poT3C+al8Y18L8l7JGojhnka1s6vtaHrsMkmD6voJD7P9VAkxzMmFI+jpCMY7SKvUcyw 0wD5t2AtNw90OYmWWdzRNziUimCAu74OFtfv6VrmK5PbNHZh653W5OYAJUHlHQsdBtPYYZrQqu4 Y5FL8cKkDVhhCiZdMhQ4o4buQE3tcY5lUQgTnrdOCAuLzRy8GtL+h2mLDx0M3snSECTeKAa2Gg9 35YGVJXZ+SdtcbI6tkRxt4GglZuC359GtKIzm/PesFFc02J+3efkMYH/sVDLWIVFq3sF08raI2L Wbjs0eGGF8Ct1+S0iwc4IZ0qaU/KRuX+EeoVSBC1dg0MfR8VJtHRd8fhTceJjx1hGHTmooeh3Ow 8MxtB9G/Sqi7EAw== X-Developer-Key: i=rbm@suse.com; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=disabled version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on in-7.smtp.seeweb.it X-Virus-Scanned: clamav-milter 1.0.7 at in-7.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH v9 0/3] syscalls/modify_ldt: Refactor into new API X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project <ltp.lists.linux.it> List-Unsubscribe: <https://lists.linux.it/options/ltp>, <mailto:ltp-request@lists.linux.it?subject=unsubscribe> List-Archive: <http://lists.linux.it/pipermail/ltp/> List-Post: <mailto:ltp@lists.linux.it> List-Help: <mailto:ltp-request@lists.linux.it?subject=help> List-Subscribe: <https://lists.linux.it/listinfo/ltp>, <mailto:ltp-request@lists.linux.it?subject=subscribe> From: =?utf-8?q?Ricardo_B=2E_Marli=C3=A8re_via_ltp?= <ltp@lists.linux.it> Reply-To: =?utf-8?q?Ricardo_B=2E_Marli=C3=A8re?= <rbm@suse.com> Cc: =?utf-8?q?Ricardo_B=2E_Marli=C3=A8re?= <rbm@suse.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it> |
Series |
syscalls/modify_ldt: Refactor into new API
|
expand
|
Hi! I've pushed the patchset with the change I've proposed to the tst_test structure in order to produce a correct metadata. Thanks.
Hello Cyril, On Tue May 6, 2025 at 6:44 AM -03, Cyril Hrubis wrote: > Hi! > I've pushed the patchset with the change I've proposed to the tst_test > structure in order to produce a correct metadata. Thanks. Thank you! A somewhat related one is this: https://lore.kernel.org/all/20250404-conversions-set_thread_area-v4-1-de663fa7dd9b@suse.com/ - rbm
Signed-off-by: Ricardo B. Marlière <rbm@suse.com> --- Changes in v9: - Fixed checkpatch warnings - Link to v8: https://lore.kernel.org/r/20250408-conversions-modify_ldt-v8-0-7bdba108f64a@suse.com Changes in v8: - Added else block to catch all other invalid ret values in safe_modify_ldt - Removed modify_ldt03 from runtest/syscalls - Made create_segment static inline void - Simplified modify_ldt02 as signal() is not needed - Link to v7: https://lore.kernel.org/r/20250407-conversions-modify_ldt-v7-0-cbeb379360a5@suse.com Changes in v7: - Added back the check for asm/ldt.h in configure.ac - Added back the fallback definition of struct user_desc - Link to v6: https://lore.kernel.org/r/20250402-conversions-modify_ldt-v6-0-2e4b0e27870e@suse.com Changes in v6: - Removed unnecessary includes - Made modify_ldt wrappers static inline - Used const struct user_desc *ptr instead of void *ptr in modify_ldt() - Fixed modify_ldt01 test description - Added explanation on removal of "asm/ldt.h" check in commit message - Removed run_child() in modify_ldt02 - instead, removed unused "int val" - Renamed "entry" to "invalid_entry" in modify_ldt01 - Link to v5: https://lore.kernel.org/r/20250331-conversions-modify_ldt-v5-0-fd6ea1491956@suse.com Changes in v5: - Removed unnecessary #error - Removed const specifier in cve-2015-3290.c - Improved modify_ldt02 test description - Added run_child() in modify_ldt02 - Removed unnecessary #include "lapi/ldt.h" in files that include common.h - Extended coverage in modify_ldt01 - Link to v4: https://lore.kernel.org/r/20250328-conversions-modify_ldt-v4-0-a5ee7b8d82aa@suse.com Changes in v4: - Re-added the asm/ldt.h include directive - Link to v3: https://lore.kernel.org/r/20250328-conversions-modify_ldt-v3-0-f6b6ee1c9144@suse.com Changes in v3: - Dropped the set_thread_area01 patch for a later series - Squashed modify_ldt03 commit into modify_ldt01 - Renamed struct tst_case to tcase - Removed fallback definition of struct user_desc - Link to v2: https://lore.kernel.org/r/20250327-conversions-modify_ldt-v2-0-2907d4d3f6c0@suse.com Changes in v2: - Also refactored set_thread_area01 - Merged simple tests (including the existing modify_ldt03) into modify_ldt01 instead of splitting it - Added SAFE_MODIFY_LDT() macro - Removed check to asm/ldt.h in configure.ac - Used tst_syscall() instead of syscall() in modify_ldt() @ lapi/ldt.h - Link to v1: https://lore.kernel.org/r/20250324-conversions-modify_ldt-v1-0-8d6d82f10768@suse.com --- Ricardo B. Marlière (3): syscalls/modify_ldt: Add lapi/ldt.h syscalls/modify_ldt02: Refactor into new API syscalls/modify_ldt01: Refactor into new API include/lapi/ldt.h | 59 +++++ runtest/syscalls | 1 - testcases/cve/cve-2015-3290.c | 26 +- testcases/cve/cve-2017-17053.c | 6 +- testcases/kernel/syscalls/fork/fork05.c | 5 +- testcases/kernel/syscalls/modify_ldt/.gitignore | 5 +- testcases/kernel/syscalls/modify_ldt/common.h | 30 +++ .../kernel/syscalls/modify_ldt/modify_ldt01.c | 264 +++++---------------- .../kernel/syscalls/modify_ldt/modify_ldt02.c | 215 ++++------------- .../kernel/syscalls/modify_ldt/modify_ldt03.c | 105 -------- 10 files changed, 193 insertions(+), 523 deletions(-) --- base-commit: ec7fb361e6d4781152a0c50f208945c0711bcf08 change-id: 20250324-conversions-modify_ldt-816329223f6e Best regards,