From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id DC880385840D for ; Thu, 1 Jun 2023 15:05:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DC880385840D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1685631957; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=IGgWPEnaIvFzhpfW3tsNyPGd9exiiRGWxM/DETtaH48=; b=HMqWIHmt2tADEP9437OKiAM+mQNv+YGeA1HuhD/cbQprEQdD7idSobT6OVMjk5lbC6XPLr 8cV1LXN+AmVyyOL+MJ7q8rjDSBLZP4wQGXhd9M3zwnFoK3QQGn/KCGuLXeMkeSSDSbWY3M KctP9Tgp4iqeV1xtSowANCpZur2FB2A= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-460-qPLaToUPNpOUxULStVpZ9w-1; Thu, 01 Jun 2023 11:05:56 -0400 X-MC-Unique: qPLaToUPNpOUxULStVpZ9w-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 99CFB8039A4; Thu, 1 Jun 2023 15:05:54 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.28]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8F3BD492B00; Thu, 1 Jun 2023 15:05:53 +0000 (UTC) From: Florian Weimer To: Jeff Law via Libc-alpha Cc: Joe Simmons-Talbott , Jeff Law Subject: Re: [PATCH v3] ifaddrs: Get rid of alloca References: <20230530152539.2063770-1-josimmon@redhat.com> <855f0ed1-d05f-3b17-263b-a2957289e11d@gmail.com> Date: Thu, 01 Jun 2023 17:05:52 +0200 In-Reply-To: <855f0ed1-d05f-3b17-263b-a2957289e11d@gmail.com> (Jeff Law via Libc-alpha's message of "Thu, 1 Jun 2023 08:43:56 -0600") Message-ID: <87ilc7rzn3.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,TXREP,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 server2.sourceware.org List-Id: * Jeff Law via Libc-alpha: > Instead I wanted to have GCC prove particular allocations were safe to > transform into alloca. That never panned out, but I still think the > compiler is the right place to exploit the performance improvements > one gets from alloca vs malloc/free. We got -fstack-clash-protection, which is I think is good enough from a security point of view. Thanks, Florian