From patchwork Thu Oct 27 15:32:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Szabolcs Nagy X-Patchwork-Id: 55246 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 221EC382A2C8 for ; Thu, 27 Oct 2022 15:32:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 221EC382A2C8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666884767; bh=0wuaRE/6KiN933dXZotrAzWb7++n8ngpuwQaUE9IpxI=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=b49X6JnBzpef9U0rhF9xZk3vzRusV9IVrfnQiICv1YaPcPVd+YVa1Fwei6DE444gW 19z+UKYbj3DAE87jMsC3r9X881NbfikWmLBjmRxtbN8TZTsjmjgheRFeK/YhJf5ZnU WROL4GaA0Ll+SocYJZNwGW+RQS6zxhmrdvf5XQmE= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2075.outbound.protection.outlook.com [40.107.20.75]) by sourceware.org (Postfix) with ESMTPS id C1741388302C for ; Thu, 27 Oct 2022 15:32:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C1741388302C ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=Qzr7vzpNCWo3H6ZvjFW2JMOv5gJHjTHeydShReS5cv4RTWkCKvVt5X0ycN++WS9PgOZ/KRsj5Lt/JGorHql+9DhcVVFkNJ/LYf7genqQEGV6j5iUD6E2ic/SHQi2ysiH2JhCyXLXOdLU/QhXmDNQV6wzIswW/QBwXsokht446psVtkfQ/DkfTJHiofGWO/1XH2/BX0INl7JFbxTGhekdvQ1gHBhnY7XDMZaCxVzz0Yk0/9ucS1qmWUpjNL7/TvE+H0gbrNxZYU9LdKGcc1PeXt+MQ8A9/ht20Jx5wegQhyJDrJVN4sIGJlns6oo+caxrhcdjxNXa/O/Prdo/NxxBxQ== ARC-Message-Signature: i=2; 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=0wuaRE/6KiN933dXZotrAzWb7++n8ngpuwQaUE9IpxI=; b=ZCHJexs2kK7HEdBBHqNu0HlmFxdpB6ZS4r1RQp8uJV8GWWeMELcCRoIXACcHt8PbsUiZtgO6FEJFneNEhfewFOUsTy4WMkFYqycsAUYLtpDUUhR4XBUwzOnyPLwxlZ+LGFNBWK8PBue5hT0uTSJYldHbKTjtyl4NuHpXomOO02R85+vR1VN43i5mTPrhZX3miVcpZIlBwAZtIPL4K1XhvHQAmq+O2cdaSN0N9xzzbHDk7qcRBQBkwkuRafrILz2ULueEcyJbKRE2QI9Omdj6VIl8NwC5XWnsKCFdDGoNUbTlWabuCtz/VtBoM7bybRhTfcITV3c8fID1ngAGYlTmFg== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1, 1, smtp.mailfrom=arm.com] dmarc=[1, 1, header.from=arm.com]) Received: from AS9PR06CA0175.eurprd06.prod.outlook.com (2603:10a6:20b:45c::25) by PAXPR08MB7320.eurprd08.prod.outlook.com (2603:10a6:102:223::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.28; Thu, 27 Oct 2022 15:32:10 +0000 Received: from AM7EUR03FT035.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:45c:cafe::f9) by AS9PR06CA0175.outlook.office365.com (2603:10a6:20b:45c::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.28 via Frontend Transport; Thu, 27 Oct 2022 15:32:10 +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; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT035.mail.protection.outlook.com (100.127.141.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.20 via Frontend Transport; Thu, 27 Oct 2022 15:32:10 +0000 Received: ("Tessian outbound 58faf9791229:v130"); Thu, 27 Oct 2022 15:32:09 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 1f8dee4e5212c8db X-CR-MTA-TID: 64aa7808 Received: from 4c10ed51587d.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id B31911EB-8338-4B5E-855C-99A1A54AFA33.1; Thu, 27 Oct 2022 15:32:03 +0000 Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 4c10ed51587d.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 27 Oct 2022 15:32:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e/9ylb7zILm+AiT/SJWMMpYcery4UpQk+bVCm3e9Up7tIL71UKt07U1Ejy3CBD3W2vNGj6aNuBjdgAhJKG/aYn7mtpaRSR2HSqRaqVtNs3DoRtQJjEPMpSzm3R849U17REcQikvip/J76xr/YFPkQ+QD/IH9QEtpW3Bmi6uXsIOeB/6TtZHTOPNZKrPxQqGIYVeJJ2k8HoPQyj8JZ+FQcgucReDabeu0X9kxA30LlaoM05uHHNI7661kBsbQVvQYHzlwRi8dhZnrhhM2rusWfRIfxq3oDqKFRGsMLKD696DRyzm8aOr/NSXviClSjlbfg2JTS3jSzwd5y1XRw90bpA== 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=0wuaRE/6KiN933dXZotrAzWb7++n8ngpuwQaUE9IpxI=; b=bWjq2fM/4eMOCYOWXPe/5U1+6FlfCUe68ppeGY+YOyBoHy45Br2F/1yWgV7nLRGsLaQuJoP32AVMDBU0yXosC2DXZ+uYtpvpKjbNMyzB8VkicA03E7MNH/NHONc7HNayKake7eT5gPuJskjt+LD+p5jQvEPt2UAbye3iW2Ph3FT6ILVz7E3Trm6pr7o5HIbaxzxUxIM0uXMLeuru//q+sl5zw65yVINST9j2Fo02MOtW5yJbQ9odwL9EJcCvv4uyjU/h4Afk40ueecWiUv/ToAOWeY4W5/PGfJMvPRN2wf3RctZxVKV9NIiBtQKGzp1S/4hEcRhUfe6Wlm+zfLBDXA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none Received: from DU2PR04CA0327.eurprd04.prod.outlook.com (2603:10a6:10:2b5::32) by GV1PR08MB8034.eurprd08.prod.outlook.com (2603:10a6:150:99::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.28; Thu, 27 Oct 2022 15:32:01 +0000 Received: from DBAEUR03FT038.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:2b5:cafe::6e) by DU2PR04CA0327.outlook.office365.com (2603:10a6:10:2b5::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.15 via Frontend Transport; Thu, 27 Oct 2022 15:32:01 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by DBAEUR03FT038.mail.protection.outlook.com (100.127.143.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5769.14 via Frontend Transport; Thu, 27 Oct 2022 15:32:01 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Thu, 27 Oct 2022 15:32:01 +0000 Received: from armchair.cambridge.arm.com (10.2.80.71) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Thu, 27 Oct 2022 15:32:00 +0000 To: Subject: [PATCH 00/20] patches from the morello port Date: Thu, 27 Oct 2022 16:32:00 +0100 Message-ID: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DBAEUR03FT038:EE_|GV1PR08MB8034:EE_|AM7EUR03FT035:EE_|PAXPR08MB7320:EE_ X-MS-Office365-Filtering-Correlation-Id: bfd2b701-d0a5-47a3-c3d5-08dab83069e5 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: YQf5Jw2K+UeqDArRswNTXyHnKu3sL9U/yAwNtHdx+Or+eClMnOYuGKatFCyhH9bZoPS8EPVBQ4x2mXsDjmwgg4ZmKiflX39KqH3gpdYJr93ikQ7quyX4n8/GP2Z2D4Brq1Ll55NLRIqwIr9wb0hjkwhoz4rU1t4YIU9HKZOkyB+bXknUh4u4YoXv1bFs8vdRVNzQUSjW4kZ9herMqcPJMjEQiV4cBePgV+VUdKJmCQMufZIVrPX8QkfmYrt0JFGyMg1yRHbHRIj3bmaC88uubgJlfz7G5PI02AI07QyqAcOFPhFo3FcyPCu+a1wFBmUpkYSitt0VMXh7ySKOF3kHuzk7joFJz0wVvpVXGfzOr/xkZPhOjy9fGD9EZcJXo92Pi8/xCoy3D3vvFm86K63Ay4S7GPEH9ffA44zFGm8OQMCpKVoItKq2MvnwU+WY7N8Y7PQpj97l3RraKbqx/WLbdjq2CEO86XThzBSA94ddWq23FKu7WrR+sTKZFqyZsN2H0BQgpQLOmo6kGHqmRItInC+ewZDcSCjGR5l7JtKRY16pjyeXlrAK/vKoiFGI7J/+GhBXb5Ihr6jr/vsrpSx9kdudz7vWRWzdzMqmCYJK3aMOEbEx3/RZQa2In/M9Mt1+jdp6ZovEn3Z2ZcrqI7B6U2OPmvCpE4WdTxun6YMbADqVUnJh2snN6Yi9Qh/blsVgfeKVW67GQaAVZphRetnuX++yrMrlBWqKtHJH86IHxPX+nq7QnUj2YSFuHAxw13FhUePpVOadZTztSXaHGBBNPqr5pd+G/r7pchUcseKm2j21smt8jaql3ukLbfluV/KM X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230022)(4636009)(396003)(136003)(376002)(39860400002)(346002)(451199015)(40470700004)(36840700001)(46966006)(40480700001)(36756003)(86362001)(82740400003)(70586007)(81166007)(70206006)(356005)(8676002)(316002)(6916009)(36860700001)(82310400005)(478600001)(26005)(426003)(47076005)(7696005)(2616005)(5660300002)(41300700001)(44832011)(2906002)(186003)(40460700003)(336012)(83380400001)(8936002)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB8034 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT035.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: d7427120-9794-4477-3d9f-08dab83064a3 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BHLgdxa4HU0NmmFtnKwPR1wILaVeSbTAdHPfGgf3mNUN8j5g+1VGQOCMdoZ7yGVC/dgN9Wd+o/tLT2KP7o2yMnf0ypQErDfYchOg+24FnYlyrrLo4ayFw+p4N95AG+ma32gZUI3dBPJ04V7QnLOVDb094Eoo4YTqPdihJXa3gLDdsEFpZvWXIU8J3EnP6IfV8KYpshLBwCIUinQnVp8HTWZ1n4vvD2b9+uDixjJtZunzQ2FTUidGewci7G99wsEv1GMnNyYRCUFQVuitWn4ioyd4CwAUn5YWDz+Q+w4GhKynmopEnfqOpuUKsQR/4h65HHBBknAGa2Sof1duTtrisPOISCyo7hYsoiBbjleVVPDNAlSvjlSb1pAT6NLi0apdUezTMrTgNiXgWEK79JYAkE+7dfcVsy+BO/fIlweb7mKUAk2/OKnZ6vdpDcSU0LWDCgN7C4Twh5YljguDU3jgdJmkUN++3IdqRGBtcEgS+a2JzJfcjZIOo60glqMu4g455Vi3DdmVPrwe4rypJw6fVZH8gOkfgXBJMOS47CTR98bf7Zh7Tq5Dnu0SsTuq4zIq4vJ8QDSMIg0sWl1kZw1Be8uZfrfo1KOBXnCtINV6ITPQfHqLr7+9T2X6pQkSBFJ55926J3lUVKcXdRsFFmr7szKM8AwWPEj18GzzOKnL+2KkhYRjgl6h5HLPunz8bmy5c8LVJ330M8yL0eDbP4eLuanfQUaHcr2zG+WWgH96uYaXN1GhssPhj/5YmpJIKxFjIC/Q1B7YQxgUPhBQyha/Mg== 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:(13230022)(4636009)(376002)(136003)(346002)(39860400002)(396003)(451199015)(46966006)(36840700001)(40470700004)(36756003)(7696005)(478600001)(5660300002)(70586007)(70206006)(8936002)(8676002)(41300700001)(6916009)(44832011)(316002)(36860700001)(40480700001)(82740400003)(81166007)(40460700003)(2616005)(336012)(186003)(26005)(83380400001)(426003)(47076005)(86362001)(82310400005)(2906002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2022 15:32:10.0328 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bfd2b701-d0a5-47a3-c3d5-08dab83069e5 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: AM7EUR03FT035.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB7320 X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, KAM_DMARC_NONE, LIKELY_SPAM_BODY, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Szabolcs Nagy via Libc-alpha From: Szabolcs Nagy Reply-To: Szabolcs Nagy Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" These are patches from the current arm/morello/main branch that i think can be included into master. Carlos Eduardo Seo (1): malloc: Use uintptr_t for pointer alignment Szabolcs Nagy (19): Fix OOB read in stdlib thousand grouping parsing [BZ #29727] scripts: Use bool in tunables initializer aarch64: Don't build wordcopy aarch64: Fix the extension header write in getcontext and swapcontext Fix invalid pointer dereference in wcscpy_chk Fix invalid pointer dereference in wcpcpy_chk Use uintptr_t in fts for pointer alignment malloc: Use uintptr_t in alloc_buffer malloc: Fix alignment logic in obstack elf: Fix alloca size in _dl_debug_vdprintf Fix the symbolic link of multilib dirs Use uintptr_t in string/tester for pointer alignment Fix off-by-one OOB write in iconv/tst-iconv-mt Fix off-by-one OOB read in elf/tst-tls20 Fix malloc/tst-scratch_buffer OOB access Fix missing NUL terminator in stdio-common/scanf13 test Fix elf/tst-dlmopen-twice to support enough link namespaces Fix resource/bug-ulimit1 test Fix stdlib/test-dlclose-exit-race to not hang Makerules | 2 +- debug/wcpcpy_chk.c | 3 +- debug/wcscpy_chk.c | 34 ++++--------------- elf/Makefile | 1 + elf/dl-printf.c | 7 ++-- elf/tst-dlmopen-twice.c | 2 +- elf/tst-tls20.c | 4 +-- iconv/tst-iconv-mt.c | 4 +-- include/alloc_buffer.h | 10 +++--- io/fts.c | 3 +- malloc/alloc_buffer_alloc_array.c | 6 ++-- malloc/arena.c | 6 ++-- malloc/obstack.h | 19 ++--------- malloc/tst-scratch_buffer.c | 22 ++++-------- resource/bug-ulimit1.c | 2 +- scripts/gen-tunables.awk | 2 +- stdio-common/scanf13.c | 1 + stdlib/grouping.c | 8 +++++ stdlib/test-dlclose-exit-race.c | 4 ++- string/tester.c | 13 +++---- sysdeps/aarch64/wordcopy.c | 0 sysdeps/unix/sysv/linux/aarch64/getcontext.S | 4 +-- sysdeps/unix/sysv/linux/aarch64/swapcontext.S | 4 +-- 23 files changed, 68 insertions(+), 93 deletions(-) create mode 100644 sysdeps/aarch64/wordcopy.c