From patchwork Mon Apr 25 08:33:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andre Kempe X-Patchwork-Id: 35434 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b9e:b0:7d:cfb5:dc7c with SMTP id b30csp1745545pzh; Mon, 25 Apr 2022 01:34:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrdP+HjGU97u1adlxHm/WSjtYAIhUw1oRpXwk2kCmLfPKHQ5Tjf0SLBQ3uJFkjzbrWn3HO X-Received: by 2002:a05:6402:458:b0:418:78a4:ac3f with SMTP id p24-20020a056402045800b0041878a4ac3fmr17501769edw.196.1650875644612; Mon, 25 Apr 2022 01:34:04 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id p19-20020a170906141300b006ec0acfe30esi11145719ejc.877.2022.04.25.01.34.03; Mon, 25 Apr 2022 01:34:04 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=IJ6m2yry; dkim=neutral (body hash did not verify) header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=IJ6m2yry; arc=fail (body hash mismatch); spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id F32BE68B2BC; Mon, 25 Apr 2022 11:33:59 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR02-VE1-obe.outbound.protection.outlook.com (unknown [40.107.2.52]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BE52168B1FE for ; Mon, 25 Apr 2022 11:33:53 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+fxG9/0z7lkKdJqJXli1P9HAAy7v/eeEer6MjFXvgas=; b=IJ6m2yryGX1NEhKKoWDetZqHsyCgah30AFFkaFoaHDic49t/ka1ojxwIA5wWZYFzifRCT+dVCc2RhrpWE1RtJYjP6KIJj2GB0V0O0BTNKrIbg13kQFVeXr8syJOwqNZcLNxi1kuFWbYh+PH7LDKm4a9UyNidFR+zt0VUVA6grjI= Received: from DU2P251CA0003.EURP251.PROD.OUTLOOK.COM (2603:10a6:10:230::13) by AM5PR0801MB2113.eurprd08.prod.outlook.com (2603:10a6:203:2f::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.13; Mon, 25 Apr 2022 08:33:51 +0000 Received: from DB5EUR03FT044.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:230:cafe::cb) by DU2P251CA0003.outlook.office365.com (2603:10a6:10:230::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.21 via Frontend Transport; Mon, 25 Apr 2022 08:33:51 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT044.mail.protection.outlook.com (10.152.21.167) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.14 via Frontend Transport; Mon, 25 Apr 2022 08:33:51 +0000 Received: ("Tessian outbound 78191104f1b7:v118"); Mon, 25 Apr 2022 08:33:51 +0000 X-CR-MTA-TID: 64aa7808 Received: from 636e81232ed9.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 015F25CB-AF43-4084-AD3A-3F2935F05AAD.1; Mon, 25 Apr 2022 08:33:44 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 636e81232ed9.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 25 Apr 2022 08:33:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=irthwzmej0R5eRC1LKPdo084BB1mFV1o/lQTVyggKU/8J3vbjmlYIkbChAjRqOAc8vhN3DLFlnaFz42LEVssGrqmUpCzW0y+uSd/Kt32VDJOsLMqkaa3qMttmCqQ+D7MO3hz6+5ndfKWSWu2eN7VpyF75KXXKomEy4xzBa5COVeTw5CLetv8yRtKBV1hGXGL7goZJ5MBp6gsh1m/dUXYHYZqZp7a7x6blUEh2r38caerC9j32Cfx/5NQUTpRI7ZhNccxQaWybyWuVvdDAKbfu+HsxQSE1xoevOPUhLrQCGC3R8fS4fhk78KU/EHSvUDJLP1V8Bo7AyUczAdhK4QT4w== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+fxG9/0z7lkKdJqJXli1P9HAAy7v/eeEer6MjFXvgas=; b=MKy+YTgfdboRfchifxRWY4HNu4EEJaNX8TH6otlTlYR5epQBpuOG3F7yzgjUY5bQTUi3+m8w8Da20ILXybdYEBe4WSTGvCqKWP9BeGIbi84DD4L99mwnPmr9oz+Mjc5nt151mpd1avpuRii8EXkMnkEpb1/OnJ1QI4c0EywrsDm+HAvtlWUGB1IBn5I5so1godoXXFaHSl7N8JZP0rYZ8sBFOV5yJ8oUwIo4ugh0qaWVr0iCvVt2af/58t1FiMTczmWGqIPMafziJAqN+6e3O98VqTZrTcbnqHqX7z1yVJ0jHzjhiah/9l800k8h3+BBkHCY2LrE6xT2mSzl9Ib5OQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+fxG9/0z7lkKdJqJXli1P9HAAy7v/eeEer6MjFXvgas=; b=IJ6m2yryGX1NEhKKoWDetZqHsyCgah30AFFkaFoaHDic49t/ka1ojxwIA5wWZYFzifRCT+dVCc2RhrpWE1RtJYjP6KIJj2GB0V0O0BTNKrIbg13kQFVeXr8syJOwqNZcLNxi1kuFWbYh+PH7LDKm4a9UyNidFR+zt0VUVA6grjI= Received: from DBBPR08MB5547.eurprd08.prod.outlook.com (2603:10a6:10:d2::22) by AM6PR08MB4327.eurprd08.prod.outlook.com (2603:10a6:20b:ba::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.14; Mon, 25 Apr 2022 08:33:42 +0000 Received: from DBBPR08MB5547.eurprd08.prod.outlook.com ([fe80::6c56:5ad8:8fe9:b5fd]) by DBBPR08MB5547.eurprd08.prod.outlook.com ([fe80::6c56:5ad8:8fe9:b5fd%6]) with mapi id 15.20.5186.021; Mon, 25 Apr 2022 08:33:41 +0000 From: Andre Kempe To: "ffmpeg-devel@ffmpeg.org" Thread-Topic: [PATCH] arm64: Fix wrong BTI landing pad Thread-Index: AdhP9fj3NMaWymhiTtapYTwMcxxE0g== Date: Mon, 25 Apr 2022 08:33:40 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: CBC754C7FC95DE459B9F5AEC90BD285D.0 x-checkrecipientchecked: true Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; x-ms-exchange-messagesentrepresentingtype: 1 X-MS-Office365-Filtering-Correlation-Id: d211a805-88a0-4308-ac02-08da26965362 x-ms-traffictypediagnostic: AM6PR08MB4327:EE_|DB5EUR03FT044:EE_|AM5PR0801MB2113:EE_ X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: rpoerOu6fIqcgPORYVvrOTQ4Xfd0nGjmZR7CnOKYWreN/byXnBHl4NDnv2MaX3lkYTDTDuNUnP0aP9xDomCtJTiJ3jkWIEEktVx2DGmos/I2n/VwS52F4pEvToeQ+W3/poTeyWVvxuLEN+4o2NE/PrwleSA8ReC2fs9enoeh1J+Q40jMSHYVu7gYEGv3QFFvX7SEDf+egCLMDoflppLF8qa0c4GaLhq4E8bQtP+SCF9nmyJQFj8fNp9v2nw+2q8lIcMEqKHs+0+4KRFarVafV5XQlQAOGY4wsiukEdav/LwwIi+Mb8CE/hBl7Kj9fcXpn5vww2QA/DmUGzZCgZaayrwcjMJMfu7okehMpBeya9uqY6Ye+qZJVGOJlo1QVM/vKk2rf8uvSPwduG0WhZAB01RUWYbLDyl48HDZaLymuFw3z+0Ao4lCSMWC0CRyg/lzUFAqVL7IZwFIfoLoAM5oqFtKTvrhfCLhT3Jy1MOpkVyKKTfjrF/5+d3bAJUiXiac2S61JsN2EaHn82OEy/O0c/9pjMYBPKA8c6EjNuTgWLw5fPfKbc7kaRWNO/QmzKZd+c3KZiaEtr3e3mzp9qXDtUoFXHfnV/h7yEwI9OfoCpGQ9FdDj30/OAKFT++sSWFX1jFWYYCX6bLDdzrOAKdZ6fsj6ihcUMYav2BG6c5QRGKM5tBkOB3hiQAqtg3jAGun/qtQixtzviYdiQRRflHRDQ== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBBPR08MB5547.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(4326008)(66946007)(66556008)(66476007)(66446008)(64756008)(186003)(8676002)(38100700002)(38070700005)(26005)(6506007)(6916009)(9686003)(316002)(7696005)(5660300002)(76116006)(122000001)(86362001)(33656002)(55016003)(2906002)(83380400001)(508600001)(71200400001)(8936002)(52536014)(44832011); DIR:OUT; SFP:1101; MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB4327 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT044.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 5aafdc00-159e-4eb9-928c-08da26964d54 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FQefKSZfhNK6hkmzrJbWEXodfbqw18Wzh5ZubhuK7Fhm7T6Xp4QcTZsk1H/tfoJ6wpOAC9+HmQckk+glmiDYsGCJHm3AMcyywkzqzUthg/sINwE2hJUtfW7AcsOXZyTjhm9uHfixi6dCjsWbtYgqzkcY1hc2EkLwZLEPdwxxMkU4DHxd1OQ6EjnNfuYTqMjcLarr4pvAah0XmH1gOZ5yYYQT9MFG/0O73bqnTMMXHi5uoO+AnPE7E1xFek9rqwVutAEtp4Zav5930iL84HYWdunn8SPaq0B0quh8GKv7D/XsT8KMnaNYKwlpMZA7W7jbx1oygvf/2j3qdpPhbWFGTlzbbrYPyanqu8u8V4qyIq7zFGJ72lRqIdBjnvhRM+k/ROGkF14EcgcT6fzsAO9tPPqtTaT1HSaj/tH0fZc5vOkoUbY8Cg89GjxNuVejLMlpQa4D5Bllxig1Gl3/UXiGRyHywdgx/3wIl2EOVtUnQwISWgSqyYUVGyts1tlbafSaSrT31oPRHKqwCnott52UcwLZ96HeNYnDPmGcqZb4CadLu0cFvX+dI3cPWQMeaxKjHfw29L4cSf0JtS1+qQkD6DyoS4fPJlGYBXCQHKvjSnIytz6gFaIzoEbc12A6plOtp+ivEaApiaao6yHs63S8QZ0BAWiU9sNHqJQ0DnOWxtDtUzPypKGNqrSPec8jMNHP X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230001)(4636009)(36840700001)(46966006)(40470700004)(70206006)(70586007)(82310400005)(2906002)(81166007)(356005)(40460700003)(6916009)(316002)(8676002)(52536014)(4326008)(5660300002)(8936002)(55016003)(508600001)(36860700001)(86362001)(107886003)(33656002)(7696005)(9686003)(186003)(26005)(83380400001)(336012)(6506007)(47076005); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2022 08:33:51.2115 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d211a805-88a0-4308-ac02-08da26965362 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT044.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB2113 Subject: [FFmpeg-devel] [PATCH] arm64: Fix wrong BTI landing pad X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: =?utf-8?q?Martin_Storsj=C3=B6?= Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: o4AKa96R0Vgc This patch fixes a wrong type of BTI landing pad when branching to functions instantiated via the fft*_neon macro. Although the previously employed paciasp instruction serves as a landing pad, for the ways that this function is invoked it is the wrong type, resulting in an unexpected termination of the running process. Signed-off-by: André Kempe --- libavcodec/aarch64/fft_neon.S | 1 + 1 file changed, 1 insertion(+) -- 2.25.1 IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. diff --git a/libavcodec/aarch64/fft_neon.S b/libavcodec/aarch64/fft_neon.S index dd5f55eb87..9ff3f9c526 100644 --- a/libavcodec/aarch64/fft_neon.S +++ b/libavcodec/aarch64/fft_neon.S @@ -340,6 +340,7 @@ endfunc .macro def_fft n, n2, n4 function fft\n\()_neon, align=6 + AARCH64_VALID_JUMP_TARGET AARCH64_SIGN_LINK_REGISTER sub sp, sp, #16 stp x28, x30, [sp]