gvisor/pkg
Jamie Liu b935311e23 Do not use fs.FileOwnerFromContext in fs/proc.file.UnstableAttr().
From //pkg/sentry/context/context.go:

// - It is *not safe* to retain a Context passed to a function beyond the scope
// of that function call.

Passing a stored kernel.Task as a context.Context to
fs.FileOwnerFromContext violates this requirement.

PiperOrigin-RevId: 211143021
Change-Id: I4c5b02bd941407be4c9cfdbcbdfe5a26acaec037
2018-08-31 14:17:56 -07:00
..
abi Add /proc/sys/kernel/shm[all,max,mni]. 2018-08-27 17:21:37 -07:00
amutex stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
atomicbitops stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
binary binary: append slices 2018-08-21 16:26:32 -07:00
bits stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
bpf Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00
compressio compressio: support optional hashing and eliminate hashio. 2018-08-24 14:53:31 -07:00
control stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
cpuid Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00
dhcp Upstreaming DHCP changes from Fuchsia 2018-08-25 06:17:32 -07:00
eventchannel stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
fd stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
gate stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
ilist Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00
linewriter stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
log stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
metric stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
p9 Add path sanity checks. 2018-08-13 12:50:29 -07:00
rand Allow building on !linux 2018-08-22 13:31:11 -07:00
refs stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
seccomp SyscallRules merge and add were dropping AllowAny rules 2018-08-24 11:39:21 -07:00
secio stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
segment Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00
sentry Do not use fs.FileOwnerFromContext in fs/proc.file.UnstableAttr(). 2018-08-31 14:17:56 -07:00
sleep stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
state sentry: avoid double counting map objects in save / restore stats. 2018-08-28 09:21:16 -07:00
sync stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
syserr Reduce map lookups in syserr 2018-08-14 19:03:38 -07:00
syserror stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
tcpip ipv6: ICMP support 2018-08-31 10:23:32 -07:00
tmutex stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
unet stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
urpc runsc fsgofer: Support dynamic serving of filesystems. 2018-08-15 16:25:22 -07:00
waiter Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00