Merge tag 'asm-generic-5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd...
[linux-2.6-microblaze.git] / arch / parisc / kernel / signal.c
index 2444390..3dd672e 100644 (file)
@@ -236,7 +236,7 @@ setup_rt_frame(struct ksignal *ksig, sigset_t *set, struct pt_regs *regs,
        DBG(1, "%s: frame %p info %p\n", __func__, frame, &ksig->info);
 
        start = (unsigned long) frame;
-       if (start >= user_addr_max() - sigframe_size)
+       if (start >= TASK_SIZE_MAX - sigframe_size)
                return -EFAULT;
        
 #ifdef CONFIG_64BIT
@@ -497,7 +497,7 @@ insert_restart_trampoline(struct pt_regs *regs)
                long err = 0;
 
                /* check that we don't exceed the stack */
-               if (A(&usp[0]) >= user_addr_max() - 5 * sizeof(int))
+               if (A(&usp[0]) >= TASK_SIZE_MAX - 5 * sizeof(int))
                        return;
 
                /* Call trampoline in vdso to restart the syscall