Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3707668imu; Sun, 11 Nov 2018 22:02:47 -0800 (PST) X-Google-Smtp-Source: AJdET5fp4flsED46KouhoNaQyvHtfXZ0TqWwME3DRL9a0dsXCipQpjl8g8OBskPQkyDGJB+XsgYT X-Received: by 2002:a17:902:b68d:: with SMTP id c13mr577938pls.102.1542002567527; Sun, 11 Nov 2018 22:02:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542002567; cv=none; d=google.com; s=arc-20160816; b=yzyIw95AX5rQF95OGtUlFxzJuZLJyP5DVv/f6aLnIrN2T5sW6xQ3sRycuU2liJPul5 HEQ1ImQoSBEH9GYFYfmWeuXdFn5T71yuWcfmxB7KZ6u4M0b+1bfvfzrmdlP/zWhwqczU V4JzTvASJ8qFoS6HYHBehVsthk8s2LGcTRJKgdQ2qxNylyu39ReeQehbX3GoU3D4ZxYT +79AKQP81mRzcd8IUJ9sHNu3e1Lov74xDVm85Ic3yhnU3X2jL7vEYrNCAC5aa1uvj2Av /4TNvNaVlYXkTm8MXw+Upo0OevFnj0/DkHx4oc4AdoY1fh6cNPL0Q3/WEJTXUnwXdgnJ cuhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=1eXLc/a6IqvUy9ppbrINld3mFmtlhpMEDYEX+/AbxMg=; b=IjHWG+v83rfG1hFWOUxxcFGnE2EtHBiEEB+M8KVC4AsReUEKayBp474fcywkMLgin3 HeZPZJL9eeHD+C1+TmWUCLVesIu2LPQMWRSngM/iFeCYiJTlFVF1l0/S/8muTLMxkSAT NQ7TC7a2ohbqdlD4sOm1osOO0cR4E6RdsGAplVyH+vwQ0E1aRZ41QNys4+m/Ccp8w5KQ I9dH/jnBUK2H1E2ciFekh1DJSQ3nfWoRtOEzC/DwPnnaAloYPloRlOSWs74jXa6arvpC P0ayhsFUgeu/1R8SCFy0VTtpU/NWFJAFCkncEKx2QwzXyWvfyKMp47MD7dYGVZwVL7uK ofxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u72si16209581pgc.360.2018.11.11.22.02.32; Sun, 11 Nov 2018 22:02:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731704AbeKLPxa (ORCPT + 99 others); Mon, 12 Nov 2018 10:53:30 -0500 Received: from terminus.zytor.com ([198.137.202.136]:53753 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731226AbeKLPxa (ORCPT ); Mon, 12 Nov 2018 10:53:30 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id wAC60xc03546552 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 11 Nov 2018 22:00:59 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id wAC60xS53546549; Sun, 11 Nov 2018 22:00:59 -0800 Date: Sun, 11 Nov 2018 22:00:59 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Elvira Khabirova Message-ID: Cc: linux-kernel@vger.kernel.org, lineprinter@altlinux.org, hpa@zytor.com, torvalds@linux-foundation.org, mingo@kernel.org, tglx@linutronix.de, bp@alien8.de, peterz@infradead.org Reply-To: lineprinter@altlinux.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@kernel.org, torvalds@linux-foundation.org, hpa@zytor.com, bp@alien8.de, peterz@infradead.org In-Reply-To: <20181110042209.26333972@akathisia> References: <20181110042209.26333972@akathisia> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/urgent] x86/ptrace: Fix documentation for tracehook_report_syscall_entry() Git-Commit-ID: d19f9130b814d33c03118493c17454f7d90075d1 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=0.2 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_96_Q autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: d19f9130b814d33c03118493c17454f7d90075d1 Gitweb: https://git.kernel.org/tip/d19f9130b814d33c03118493c17454f7d90075d1 Author: Elvira Khabirova AuthorDate: Sat, 10 Nov 2018 04:22:09 +0100 Committer: Ingo Molnar CommitDate: Mon, 12 Nov 2018 04:53:27 +0100 x86/ptrace: Fix documentation for tracehook_report_syscall_entry() tracehook_report_syscall_entry() is called not only if %TIF_SYSCALL_TRACE is set, but also if %TIF_SYSCALL_EMU is set, as appears from x86's entry code. Signed-off-by: Elvira Khabirova Cc: Borislav Petkov Cc: H. Peter Anvin Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: ldv@altlinux.org Cc: oleg@redhat.com Cc: rostedt@goodmis.org Link: http://lkml.kernel.org/r/20181110042209.26333972@akathisia Signed-off-by: Ingo Molnar --- include/linux/tracehook.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/tracehook.h b/include/linux/tracehook.h index 40b0b4c1bf7b..df20f8bdbfa3 100644 --- a/include/linux/tracehook.h +++ b/include/linux/tracehook.h @@ -83,8 +83,8 @@ static inline int ptrace_report_syscall(struct pt_regs *regs) * tracehook_report_syscall_entry - task is about to attempt a system call * @regs: user register state of current task * - * This will be called if %TIF_SYSCALL_TRACE has been set, when the - * current task has just entered the kernel for a system call. + * This will be called if %TIF_SYSCALL_TRACE or %TIF_SYSCALL_EMU have been set, + * when the current task has just entered the kernel for a system call. * Full user register state is available here. Changing the values * in @regs can affect the system call number and arguments to be tried. * It is safe to block here, preventing the system call from beginning.