From: Petr Vorel <pvorel@suse.cz>
To: "Hanxiao Chen (Fujitsu)" <chenhx.fnst@fujitsu.com>
Cc: "ltp@lists.linux.it" <ltp@lists.linux.it>
Subject: Re: [LTP] 回复: [issue] cve-2015-3290: fail to compile
Date: Mon, 20 Jan 2025 16:44:50 +0100 [thread overview]
Message-ID: <20250120154450.GB812655@pevik> (raw)
In-Reply-To: <TYWPR01MB12085B661943F6DDAB5582130E61C2@TYWPR01MB12085.jpnprd01.prod.outlook.com>
Hi all,
> > -----邮件原件-----
> > 发件人: ltp <ltp-bounces+chenhx.fnst=fujitsu.com@lists.linux.it> 代表 Cyril
> > Hrubis
> > 发送时间: 2025年1月10日 18:36
> > 收件人: Ma, Xinjian<maxj.fnst@fujitsu.com>
> > 抄送: ltp@lists.linux.it
> > 主题: Re: [LTP] [issue] cve-2015-3290: fail to compile
> > Hi!
> > > When I compile ltp on Centos10, it failed at cve-2015-3290.c.
> > > If anyone could provide some advice, I would greatly appreciate it.
> > > Error info:
> > > cve-2015-3290.c: In function ‘child_thread’:
> > > cve-2015-3290.c:437:1: error: bp cannot be used in ‘asm’ here
> > > 437 | }
> > > | ^
> > > make[2]: *** [../../include/mk/rules.mk:45: cve-2015-3290] Error 1
> > > make[1]: *** [../include/mk/generic_trunk_target.inc:108: all] Error 2
> > > make[1]: Leaving directory '/root/ltp/testcases'
> > > make: *** [Makefile:85: testcases-all] Error 2
> > That looks like:
> > https://github.com/linux-test-project/ltp/issues/313
> > But that is supposedly fixed by:
> > https://github.com/linux-test-project/ltp/commit/cbfad3ba07155cf82ea4b8efa
> > 0390787af817323
> My two cents:
> In the early version of CentOS 10 stream, with gcc-14.1.1-5.el10.x86_64, there is no compile error for cve-2015-3290.c
> But when I update gcc to gcc-14.2.1-6.el10.x86_64, I hit the same issue as Ma.
> Seam like commit cbfad3ba CFLAG -fomit-frame-pointer does not works at all.
> I see some articles describe about frame pointers[1], -fomit-frame-pointer should work...
> Does this issue a GCC bug or a new feature which deprecated something?
FYI I tested compilation with clang 14.0.6 on Debian bookworm (stable) podman
container and everything works as expected:
$ make cve-2015-3290 V=1; echo $?
removed 'cve-2015-3290'
clang -D_FORTIFY_SOURCE=2 -I../../include -I../../include -I../../include/old/ -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -Wold-style-definition -std=gnu99 -D_GNU_SOURCE -pthread -fomit-frame-pointer -L../../lib cve-2015-3290.c -lltp -o cve-2015-3290
0
Kind regards,
Petr
> Regards,
> - Chen
> [1]
> https://www.brendangregg.com/blog/2024-03-17/the-return-of-the-frame-pointers.html
--
Mailing list info: https://lists.linux.it/listinfo/ltp
prev parent reply other threads:[~2025-01-20 15:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-10 8:39 [LTP] [issue] cve-2015-3290: fail to compile Ma Xinjian via ltp
2025-01-10 10:36 ` Cyril Hrubis
2025-01-10 10:49 ` [LTP] 回复: " Hanxiao Chen (Fujitsu) via ltp
2025-01-20 15:44 ` Petr Vorel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250120154450.GB812655@pevik \
--to=pvorel@suse.cz \
--cc=chenhx.fnst@fujitsu.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox