Skip to content

Conversation

JianyuWang0623
Copy link
Contributor

Summary

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.

# create signalfd,
xxxx_main -> signalfd -> nxsig_action

# set sigaction
nsh_telnetstart -> nsh_parse -> nsh_parse_command -> nsh_execute -> nsh_builtin -> sigaction -> nxsig_action

Impact

  • sched/signal

Testing

  1. Selftest with signalfd OK.
  2. CI

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 <wangjianyu3@xiaomi.com>
@github-actions github-actions bot added Area: OS Components OS Components issues Size: XS The size of the change in this PR is very small labels Aug 28, 2025
@xiaoxiang781216 xiaoxiang781216 merged commit b9203c1 into apache:master Aug 28, 2025
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: OS Components OS Components issues Size: XS The size of the change in this PR is very small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants