From patchwork Thu Dec 22 18:15:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 62289 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 C25D9384587E for ; Thu, 22 Dec 2022 18:16:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C25D9384587E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1671732986; bh=eFIwEkirtowXv4ybbndiD1bq6aDrfOwVQAkSqjXhYBM=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=Q8EIm6UM13cMhHYUb3h3GU0IfPnFkByUkPi/YGvgD02twW3kFt5WPbaui90VZL9Pn tJlK9EmKRzn67cgeBtogGNL7tjf/pmZixKc2zaftKTWl27jaHiMMaZLfcHJMP5VN9z kSxT2nytw1wh7Fb2boOLOi9K3y7QohOa47kdr/No= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-oa1-x32.google.com (mail-oa1-x32.google.com [IPv6:2001:4860:4864:20::32]) by sourceware.org (Postfix) with ESMTPS id A776D3858289 for ; Thu, 22 Dec 2022 18:15:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A776D3858289 Received: by mail-oa1-x32.google.com with SMTP id 586e51a60fabf-144b21f5e5fso3341551fac.12 for ; Thu, 22 Dec 2022 10:15:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eFIwEkirtowXv4ybbndiD1bq6aDrfOwVQAkSqjXhYBM=; b=JrumufuEx2jWCtc40jYwRg+2E/1UTN9M9BIICLiJ3NYvixduAHSz3wWEKyMFrY382f 7F2AkygD6jboobwIOV13ON+9QCeULJLe8h/t09xuCG3ZXyZ7t6q8rurixT+w7+nfM8fy rnhwQi70mNGVd8dk9TV7jSnGvBKnFsym6IOiU+lAYPTfZeHtOsrZpTqH1sd9e6GAnRc8 Pk7D9CFdTNjndiZdbUEF5UNZ4nsMfl5k4rfnNpfEI949sO/jy33NEN5a1YxLXdxgK1Zt t1mT5XTV7004oZFcwziP1EsifgPlaszZS26zDV6/4TMBhNTOgJGSCtfEdGpNiCQHMWsX IfRQ== X-Gm-Message-State: AFqh2koalEJePQmTa34KqBSyaYcfxazP+FbIYOeVCauCzmx60goFcHiN Q9k8/AFJqrMrPq6mfhtPC8YBa24DSyz8+Tj4r8Y= X-Google-Smtp-Source: AMrXdXvCX8G0PZmW7R/lYfeSIqWVo3vH/bpO7qnVEiryOJUFHjVP+idmVJXF7TzjORmThTCNvdFFPg== X-Received: by 2002:a05:6870:8dcc:b0:143:e3d2:13d with SMTP id lq12-20020a0568708dcc00b00143e3d2013dmr3105925oab.27.1671732919417; Thu, 22 Dec 2022 10:15:19 -0800 (PST) Received: from mandiga.. ([2804:1b3:a7c3:6eec:3a2d:1c84:e181:fccd]) by smtp.gmail.com with ESMTPSA id m2-20020a4add02000000b004a3d98b2ccdsm477504oou.42.2022.12.22.10.15.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Dec 2022 10:15:18 -0800 (PST) To: libc-alpha@sourceware.org, Florian Weimer Subject: [PATCH v2 4/4] Remove set-hooks.h from generic includes Date: Thu, 22 Dec 2022 15:15:06 -0300 Message-Id: <20221222181506.2535765-5-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221222181506.2535765-1-adhemerval.zanella@linaro.org> References: <20221222181506.2535765-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham 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: Adhemerval Zanella via Libc-alpha From: Adhemerval Zanella Netto Reply-To: Adhemerval Zanella Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" The hooks mechanism uses symbol sets for running lists of functions, which requires either extra linker directives to provide any hardening (such RELRO) or additional code (such as pointer obfuscation via mangling with random value). Currently only hurd uses it and there multiple examples where using direct function call provides both hardening and good code generation without the need to extra link or code handling. --- {include => hurd}/set-hooks.h | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {include => hurd}/set-hooks.h (100%) diff --git a/include/set-hooks.h b/hurd/set-hooks.h similarity index 100% rename from include/set-hooks.h rename to hurd/set-hooks.h