Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite2bff39

Browse files
committed
Merge tag 'core_urgent_for_v5.9_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull syscall tracing fix from Borislav Petkov: "Fix the seccomp syscall rewriting so that trace and audit see the rewritten syscall number, from Kees Cook"* tag 'core_urgent_for_v5.9_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: core/entry: Report syscall correctly for trace and audit
2 parents1f8ee7e +b6ec413 commite2bff39

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎kernel/entry/common.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,15 @@ static long syscall_trace_enter(struct pt_regs *regs, long syscall,
6060
returnret;
6161
}
6262

63+
/* Either of the above might have changed the syscall number */
64+
syscall=syscall_get_nr(current,regs);
65+
6366
if (unlikely(ti_work&_TIF_SYSCALL_TRACEPOINT))
6467
trace_sys_enter(regs,syscall);
6568

6669
syscall_enter_audit(regs,syscall);
6770

68-
/* The above might have changed the syscall number */
69-
returnret ? :syscall_get_nr(current,regs);
71+
returnret ? :syscall;
7072
}
7173

7274
static__always_inline long

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp