Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1539758imu; Fri, 9 Nov 2018 19:24:34 -0800 (PST) X-Google-Smtp-Source: AJdET5e4CgWE0baFIkk3nLHiMYZMNOwa/eqz7nCehMrxOsAX7rAr9c+GLGQQQBO4O3+2BbGntv+S X-Received: by 2002:a17:902:7108:: with SMTP id a8-v6mr11375625pll.290.1541820274085; Fri, 09 Nov 2018 19:24:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541820274; cv=none; d=google.com; s=arc-20160816; b=YqwKDgC45aWGe/mkQQG7yWScRLeRzCOBMIzR+yHAYmE1dcVOjEdGKYt4rUqTPiXJxt 4C++n22CJX0wQyqr5yvdLaKQ4AXUmalFd+ebRUCHB3TD2mRifyhOeS5jf9saNUQsGSAl gtRhmttcuqLBSjDtkRIGqCKnwOjIA3JP8WLJVC8kV57W1JpTTX+Bn1iO1+fW5feZMiR6 v3WnXLuweZ8DWPDcm9b0m9tvswLbB8PJp7vNgsZUQ/DYOnVKh6rPJuzlOdhISWhahPqp ZbJv9/xHx2I0muMVQ450V4WYMSEGFtA8J/3GYEUYp3dbumfLqC9BYzi2Q+OTPp1ub2xc gLSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:subject:cc:to:from:date; bh=OHC2Oq0dS1Xj0L3GxgsZyrUxagn1+aNy/yP6uO84gzs=; b=1C1rNf1UZr9du7YH0mheAGUakaMJc+/Ca5W7W0Cxbdj5sflPWLJaOBQZEYoGeNf+VD C/VkzlJSlfIzfqrYfNLtyK6F2G8OiTUfd8TtfwyTSHtcoLzjasjFCcEv5vsaY81ypb7t PsfMgH6EUSwtmRmNKJGI5Mj+jeW+pEK1/zm0Jytxx1tfwtMrndKIAGQtitR+KmQ+BwEg 0KNZNeJuRmRCpe9hia7x9wTZo6XK5Ptb8J7zPdhROJsqHuxu5O2TqiAqS8iUfnIJrScB pQ5AmuyoNgT+qjhC+tOkav42iE+N7ojYceddOyonY2jOtp2nVHlwRtTaopvAOwd5K+vt UCcw== 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 g11-v6si2549123pfe.186.2018.11.09.19.24.18; Fri, 09 Nov 2018 19:24:34 -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 S1728693AbeKJNFm (ORCPT + 99 others); Sat, 10 Nov 2018 08:05:42 -0500 Received: from air.basealt.ru ([194.107.17.39]:58768 "EHLO air.basealt.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728130AbeKJNFm (ORCPT ); Sat, 10 Nov 2018 08:05:42 -0500 Received: by air.basealt.ru (Postfix, from userid 490) id 1C3F6589A9A; Sat, 10 Nov 2018 03:22:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 Received: from akathisia (ip4-83-240-49-150.cust.nbox.cz [83.240.49.150]) by air.basealt.ru (Postfix) with ESMTPSA id 3D7B6589A97; Sat, 10 Nov 2018 03:22:11 +0000 (UTC) Date: Sat, 10 Nov 2018 04:22:09 +0100 From: Elvira Khabirova To: oleg@redhat.com, mingo@redhat.com, rostedt@goodmis.org Cc: linux-kernel@vger.kernel.org, ldv@altlinux.org Subject: [PATCH] tracehook: fix documentation for tracehook_report_syscall_entry() Message-ID: <20181110042209.26333972@akathisia> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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. -- 2.19.1