Re: [patch 3/8] futex: Provide UABI defines for robust list entry modifiers

From: André Almeida

Date: Mon Mar 16 2026 - 22:38:41 EST


Em 16/03/2026 14:13, Thomas Gleixner escreveu:
The marker for PI futexes in the robust list is a hardcoded 0x1 which lacks
any sensible form of documentation.

Provide proper defines for the bit and the mask and fix up the usage sites.


Most of the diff is about a change that's not described here.

Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxx>

[...]

static void compat_exit_robust_list(struct task_struct *curr)
{
- struct compat_robust_list_head __user *head = curr->futex.compat_robust_list;
+ struct compat_robust_list_head __user *head = current->futex.compat_robust_list;

It seems you accidentally changed from curr-> to current->

+ unsigned int limit = ROBUST_LIST_LIMIT, cur_mod, next_mod, pend_mod;
struct robust_list __user *entry, *next_entry, *pending;
- unsigned int limit = ROBUST_LIST_LIMIT, pi, pip;
- unsigned int next_pi;