Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull stacktrace fix from Thomas Gleixner:
"A small fix for a stacktrace regression.

Saving a stacktrace for a foreign task skipped an extra entry which
makes e.g. the output of /proc/$PID/stack incomplete"

* 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
stacktrace: Don't skip first entry on noncurrent tasks

+4 -2
+4 -2
kernel/stacktrace.c
··· 141 141 struct stacktrace_cookie c = { 142 142 .store = store, 143 143 .size = size, 144 - .skip = skipnr + 1, 144 + /* skip this function if they are tracing us */ 145 + .skip = skipnr + !!(current == tsk), 145 146 }; 146 147 147 148 if (!try_get_task_stack(tsk)) ··· 299 298 struct stack_trace trace = { 300 299 .entries = store, 301 300 .max_entries = size, 302 - .skip = skipnr + 1, 301 + /* skip this function if they are tracing us */ 302 + .skip = skipnr + !!(current == task), 303 303 }; 304 304 305 305 save_stack_trace_tsk(task, &trace);