tile: do_hardwall_trap: do not play with task->sighand
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest1 patch 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | tile: do_hardwall_trap: do not play with task->sighandarch/ | +2 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/1] tile: do_hardwall_trap: do not play with task->sighand
Quoted 14 lines · Chris Metcalf
Quoted 6 lines · Oleg Nesterov
Hmm. It turns out, I can't make the patch because I do not understand what this code tries to do.
hardwall_activate()adds the thread tohardwall_list, butdo_hardwall_trap()sends the signal to the whole process. I know nothing aboutarch/tileand probably this is correct, but could you confirm this?Yes, the intended behavior is to send the signal to the process, as a way of indicating the OS's displeasure with sending a malformed packet on the user network. But I think sending it to the specific thread is reasonable too; I don't have a strong preference in this design.
Quoted 7 lines
Quoted 5 lines
Note that SIGILL can be delivered to another thread in the thread-group, is it correct?
Also. Is it supposed that SIGILL can have a hanlder or can be blocked, or it should always kill the whole thread group?
A handler would be reasonable for the process.
OK. In this case the thread-specific SIGILL makes more sense afaics.
Quoted 6 lines
Quoted 2 lines
I think we need the patch below, assuming that SIGILL should be sent to the single thread and it is fine to have a handler for SIGILL.
Thanks; I appreciate the additional code review in any case. I'll look at the ramifications of the change in more detail when I return from vacation late next week.
Great. I am sending the same patch + the changelog.
Please do not forget, I know _nothing_ about arch/tile, and of course the patch was not tested.
Oleg.