Commit Graph

25 Commits

Author SHA1 Message Date
Robert Foss 924d18c02b
fault-inject: improve build for CONFIG_FAULT_INJECTION=n
JIRA: https://issues.redhat.com/browse/RHEL-53569
Upstream Status: v6.12-rc1

Conflicts:
	DRM-backport will backport changes to the below
	files, but since they are merged seperately, the
	conflict is resolved here to keep this commit
	building.

	drivers/gpu/drm/msm/msm_drv.c
        drivers/iommu/iommufd/selftest.c
        drivers/misc/xilinx_tmr_inject.c

	No functional changes are intended for these files
	but since the codebase in  v5.17 has diverged substantially
	from upstream this commit does not apply cleanly.

        include/ufs/ufshcd.h
        kernel/futex/core.c
        mm/fail_page_alloc.c
        mm/failslab.c

commit 6ce2082fd3a25d5a8c756120959237cace0379f1
Author:     Jani Nikula <jani.nikula@intel.com>
AuthorDate: Tue Aug 13 15:12:35 2024 +0300
Commit:     Andrew Morton <akpm@linux-foundation.org>
CommitDate: Sun Sep  1 20:43:33 2024 -0700

    The fault-inject.h users across the kernel need to add a lot of #ifdef
    CONFIG_FAULT_INJECTION to cater for shortcomings in the header.  Make
    fault-inject.h self-contained for CONFIG_FAULT_INJECTION=n, and add stubs
    for DECLARE_FAULT_ATTR(), setup_fault_attr(), should_fail_ex(), and
    should_fail() to allow removal of conditional compilation.

    [akpm@linux-foundation.org: repair fallout from no longer including debugfs.h into fault-inject.h]
    [akpm@linux-foundation.org: fix drivers/misc/xilinx_tmr_inject.c]
    [akpm@linux-foundation.org: Add debugfs.h inclusion to more files, per Stephen]
    Link: https://lkml.kernel.org/r/20240813121237.2382534-1-jani.nikula@intel.com
    Fixes: 6ff1cb355e ("[PATCH] fault-injection capabilities infrastructure")
    Signed-off-by: Jani Nikula <jani.nikula@intel.com>
    Cc: Akinobu Mita <akinobu.mita@gmail.com>
    Cc: Abhinav Kumar <quic_abhinavk@quicinc.com>
    Cc: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
    Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
    Cc: Lucas De Marchi <lucas.demarchi@intel.com>
    Cc: Rob Clark <robdclark@gmail.com>
    Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
    Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
    Cc: Stephen Rothwell <sfr@canb.auug.org.au>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

Signed-off-by: Robert Foss <rfoss@redhat.com>
2024-12-17 22:59:23 +01:00
Rafael Aquini 144c8b3a02 mm/mm_init.c: remove obsolete macro HASH_SMALL
JIRA: https://issues.redhat.com/browse/RHEL-27743

This patch is a backport of the following upstream commit:
commit 3fade62b62e84dd8dbf6e92d494b0e7eca750c43
Author: Miaohe Lin <linmiaohe@huawei.com>
Date:   Sun Jun 25 10:13:23 2023 +0800

    mm/mm_init.c: remove obsolete macro HASH_SMALL

    HASH_SMALL only works when parameter numentries is 0. But the sole caller
    futex_init() never calls alloc_large_system_hash() with numentries set to
    0. So HASH_SMALL is obsolete and remove it.

    Link: https://lkml.kernel.org/r/20230625021323.849147-1-linmiaohe@huawei.com
    Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
    Reviewed-by: Mike Rapoport (IBM) <rppt@kernel.org>
    Cc: André Almeida <andrealmeid@igalia.com>
    Cc: Darren Hart <dvhart@infradead.org>
    Cc: Davidlohr Bueso <dave@stgolabs.net>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Miaohe Lin <linmiaohe@huawei.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

Signed-off-by: Rafael Aquini <raquini@redhat.com>
2024-10-01 11:18:14 -04:00
Waiman Long 6b9895693c futex: Prevent the reuse of stale pi_state
JIRA: https://issues.redhat.com/browse/RHEL-28616

