1
0
Fork 0
mirror of https://github.com/followmsi/android_kernel_google_msm.git synced 2024-11-06 23:17:41 +00:00
android_kernel_google_msm/fs
Rafael J. Wysocki 60bf2e03ee epoll: Fix user space breakage related to EPOLLWAKEUP
Commit 4d7e30d (epoll: Add a flag, EPOLLWAKEUP, to prevent
suspend while epoll events are ready) caused some applications to
malfunction, because they set the bit corresponding to the new
EPOLLWAKEUP flag in their eventpoll flags and they don't have the
new CAP_EPOLLWAKEUP capability.

To prevent that from happening, change epoll_ctl() to clear
EPOLLWAKEUP in epds.events if the caller doesn't have the
CAP_EPOLLWAKEUP capability instead of failing and returning an
error code, which allows the affected applications to function
normally.

Change-Id: I266634be5e16d3390fd1c62686a215af215c8d51
Reported-and-tested-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
2017-12-15 16:47:02 +03:00
..
9p fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
adfs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
affs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
afs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
autofs4 fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
befs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
bfs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
btrfs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
cachefiles switch touch_atime to struct path 2012-03-20 21:29:41 -04:00
ceph fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
cifs move d_rcu from overlapping d_child to overlapping d_alias 2017-09-22 19:11:55 +03:00
coda fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
configfs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
cramfs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
crypto ext4/fscrypto: avoid RCU lookup in d_revalidate 2016-10-29 23:12:37 +08:00
debugfs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
devpts fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
dlm dlm fixes for 3.4 2012-04-23 18:22:42 -07:00
ecryptfs BACKPORT: fs: limit filesystem stacking depth 2017-09-22 19:12:37 +03:00
efs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
exofs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
exportfs move d_rcu from overlapping d_child to overlapping d_alias 2017-09-22 19:11:55 +03:00
ext2 fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
ext3 fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
ext4 fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
f2fs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
fat fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
freevxfs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
fscache
fuse fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
gfs2 fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
hfs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
hfsplus fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
hostfs Merge branch 'for-linus-3.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml 2012-03-27 18:29:53 -07:00
hpfs switch open-coded instances of d_make_root() to new helper 2012-03-20 21:29:35 -04:00
hppfs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
hugetlbfs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
isofs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
jbd Power management updates for 3.4 2012-03-21 10:15:51 -07:00
jbd2 jbd2: use GFP_NOFS for blkdev_issue_flush 2012-04-23 21:43:41 -04:00
jffs2 fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
jfs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
lockd lockd: fix the endianness bug 2012-04-13 13:50:52 -04:00
logfs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
minix fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
ncpfs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
nfs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
nfs_common
nfsd fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
nilfs2 fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
nls
notify vfs: Add permission2 for filesystems with per mount permissions 2017-09-22 19:12:07 +03:00
ntfs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
ocfs2 fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
omfs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
openpromfs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
proc UPSTREAM: capabilities: ambient capabilities 2017-09-01 13:38:08 +03:00
pstore Merge branch 'akpm' (Andrew's patch-bomb) 2012-04-05 15:30:34 -07:00
qnx4 fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
qnx6 fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
quota Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs 2012-03-28 10:00:14 -07:00
ramfs tidy up after d_make_root() conversion 2012-03-20 21:29:37 -04:00
reiserfs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
romfs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
sdcardfs sdcardfs: Backport and use some 3.10 hlist/hash macros 2017-10-06 10:28:58 +03:00
squashfs Add an extra mount time sanity check, plus some code cleanups and bug fixes. 2012-03-28 18:05:54 -07:00
sysfs sysfs: handle 'parent deleted before child added' 2012-04-10 14:48:51 -07:00
sysv fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
ubifs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
udf udf: Check path length when reading symlink 2017-07-10 01:48:57 +03:00
ufs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
xfs fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
yaffs2 fs: yaffs2: Add null pointer check before dereferencing inode 2013-02-27 18:19:17 -08:00
aio.c BACKPORT: aio: mark AIO pseudo-fs noexec 2017-03-03 13:15:25 -07:00
anon_inodes.c anon_inodes: move allocation of anon_inode into ->mount() 2012-03-20 21:29:45 -04:00
attr.c vfs: Add setattr2 for filesystems with per mount permissions 2017-09-22 19:12:07 +03:00
bad_inode.c
binfmt_aout.c VM: add "vm_mmap()" helper function 2012-04-20 17:29:13 -07:00
binfmt_elf.c VM: add "vm_mmap()" helper function 2012-04-20 17:29:13 -07:00
binfmt_elf_fdpic.c VM: add "vm_mmap()" helper function 2012-04-20 17:29:13 -07:00
binfmt_em86.c __register_binfmt() made void 2012-03-20 21:29:46 -04:00
binfmt_flat.c VM: add "vm_mmap()" helper function 2012-04-20 17:29:13 -07:00
binfmt_misc.c fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
binfmt_script.c __register_binfmt() made void 2012-03-20 21:29:46 -04:00
binfmt_som.c VM: add "vm_mmap()" helper function 2012-04-20 17:29:13 -07:00
bio-integrity.c fs: remove the second argument of k[un]map_atomic() 2012-03-20 21:48:21 +08:00
bio.c bio allocation failure due to bio_get_nr_vecs() 2012-05-11 16:45:12 +02:00
block_dev.c block: don't mark buffers beyond end of disk as mapped 2012-05-11 16:42:14 +02:00
buffer.c block: fix infinite loop in __getblk_slow 2013-03-15 17:09:41 -07:00
char_dev.c
compat.c Merge branch 'x86-x32-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2012-03-29 18:12:23 -07:00
compat_binfmt_elf.c
compat_ioctl.c fs: Add TTY PM IOCTLs to compat table 2016-10-29 23:08:34 +08:00
dcache.c constify d_lookup() arguments 2017-09-22 19:12:14 +03:00
dcookies.c
direct-io.c
drop_caches.c
eventfd.c
eventpoll.c epoll: Fix user space breakage related to EPOLLWAKEUP 2017-12-15 16:47:02 +03:00
exec.c vfs: Add permission2 for filesystems with per mount permissions 2017-09-22 19:12:07 +03:00
fcntl.c
fhandle.c vfs: read file_handle only once in handle_to_path 2016-10-29 23:12:11 +08:00
fifo.c
file.c Merge branch 'x86-x32-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2012-03-29 18:12:23 -07:00
file_table.c brlocks/lglocks: API cleanups 2015-07-13 11:17:41 -07:00
filesystems.c fs: Limit sys_mount to only request filesystem modules. 2017-09-22 19:12:20 +03:00
fs-writeback.c sync: don't block the flusher thread waiting on IO 2016-10-29 23:12:18 +08:00
fs_struct.c sdcardfs: override umask on mkdir and create 2017-09-22 19:12:02 +03:00
generic_acl.c BACKPORT: posix_acl: Clear SGID bit when setting file permissions 2017-06-26 20:26:17 +03:00
inode.c fs: introduce inode operation ->update_time 2015-07-13 11:17:49 -07:00
internal.h vfs: Allow filesystems to access their private mount data 2017-09-22 19:12:06 +03:00
ioctl.c
ioprio.c block: fix use-after-free in sys_ioprio_get() 2016-11-11 13:35:57 +11:00
Kconfig Included sdcardfs source code for kernel 3.0 2017-09-22 19:11:56 +03:00
Kconfig.binfmt
libfs.c move d_rcu from overlapping d_child to overlapping d_alias 2017-09-22 19:11:55 +03:00
locks.c CIFS: Fix VFS lock usage for oplocked files 2012-04-01 13:54:27 -05:00
Makefile Included sdcardfs source code for kernel 3.0 2017-09-22 19:11:56 +03:00
mbcache.c
mount.h proc: Usable inode numbers for the namespace file descriptors. 2015-07-13 11:18:01 -07:00
mpage.c
namei.c ANDROID: vfs: Missed updating truncate to truncate2 2017-09-22 19:12:10 +03:00
namespace.c ANDROID: mnt: Fix freeing of mount data 2017-09-22 19:12:38 +03:00
no-block.c
open.c vfs: Add setattr2 for filesystems with per mount permissions 2017-09-22 19:12:07 +03:00
pipe.c pipe: limit the per-user amount of pages allocated in pipes 2016-10-29 23:12:35 +08:00
pnode.c ANDROID: mnt: Fix next_descendent 2017-09-22 19:12:35 +03:00
pnode.h ANDROID: mnt: remount should propagate to slaves of slaves 2017-09-22 19:12:11 +03:00
posix_acl.c BACKPORT: posix_acl: Clear SGID bit when setting file permissions 2017-06-26 20:26:17 +03:00
proc_namespace.c vfs: Allow filesystems to access their private mount data 2017-09-22 19:12:06 +03:00
read_write.c
read_write.h
readdir.c kernel: Only expose su when daemon is running 2017-05-19 18:41:25 -06:00
select.c select: use freezable blocking call 2013-07-12 14:22:58 -07:00
seq_file.c fs/seq_file: Use vmalloc by default for allocations > PAGE_SIZE 2014-11-18 15:13:24 -08:00
signalfd.c
splice.c splice: introduce FMODE_SPLICE_READ and FMODE_SPLICE_WRITE 2017-06-26 21:30:22 +03:00
stack.c
stat.c The following text was taken from the original review request: 2012-03-24 10:24:31 -07:00
statfs.c
super.c fs/super.c: sync ro remount after blocking writers 2017-10-06 10:28:36 +03:00
sync.c
timerfd.c timerfd: support CLOCK_BOOTTIME clock 2017-08-27 19:07:23 +03:00
utimes.c vfs: Add setattr2 for filesystems with per mount permissions 2017-09-22 19:12:07 +03:00
xattr.c fs/xattr.c:setxattr(): improve handling of allocation failures 2012-04-05 15:25:50 -07:00
xattr_acl.c