History

Merge branch 'uaccess.futex' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs into locking/core

Pull uaccess futex cleanups for Al Viro: Consolidate access_ok() usage and the futex uaccess function zoo.

Thomas Gleixner committed 6 years ago

Commit cf226c42 parents 9e86035 f5544ba22 files · +94 −184Browse files

Showing the changes to kernel (1 of 22 files). Show all

Unified · Split

kernel/futex.c+2−3
@@ -1665,10 +1665,9 @@ static int futex_atomic_op_inuser(unsigned int encoded_op, u32 __user *uaddr) · 1664 unmodified lines
16651665 oparg = 1 << oparg;
16661666 }
16671667
1668− if (!access_ok(uaddr, sizeof(u32)))
1669− return -EFAULT;
1670−
1668+ pagefault_disable();
16711669 ret = arch_futex_atomic_op_inuser(op, oparg, &oldval, uaddr);
1670+ pagefault_enable();
16721671 if (ret)
16731672 return ret;
16741673

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t