commit e626cb02ee8399fd42c415e542d031d185783903
Author: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Date:   Thu, 18 Jan 2024 12:54:51 +0100

    futex: Prevent the reuse of stale pi_state

    Jiri Slaby reported a futex state inconsistency resulting in -EINVAL during
    a lock operation for a PI futex. It requires that the a lock process is
    interrupted by a timeout or signal:

      T1 Owns the futex in user space.

      T2 Tries to acquire the futex in kernel (futex_lock_pi()). Allocates a
         pi_state and attaches itself to it.

      T2 Times out and removes its rt_waiter from the rt_mutex. Drops the
         rtmutex lock and tries to acquire the hash bucket lock to remove
         the futex_q. The lock is contended and T2 schedules out.

      T1 Unlocks the futex (futex_unlock_pi()). Finds a futex_q but no
         rt_waiter. Unlocks the futex (do_uncontended) and makes it available
         to user space.

      T3 Acquires the futex in user space.

      T4 Tries to acquire the futex in kernel (futex_lock_pi()). Finds the
         existing futex_q of T2 and tries to attach itself to the existing
         pi_state.  This (attach_to_pi_state()) fails with -EINVAL because uval
         contains the TID of T3 but pi_state points to T1.

    It's incorrect to unlock the futex and make it available for user space to
    acquire as long as there is still an existing state attached to it in the
    kernel.

    T1 cannot hand over the futex to T2 because T2 already gave up and started
    to clean up and is blocked on the hash bucket lock, so T2's futex_q with
    the pi_state pointing to T1 is still queued.

    T2 observes the futex_q, but ignores it as there is no waiter on the
    corresponding rt_mutex and takes the uncontended path which allows the
    subsequent caller of futex_lock_pi() (T4) to observe that stale state.

    To prevent this the unlock path must dequeue all futex_q entries which
    point to the same pi_state when there is no waiter on the rt mutex. This
    requires obviously to make the dequeue conditional in the locking path to
    prevent a double dequeue. With that it's guaranteed that user space cannot
    observe an uncontended futex which has kernel state attached.

    Fixes: fbeb558b0dd0d ("futex/pi: Fix recursive rt_mutex waiter state")
    Reported-by: Jiri Slaby <jirislaby@kernel.org>
    Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Tested-by: Jiri Slaby <jirislaby@kernel.org>
    Link: https://lore.kernel.org/r/20240118115451.0TkD_ZhB@linutronix.de
    Closes: https://lore.kernel.org/all/4611bcf2-44d0-4c34-9b84-17406f881003@kernel.org

Signed-off-by: Waiman Long <longman@redhat.com>
2024-03-27 10:12:24 -04:00
Waiman Long 23d6f37209 futex: Fix hardcoded flags
JIRA: https://issues.redhat.com/browse/RHEL-28616

commit c9bd1568d5462f4108417518ce1af7b924acfb6f
Author: Peter Zijlstra <peterz@infradead.org>
Date:   Tue, 14 Nov 2023 21:36:13 +0100

    futex: Fix hardcoded flags

    Xi reported that commit 5694289ce183 ("futex: Flag conversion") broke
    glibc's robust futex tests.

    This was narrowed down to the change of FLAGS_SHARED from 0x01 to
    0x10, at which point Florian noted that handle_futex_death() has a
    hardcoded flags argument of 1.

    Change this to: FLAGS_SIZE_32 | FLAGS_SHARED, matching how
    futex_to_flags() unconditionally sets FLAGS_SIZE_32 for all legacy
    futex ops.

    Reported-by: Xi Ruoyao <xry111@xry111.site>
    Reported-by: Florian Weimer <fweimer@redhat.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Signed-off-by: Ingo Molnar <mingo@kernel.org>
    Link: https://lkml.kernel.org/r/20231114201402.GA25315@noisy.programming.kicks-ass.net
    Fixes: 5694289ce183 ("futex: Flag conversion")
    Cc: <stable@vger.kernel.org>

Signed-off-by: Waiman Long <longman@redhat.com>
2024-03-27 10:12:20 -04:00
Waiman Long 0b09ae9329 futex: Propagate flags into get_futex_key()
JIRA: https://issues.redhat.com/browse/RHEL-28616

commit 3b63a55f498b763aba0886b244df613587a73c46
Author: peterz@infradead.org <peterz@infradead.org>
Date:   Thu, 21 Sep 2023 12:45:13 +0200

    futex: Propagate flags into get_futex_key()

    Instead of only passing FLAGS_SHARED as a boolean, pass down flags as
    a whole.

    No functional change intended.

    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
    Link: https://lore.kernel.org/r/20230921105248.282857501@noisy.programming.kicks-ass.net

Signed-off-by: Waiman Long <longman@redhat.com>
2024-03-27 10:06:06 -04:00
Waiman Long ec2d33fd18 futex: Use a folio instead of a page
JIRA: https://issues.redhat.com/browse/RHEL-28616

commit e35a6cf1cc343d720ad235f678f1cd2a9876b777
Author: Matthew Wilcox (Oracle) <willy@infradead.org>
Date:   Mon, 21 Aug 2023 15:22:07 +0100

    futex: Use a folio instead of a page

    The futex code already handles compound pages correctly, but using a folio
    tells the compiler that there is already a reference to the head page and
    it doesn't need to call compound_head() again.

    Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>
    Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Link: https://lore.kernel.org/r/20230821142207.2537124-1-willy@infradead.org

Signed-off-by: Waiman Long <longman@redhat.com>
2024-03-27 10:05:56 -04:00
Joel Savitz 50675e2c30 futex: Don't include process MM in futex key on no-MMU
JIRA: https://issues.redhat.com/browse/RHEL-5226

commit c73801ae4f22b390228ebf471d55668e824198b6
Author: Ben Wolsieffer <ben.wolsieffer@hefring.com>
Date:   Thu Oct 19 16:45:49 2023 -0400

    futex: Don't include process MM in futex key on no-MMU

    On no-MMU, all futexes are treated as private because there is no need
    to map a virtual address to physical to match the futex across
    processes. This doesn't quite work though, because private futexes
    include the current process's mm_struct as part of their key. This makes
    it impossible for one process to wake up a shared futex being waited on
    in another process.

    Fix this bug by excluding the mm_struct from the key. With
    a single address space, the futex address is already a unique key.

    Fixes: 784bdf3bb6 ("futex: Assume all mappings are private on !MMU systems")
    Signed-off-by: Ben Wolsieffer <ben.wolsieffer@hefring.com>
    Signed-off-by: Ingo Molnar <mingo@kernel.org>
    Acked-by: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Darren Hart <dvhart@infradead.org>
    Cc: Davidlohr Bueso <dave@stgolabs.net>
    Cc: André Almeida <andrealmeid@igalia.com>
    Link: https://lore.kernel.org/r/20231019204548.1236437-2-ben.wolsieffer@hefring.com"

Signed-off-by: Joel Savitz <jsavitz@redhat.com>
2024-01-15 10:10:44 -05:00
Joel Savitz df72b804cc futex: Remove futex_cmpxchg detection
confict in arch/arm/Kconfig:
	detail: divergence in context of config change
	action: maintain existing code
conflict in arch/xtensa/Kconfig:
	detail: removed config option line is slightly different
	action: remove it anyway

commit 3297481d688a5cc2973ea58bd78e66b8639748b1
Author: Arnd Bergmann <arnd@arndb.de>
Date:   Tue Oct 26 12:03:48 2021 +0200

    futex: Remove futex_cmpxchg detection

    Now that all architectures have a working futex implementation in any
    configuration, remove the runtime detection code.

    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
    Acked-by: Vineet Gupta <vgupta@kernel.org>
    Acked-by: Max Filippov <jcmvbkbc@gmail.com>
    Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
    Link: https://lore.kernel.org/r/20211026100432.1730393-2-arnd@kernel.org

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2176147
Signed-off-by: Joel Savitz <jsavitz@redhat.com>
2023-03-07 15:26:27 -05:00
Rafael Aquini 5806d0b3b7 futex: Resend potentially swallowed owner death notification
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2161817

This patch is a backport of the following upstream commit:
commit 90d758896787048fa3d4209309d4800f3920e66f
Author: Alexey Izbyshev <izbyshev@ispras.ru>
Date:   Sat Nov 12 00:54:39 2022 +0300

    futex: Resend potentially swallowed owner death notification

    Commit ca16d5bee5 ("futex: Prevent robust futex exit race") addressed
    two cases when tasks waiting on a robust non-PI futex remained blocked
    despite the futex not being owned anymore:

    * if the owner died after writing zero to the futex word, but before
      waking up a waiter

    * if a task waiting on the futex was woken up, but died before updating
      the futex word (effectively swallowing the notification without acting
      on it)

    In the second case, the task could be woken up either by the previous
    owner (after the futex word was reset to zero) or by the kernel (after
    the OWNER_DIED bit was set and the TID part of the futex word was reset
    to zero) if the previous owner died without the resetting the futex.

    Because the referenced commit wakes up a potential waiter only if the
    whole futex word is zero, the latter subcase remains unaddressed.

    Fix this by looking only at the TID part of the futex when deciding
    whether a wake up is needed.

    Fixes: ca16d5bee5 ("futex: Prevent robust futex exit race")
    Signed-off-by: Alexey Izbyshev <izbyshev@ispras.ru>
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Link: https://lore.kernel.org/r/20221111215439.248185-1-izbyshev@ispras.ru

