mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
runsc/seccomp: allow sched_getaffinity if race is on
Reported-by: syzbot+a9d200b7b966fb93070d@syzkaller.appspotmail.com PiperOrigin-RevId: 547926332
This commit is contained in:
@@ -26,16 +26,17 @@ import (
|
||||
func instrumentationFilters() seccomp.SyscallRules {
|
||||
Report("TSAN is enabled: syscall filters less restrictive!")
|
||||
return archInstrumentationFilters(seccomp.SyscallRules{
|
||||
unix.SYS_BRK: {},
|
||||
unix.SYS_CLOCK_NANOSLEEP: {},
|
||||
unix.SYS_CLONE: {},
|
||||
unix.SYS_CLONE3: {},
|
||||
unix.SYS_FUTEX: {},
|
||||
unix.SYS_MMAP: {},
|
||||
unix.SYS_MUNLOCK: {},
|
||||
unix.SYS_NANOSLEEP: {},
|
||||
unix.SYS_OPENAT: {},
|
||||
unix.SYS_RSEQ: {},
|
||||
unix.SYS_SET_ROBUST_LIST: {},
|
||||
unix.SYS_BRK: {},
|
||||
unix.SYS_CLOCK_NANOSLEEP: {},
|
||||
unix.SYS_CLONE: {},
|
||||
unix.SYS_CLONE3: {},
|
||||
unix.SYS_FUTEX: {},
|
||||
unix.SYS_MMAP: {},
|
||||
unix.SYS_MUNLOCK: {},
|
||||
unix.SYS_NANOSLEEP: {},
|
||||
unix.SYS_OPENAT: {},
|
||||
unix.SYS_RSEQ: {},
|
||||
unix.SYS_SET_ROBUST_LIST: {},
|
||||
unix.SYS_SCHED_GETAFFINITY: {},
|
||||
})
|
||||
}
|
||||
|
||||
@@ -27,17 +27,18 @@ import (
|
||||
func instrumentationFilters() seccomp.SyscallRules {
|
||||
log.Warningf("*** SECCOMP WARNING: TSAN is enabled: syscall filters less restrictive!")
|
||||
return archInstrumentationFilters(seccomp.SyscallRules{
|
||||
unix.SYS_BRK: {},
|
||||
unix.SYS_CLOCK_NANOSLEEP: {},
|
||||
unix.SYS_CLONE: {},
|
||||
unix.SYS_CLONE3: {},
|
||||
unix.SYS_FUTEX: {},
|
||||
unix.SYS_MADVISE: {},
|
||||
unix.SYS_MMAP: {},
|
||||
unix.SYS_MUNLOCK: {},
|
||||
unix.SYS_NANOSLEEP: {},
|
||||
unix.SYS_OPENAT: {},
|
||||
unix.SYS_RSEQ: {},
|
||||
unix.SYS_SET_ROBUST_LIST: {},
|
||||
unix.SYS_BRK: {},
|
||||
unix.SYS_CLOCK_NANOSLEEP: {},
|
||||
unix.SYS_CLONE: {},
|
||||
unix.SYS_CLONE3: {},
|
||||
unix.SYS_FUTEX: {},
|
||||
unix.SYS_MADVISE: {},
|
||||
unix.SYS_MMAP: {},
|
||||
unix.SYS_MUNLOCK: {},
|
||||
unix.SYS_NANOSLEEP: {},
|
||||
unix.SYS_OPENAT: {},
|
||||
unix.SYS_RSEQ: {},
|
||||
unix.SYS_SET_ROBUST_LIST: {},
|
||||
unix.SYS_SCHED_GETAFFINITY: {},
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user