[LTP] 回复: [issue] cve-2015-3290: fail to compile

Hanxiao Chen (Fujitsu) chenhx.fnst@fujitsu.com
Fri Jan 10 11:49:00 CET 2025



> -----邮件原件-----
> 发件人: 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? 

Regards,
- Chen


[1]
https://www.brendangregg.com/blog/2024-03-17/the-return-of-the-frame-pointers.html


More information about the ltp mailing list