{"push_id":847972723,"size":2,"distinct_size":2,"ref":"refs/heads/next","head":"3cf4c2080ba72155237435314c3243f9a20861d8","before":"42c13621ef7f130a5bb6396fbb07302aad8e41bd","commits":[{"sha":"ffc7a3c0566fb7103ff29af8ba6b1474b25e7ab4","author":{"email":"cf8250ffc3403545b26ea448b3679e86cf72a9df@outlook.com","name":"SandPox"},"message":"tracing/syscalls: Fix perf syscall tracing when syscall_nr == -1\nsyscall_get_nr can return -1 in the case that the task is not executing\na system call.\n\nThis patch fixes perf_syscall_{enter,exit} to check that the syscall\nnumber is valid before using it as an index into a bitmap.\n\nLink: http://lkml.kernel.org/r/1345137254-7377-1-git-send-email-will.deacon@arm.com\n\nChange-Id: Iedc719957e184c6572b3ad94e241ae2a97a0b533\nCc: Jason Baron <jbaron@redhat.com>\nCc: Wade Farnsworth <wade_farnsworth@mentor.com>\nCc: Frederic Weisbecker <fweisbec@gmail.com>\nSigned-off-by: Will Deacon <will.deacon@arm.com>\nSigned-off-by: Steven Rostedt <rostedt@goodmis.org>","distinct":true,"url":"https://api.github.com/repos/SandPox/android_kernel_samsung_kyleproxx/commits/ffc7a3c0566fb7103ff29af8ba6b1474b25e7ab4"},{"sha":"3cf4c2080ba72155237435314c3243f9a20861d8","author":{"email":"cf8250ffc3403545b26ea448b3679e86cf72a9df@outlook.com","name":"SandPox"},"message":"tracing/syscalls: Ignore numbers outside NR_syscalls' range\nARM has some private syscalls (for example, set_tls(2)) which lie\noutside the range of NR_syscalls.  If any of these are called while\nsyscall tracing is being performed, out-of-bounds array access will\noccur in the ftrace and perf sys_{enter,exit} handlers.\n\n # trace-cmd record -e raw_syscalls:* true && trace-cmd report\n ...\n true-653   [000]   384.675777: sys_enter:            NR 192 (0, 1000, 3, 4000022, ffffffff, 0)\n true-653   [000]   384.675812: sys_exit:             NR 192 = 1995915264\n true-653   [000]   384.675971: sys_enter:            NR 983045 (76f74480, 76f74000, 76f74b28, 76f74480, 76f76f74, 1)\n true-653   [000]   384.675988: sys_exit:             NR 983045 = 0\n ...\n\n # trace-cmd record -e syscalls:* true\n [   17.289329] Unable to handle kernel paging request at virtual address aaaaaace\n [   17.289590] pgd = 9e71c000\n [   17.289696] [aaaaaace] *pgd=00000000\n [   17.289985] Internal error: Oops: 5 [#1] PREEMPT SMP ARM\n [   17.290169] Modules linked in:\n [   17.290391] CPU: 0 PID: 704 Comm: true Not tainted 3.18.0-rc2+ #21\n [   17.290585] task: 9f4dab00 ti: 9e710000 task.ti: 9e710000\n [   17.290747] PC is at ftrace_syscall_enter+0x48/0x1f8\n [   17.290866] LR is at syscall_trace_enter+0x124/0x184\n\nFix this by ignoring out-of-NR_syscalls-bounds syscall numbers.\n\nCommit cd0980fc8add \"tracing: Check invalid syscall nr while tracing syscalls\"\nadded the check for less than zero, but it should have also checked\nfor greater than NR_syscalls.\n\nLink: http://lkml.kernel.org/p/1414620418-29472-1-git-send-email-rabin@rab.in\n\nFixes: cd0980fc8add \"tracing: Check invalid syscall nr while tracing syscalls\"\nCc: stable@vger.kernel.org # 2.6.33+\nSigned-off-by: Rabin Vincent <rabin@rab.in>\nSigned-off-by: Steven Rostedt <rostedt@goodmis.org>\n\nConflicts:\nkernel/trace/trace_syscalls.c\n\nChange-Id: I512142f8f1e1b2a8dc063209666dbce9737377e7","distinct":true,"url":"https://api.github.com/repos/SandPox/android_kernel_samsung_kyleproxx/commits/3cf4c2080ba72155237435314c3243f9a20861d8"}]}