Skip to content

Seccomp violation when enabling amx feature #7516

@lisongqian

Description

@lisongqian

Describe the bug
Seccomp violation when enabling AMX feature

To Reproduce

Launch vmm with amx feature:

./cloud-hypervisor -v --log-file 2.log \
 --vsock cid=3,id=_vsock0,socket=v1.sock \
 --api-socket api1.sock \
 --cpus boot=2,features=amx \
 --memory size=16G \
 --net id=net123,tap=vmtap0,mac=12:34:56:78:90:01,ip=192.168.249.2,mask=255.255.255.0 \
 --kernel vmlinux \
 --serial tty,file=s.log  \
 --console off \
 --cmdline "root=/dev/vda console=ttyS0 rw highres=off clocksource=kvm-clock quiet earlyprintk=ttyS0" \
--disk path=ubuntu-22.04.ext4

Logs

strace info:

--- SIGSYS {si_signo=SIGSYS, si_code=SYS_SECCOMP, si_call_addr=0x7fea80ef0c31, si_syscall=__NR_arch_prctl, si_arch=AUDIT_ARCH_X86_64} ---
write(2, "\n==== Possible seccomp violation"..., 173) = 173
rt_sigaction(SIGSYS, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fea80ef17ca}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [SYS], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1 RT_2], [INT TERM WINCH], 8) = 0
tkill(2627707, SIGSYS)                  = 0
rt_sigprocmask(SIG_SETMASK, [INT TERM WINCH], NULL, 8) = 0
--- SIGSYS {si_signo=SIGSYS, si_code=SI_TKILL, si_pid=2627706, si_uid=0} ---
+++ killed by SIGSYS (core dumped) +++

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions