Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4182656rwe; Mon, 17 Apr 2023 09:03:04 -0700 (PDT) X-Google-Smtp-Source: AKy350YG3q1RGuP/a7yTrx9THSqDWibSg+PRPyDUmeAY4DBQce6+9oc2LCEasyAQQuLRQmn7RTI+ X-Received: by 2002:a17:902:db10:b0:19a:96ea:3850 with SMTP id m16-20020a170902db1000b0019a96ea3850mr14484859plx.17.1681747384344; Mon, 17 Apr 2023 09:03:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681747384; cv=none; d=google.com; s=arc-20160816; b=w/ODeJ7BkHg+/Aid+Je8C3yKiPV+gJRW6E9fWZQlMkJCj2o1qpcsuexexg4V76bg5+ /YAUC+kgaKhfkzF4idlek0RmhYyMqGy7eWpbOvmb6h9wzlmKcwFiBMMb8ixPjNUtdkRo qw/Up/1dbhWAGFKAc4xXl8XAhx1+2SUVUYoKdQQkySxBGjeYBLoEE88Cn4Mudl6NE45R 8hxzfp+5VvujT6EdEapqkG2Ri0yVD3LJM5osqJknhS0K0YhHoAbnNnQETKs77/GYb7sT z7+6KdSRHu4qkF8jhsrUG9qCBLZIzUDeYLHDXj7XWUwY1d9MO9xcnQPl2rn7R27pw4mp ouzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:dkim-signature:from; bh=ILpKXbmCHpgZDoWv3es7cNP6K+8QxUZs+tb4Sdl0cag=; b=OK5efgeAbRe7d1V3Vc6O7WfMMfTVz5vNa0nh0Chl59Jliy3QdUHgZejPH37VYukOGv YiHc2a4ObZTdT6TI0A8Ujs5v8YASwJIk6MNf3lWJ1yRshySf8X5N9WF7dqU9CHY2z8hK O+/I5yPisL4zDdoFoKKtWoMYFfqeLNxTkhxlczIIQQosG4QpYjTAwhvnHm3KPmA7BdWa sG6xsp4x/L8eNa8byJ8TEb0j738wvlxEN9RLC2M0Bjf0Em0ch1InrSBL0jQjInvc+F+g 1ptgt/IYMSFD24T5fceJjAIJjJSydquX0p6Zx2Q7JbsduqpUb4tgd88B1ElvUqKnWlSg LENA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=Cb0GIsGN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f8-20020a170902ab8800b001a1d47f6116si11425875plr.88.2023.04.17.09.02.51; Mon, 17 Apr 2023 09:03:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=Cb0GIsGN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230262AbjDQQB6 (ORCPT + 99 others); Mon, 17 Apr 2023 12:01:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230113AbjDQQBx (ORCPT ); Mon, 17 Apr 2023 12:01:53 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DDF9B471; Mon, 17 Apr 2023 09:01:43 -0700 (PDT) From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1681747301; bh=XQlx2gfhYVYTVTKE2b7b3AkIPTy7p0etRMsaAd4EBhM=; h=From:Subject:Date:To:Cc:From; b=Cb0GIsGN0XJa5vKhJMhBxir7d1dKu2zsQPf6QrSBCGDI4aLn186iwcl/Sf8uj7WBX fDHEgpOCRzXd2cf/234vZjJFzdBdjWcyhBJC9vOyNa4zLJS7IcnKCEwsJ27SF5y8K6 P9jgckvnSIu+CXtUEvAqhzLbecdKebbmQDdnIkO0= Subject: [PATCH 0/6] tools/nolibc: add stackprotector support for more architectures Date: Mon, 17 Apr 2023 18:01:30 +0200 Message-Id: <20230408-nolibc-stackprotector-archs-v1-0-271f5c859c71@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAFptPWQC/x2NQQoCMQwAv7LkbKBbSxW/Ih7aGG2wtEuyirDs3 y0eZw4zGxirsMFl2kD5Iya9DZgPE1BJ7cko98HgnT+64M7YepVMaGui16J9ZVq7YlIqhsH7EOI pxDkyjEJOxpg1NSqj0d61DrkoP+T7X15v+/4DzKE0OIIAAAA= To: Willy Tarreau , Shuah Khan , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1681747300; l=1475; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=XQlx2gfhYVYTVTKE2b7b3AkIPTy7p0etRMsaAd4EBhM=; b=qK6Yh6oq3WNWYvM3oZZoIsRVkSBvRo/oCtXhrNZBjBIHVbnEv1fFIukoadOuBKL1w+ghsru+S 07bK6zvGgJjD9Jj5LTB2BU3yF9h4RBjWCTtzz804+1JZ2354S8F+FgP X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add stackprotector support for all remaining architectures, except s390. On s390 the stackprotectors are not supported in "global" mode; only "sysreg" mode which is not suppored in nolibc. The series also contains a small optimization to strace output during execution of nolibc-test. This series is based on the 20230415-nolibc-updates-4a branch of the nolibc tree. Signed-off-by: Thomas Weißschuh --- Thomas Weißschuh (6): selftests/nolibc: reduce syscalls during space padding tools/nolibc: riscv: add stackprotector support tools/nolibc: aarch64: add stackprotector support tools/nolibc: arm: add stackprotector support tools/nolibc: loongarch: add stackprotector support tools/nolibc: mips: add stackprotector support tools/include/nolibc/arch-aarch64.h | 7 ++++++- tools/include/nolibc/arch-arm.h | 7 ++++++- tools/include/nolibc/arch-loongarch.h | 7 ++++++- tools/include/nolibc/arch-mips.h | 8 +++++++- tools/include/nolibc/arch-riscv.h | 7 ++++++- tools/testing/selftests/nolibc/Makefile | 5 +++++ tools/testing/selftests/nolibc/nolibc-test.c | 15 +++++++++++---- 7 files changed, 47 insertions(+), 9 deletions(-) --- base-commit: e35214ea9db7477a02e67a8b412e8046534bb97c change-id: 20230408-nolibc-stackprotector-archs-42244674616e Best regards, -- Thomas Weißschuh