Message ID | 92282c72-5849-70d0-1553-548130fba2bd@fortanix.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-sgx-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A69FC433B4 for <linux-sgx@archiver.kernel.org>; Mon, 12 Apr 2021 09:07:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 310B7613B1 for <linux-sgx@archiver.kernel.org>; Mon, 12 Apr 2021 09:07:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239647AbhDLJH4 (ORCPT <rfc822;linux-sgx@archiver.kernel.org>); Mon, 12 Apr 2021 05:07:56 -0400 Received: from mail-bn7nam10on2137.outbound.protection.outlook.com ([40.107.92.137]:11584 "EHLO NAM10-BN7-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S240380AbhDLJFw (ORCPT <rfc822;linux-sgx@vger.kernel.org>); Mon, 12 Apr 2021 05:05:52 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kNnIZFtZfAlmJwcY60gM5zGHEkdJgsMbPccWu5Ko/BdwbZxGRYyJkzu1Z+jVU4FvBws7zPanPLo0u8VHRXwVtvIxJIRIo+fAL2bFJn4gFbZenYqY8HZKp/xRp+5kkk0GL646NjUq0+h9oYDls7nGyYTTc6HeV+4JB1XRdjB3WpTgCz2Uqsr8Pyw2/h0+zdy5TJF3rjFXVETM4R50brLf5hnaKiyGNWrMgIa7z1dowYBLym2kbdg/90fNe2AETeWLrr15JgWpo6Hgdon5kRAYDM0tzGeGNusOk/PLqryjt6WHvuvJ0Z5UWSH1Hp5prKDXeZChU3IG4lHBZEqoFqn0rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WJWBrtQh9aORyFSZJY28iwxDc+kXJPC8VEn56mdRRkA=; b=F2oe4qVRjDhg9Mwm3lYNdZnBkaywbln26AZOulJ4eKa+2atBZlIfo1S7pmfqR9pSLZ8ywp2+zZVqFkC9ujeDR7721EdRDuSGF5smbkrwA7oIi5noTQx7R5zHIgw633YbIoG0kcT2KvOr3swE1m8bl7k63kYpCQChTP8t3zEvWLBnljcEYfHURmxXQEM+XYPd7y130WNKGAnw9QVYeeLttk3ITA0YOZ28EzpaFkL7Ic7hL8va/vRU40Ogbd5+I8fg4xK9EAmkLATTwFSAtqBD3IwOjFg12cw4PneZcDBBCGQiEjv2lxCo88vQQn0ZI4SpMowHLdh74Tev8tII+p11Ig== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fortanix.com; dmarc=pass action=none header.from=fortanix.com; dkim=pass header.d=fortanix.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fortanix.onmicrosoft.com; s=selector2-fortanix-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WJWBrtQh9aORyFSZJY28iwxDc+kXJPC8VEn56mdRRkA=; b=TD1Dev/03+19oKHqvjeDQ+bFNe4jiCyeZodB6mFcGeropcg6zNwvCE5iKgBCRFYHU1zFP0cByRiKVLnIqFQSt868229UjwrVjmWiQnfV+5eFXYVMAhKu5auIQfX+gegwR2z8OxzthPJFXWJ6TimOlidBitkpR4iE7oOdXBZSaSA= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=fortanix.com; Received: from CY4PR11MB1783.namprd11.prod.outlook.com (2603:10b6:903:11d::20) by CY4PR11MB1384.namprd11.prod.outlook.com (2603:10b6:903:2c::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.21; Mon, 12 Apr 2021 09:05:01 +0000 Received: from CY4PR11MB1783.namprd11.prod.outlook.com ([fe80::f052:14fe:c2a9:5fb1]) by CY4PR11MB1783.namprd11.prod.outlook.com ([fe80::f052:14fe:c2a9:5fb1%3]) with mapi id 15.20.4020.022; Mon, 12 Apr 2021 09:05:01 +0000 From: Raoul Strackx <raoul.strackx@fortanix.com> Subject: [PATCH v2 2/3] x86/sgx: Fix compatibility issue with OPENSSL < 1.1.0 To: Jarkko Sakkinen <jarkko@kernel.org>, Dave Hansen <dave.hansen@linux.intel.com>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>, linux-sgx@vger.kernel.org, linux-kernel@vger.kernel.org References: <da7ae1e7-59b8-63db-a9f1-607b4e529639@fortanix.com> Autocrypt: addr=raoul.strackx@fortanix.com; keydata= LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCgptUUlOQkYyb2lmOEJFQURN UkFMT1ZjRkYyTlQva1FsWTBtVnN3YlMrYi9WNzR1azZFcDdxenpoNHpHbEtSS1pzClplS0I4 WmpFT2h5Q2pZaExwdnJHTVh2cTV1bm5pWENIbG9BR1hZRm9rN0Q0SGd2Q0djYnlTYVRMQjds NHc4MFIKOStYUkp2SnJpMEdPSmVubjRnNUpIQU5RN2h5YWl5RlRI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wS2NWVGsxRnRLVGUyZHJ3Z25Bb1M2dkh4bTdRTWxJVwpaMTluS25GOFAyN0pFanU0ckdX Z1h3NkgxSmFKMTF4YVVkZG9qdk53T1RKRVcvb3Jhd2tuUUF1ZW5EYnpBR1Z1CkdMV0w3T2ov RGZyTFBBemNXV25GblV2VVc2NEFEWFNBOTh0SWNBY3lod05uY2lqYnNIUkFTQlJidkg5RFhJ c2wKaEwxMDArdzZNTWNMeFpNVmJ4UHBTWWVHaGp4SjdNUysyeGp3eDB4MWlMNmszZk5UNHNT Q3dZa0xRZjJlKzhxYwpFYjNTa0Q0VFR3RDQxUW85SFNuUlkwdnRqblNyZkwyQ3JhVmptOXhh MXhmNlJDQ3kvaXpKNU5TQTZZMXduT0U3Ck1IOHorcVFUM1NxMld0a0NzU1M5K1U2VU9OWmFK dFN5MWNvZ1ZhMDV1QWdRY0tHT3FvcHg3QWlmZUhIUFpqZnIKakVNaHJZQ3Q5WXgzR1VET0hs MnRObDJIOStqZC9BVjByMDRKUTNxSHRWM1Z5UTNxN0N1UTlCTTdnQzVpK1JleQpHSU14Zm0v a09GWTRLRUxOeVYrV01PK2lXRHpZS21tTUxnUkVXNitqZk5jMzhrYWhaQjI2RmJOZTh6QmxU cVpPCmhxYmNZR1ZZNW9Ec004YSthbkwyZDhmaStnPT0KPW9ZT0QKLS0tLS1FTkQgUEdQIFBV QkxJQyBLRVkgQkxPQ0stLS0tLQo= Message-ID: <92282c72-5849-70d0-1553-548130fba2bd@fortanix.com> Date: Mon, 12 Apr 2021 11:04:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 In-Reply-To: <da7ae1e7-59b8-63db-a9f1-607b4e529639@fortanix.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [81.164.43.210] X-ClientProxiedBy: AM0PR10CA0040.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:150::20) To CY4PR11MB1783.namprd11.prod.outlook.com (2603:10b6:903:11d::20) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.101] (81.164.43.210) by AM0PR10CA0040.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:150::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.17 via Frontend Transport; Mon, 12 Apr 2021 09:04:59 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7e93b891-217c-4247-3132-08d8fd920de4 X-MS-TrafficTypeDiagnostic: CY4PR11MB1384: X-Microsoft-Antispam-PRVS: <CY4PR11MB1384A3F903F5F34AA2AFEE748B709@CY4PR11MB1384.namprd11.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:1360; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RUcQfen7JDgN1mrV4c2OmpZsU06JmgAqSlR8Yw6jEG0919kNgCHeXsmWdCk2gqLZfPDmAGhPxJXTB43k2E/mfKcNwM616fio4Le5ySrodKaPHaP6W3cuAdOP3HT/Ql0FZ8v7RMXbQn2fbd5uLI4/FpOit18IB8HZrDV8zzZSdouQiHQmtf0QI0BgJDnx6KsTvw9CKYmgOc+jFxtoNLL4reEBk9s96uNtH+B15hq6NClrR/OZit4ksNWMiF7gjjSnWq3mqViV0IVhd5Pw++pzTUzZwAzO5cPYvBjEikp5ygGH/M6aitvq2R9z5ZPn00ClUc2baykTDCIAGhS4Gt7QOL5gn16uTXQhD3xlPRkg+fYf8R7S+BsQFAb3/y9715v+Sj80NpMOZNjkjVcId+dnvUVfphUwRSFKwEN1TI9HkgIC71N9QNduu2mkTXsR5uZ/ca0dxYcxOZR7TRqcGVHYjoonNIA0QJtfmYWiCkO98CYfkwC47cw8tg7hXj1PQ2+WsCQ5iLC+xgOMnbrT3JzFc2psM5ZWebxvamuZYo/6g7RrG8TjxcLeXITz5xxpomkBGZoRRNZh2BHvpZLwd+NWEgyqajoRwGm0TX+w5xPGfjDVeeDUD0gVYtAkgo1oH+/Somt6z2+bvInXKB9pIkg/KDz2XyRRLJvcXCA8iYlgqyB12DeCr0sPcTMRRur6FPPbnUa3wHI16HEJ34geitNf8OnAu28RpZ+kJfrgQG4MPKw= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY4PR11MB1783.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(346002)(39830400003)(376002)(136003)(396003)(366004)(26005)(66476007)(4744005)(6486002)(186003)(16526019)(66556008)(44832011)(5660300002)(2616005)(38350700002)(316002)(86362001)(6666004)(956004)(66946007)(52116002)(31686004)(8936002)(8676002)(110136005)(36756003)(16576012)(2906002)(83380400001)(478600001)(38100700002)(31696002)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?q?m4GRhxFK1groM1yPdezwUZ6hlNBMoe?= =?utf-8?q?SW236Ac0uQ7rPXbvUZQM1r3PqAJEbaGTfS1Z2yiieU+0NEmwicF3arAnm8v3hSXTh?= =?utf-8?q?hrakeVTaFUacs7vxMDgw9dgFuZ6TTr69LoiuehtWLLZjVlPYPzBMj3UkL9MJqDev7?= =?utf-8?q?WciX8sJVjWc4PFlGQoGacX9SYtLRmjPv3PBaPP3zxvHSZeVOIGbOpilUrfvt+/jek?= =?utf-8?q?xPo5JQKAJSBWgFD8k4sXjuANQt3vAYZt9fPfxpf5ETPrISQyPSKKONouNs/EUAZAw?= =?utf-8?q?DCp8T6vnhesP1AK82D68Qv3rAXlgk42eja9IyJbG/OSGbfKzjQMyel7/lFFX1TLy+?= =?utf-8?q?GB9WZXcwtgLZsKAtJgvQWzcH/0RGZ7qZFUV3q+G2Aa5wFka73MvCGlWVSowkUYW+Y?= =?utf-8?q?/4Op1lW9yzXEGOT8SFhM1PNBuy5A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ortanix.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7e93b891-217c-4247-3132-08d8fd920de4 X-MS-Exchange-CrossTenant-AuthSource: CY4PR11MB1783.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2021 09:05:01.4995 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: de7becae-4883-43e8-82c7-7dbdbb988ae6 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: lLpcjU9NpimaF4e0jb4yQWYBwCay6QHYjbGKeW2Fve0mnhoJ9hYKwKMc5KHDP52L4SaNw1JytSiT2i7f2FqqEnODusFE4g7br2VCNvYusOM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR11MB1384 Precedence: bulk List-ID: <linux-sgx.vger.kernel.org> X-Mailing-List: linux-sgx@vger.kernel.org |
Series |
x86/sgx: eextend ioctl
|
expand
|
diff --git a/tools/testing/selftests/sgx/sigstruct.c b/tools/testing/selftests/sgx/sigstruct.c index dee7a3d..aac9cbc 100644 --- a/tools/testing/selftests/sgx/sigstruct.c +++ b/tools/testing/selftests/sgx/sigstruct.c @@ -128,8 +128,11 @@ static bool check_crypto_errors(void) static inline const BIGNUM *get_modulus(RSA *key) { const BIGNUM *n; - +#if OPENSSL_VERSION_NUMBER >= 0x10100000L RSA_get0_key(key, &n, NULL, NULL); +#else + n = key->n; +#endif return n; }
The `RSA_get0_key` function only got introduced in OpenSSL 1.1.0. This makes compilation fail with older versions. Signed-off-by: Raoul Strackx <raoul.strackx@fortanix.com> --- tools/testing/selftests/sgx/sigstruct.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)