From: kernel test robot <lkp@intel.com>
To: Jinjie Ruan <ruanjinjie@huawei.com>,
catalin.marinas@arm.com, will@kernel.org, oleg@redhat.com,
sstabellini@kernel.org, tglx@linutronix.de, peterz@infradead.org,
luto@kernel.org, mingo@redhat.com, juri.lelli@redhat.com,
vincent.guittot@linaro.org, dietmar.eggemann@arm.com,
rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de,
vschneid@redhat.com, kees@kernel.org, wad@chromium.org,
akpm@linux-foundation.org, samitolvanen@google.com,
masahiroy@kernel.org, hca@linux.ibm.com, aliceryhl@google.com,
rppt@kernel.org, xur@google.com, paulmck@kernel.org,
arnd@arndb.de, mbenes@suse.cz, puranjay@kernel.org,
mark.rutland@arm.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH -next v5 20/22] entry: Add arch_ptrace_report_syscall_entry/exit()
Date: Fri, 6 Dec 2024 22:33:57 +0800 [thread overview]
Message-ID: <202412062236.pcOqNdrI-lkp@intel.com> (raw)
In-Reply-To: <20241206101744.4161990-21-ruanjinjie@huawei.com>
Hi Jinjie,
kernel test robot noticed the following build warnings:
[auto build test WARNING on next-20241205]
url: https://github.com/intel-lab-lkp/linux/commits/Jinjie-Ruan/arm64-ptrace-Replace-interrupts_enabled-with-regs_irqs_disabled/20241206-183134
base: next-20241205
patch link: https://lore.kernel.org/r/20241206101744.4161990-21-ruanjinjie%40huawei.com
patch subject: [PATCH -next v5 20/22] entry: Add arch_ptrace_report_syscall_entry/exit()
config: i386-buildonly-randconfig-002-20241206 (https://download.01.org/0day-ci/archive/20241206/202412062236.pcOqNdrI-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241206/202412062236.pcOqNdrI-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412062236.pcOqNdrI-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> kernel/entry/syscall-common.c:30: warning: Function parameter or struct member 'regs' not described in 'arch_ptrace_report_syscall_entry'
>> kernel/entry/syscall-common.c:116: warning: Function parameter or struct member 'regs' not described in 'arch_ptrace_report_syscall_exit'
>> kernel/entry/syscall-common.c:116: warning: Function parameter or struct member 'step' not described in 'arch_ptrace_report_syscall_exit'
vim +30 kernel/entry/syscall-common.c
19
20 /**
21 * arch_ptrace_report_syscall_entry - Architecture specific
22 * ptrace_report_syscall_entry().
23 *
24 * Invoked from syscall_trace_enter() to wrap ptrace_report_syscall_entry().
25 * Defaults to ptrace_report_syscall_entry.
26 *
27 * The main purpose is to support arch-specific ptrace_report_syscall_entry()
28 * implementation.
29 */
> 30 static inline int arch_ptrace_report_syscall_entry(struct pt_regs *regs);
31
32 #ifndef arch_ptrace_report_syscall_entry
33 static inline int arch_ptrace_report_syscall_entry(struct pt_regs *regs)
34 {
35 return ptrace_report_syscall_entry(regs);
36 }
37 #endif
38
39 long syscall_trace_enter(struct pt_regs *regs, long syscall,
40 unsigned long work)
41 {
42 long ret = 0;
43
44 /*
45 * Handle Syscall User Dispatch. This must comes first, since
46 * the ABI here can be something that doesn't make sense for
47 * other syscall_work features.
48 */
49 if (work & SYSCALL_WORK_SYSCALL_USER_DISPATCH) {
50 if (syscall_user_dispatch(regs))
51 return -1L;
52 }
53
54 /* Handle ptrace */
55 if (work & (SYSCALL_WORK_SYSCALL_TRACE | SYSCALL_WORK_SYSCALL_EMU)) {
56 ret = arch_ptrace_report_syscall_entry(regs);
57 if (ret || (work & SYSCALL_WORK_SYSCALL_EMU))
58 return -1L;
59 }
60
61 /* Do seccomp after ptrace, to catch any tracer changes. */
62 if (work & SYSCALL_WORK_SECCOMP) {
63 ret = __secure_computing(NULL);
64 if (ret == -1L)
65 return ret;
66 }
67
68 /* Either of the above might have changed the syscall number */
69 syscall = syscall_get_nr(current, regs);
70
71 if (unlikely(work & SYSCALL_WORK_SYSCALL_TRACEPOINT)) {
72 trace_sys_enter(regs, syscall);
73 /*
74 * Probes or BPF hooks in the tracepoint may have changed the
75 * system call number as well.
76 */
77 syscall = syscall_get_nr(current, regs);
78 }
79
80 syscall_enter_audit(regs, syscall);
81
82 return ret ? : syscall;
83 }
84
85 noinstr void syscall_enter_from_user_mode_prepare(struct pt_regs *regs)
86 {
87 enter_from_user_mode(regs);
88 instrumentation_begin();
89 local_irq_enable();
90 instrumentation_end();
91 }
92
93 /*
94 * If SYSCALL_EMU is set, then the only reason to report is when
95 * SINGLESTEP is set (i.e. PTRACE_SYSEMU_SINGLESTEP). This syscall
96 * instruction has been already reported in syscall_enter_from_user_mode().
97 */
98 static inline bool report_single_step(unsigned long work)
99 {
100 if (work & SYSCALL_WORK_SYSCALL_EMU)
101 return false;
102
103 return work & SYSCALL_WORK_SYSCALL_EXIT_TRAP;
104 }
105
106 /**
107 * arch_ptrace_report_syscall_exit - Architecture specific
108 * ptrace_report_syscall_exit.
109 *
110 * Invoked from syscall_exit_work() to wrap ptrace_report_syscall_exit().
111 *
112 * The main purpose is to support arch-specific ptrace_report_syscall_exit
113 * implementation.
114 */
115 static inline void arch_ptrace_report_syscall_exit(struct pt_regs *regs,
> 116 int step);
117
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-12-06 14:34 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-06 10:17 [PATCH -next v5 00/22] arm64: entry: Convert to generic entry Jinjie Ruan
2024-12-06 10:17 ` [PATCH -next v5 01/22] arm64: ptrace: Replace interrupts_enabled() with regs_irqs_disabled() Jinjie Ruan
2025-02-10 11:04 ` Mark Rutland
2024-12-06 10:17 ` [PATCH -next v5 02/22] arm64: entry: Refactor the entry and exit for exceptions from EL1 Jinjie Ruan
2025-02-10 11:08 ` Mark Rutland
2024-12-06 10:17 ` [PATCH -next v5 03/22] arm64: entry: Move arm64_preempt_schedule_irq() into __exit_to_kernel_mode() Jinjie Ruan
2025-02-10 11:26 ` Mark Rutland
2024-12-06 10:17 ` [PATCH -next v5 04/22] arm64: entry: Rework arm64_preempt_schedule_irq() Jinjie Ruan
2025-02-10 11:33 ` Mark Rutland
2024-12-06 10:17 ` [PATCH -next v5 05/22] arm64: entry: Use preempt_count() and need_resched() helper Jinjie Ruan
2025-02-10 11:40 ` Mark Rutland
2024-12-06 10:17 ` [PATCH -next v5 06/22] arm64: entry: Expand the need_irq_preemption() macro ahead Jinjie Ruan
2025-02-10 11:48 ` Mark Rutland
2024-12-06 10:17 ` [PATCH -next v5 07/22] arm64: entry: preempt_schedule_irq() only if PREEMPTION enabled Jinjie Ruan
2025-02-10 11:52 ` Mark Rutland
2024-12-06 10:17 ` [PATCH -next v5 08/22] arm64: entry: Use different helpers to check resched for PREEMPT_DYNAMIC Jinjie Ruan
2025-02-10 11:54 ` Mark Rutland
2024-12-06 10:17 ` [PATCH -next v5 09/22] entry: Split generic entry into irq and syscall Jinjie Ruan
2025-02-10 12:04 ` Mark Rutland
2024-12-06 10:17 ` [PATCH -next v5 10/22] entry: Add arch_irqentry_exit_need_resched() for arm64 Jinjie Ruan
2025-02-10 12:05 ` Mark Rutland
2024-12-06 10:17 ` [PATCH -next v5 11/22] arm64: entry: Switch to generic IRQ entry Jinjie Ruan
2025-02-10 12:24 ` Mark Rutland
2025-02-11 11:32 ` Jinjie Ruan
2024-12-06 10:17 ` [PATCH -next v5 12/22] arm64/ptrace: Split report_syscall() function Jinjie Ruan
2024-12-06 10:17 ` [PATCH -next v5 13/22] arm64/ptrace: Refactor syscall_trace_enter() Jinjie Ruan
2024-12-06 10:17 ` [PATCH -next v5 14/22] arm64/ptrace: Refactor syscall_trace_exit() Jinjie Ruan
2024-12-06 10:17 ` [PATCH -next v5 15/22] arm64/ptrace: Refator el0_svc_common() Jinjie Ruan
2024-12-06 10:17 ` [PATCH -next v5 16/22] entry: Make syscall_exit_to_user_mode_prepare() not static Jinjie Ruan
2024-12-06 10:17 ` [PATCH -next v5 17/22] arm64/ptrace: Return early for ptrace_report_syscall_entry() error Jinjie Ruan
2024-12-06 10:17 ` [PATCH -next v5 18/22] arm64/ptrace: Expand secure_computing() in place Jinjie Ruan
2024-12-06 10:17 ` [PATCH -next v5 19/22] arm64/ptrace: Use syscall_get_arguments() heleper Jinjie Ruan
2024-12-06 10:17 ` [PATCH -next v5 20/22] entry: Add arch_ptrace_report_syscall_entry/exit() Jinjie Ruan
2024-12-06 14:33 ` kernel test robot [this message]
2024-12-06 10:17 ` [PATCH -next v5 21/22] entry: Add has_syscall_work() helepr Jinjie Ruan
2024-12-06 10:17 ` [PATCH -next v5 22/22] arm64: entry: Convert to generic entry Jinjie Ruan
2025-02-08 1:15 ` [PATCH -next v5 00/22] " Jinjie Ruan
2025-02-10 12:30 ` Mark Rutland
2025-02-11 11:43 ` Jinjie Ruan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202412062236.pcOqNdrI-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=aliceryhl@google.com \
--cc=arnd@arndb.de \
--cc=bsegall@google.com \
--cc=catalin.marinas@arm.com \
--cc=dietmar.eggemann@arm.com \
--cc=hca@linux.ibm.com \
--cc=juri.lelli@redhat.com \
--cc=kees@kernel.org \
--cc=luto@kernel.org \
--cc=mark.rutland@arm.com \
--cc=masahiroy@kernel.org \
--cc=mbenes@suse.cz \
--cc=mgorman@suse.de \
--cc=mingo@redhat.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=oleg@redhat.com \
--cc=paulmck@kernel.org \
--cc=peterz@infradead.org \
--cc=puranjay@kernel.org \
--cc=rostedt@goodmis.org \
--cc=rppt@kernel.org \
--cc=ruanjinjie@huawei.com \
--cc=samitolvanen@google.com \
--cc=sstabellini@kernel.org \
--cc=tglx@linutronix.de \
--cc=vincent.guittot@linaro.org \
--cc=vschneid@redhat.com \
--cc=wad@chromium.org \
--cc=will@kernel.org \
--cc=xur@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.