Commit 9abcabe
committed
signal: Implement SIL_FAULT_TRAPNO
Now that si_trapno is part of the union in _si_fault and available on
all architectures, add SIL_FAULT_TRAPNO and update siginfo_layout to
return SIL_FAULT_TRAPNO when the code assumes si_trapno is valid.
There is room for future changes to reduce when si_trapno is valid but
this is all that is needed to make si_trapno and the other members of
the the union in _sigfault mutually exclusive.
Update the code that uses siginfo_layout to deal with SIL_FAULT_TRAPNO
and have the same code ignore si_trapno in in all other cases.
v1: https://lkml.kernel.org/r/m1o8dvs7s7.fsf_-_@fess.ebiederm.org
v2: https://lkml.kernel.org/r/20210505141101.11519-6-ebiederm@xmission.com
Link: https://lkml.kernel.org/r/20210517195748.8880-2-ebiederm@xmission.com
Reviewed-by: Marco Elver <elver@google.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>1 parent add0b32 commit 9abcabe
3 files changed
Lines changed: 16 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
127 | 129 | | |
128 | | - | |
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | 133 | | |
136 | 134 | | |
137 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1194 | 1194 | | |
1195 | 1195 | | |
1196 | 1196 | | |
| 1197 | + | |
1197 | 1198 | | |
1198 | 1199 | | |
1199 | 1200 | | |
| |||
2527 | 2528 | | |
2528 | 2529 | | |
2529 | 2530 | | |
| 2531 | + | |
2530 | 2532 | | |
2531 | 2533 | | |
2532 | 2534 | | |
| |||
3214 | 3216 | | |
3215 | 3217 | | |
3216 | 3218 | | |
| 3219 | + | |
| 3220 | + | |
| 3221 | + | |
| 3222 | + | |
3217 | 3223 | | |
3218 | 3224 | | |
3219 | 3225 | | |
| |||
3317 | 3323 | | |
3318 | 3324 | | |
3319 | 3325 | | |
3320 | | - | |
| 3326 | + | |
| 3327 | + | |
| 3328 | + | |
3321 | 3329 | | |
3322 | | - | |
3323 | 3330 | | |
3324 | 3331 | | |
3325 | 3332 | | |
3326 | | - | |
3327 | | - | |
3328 | | - | |
3329 | 3333 | | |
3330 | 3334 | | |
3331 | 3335 | | |
3332 | 3336 | | |
3333 | | - | |
3334 | | - | |
3335 | | - | |
3336 | 3337 | | |
3337 | 3338 | | |
3338 | 3339 | | |
3339 | 3340 | | |
3340 | 3341 | | |
3341 | | - | |
3342 | | - | |
3343 | | - | |
3344 | 3342 | | |
3345 | 3343 | | |
3346 | 3344 | | |
| |||
3401 | 3399 | | |
3402 | 3400 | | |
3403 | 3401 | | |
3404 | | - | |
| 3402 | + | |
| 3403 | + | |
| 3404 | + | |
3405 | 3405 | | |
3406 | | - | |
3407 | 3406 | | |
3408 | 3407 | | |
3409 | 3408 | | |
3410 | | - | |
3411 | | - | |
3412 | | - | |
3413 | 3409 | | |
3414 | 3410 | | |
3415 | 3411 | | |
3416 | 3412 | | |
3417 | | - | |
3418 | | - | |
3419 | | - | |
3420 | 3413 | | |
3421 | 3414 | | |
3422 | 3415 | | |
3423 | 3416 | | |
3424 | 3417 | | |
3425 | | - | |
3426 | | - | |
3427 | | - | |
3428 | 3418 | | |
3429 | 3419 | | |
3430 | 3420 | | |
| |||
0 commit comments