Signed-off-by: Rafael Aquini <aquini@redhat.com>
2023-01-26 14:01:18 -05:00
Chris von Recklinghausen c2f14a5cab exit: Move oops specific logic from do_exit into make_task_dead
Conflicts: kernel/exit.c - We alredy have
	b1f866b013e6 ("block: remove blk_needs_flush_plug")
	so the 'WARN_ON(blk_needs_flush_plug(tsk));' line is gone.

Bugzilla: https://bugzilla.redhat.com/2120352

commit 05ea0424f0e21c0ef9b47c89826e7c22ae137975
Author: Eric W. Biederman <ebiederm@xmission.com>
Date:   Mon Nov 22 09:33:00 2021 -0600

    exit: Move oops specific logic from do_exit into make_task_dead

    The beginning of do_exit has become cluttered and difficult to read as
    it is filled with checks to handle things that can only happen when
    the kernel is operating improperly.

    Now that we have a dedicated function for cleaning up a task when the
    kernel is operating improperly move the checks there.

    Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>

Signed-off-by: Chris von Recklinghausen <crecklin@redhat.com>
2022-10-12 07:27:33 -04:00
Aristeu Rozanski e7d8da2114 mm/truncate: Inline invalidate_complete_page() into its one caller
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2083861
Tested: by me with multiple test suites
Conflicts: differences due missing simplification from 43b93121056c52

commit 1b8ddbeeb9b819e62b7190115023ce858a159f5c
Author: Matthew Wilcox (Oracle) <willy@infradead.org>
Date:   Sat Feb 12 15:27:42 2022 -0500

    mm/truncate: Inline invalidate_complete_page() into its one caller

    invalidate_inode_page() is the only caller of invalidate_complete_page()
    and inlining it reveals that the first check is unnecessary (because we
    hold the page locked, and we just retrieved the mapping from the page).
    Actually, it does make a difference, in that tail pages no longer fail
    at this check, so it's now possible to remove a tail page from a mapping.

    Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
    Reviewed-by: John Hubbard <jhubbard@nvidia.com>
    Reviewed-by: Christoph Hellwig <hch@lst.de>

Signed-off-by: Aristeu Rozanski <arozansk@redhat.com>
2022-07-10 10:44:16 -04:00
Joel Savitz e41aecbc16 futex: Split out wait/wake
commit a046f1a0d3e320cfee6bdac336416a537f49e7c6
Author: Peter Zijlstra <peterz@infradead.org>
Date:   Thu Sep 23 14:11:03 2021 -0300

    futex: Split out wait/wake

    Move the wait/wake bits into their own file.

    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Signed-off-by: André Almeida <andrealmeid@collabora.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: André Almeida <andrealmeid@collabora.com>
    Link: https://lore.kernel.org/r/20210923171111.300673-15-andrealmeid@collabora.com

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2038794
Signed-off-by: Joel Savitz <jsavitz@redhat.com>
2022-03-10 16:55:08 -05:00
Joel Savitz ab9104f5b9 futex: Split out requeue
commit e5c6828493b5fa6a3c4606b43e80ab6c5ec1111f
Author: Peter Zijlstra <peterz@infradead.org>
Date:   Thu Sep 23 14:11:02 2021 -0300

    futex: Split out requeue

    Move all the requeue bits into their own file.

    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Signed-off-by: André Almeida <andrealmeid@collabora.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: André Almeida <andrealmeid@collabora.com>
    Link: https://lore.kernel.org/r/20210923171111.300673-14-andrealmeid@collabora.com

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2038794
Signed-off-by: Joel Savitz <jsavitz@redhat.com>
2022-03-10 16:55:08 -05:00
Joel Savitz ed18490f19 futex: Rename mark_wake_futex()
commit 95c336a7d8f0c1c34ee99e0162dc64d283da7618
Author: Peter Zijlstra <peterz@infradead.org>
Date:   Thu Sep 23 14:11:01 2021 -0300

    futex: Rename mark_wake_futex()

    In order to prepare introducing these symbols into the global
    namespace; rename:

      s/mark_wake_futex/futex_wake_mark/g

    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Signed-off-by: André Almeida <andrealmeid@collabora.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: André Almeida <andrealmeid@collabora.com>
    Link: https://lore.kernel.org/r/20210923171111.300673-13-andrealmeid@collabora.com

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2038794
Signed-off-by: Joel Savitz <jsavitz@redhat.com>
2022-03-10 16:55:08 -05:00
Joel Savitz 2e80bfd312 futex: Rename: match_futex()
commit f56a76fde353dd274eef0ea9d371379950079951
Author: Peter Zijlstra <peterz@infradead.org>
Date:   Thu Sep 23 14:11:00 2021 -0300

    futex: Rename: match_futex()

    In order to prepare introducing these symbols into the global
    namespace; rename:

      s/match_futex/futex_match/g

    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Signed-off-by: André Almeida <andrealmeid@collabora.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: André Almeida <andrealmeid@collabora.com>
    Link: https://lore.kernel.org/r/20210923171111.300673-12-andrealmeid@collabora.com

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2038794
Signed-off-by: Joel Savitz <jsavitz@redhat.com>
2022-03-10 16:55:08 -05:00
Joel Savitz 6028c2e3fb futex: Rename: hb_waiter_{inc,dec,pending}()
commit 832c0542c0f71f7d2ba10e987a1ab520813e6bd7
Author: Peter Zijlstra <peterz@infradead.org>
Date:   Thu Sep 23 14:10:59 2021 -0300

    futex: Rename: hb_waiter_{inc,dec,pending}()

    In order to prepare introducing these symbols into the global
    namespace; rename them:

      s/hb_waiters_/futex_&/g

    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Signed-off-by: André Almeida <andrealmeid@collabora.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: André Almeida <andrealmeid@collabora.com>
    Link: https://lore.kernel.org/r/20210923171111.300673-11-andrealmeid@collabora.com

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2038794
Signed-off-by: Joel Savitz <jsavitz@redhat.com>
2022-03-10 16:55:08 -05:00
Joel Savitz 5aeea4e23d futex: Split out PI futex
commit 85dc28fa4ec058645c29bda952d901b29dfaa0b0
Author: Peter Zijlstra <peterz@infradead.org>
Date:   Thu Sep 23 14:10:58 2021 -0300

    futex: Split out PI futex

    Move the PI futex implementation into it's own file.

    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Signed-off-by: André Almeida <andrealmeid@collabora.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: André Almeida <andrealmeid@collabora.com>
    Link: https://lore.kernel.org/r/20210923171111.300673-10-andrealmeid@collabora.com

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2038794
Signed-off-by: Joel Savitz <jsavitz@redhat.com>
2022-03-10 16:55:08 -05:00
Joel Savitz a478832cc1 futex: Rename: {get,cmpxchg}_futex_value_locked()
commit 966cb75f86fb15e2659c8105d20d4889e18dda24
Author: Peter Zijlstra <peterz@infradead.org>
Date:   Thu Sep 23 14:10:57 2021 -0300

    futex: Rename: {get,cmpxchg}_futex_value_locked()

    In order to prepare introducing these symbols into the global
    namespace; rename them:

     s/\<\([^_ ]*\)_futex_value_locked/futex_\1_value_locked/g

    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Signed-off-by: André Almeida <andrealmeid@collabora.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: André Almeida <andrealmeid@collabora.com>
    Link: https://lore.kernel.org/r/20210923171111.300673-9-andrealmeid@collabora.com

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2038794
Signed-off-by: Joel Savitz <jsavitz@redhat.com>
2022-03-10 16:55:08 -05:00
Joel Savitz 62923f104e futex: Rename hash_futex()
commit eee5a7bc96becd7cdb8e4fabd327ca5e49136704
Author: Peter Zijlstra <peterz@infradead.org>
Date:   Thu Sep 23 14:10:56 2021 -0300

    futex: Rename hash_futex()

    In order to prepare introducing these symbols into the global
    namespace; rename:

      s/hash_futex/futex_hash/g

    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Signed-off-by: André Almeida <andrealmeid@collabora.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: André Almeida <andrealmeid@collabora.com>
    Link: https://lore.kernel.org/r/20210923171111.300673-8-andrealmeid@collabora.com

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2038794
Signed-off-by: Joel Savitz <jsavitz@redhat.com>
2022-03-10 16:55:07 -05:00
Joel Savitz f0a8718658 futex: Rename __unqueue_futex()
commit af92dcea186ed7bcd5cc013163ec47a8a135ee97
Author: Peter Zijlstra <peterz@infradead.org>
Date:   Thu Sep 23 14:10:55 2021 -0300

    futex: Rename __unqueue_futex()

    In order to prepare introducing these symbols into the global
    namespace; rename:

      s/__unqueue_futex/__futex_unqueue/g

    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Signed-off-by: André Almeida <andrealmeid@collabora.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: André Almeida <andrealmeid@collabora.com>
    Link: https://lore.kernel.org/r/20210923171111.300673-7-andrealmeid@collabora.com

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2038794
Signed-off-by: Joel Savitz <jsavitz@redhat.com>
2022-03-10 16:55:07 -05:00
Joel Savitz cf86cf170a futex: Rename: queue_{,un}lock()
commit e7ba9c8fed298fef5aa614685df61db6e6551fa0
Author: Peter Zijlstra <peterz@infradead.org>
Date:   Thu Sep 23 14:10:54 2021 -0300

    futex: Rename: queue_{,un}lock()

    In order to prepare introducing these symbols into the global
    namespace; rename them:

      s/queue_\(un\)*lock/futex_q_\1lock/g

    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Signed-off-by: André Almeida <andrealmeid@collabora.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: André Almeida <andrealmeid@collabora.com>
    Link: https://lore.kernel.org/r/20210923171111.300673-6-andrealmeid@collabora.com

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2038794
Signed-off-by: Joel Savitz <jsavitz@redhat.com>
2022-03-10 16:55:07 -05:00
Joel Savitz e98c412d1e futex: Rename futex_wait_queue_me()
commit 5622eb20520d284a52668e9f911a7f37e7b3f12c
Author: Peter Zijlstra <peterz@infradead.org>
Date:   Thu Sep 23 14:10:53 2021 -0300

    futex: Rename futex_wait_queue_me()

    In order to prepare introducing these symbols into the global
    namespace; rename them:

      s/futex_wait_queue_me/futex_wait_queue/g

    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Signed-off-by: André Almeida <andrealmeid@collabora.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: André Almeida <andrealmeid@collabora.com>
    Link: https://lore.kernel.org/r/20210923171111.300673-5-andrealmeid@collabora.com

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2038794
Signed-off-by: Joel Savitz <jsavitz@redhat.com>
2022-03-10 16:55:07 -05:00
Joel Savitz df8c035286 futex: Rename {,__}{,un}queue_me()
commit bce760d34bc2adcfd97e859a91407df51913f7b0
Author: Peter Zijlstra <peterz@infradead.org>
Date:   Thu Sep 23 14:10:52 2021 -0300

    futex: Rename {,__}{,un}queue_me()

    In order to prepare introducing these symbols into the global
    namespace; rename them:

      s/\<\(__\)*\(un\)*queue_me/\1futex_\2queue/g

    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Signed-off-by: André Almeida <andrealmeid@collabora.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: André Almeida <andrealmeid@collabora.com>
    Link: https://lore.kernel.org/r/20210923171111.300673-4-andrealmeid@collabora.com

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2038794
Signed-off-by: Joel Savitz <jsavitz@redhat.com>
2022-03-10 16:55:07 -05:00
Joel Savitz 51c06f6af1 futex: Split out syscalls
commit af8cc9600bbf2251b04c56139f7c83f87c3f878a
Author: Peter Zijlstra <peterz@infradead.org>
Date:   Thu Sep 23 14:10:51 2021 -0300

    futex: Split out syscalls

    Put the syscalls in their own little file.

    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Suggested-by: Thomas Gleixner <tglx@linutronix.de>
    Signed-off-by: André Almeida <andrealmeid@collabora.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: André Almeida <andrealmeid@collabora.com>
    Link: https://lore.kernel.org/r/20210923171111.300673-3-andrealmeid@collabora.com

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2038794
Signed-off-by: Joel Savitz <jsavitz@redhat.com>
2022-03-10 16:55:07 -05:00
Joel Savitz 6de6e61941 futex: Move to kernel/futex/
commit 77e52ae35463521041906c510fe580d15663bb93
Author: Peter Zijlstra <peterz@infradead.org>
Date:   Thu Sep 23 14:10:50 2021 -0300

    futex: Move to kernel/futex/

    In preparation for splitup..

    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Suggested-by: Thomas Gleixner <tglx@linutronix.de>
    Signed-off-by: André Almeida <andrealmeid@collabora.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: André Almeida <andrealmeid@collabora.com>
    Link: https://lore.kernel.org/r/20210923171111.300673-2-andrealmeid@collabora.com

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2038794
Signed-off-by: Joel Savitz <jsavitz@redhat.com>
2022-03-10 16:55:07 -05:00