From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailapp01.imgtec.com ([195.59.15.196]:53329 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S23992126AbdCaQK1h45zo (ORCPT ); Fri, 31 Mar 2017 18:10:27 +0200 From: James Cowgill Subject: [PATCH 0/2] Fix indirect syscall handler for syscalls with > 4 args Date: Fri, 31 Mar 2017 17:09:57 +0100 Message-ID: <20170331160959.3192-1-James.Cowgill@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: To: Ralf Baechle , linux-mips@linux-mips.org Cc: James.Cowgill@imgtec.com Message-ID: <20170331160957.OjrEP-TJQFauKVcB-seW3LRQfVmveZGPsMsXYZ0Eefw@z> These two patches fix a corner case in the o32 indirect syscall handler where incorrect arguments might get passed to the underlying syscall function if more than 4 arguments are passed to a restartable syscall. The first patch hopefully removes the last use of pt_regs for reading syscall arguments and the second patch removes the special pt_regs handling in the indrect syscall handler which is no longer needed. James Cowgill (2): MIPS: opt into HAVE_COPY_THREAD_TLS MIPS: Remove pt_regs adjustments in indirect syscall handler arch/mips/Kconfig | 1 + arch/mips/kernel/process.c | 6 +++--- arch/mips/kernel/scall32-o32.S | 11 ----------- arch/mips/kernel/scall64-o32.S | 6 ------ 4 files changed, 4 insertions(+), 20 deletions(-) -- 2.11.0