From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bB0eb-0006It-1W for qemu-devel@nongnu.org; Thu, 09 Jun 2016 10:09:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bB0ea-0000EH-2i for qemu-devel@nongnu.org; Thu, 09 Jun 2016 10:09:48 -0400 Received: from orth.archaic.org.uk ([2001:8b0:1d0::2]:57610) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bB0eZ-0000Cn-Qt for qemu-devel@nongnu.org; Thu, 09 Jun 2016 10:09:48 -0400 From: Peter Maydell Date: Thu, 9 Jun 2016 15:09:35 +0100 Message-Id: <1465481378-20662-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH v2 0/3] Use safe_syscall wrapper for fcntl() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: patches@linaro.org, Laurent Vivier , Riku Voipio This is a fixed respin of the three patches which didn't make it through review from my last set of linux-user patches. Changes v1->v2: * add a memset() to host_to_target_siginfo_noswap() to suppress bogus gcc warnings about struct fields being maybe used while uninitialized * pass the error returned from copy_to/from_user_flock() etc out to the guest rather than assuming it's always -TARGET_EFAULT * added a note to the commit message about where the bogus shift operations in conversion of l_type were from thanks -- PMM Peter Maydell (3): linux-user: Avoid possible misalignment in host_to_target_siginfo() linux-user: Use __get_user() and __put_user() to handle structs in do_fcntl() linux-user: Use safe_syscall wrapper for fcntl linux-user/signal.c | 13 +- linux-user/syscall.c | 328 +++++++++++++++++++++++++++++---------------------- 2 files changed, 198 insertions(+), 143 deletions(-) -- 1.9.1