From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) by sourceware.org (Postfix) with ESMTPS id 5E45B3858C2D for ; Tue, 13 Feb 2024 09:12:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5E45B3858C2D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5E45B3858C2D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707815525; cv=none; b=jSu8T7VUYHtckYR+0ZPhq9G7tkWAL9bbjdbNE02YR/lcRVQZzSOOb4zo14ceP28FFex67dwINgwElbuZLexfQfTvRBys9+mdlu5ucUlAbHal01E1dsqUKnU2RpmCY0QI1I7CwLaYsT222do+Dwv642gipZxC5OMcKZVjzpywkOI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707815525; c=relaxed/simple; bh=iVgABdVLC+5QKjCUCK0Qf3ybUHx1FOa7XFbkCtHREiU=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:From: To:Subject:Date:Message-ID:MIME-Version; b=uU5Y2YRv+645rA0qi/ryMbnKwKnJg9+egt+DI2lYv9ZzYOujkxQ9ToETgu8A/ieXpAqu/YePKy+lb9v/iCGIVEDGquXNyhOOFWCzv4+Xq+icBcrYvuQszUKm5HJ6tTMwNq4DG246fpjTQTqvC+hhiBNzqgxJr6vi1jISXKLFiP0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from hawking.nue2.suse.org (unknown [10.168.4.11]) by smtp-out1.suse.de (Postfix) with ESMTP id 47FFD211A3; Tue, 13 Feb 2024 09:12:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1707815523; h=from:from:reply-to: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=l8Q+t1YpwP6r5XUw4M+L4orQnlk+g8vTmq68QYFt8sc=; b=15eTl6Jmqx9PJNpv5Vl8GP4yoBVg3Gf3/DQ5FQMVMaRGx9cnMeDXoiBLK8vaoHxLU0iFis 3bLk8CBqfUEW/iVslK3L7FSdxsmcWE9UyqUrvuW18LKvpKCGAzPlIS5h7Yg3C/75OviVDG 6o+Zwj94t4UO9ckIT1JdMMhcqImNI8Y= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1707815523; h=from:from:reply-to: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=l8Q+t1YpwP6r5XUw4M+L4orQnlk+g8vTmq68QYFt8sc=; b=HvcC+vecuDOwJ98QIQrVj4bxuYnXePF86AbsCebbXF80/UPl6ZPwKYwVWOha/cIHKOPz7h o6JyGkmbQppL9pBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1707815523; h=from:from:reply-to: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=l8Q+t1YpwP6r5XUw4M+L4orQnlk+g8vTmq68QYFt8sc=; b=15eTl6Jmqx9PJNpv5Vl8GP4yoBVg3Gf3/DQ5FQMVMaRGx9cnMeDXoiBLK8vaoHxLU0iFis 3bLk8CBqfUEW/iVslK3L7FSdxsmcWE9UyqUrvuW18LKvpKCGAzPlIS5h7Yg3C/75OviVDG 6o+Zwj94t4UO9ckIT1JdMMhcqImNI8Y= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1707815523; h=from:from:reply-to: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=l8Q+t1YpwP6r5XUw4M+L4orQnlk+g8vTmq68QYFt8sc=; b=HvcC+vecuDOwJ98QIQrVj4bxuYnXePF86AbsCebbXF80/UPl6ZPwKYwVWOha/cIHKOPz7h o6JyGkmbQppL9pBw== Received: by hawking.nue2.suse.org (Postfix, from userid 17005) id 416934A03A6; Tue, 13 Feb 2024 10:12:03 +0100 (CET) From: Andreas Schwab To: Florian Weimer Cc: Adhemerval Zanella Netto , Florian Weimer , libc-alpha@sourceware.org Subject: Re: [PATCH 01/11] misc: Build getdomainname with fortification In-Reply-To: <87a5o58osg.fsf@mid.deneb.enyo.de> (Florian Weimer's message of "Mon, 12 Feb 2024 20:29:03 +0100") References: <7710004342d09a8e62868a0bc659b5dca5b67324.1707491940.git.fweimer@redhat.com> <8623972a-5966-4953-b537-72bcde371a68@linaro.org> <87a5o58osg.fsf@mid.deneb.enyo.de> X-Yow: FISH-NET-FISH-NET-FISH-NET-FISH-NET-FISH!! Date: Tue, 13 Feb 2024 10:12:03 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Authentication-Results: smtp-out1.suse.de; none X-Spamd-Result: default: False [-2.66 / 50.00]; TO_DN_SOME(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; BAYES_HAM(-2.56)[98.04%]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email]; FUZZY_BLOCKED(0.00)[rspamd.com] X-Spam-Level: X-Spam-Score: -2.66 X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS,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: On Feb 12 2024, Florian Weimer wrote: > * Andreas Schwab: > >> On Feb 12 2024, Adhemerval Zanella Netto wrote: >> >>> On 09/02/24 12:24, Florian Weimer wrote: >>>> Introduce __glibc_nofortify_getdomainname to request disabling >>>> the fortification wrapper. >>> >>> I am not very found of __glibc_nofortify_getdomainname escaping to an >>> installed header, but I don't have a better solution. >> >> Can't this be fixed with an alias? > > It would have to be an assembler-level alias that GCC doesn't know > about. Would you prefer that? It results in worse debugging > information, I think. I didn't realize that all the fortified functions are compiled with disabled fortification for that reason. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."