Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752784AbcKGXvz (ORCPT ); Mon, 7 Nov 2016 18:51:55 -0500 Received: from mail-vk0-f50.google.com ([209.85.213.50]:35358 "EHLO mail-vk0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751861AbcKGXvx (ORCPT ); Mon, 7 Nov 2016 18:51:53 -0500 MIME-Version: 1.0 In-Reply-To: <20161107213233.466776454@goodmis.org> References: <20161107212634.529267342@goodmis.org> <20161107213233.466776454@goodmis.org> From: Andy Lutomirski Date: Mon, 7 Nov 2016 15:51:32 -0800 Message-ID: Subject: Re: [RFC][ATCH 1/3] ptrace: Remove maxargs from task_current_syscall() To: Steven Rostedt Cc: "linux-kernel@vger.kernel.org" , Linus Torvalds , Ingo Molnar , Andrew Morton , Roland McGrath , Oleg Nesterov , linux-arch , Peter Zijlstra Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 611 Lines: 13 On Mon, Nov 7, 2016 at 1:26 PM, Steven Rostedt wrote: > From: Steven Rostedt > > task_current_syscall() has a single user that passes in 6 for maxargs, which > is the maximum arguments that can be used to get system calls from > syscall_get_arguments(). Instead of passing in a number of arguments to > grab, just get 6 arguments. The args argument even specifies that it's an > array of 6 items. > > This will also allow changing syscall_get_arguments() to not get a variable > number of arguments, but always grab 6. Reviewed-by: Andy Lutomirski