Message ID | ZW8IG4JcRl-eMNux@hydra |
---|---|
State | Committed |
Commit | 9fd2ceb55de003c09c909103966db913319bcfdc |
Headers |
Return-Path: <libc-alpha-bounces+patchwork=sourceware.org@sourceware.org> 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 2E8793845756 for <patchwork@sourceware.org>; Tue, 5 Dec 2023 11:23:27 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by sourceware.org (Postfix) with ESMTPS id EF0DF385AC2B for <libc-alpha@sourceware.org>; Tue, 5 Dec 2023 11:23:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EF0DF385AC2B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=statdns.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=statdns.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org EF0DF385AC2B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=66.111.4.26 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701775395; cv=none; b=eIl09wI1EA6tiTs8g0MQx1KwO7h2KPK82quwHITWLQ5dFMArFEY4cK/34SNpn785CuN3JAkiJztFKCebBgmFx0r9DrHtmOWL3pjvbMhJarZprJuLqiC7lyvyUJuZTcs8R+yqReIquXfEmlVzXTIGigEiG3cL7gN3uCed3h1Oh8g= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701775395; c=relaxed/simple; bh=BHeuQGEzipO36e5V643dNTRGBPbbrOUjwhhMjUbs9FE=; h=DKIM-Signature:DKIM-Signature:Date:From:To:Subject:Message-ID: MIME-Version; b=gyFFvjXAMBQshP0KKOnKsi9RBLQdLu2kQ8nj2LAwrfGEflh1IsduQKfbpUv9fcPgx8GQ7HHjbAwGs6zXzi5qWTYA8S8TMbbApqfwVEMxCm1bp8OS1IVfDALUVkq5ER5w8aEEeuXKasZvA+6v9peB8JxZtth26xOo1uP1tVxYWTo= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 28F495C0170 for <libc-alpha@sourceware.org>; Tue, 5 Dec 2023 06:23:12 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 05 Dec 2023 06:23:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=statdns.com; h= cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t=1701775392; x=1701861792; bh=kSUkZnxAq4pCwMMKO882m3zhh MZRHTgfM7qGGY4G0gE=; b=sqGYURX4IE2lYdDOomd00066jHExFe447bwJ9ezWG sTat+NdEwkzkcPzfkFccoDgXkPhlHjyhrdi/c/JIFr60tILxYHbCToKjy9MpqCF0 AmAkA6/IOvXkLRN4zSVFXKuAW5mYUXw/lPIUPf2OAihB4tfg9HypylGOWb9Qx13d 65itQ1vSdTVBVgqJodNG0sW0ZwnuSjo4kcvOVk6FRBahTrZg0XMeMjbr5AgFK9Q9 yg+ASb40ewhci/M1BJDrASme23FjeZRdpA45eOlj4kzavXZWUP4fT9eDpjfC8D/c /WRchHue5aJ9Q1sYn2Ldb0t1KWoj1l9SAaQGyAoGnuHlw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1701775392; x=1701861792; bh=kSUkZnxAq4pCwMMKO882m3zhhMZRHTgfM7q GGY4G0gE=; b=OrtZa2iLSoANftlULSPRlb3xtO3Ph5rCZrpWVElWF+mtGApQd7/ b/k9YEByE/aLoDaH0eHnGBpTnJPF11agRnjfSM3t0W3eTDQwfj03VrQNL+OvQEbd PcmsYaQ75QzJIjojkGmkWXne5QXpIz0qgHtMpk6ySkY5VFYJuZUYvp0hz08VrPgq 8bzQ4yeCN0mL3crE7yLNq0TQMX8nyoUyBOaIEWq3LA+3seEeYdX1BZTy0nL0Ku6x l/2diUIX48pW+sPLGhTaEXVjO0+z6vjnPMtO8qKJuoCH32nNYZOAQbsE4Wa3tUNZ bz5k1WI5Ep4GFzjwcsPOmk8hyQfdaBOkwSg== X-ME-Sender: <xms:HwhvZW2uA5O74BARxbcHnBsMKwhQWZkL_mnJ1csPXpmdHevF5mi9Vg> <xme:HwhvZZFOuYHgb7ILg_4-F0FJks5DfWQAW84ejWl9Ekx9arqVupAQY2tLV8kDEMJ_o _RgrCkKR6Jl94NW6WQ> X-ME-Received: <xmr:HwhvZe4Ridv7W6cf-Xcg7jYrfi5OnycSLQcPYb0rTzXJDwldhZifPpYsqYTNnm_nBvMCTVwpPPJklK8_> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudejkedgvdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkgggtugesthdtredttd dtvdenucfhrhhomhephfhrvgguvghrihgtucevrghmsghushcuoehfrhgvugesshhtrght ughnshdrtghomheqnecuggftrfgrthhtvghrnhepgfekjeelledtheevffejfefhieevje eltdffveelkefhteehleduueeufeefteetnecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomhepfhhrvggusehsthgrthgunhhsrdgtohhm X-ME-Proxy: <xmx:HwhvZX3iw88Db1dM1Loo3XEBmO0-ABfFy8KPAif7ODGcDbd93-2xng> <xmx:HwhvZZGBY-Fb59rsKyLudl5O3F21IVNJcWbRzlu1Mo2Pi3HKk9eqwA> <xmx:HwhvZQ8NWQ5TpG42cBj-aMIgRAXyZPT3Tl8GfvKQ5szB7xsOhhPf-A> <xmx:IAhvZYxiaKrNHb0sijBIyq8E2WtCAtnuVC3COvd-0ldeN8upa_OgjA> Feedback-ID: ic0e9462c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for <libc-alpha@sourceware.org>; Tue, 5 Dec 2023 06:23:11 -0500 (EST) Date: Tue, 5 Dec 2023 12:23:07 +0100 From: Frederic Cambus <fred@statdns.com> To: libc-alpha@sourceware.org Subject: [PATCH] debug/getwd_chk.c: warning should be emitted for the __getwd_chk symbol. Message-ID: <ZW8IG4JcRl-eMNux@hydra> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, 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 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org |
Series |
debug/getwd_chk.c: warning should be emitted for the __getwd_chk symbol.
|
|
Checks
Context | Check | Description |
---|---|---|
redhat-pt-bot/TryBot-apply_patch | success | Patch applied to master at the time it was sent |
redhat-pt-bot/TryBot-32bit | success | Build for i686 |
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 | success | Testing passed |
linaro-tcwg-bot/tcwg_glibc_build--master-arm | success | Testing passed |
linaro-tcwg-bot/tcwg_glibc_check--master-arm | success | Testing passed |
linaro-tcwg-bot/tcwg_glibc_check--master-aarch64 | success | Testing passed |
Commit Message
Frederic Cambus
Dec. 5, 2023, 11:23 a.m. UTC
Otherwise the warning message for the getwd symbol ends up being duplicated.
Signed-off-by: Frederic Cambus <fred@statdns.com>
---
debug/getwd_chk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Tue, Dec 05, 2023 at 12:23:07PM +0100, Frederic Cambus wrote: > Otherwise the warning message for the getwd symbol ends up being duplicated. > > Signed-off-by: Frederic Cambus <fred@statdns.com> > --- > debug/getwd_chk.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/debug/getwd_chk.c b/debug/getwd_chk.c > index 850aa1aa14..cf61d8d5a0 100644 > --- a/debug/getwd_chk.c > +++ b/debug/getwd_chk.c > @@ -29,5 +29,5 @@ __getwd_chk (char *buf, size_t buflen) > return res; > } > > -link_warning (getwd, > +link_warning (__getwd_chk, > "the `getwd' function is dangerous and should not be used.") > -- > 2.43.0 Ping. Anyone willing to look at this? In case it was not clear, here is the output of objdump before applying the patch: objdump -s -j .gnu.warning.getwd libc.so ./libc.so: file format elf64-x86-64 Contents of section .gnu.warning.getwd: 0000 74686520 60676574 77642720 66756e63 the `getwd' func 0010 74696f6e 20697320 64616e67 65726f75 tion is dangerou 0020 7320616e 64207368 6f756c64 206e6f74 s and should not 0030 20626520 75736564 2e000000 00000000 be used........ 0040 74686520 60676574 77642720 66756e63 the `getwd' func 0050 74696f6e 20697320 64616e67 65726f75 tion is dangerou 0060 7320616e 64207368 6f756c64 206e6f74 s and should not 0070 20626520 75736564 2e00 be used.. And after applying the patch: objdump -s -j .gnu.warning.getwd libc.so ./libc.so: file format elf64-x86-64 Contents of section .gnu.warning.getwd: 0000 74686520 60676574 77642720 66756e63 the `getwd' func 0010 74696f6e 20697320 64616e67 65726f75 tion is dangerou 0020 7320616e 64207368 6f756c64 206e6f74 s and should not 0030 20626520 75736564 2e00 be used..
On 05/12/23 08:23, Frederic Cambus wrote: > Otherwise the warning message for the getwd symbol ends up being duplicated. > > Signed-off-by: Frederic Cambus <fred@statdns.com> LGTM, thanks. Andreas will need to ack for 2.39. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org> > --- > debug/getwd_chk.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/debug/getwd_chk.c b/debug/getwd_chk.c > index 850aa1aa14..cf61d8d5a0 100644 > --- a/debug/getwd_chk.c > +++ b/debug/getwd_chk.c > @@ -29,5 +29,5 @@ __getwd_chk (char *buf, size_t buflen) > return res; > } > > -link_warning (getwd, > +link_warning (__getwd_chk, > "the `getwd' function is dangerous and should not be used.")
Am Montag, 8. Januar 2024, 15:32:07 CET schrieb Adhemerval Zanella Netto: > > On 05/12/23 08:23, Frederic Cambus wrote: > > Otherwise the warning message for the getwd symbol ends up being duplicated. > > > > Signed-off-by: Frederic Cambus <fred@statdns.com> > > LGTM, thanks. Andreas will need to ack for 2.39. OK imho. > > Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org> > > > --- > > debug/getwd_chk.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/debug/getwd_chk.c b/debug/getwd_chk.c > > index 850aa1aa14..cf61d8d5a0 100644 > > --- a/debug/getwd_chk.c > > +++ b/debug/getwd_chk.c > > @@ -29,5 +29,5 @@ __getwd_chk (char *buf, size_t buflen) > > return res; > > } > > > > -link_warning (getwd, > > +link_warning (__getwd_chk, > > "the `getwd' function is dangerous and should not be used.") >
diff --git a/debug/getwd_chk.c b/debug/getwd_chk.c index 850aa1aa14..cf61d8d5a0 100644 --- a/debug/getwd_chk.c +++ b/debug/getwd_chk.c @@ -29,5 +29,5 @@ __getwd_chk (char *buf, size_t buflen) return res; } -link_warning (getwd, +link_warning (__getwd_chk, "the `getwd' function is dangerous and should not be used.")