• Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category Source Forks
  • Assigned To
    Andreas Baumann
  • Operating System
  • Severity Low
  • Priority Medium
  • Reported Version
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Archlinux32
Opened by Andreas Baumann - 11.03.2018
Last edited by Andreas Baumann - 12.04.2018

FS#30 - libaio, will fail with stack smash protection enabled, when compiled next time

io_queue_run.os: In function `io_queue_run':
io_queue_run.c:(.text+0x71): undefined reference to `__stack_chk_fail_local'
io_getevents.os: In function `__io_getevents_0_4':
io_getevents.c:(.text+0x48): undefined reference to `__stack_chk_fail_local'
compat-0_1.os: In function `compat0_1_io_cancel':
compat-0_1.c:(.text+0x43): undefined reference to `__stack_chk_fail_local'
compat-0_1.os: In function `compat0_1_io_queue_wait':
compat-0_1.c:(.text+0xaf): undefined reference to `__stack_chk_fail_local'
compat-0_1.os: In function `compat0_1_io_getevents':
compat-0_1.c:(.text+0x125): undefined reference to `__stack_chk_fail_local'
collect2: error: ld returned 1 exit status

As libaio is merely a wrapper over the kernel, I suggest to disable SSP in this
case with -fno-stack-protector.

Closed by  Andreas Baumann
12.04.2018 05:04
Reason for closing:  Fixed
Additional comments about closing:  

Moved from archlinux32/bootstrap32 to archlinux32/packages.

Admin
Andreas Baumann commented on 11.03.2018 16:05

I'm feeling not very comfortable to change this directly in Archlinux32 because of possible
breaks, I'm trying this on the i486 bootstrapping branch first..

Admin
Andreas Baumann commented on 11.03.2018 16:13

Suggested patch in PKGBUILD:

sed -i 's/\(CFLAGS=.*\)/#\1/' PKGBUILD
sed -i 's@make$@CFLAGS="-march=${CARCH/_/-} -mtune=generic -O2 -pipe -fno-stack-protector" make@' PKGBUILD

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing