GitHub PushEvent at 2014-11-06 23:58:46
Repository: android_kernel_htc_m7
Actor: cm-gerrit
Payload: {"shas":[["07f8c6a7881f913630ad302997efe9ddcbf9e822","b913f13ef92ac157955c954ccaaff7be065faba4@arm.com","tracing/syscalls: Fix perf syscall tracing when syscall_nr == -1\n\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: I94a83e00049e4f6cf9cbd6114668d2832e520411\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>","Will Deacon",true],["05b5c1b5c51a73fc3ce29000e22f839531a1504a","6bd3f43fd5b2b5689bccc97f6d09e3eb28307598@rab.in","tracing/syscalls: Ignore numbers outside NR_syscalls' range\n\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:\n\tkernel/trace/trace_syscalls.c\n\nChange-Id: Ic3162b3f345a36df163dbb92c71c743e74789740","Rabin Vincent",true]],"size":2,"ref":"refs/heads/cm-11.0","head":"05b5c1b5c51a73fc3ce29000e22f839531a1504a"}