This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new b9203c1747 sched/signal: Old signal action need save sa_user
b9203c1747 is described below

commit b9203c1747530b090e540f944d240f7d37d03952
Author: wangjianyu3 <wangjian...@xiaomi.com>
AuthorDate: Thu Aug 28 10:31:20 2025 +0800

    sched/signal: Old signal action need save sa_user
    
    For example, set sigaction after create signalfd,
    the sa_sigaction was restored but sa_user not,
    causing signalfd_action() get the wild private data.
    
    Signed-off-by: wangjianyu3 <wangjian...@xiaomi.com>
---
 sched/signal/sig_action.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sched/signal/sig_action.c b/sched/signal/sig_action.c
index 096864aba9..539c58d1af 100644
--- a/sched/signal/sig_action.c
+++ b/sched/signal/sig_action.c
@@ -294,6 +294,7 @@ int nxsig_action(int signo, FAR const struct sigaction *act,
           oact->sa_handler = sigact->act.sa_handler;
           oact->sa_mask    = sigact->act.sa_mask;
           oact->sa_flags   = sigact->act.sa_flags;
+          oact->sa_user    = sigact->act.sa_user;
         }
       else
         {

Reply via email to