From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86772C6FD1D for ; Thu, 23 Mar 2023 05:40:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229639AbjCWFkq (ORCPT ); Thu, 23 Mar 2023 01:40:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbjCWFkp (ORCPT ); Thu, 23 Mar 2023 01:40:45 -0400 Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E6DCF3 for ; Wed, 22 Mar 2023 22:40:44 -0700 (PDT) References: <6c5593f5-efc0-564d-83fa-430328b31231@gmail.com> User-agent: mu4e 1.8.14; emacs 29.0.60 From: Sam James To: Mingye Wang Cc: Alejandro Colomar , linux-man@vger.kernel.org, Erik Pilkington Subject: Re: [PATCH] feature_test_macros.7: document clang fortify support Date: Thu, 23 Mar 2023 05:38:24 +0000 In-reply-to: Message-ID: <87pm90vxd3.fsf@gentoo.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Precedence: bulk List-ID: X-Mailing-List: linux-man@vger.kernel.org --=-=-= Content-Type: text/plain Mingye Wang writes: > Hi Alex, > > It looks like Sam James has already documented level 3 of the macro. > The attached (no, git send-email is not happy with my proxy setup) > patch only adds some language related to clang. Here's to hoping the > system is happy with multipart mail. > > I've CCed Erik Pilington, since he is the author of the LLVM-svn > 352665, the change that introduced __builtin_dynamic_object_size() in > 2019. > The patch looks OK to me in terms of the content, apart from the libssp mention. libssp and stack smashing protection overall is distinct from fortification. SSP is where stack canaries are emitted and their value is checked later on to see if they're intact. Fortification is where certain functions are replaced with variants that check the size of their arguments e.g. dst & src and ensure they're big enough. They're distinct. > Regards, > Mingye Wang > > [2. text/x-patch; 0001-feature_test_macros.7-document-clang-fortify-support.patch]... best, sam --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iOUEARYKAI0WIQQlpruI3Zt2TGtVQcJzhAn1IN+RkAUCZBvmWF8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MjVB NkJCODhERDlCNzY0QzZCNTU0MUMyNzM4NDA5RjUyMERGOTE5MA8cc2FtQGdlbnRv by5vcmcACgkQc4QJ9SDfkZAmqgEA/w0T5oTpUjXxAjqHWZnqDGFCEDYXfgH66uMT TzCfTygBAKpKaJo8eUHFUjBPExYrbVUYMLDRSFlHVB56Rj3naFQC =eIfg -----END PGP SIGNATURE----- --=-=-=--