hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/mips/kernel/signal_o32.c
....@@ -118,7 +118,7 @@
118118 int err = 0;
119119
120120 frame = get_sigframe(ksig, regs, sizeof(*frame));
121
- if (!access_ok(VERIFY_WRITE, frame, sizeof (*frame)))
121
+ if (!access_ok(frame, sizeof (*frame)))
122122 return -EFAULT;
123123
124124 err |= setup_sigcontext32(regs, &frame->sf_sc);
....@@ -160,7 +160,7 @@
160160
161161 regs = current_pt_regs();
162162 frame = (struct rt_sigframe32 __user *)regs->regs[29];
163
- if (!access_ok(VERIFY_READ, frame, sizeof(*frame)))
163
+ if (!access_ok(frame, sizeof(*frame)))
164164 goto badframe;
165165 if (__copy_conv_sigset_from_user(&set, &frame->rs_uc.uc_sigmask))
166166 goto badframe;
....@@ -171,7 +171,7 @@
171171 if (sig < 0)
172172 goto badframe;
173173 else if (sig)
174
- force_sig(sig, current);
174
+ force_sig(sig);
175175
176176 if (compat_restore_altstack(&frame->rs_uc.uc_stack))
177177 goto badframe;
....@@ -187,7 +187,7 @@
187187 /* Unreached */
188188
189189 badframe:
190
- force_sig(SIGSEGV, current);
190
+ force_sig(SIGSEGV);
191191 }
192192
193193 static int setup_rt_frame_32(void *sig_return, struct ksignal *ksig,
....@@ -197,7 +197,7 @@
197197 int err = 0;
198198
199199 frame = get_sigframe(ksig, regs, sizeof(*frame));
200
- if (!access_ok(VERIFY_WRITE, frame, sizeof (*frame)))
200
+ if (!access_ok(frame, sizeof (*frame)))
201201 return -EFAULT;
202202
203203 /* Convert (siginfo_t -> compat_siginfo_t) and copy to user. */
....@@ -262,7 +262,7 @@
262262
263263 regs = current_pt_regs();
264264 frame = (struct sigframe32 __user *)regs->regs[29];
265
- if (!access_ok(VERIFY_READ, frame, sizeof(*frame)))
265
+ if (!access_ok(frame, sizeof(*frame)))
266266 goto badframe;
267267 if (__copy_conv_sigset_from_user(&blocked, &frame->sf_mask))
268268 goto badframe;
....@@ -273,7 +273,7 @@
273273 if (sig < 0)
274274 goto badframe;
275275 else if (sig)
276
- force_sig(sig, current);
276
+ force_sig(sig);
277277
278278 /*
279279 * Don't let your children do this ...
....@@ -286,5 +286,5 @@
286286 /* Unreached */
287287
288288 badframe:
289
- force_sig(SIGSEGV, current);
289
+ force_sig(SIGSEGV);
290290 }