hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/mips/kernel/signal_n32.c
....@@ -1,19 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (C) 2003 Broadcom Corporation
3
- *
4
- * This program is free software; you can redistribute it and/or
5
- * modify it under the terms of the GNU General Public License
6
- * as published by the Free Software Foundation; either version 2
7
- * of the License, or (at your option) any later version.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU General Public License
15
- * along with this program; if not, write to the Free Software
16
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
174 */
185 #include <linux/cache.h>
196 #include <linux/sched.h>
....@@ -73,7 +60,7 @@
7360
7461 regs = current_pt_regs();
7562 frame = (struct rt_sigframe_n32 __user *)regs->regs[29];
76
- if (!access_ok(VERIFY_READ, frame, sizeof(*frame)))
63
+ if (!access_ok(frame, sizeof(*frame)))
7764 goto badframe;
7865 if (__copy_conv_sigset_from_user(&set, &frame->rs_uc.uc_sigmask))
7966 goto badframe;
....@@ -84,7 +71,7 @@
8471 if (sig < 0)
8572 goto badframe;
8673 else if (sig)
87
- force_sig(sig, current);
74
+ force_sig(sig);
8875
8976 if (compat_restore_altstack(&frame->rs_uc.uc_stack))
9077 goto badframe;
....@@ -100,7 +87,7 @@
10087 /* Unreached */
10188
10289 badframe:
103
- force_sig(SIGSEGV, current);
90
+ force_sig(SIGSEGV);
10491 }
10592
10693 static int setup_rt_frame_n32(void *sig_return, struct ksignal *ksig,
....@@ -110,7 +97,7 @@
11097 int err = 0;
11198
11299 frame = get_sigframe(ksig, regs, sizeof(*frame));
113
- if (!access_ok(VERIFY_WRITE, frame, sizeof (*frame)))
100
+ if (!access_ok(frame, sizeof (*frame)))
114101 return -EFAULT;
115102
116103 /* Create siginfo. */