public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [issue] cve-2015-3290: fail to compile
@ 2025-01-10  8:39 Ma Xinjian via ltp
  2025-01-10 10:36 ` Cyril Hrubis
  0 siblings, 1 reply; 4+ messages in thread
From: Ma Xinjian via ltp @ 2025-01-10  8:39 UTC (permalink / raw)
  To: ltp

Hi all,

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

Environment info:
    OS: Centos 10 stream
    Architecture: x86_64
    Kernel Version: kernel-6.12.0-35.el10.x86_64.rpm
    GCC Version: gcc-14.2.1-6.el10.x86_64

Step to Reproduce:
# git clone https://github.com/linux-test-project/ltp.git
# cd ltp
# make autotools
# ./configure
# make

Best regards
Ma

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LTP] [issue] cve-2015-3290: fail to compile
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Cyril Hrubis @ 2025-01-10 10:36 UTC (permalink / raw)
  To: Ma Xinjian; +Cc: ltp

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/cbfad3ba07155cf82ea4b8efa0390787af817323

-- 
Cyril Hrubis
chrubis@suse.cz

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [LTP] 回复:  [issue] cve-2015-3290: fail to compile
  2025-01-10 10:36 ` Cyril Hrubis
@ 2025-01-10 10:49   ` Hanxiao Chen (Fujitsu) via ltp
  2025-01-20 15:44     ` Petr Vorel
  0 siblings, 1 reply; 4+ messages in thread
From: Hanxiao Chen (Fujitsu) via ltp @ 2025-01-10 10:49 UTC (permalink / raw)
  To: Cyril Hrubis, Xinjian Ma (Fujitsu); +Cc: ltp@lists.linux.it



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

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LTP]  回复: [issue] cve-2015-3290: fail to compile
  2025-01-10 10:49   ` [LTP] 回复: " Hanxiao Chen (Fujitsu) via ltp
@ 2025-01-20 15:44     ` Petr Vorel
  0 siblings, 0 replies; 4+ messages in thread
From: Petr Vorel @ 2025-01-20 15:44 UTC (permalink / raw)
  To: Hanxiao Chen (Fujitsu); +Cc: ltp@lists.linux.it

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-01-20 15:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox