Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rseq: Remove the ksig argument from rseq_handle_notify_resume()

There is no point for this being visible in the resume_to_user_mode()
handling.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://patch.msgid.link/20251027084306.211520245@linutronix.de

authored by

Thomas Gleixner and committed by
Ingo Molnar
41b43a6b 77f19e4d

+9 -8
+1 -1
include/linux/resume_user_mode.h
··· 59 59 mem_cgroup_handle_over_high(GFP_KERNEL); 60 60 blkcg_maybe_throttle_current(); 61 61 62 - rseq_handle_notify_resume(NULL, regs); 62 + rseq_handle_notify_resume(regs); 63 63 } 64 64 65 65 #endif /* LINUX_RESUME_USER_MODE_H */
+8 -7
include/linux/rseq.h
··· 37 37 38 38 void __rseq_handle_notify_resume(struct ksignal *sig, struct pt_regs *regs); 39 39 40 - static inline void rseq_handle_notify_resume(struct ksignal *ksig, 41 - struct pt_regs *regs) 40 + static inline void rseq_handle_notify_resume(struct pt_regs *regs) 42 41 { 43 42 if (current->rseq) 44 - __rseq_handle_notify_resume(ksig, regs); 43 + __rseq_handle_notify_resume(NULL, regs); 45 44 } 46 45 47 46 static inline void rseq_signal_deliver(struct ksignal *ksig, 48 47 struct pt_regs *regs) 49 48 { 50 - scoped_guard(RSEQ_EVENT_GUARD) 51 - __set_bit(RSEQ_EVENT_SIGNAL_BIT, &current->rseq_event_mask); 52 - rseq_handle_notify_resume(ksig, regs); 49 + if (current->rseq) { 50 + scoped_guard(RSEQ_EVENT_GUARD) 51 + __set_bit(RSEQ_EVENT_SIGNAL_BIT, &current->rseq_event_mask); 52 + __rseq_handle_notify_resume(ksig, regs); 53 + } 53 54 } 54 55 55 56 /* rseq_preempt() requires preemption to be disabled. */ ··· 104 103 105 104 #else /* CONFIG_RSEQ */ 106 105 static inline void rseq_set_notify_resume(struct task_struct *t) { } 107 - static inline void rseq_handle_notify_resume(struct ksignal *ksig, struct pt_regs *regs) { } 106 + static inline void rseq_handle_notify_resume(struct pt_regs *regs) { } 108 107 static inline void rseq_signal_deliver(struct ksignal *ksig, struct pt_regs *regs) { } 109 108 static inline void rseq_preempt(struct task_struct *t) { } 110 109 static inline void rseq_migrate(struct task_struct *t) { }