Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 802834 - sys-block/arcconf needs legacy vsyscall emulation
Summary: sys-block/arcconf needs legacy vsyscall emulation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal minor (vote)
Assignee: Conrad Kostecki
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-19 05:58 UTC by Janpieter Sollie
Modified: 2021-08-16 19:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Janpieter Sollie 2021-07-19 05:58:01 UTC
arcconf should check kernel config for legacy vsyscall support, it fails (segfault) if it's not present

Reproducible: Always

Steps to Reproduce:
1. compile kernel without vsyscall
2. install arcconf
3. run arcconf
Actual Results:  
segfault

Expected Results:  
program runs

using vanilla 5.13 kernel on gcc 10.3
Comment 1 Conrad Kostecki gentoo-dev 2021-07-20 18:20:36 UTC
Hi. Are we talking here about 'CONFIG_X86_VSYSCALL_EMULATION'?
Comment 2 Conrad Kostecki gentoo-dev 2021-07-23 19:35:32 UTC
Hi. I am not able to reproduce. My System has disabled SYSVCALL.

CONFIG_GENERIC_TIME_VSYSCALL=y
# CONFIG_X86_VSYSCALL_EMULATION is not set
# CONFIG_LEGACY_VSYSCALL_EMULATE is not set
# CONFIG_LEGACY_VSYSCALL_XONLY is not set
CONFIG_LEGACY_VSYSCALL_NONE=y

'arcconf' works perfectly fine with my Adaptec controller.
Comment 3 Conrad Kostecki gentoo-dev 2021-07-28 21:11:38 UTC
Closing, as I need more info.
Comment 4 Conrad Kostecki gentoo-dev 2021-08-16 19:14:12 UTC
I was able now to reproduce. Will add the check.
Comment 5 Larry the Git Cow gentoo-dev 2021-08-16 19:15:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eecd3bfcaabc16c9e691299200fc6319e991f790

commit eecd3bfcaabc16c9e691299200fc6319e991f790
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2021-08-16 19:15:12 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2021-08-16 19:15:36 +0000

    sys-block/arcconf: add check for vsyscall
    
    VSYSCALL is needed, as otherwise arcconf will directly segfault upon
    calling.
    
    Closes: https://bugs.gentoo.org/802834
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 sys-block/arcconf/arcconf-3.07.23971.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)