diff options
| author | Zhaolong Zhang <[email protected]> | 2021-11-02 08:24:37 +0000 |
|---|---|---|
| committer | Thomas Bogendoerfer <[email protected]> | 2021-11-02 10:15:09 +0000 |
| commit | f69fa4c81b426ef07157704ba27e73a42f4911de (patch) | |
| tree | d5b5e42d90c5b67299135014544786a877ce579e /fs/ext4/fast_commit.c | |
| parent | mips: cm: Convert to bitfield API to fix out-of-bounds access (diff) | |
| download | kernel-f69fa4c81b426ef07157704ba27e73a42f4911de.tar.gz kernel-f69fa4c81b426ef07157704ba27e73a42f4911de.zip | |
mips: fix HUGETLB function without THP enabled
ltp test futex_wake04 without THP enabled leads to below bt:
[<ffffffff80a03728>] BUG+0x0/0x8
[<ffffffff80a0624c>] internal_get_user_pages_fast+0x81c/0x820
[<ffffffff8093ac18>] get_futex_key+0xa0/0x480
[<ffffffff8093b074>] futex_wait_setup+0x7c/0x1a8
[<ffffffff8093b2c0>] futex_wait+0x120/0x228
[<ffffffff8093dbe8>] do_futex+0x140/0xbd8
[<ffffffff8093e78c>] sys_futex+0x10c/0x1c0
[<ffffffff808703d0>] syscall_common+0x34/0x58
Move pmd_write() and pmd_page() from TRANSPARENT_HUGEPAGE scope to
MIPS_HUGE_TLB_SUPPORT scope, because both THP and HUGETLB will need
them.
Signed-off-by: Zhaolong Zhang <[email protected]>
Signed-off-by: Thomas Bogendoerfer <[email protected]>
Diffstat (limited to 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions
