]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
um: Re-evaluate thread flags repeatedly
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Fri, 4 Jul 2025 12:34:47 +0000 (14:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:21 +0000 (16:28 +0200)
commit6cd174be923927ee632962ce1b9f139b99fd7564
tree67734f2a347ed427d6f985ed06ef721148a769fc
parentdae6099edf9124119f832ca0964bcf918770b2ec
um: Re-evaluate thread flags repeatedly

[ Upstream commit b9e2f2246eb2b5617d53af7b5e4e1b8c916f26a8 ]

The thread flags may change during their processing.
For example a task_work can queue a new signal to be sent.
This signal should be delivered before returning to usespace again.

Evaluate the flags repeatedly similar to other architectures.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Nam Cao <namcao@linutronix.de>
Link: https://patch.msgid.link/20250704-uml-thread_flags-v1-1-0e293fd8d627@linutronix.de
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/um/include/asm/thread_info.h
arch/um/kernel/process.c