From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id D5E3B3851157; Wed, 12 Oct 2022 14:15:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D5E3B3851157 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1665584129; bh=03Z1G6FgCLnAB6quQ56rj6/QwScj5I+8nOlXCtQKkg0=; h=From:To:Subject:Date:From; b=oKb15bX0DqmnOyfpeDrhc0dYnSA5hr6xGlnwqyk27eLSgjZbZ/QFmN/3zRe/0pp0V WK5ON04SjWRCeF/EI06TPeeFVGjgUhAlylr9RH1Ata7Vkwao8Nm6l2EiBoM2bWlN3j 6VL2Tb5mbat9KktI/x+88jikLxjtNYZasnpAcuMc= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Szabolcs Nagy To: glibc-cvs@sourceware.org Subject: [glibc/arm/morello/main] Fix elf/tst-tls20 stack OOB access X-Act-Checkin: glibc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/arm/morello/main X-Git-Oldrev: 00f9cd1a70c35304b4fb4b6dbcdf2f78228c912b X-Git-Newrev: 37cfa707b08a6d8c060d7fdebf2cc255e1de8908 Message-Id: <20221012141529.D5E3B3851157@sourceware.org> Date: Wed, 12 Oct 2022 14:15:29 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=37cfa707b08a6d8c060d7fdebf2cc255e1de8908 commit 37cfa707b08a6d8c060d7fdebf2cc255e1de8908 Author: Szabolcs Nagy Date: Tue Oct 11 13:07:59 2022 +0100 Fix elf/tst-tls20 stack OOB access Off-by-one error found on morello with strict stack bounds. Diff: --- elf/tst-tls20.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elf/tst-tls20.c b/elf/tst-tls20.c index ce4635eeb1..3e94590a00 100644 --- a/elf/tst-tls20.c +++ b/elf/tst-tls20.c @@ -342,7 +342,7 @@ do_test_invalid_dependency (bool bind_now) xdlclose (moddep); } - for (int n = 1; n <= nmods; n++) + for (int n = 1; n < nmods; n++) if (mods[n] != 0) unload_mod (n); }