Repository navigation
Commit 4cd2e0e
committed
signal: Introduce copy_siginfo_from_user and use it's return value
In preparation for using a smaller version of siginfo in the kernel
introduce copy_siginfo_from_user and use it when siginfo is copied from
userspace.
Make the pattern for using copy_siginfo_from_user and
copy_siginfo_from_user32 to capture the return value and return that
value on error.
This is a necessary prerequisite for using a smaller siginfo
in the kernel than the kernel exports to userspace.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>1 parent f283801 commit 4cd2e0e
3 files changed
Lines changed: 22 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
919 | 919 | | |
920 | 920 | | |
921 | 921 | | |
922 | | - | |
923 | | - | |
924 | | - | |
| 922 | + | |
| 923 | + | |
925 | 924 | | |
926 | 925 | | |
927 | 926 | | |
| |||
1215 | 1214 | | |
1216 | 1215 | | |
1217 | 1216 | | |
1218 | | - | |
1219 | | - | |
1220 | | - | |
1221 | | - | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
1222 | 1220 | | |
1223 | 1221 | | |
1224 | 1222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2896 | 2896 | | |
2897 | 2897 | | |
2898 | 2898 | | |
| 2899 | + | |
| 2900 | + | |
| 2901 | + | |
| 2902 | + | |
| 2903 | + | |
| 2904 | + | |
| 2905 | + | |
2899 | 2906 | | |
2900 | 2907 | | |
2901 | 2908 | | |
| |||
3323 | 3330 | | |
3324 | 3331 | | |
3325 | 3332 | | |
3326 | | - | |
3327 | | - | |
| 3333 | + | |
| 3334 | + | |
| 3335 | + | |
3328 | 3336 | | |
3329 | 3337 | | |
3330 | 3338 | | |
| |||
3365 | 3373 | | |
3366 | 3374 | | |
3367 | 3375 | | |
3368 | | - | |
3369 | | - | |
3370 | | - | |
3371 | | - | |
| 3376 | + | |
| 3377 | + | |
| 3378 | + | |
3372 | 3379 | | |
3373 | 3380 | | |
3374 | 3381 | | |
| |||
3380 | 3387 | | |
3381 | 3388 | | |
3382 | 3389 | | |
3383 | | - | |
3384 | | - | |
3385 | | - | |
| 3390 | + | |
| 3391 | + | |
| 3392 | + | |
3386 | 3393 | | |
3387 | 3394 | | |
3388 | 3395 | | |
| |||
0 commit comments