Naveen N. Rao
a0e6369e4b
ftrace/instances: Clear function triggers when removing instances
If instance directories are deleted while there are registered function
triggers:
# cd /sys/kernel/debug/tracing/instances
# mkdir test
# echo "schedule:enable_event:sched:sched_switch" > test/set_ftrace_filter
# rmdir test
Unable to handle kernel paging request for data at address 0x00000008
Unable to handle kernel paging request for data at address 0x00000008
Faulting instruction address: 0xc0000000021edde8
Oops: Kernel access of bad area, sig: 11 [#1]
SMP NR_CPUS=2048
NUMA
pSeries
Modules linked in: iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp tun bridge stp llc kvm iptable_filter fuse binfmt_misc pseries_rng rng_core vmx_crypto ib_iser rdma_cm iw_cm ib_cm ib_core libiscsi scsi_transport_iscsi ip_tables x_tables autofs4 btrfs raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c multipath virtio_net virtio_blk virtio_pci crc32c_vpmsum virtio_ring virtio
CPU: 8 PID: 8694 Comm: rmdir Not tainted 4.11.0-nnr+ #113
task: c0000000bab52800 task.stack: c0000000baba0000
NIP: c0000000021edde8 LR: c0000000021f0590 CTR: c000000002119620
REGS: c0000000baba3870 TRAP: 0300 Not tainted (4.11.0-nnr+)
MSR: 8000000000009033 <SF,EE,ME,IR,DR,RI,LE>
CR: 22002422 XER: 20000000
CFAR: 00007fffabb725a8 DAR: 0000000000000008 DSISR: 40000000 SOFTE: 0
GPR00: c00000000220f750 c0000000baba3af0 c000000003157e00 0000000000000000
GPR04: 0000000000000040 00000000000000eb 0000000000000040 0000000000000000
GPR08: 0000000000000000 0000000000000113 0000000000000000 c00000000305db98
GPR12: c000000002119620 c00000000fd42c00 0000000000000000 0000000000000000
GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR20: 0000000000000000 0000000000000000 c0000000bab52e90 0000000000000000
GPR24: 0000000000000000 00000000000000eb 0000000000000040 c0000000baba3bb0
GPR28: c00000009cb06eb0 c0000000bab52800 c00000009cb06eb0 c0000000baba3bb0
NIP [c0000000021edde8] ring_buffer_lock_reserve+0x8/0x4e0
LR [c0000000021f0590] trace_event_buffer_lock_reserve+0xe0/0x1a0
Call Trace:
[c0000000baba3af0] [c0000000021f96c8] trace_event_buffer_commit+0x1b8/0x280 (unreliable)
[c0000000baba3b60] [c00000000220f750] trace_event_buffer_reserve+0x80/0xd0
[c0000000baba3b90] [c0000000021196b8] trace_event_raw_event_sched_switch+0x98/0x180
[c0000000baba3c10] [c0000000029d9980] __schedule+0x6e0/0xab0
[c0000000baba3ce0] [c000000002122230] do_task_dead+0x70/0xc0
[c0000000baba3d10] [c0000000020ea9c8] do_exit+0x828/0xd00
[c0000000baba3dd0] [c0000000020eaf70] do_group_exit+0x60/0x100
[c0000000baba3e10] [c0000000020eb034] SyS_exit_group+0x24/0x30
[c0000000baba3e30] [c00000000200bcec] system_call+0x38/0x54
Instruction dump:
60000000 60420000 7d244b78 7f63db78 4bffaa09 393efff8 793e0020 39200000
4bfffecc 60420000 3c4c00f7 3842a020 <81230008> 2f890000 409e02f0 a14d0008
---[ end trace b917b8985d0e650b ]---
Unable to handle kernel paging request for data at address 0x00000008
Faulting instruction address: 0xc0000000021edde8
Unable to handle kernel paging request for data at address 0x00000008
Faulting instruction address: 0xc0000000021edde8
Faulting instruction address: 0xc0000000021edde8
To address this, let's clear all registered function probes before
deleting the ftrace instance.
Link: http://lkml.kernel.org/r/c5f1ca624043690bd94642bb6bffd3f2fc504035.1494956770.git.naveen.n.rao@linux.vnet.ibm.com
Reported-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
|
2017-05-17 21:52:22 -04:00 |
| .. |
|
bpf
|
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
|
2017-05-09 15:42:31 -07:00 |
|
cgroup
|
Merge branch 'for-4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup
|
2017-05-01 13:52:24 -07:00 |
|
configs
|
config: android-base: enable hardened usercopy and kernel ASLR
|
2017-02-27 18:43:46 -08:00 |
|
debug
|
sched/headers: Prepare for new header dependencies before moving code to <linux/sched/debug.h>
|
2017-03-02 08:42:34 +01:00 |
|
events
|
perf/callchain: Force USER_DS when invoking perf_callchain_user()
|
2017-05-10 07:54:00 +02:00 |
|
gcov
|
gcov: support GCC 7.1
|
2017-05-12 15:57:15 -07:00 |
|
irq
|
pci-v4.12-changes
|
2017-05-08 19:03:25 -07:00 |
|
livepatch
|
Merge branches 'for-4.12/upstream' and 'for-4.12/klp-hybrid-consistency-model' into for-linus
|
2017-05-01 21:49:28 +02:00 |
|
locking
|
Merge branch 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
|
2017-05-10 10:30:46 -07:00 |
|
power
|
More power management updates for v4.12-rc1
|
2017-05-10 09:12:30 -07:00 |
|
printk
|
TTY/Serial patches for 4.12-rc1
|
2017-05-08 18:49:23 -07:00 |
|
rcu
|
Merge branch 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
|
2017-05-10 10:30:46 -07:00 |
|
sched
|
Merge branch 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
|
2017-05-10 10:30:46 -07:00 |
|
time
|
time: delete current_fs_time()
|
2017-05-12 15:57:15 -07:00 |
|
trace
|
ftrace/instances: Clear function triggers when removing instances
|
2017-05-17 21:52:22 -04:00 |
|
.gitignore
|
|
|
|
acct.c
|
sched/headers: Prepare to move cputime functionality from <linux/sched.h> into <linux/sched/cputime.h>
|
2017-03-02 08:42:39 +01:00 |
|
async.c
|
|
|
|
audit.c
|
Merge branch 'stable-4.12' of git://git.infradead.org/users/pcmoore/audit
|
2017-05-03 09:21:59 -07:00 |
|
audit.h
|
audit: Use timespec64 to represent audit timestamps
|
2017-05-02 10:16:05 -04:00 |
|
audit_fsnotify.c
|
Merge branch 'fsnotify' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
|
2017-05-03 11:05:15 -07:00 |
|
audit_tree.c
|
Merge branch 'fsnotify' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
|
2017-05-03 11:05:15 -07:00 |
|
audit_watch.c
|
Merge branch 'fsnotify' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
|
2017-05-03 11:05:15 -07:00 |
|
auditfilter.c
|
audit: kernel generated netlink traffic should have a portid of 0
|
2017-05-02 10:16:05 -04:00 |
|
auditsc.c
|
Merge branch 'fsnotify' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
|
2017-05-03 11:05:15 -07:00 |
|
backtracetest.c
|
|
|
|
bounds.c
|
|
|
|
capability.c
|
capability: export has_capability
|
2017-01-12 07:01:56 -07:00 |
|
compat.c
|
time: Change k_clock nsleep() to use timespec64
|
2017-04-14 21:49:56 +02:00 |
|
configs.c
|
|
|
|
context_tracking.c
|
|
|
|
cpu.c
|
Merge branch 'linus' into locking/core, to pick up fixes
|
2017-04-14 10:29:40 +02:00 |
|
cpu_pm.c
|
|
|
|
crash_core.c
|
ia64: reuse append_elf_note() and final_note() functions
|
2017-05-08 17:15:11 -07:00 |
|
crash_dump.c
|
|
|
|
cred.c
|
sched/headers: Prepare for new header dependencies before moving code to <linux/sched/coredump.h>
|
2017-03-02 08:42:28 +01:00 |
|
delayacct.c
|
sched/headers: Prepare to move cputime functionality from <linux/sched.h> into <linux/sched/cputime.h>
|
2017-03-02 08:42:39 +01:00 |
|
dma.c
|
|
|
|
elfcore.c
|
|
|
|
exec_domain.c
|
|
|
|
exit.c
|
userfaultfd: non-cooperative: rollback userfaultfd_exit
|
2017-03-09 17:01:09 -08:00 |
|
extable.c
|
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
|
2017-02-22 10:15:09 -08:00 |
|
fork.c
|
Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
|
2017-05-12 10:41:45 -07:00 |
|
freezer.c
|
|
|
|
futex.c
|
futex: Clarify mark_wake_futex memory barrier usage
|
2017-04-15 16:03:46 +02:00 |
|
futex_compat.c
|
|
|
|
groups.c
|
mm, vmalloc: use __GFP_HIGHMEM implicitly
|
2017-05-08 17:15:13 -07:00 |
|
hung_task.c
|
kernel/hung_task.c: defer showing held locks
|
2017-05-08 17:15:10 -07:00 |
|
irq_work.c
|
|
|
|
jump_label.c
|
This release has no new tracing features, just clean ups, minor fixes
|
2017-02-27 13:26:17 -08:00 |
|
kallsyms.c
|
bpf: make jited programs visible in traces
|
2017-02-17 13:40:05 -05:00 |
|
kcmp.c
|
|
|
|
Kconfig.freezer
|
|
|
|
Kconfig.hz
|
|
|
|
Kconfig.locks
|
|
|
|
Kconfig.preempt
|
|
|
|
kcov.c
|
kcov: simplify interrupt check
|
2017-05-08 17:15:12 -07:00 |
|
kexec.c
|
|
|
|
kexec_core.c
|
ia64: reuse append_elf_note() and final_note() functions
|
2017-05-08 17:15:11 -07:00 |
|
kexec_file.c
|
kexec, x86/purgatory: Unbreak it and clean it up
|
2017-03-10 20:55:09 +01:00 |
|
kexec_internal.h
|
kexec, x86/purgatory: Unbreak it and clean it up
|
2017-03-10 20:55:09 +01:00 |
|
kmod.c
|
sched/headers, vfs/execve: Prepare to move the do_execve*() prototypes from <linux/sched.h> to <linux/binfmts.h>
|
2017-03-02 08:42:39 +01:00 |
|
kprobes.c
|
tracing/kprobes: Enforce kprobes teardown after testing
|
2017-05-17 21:50:27 -04:00 |
|
ksysfs.c
|
crash: move crashkernel parsing and vmcore related code under CONFIG_CRASH_CORE
|
2017-05-08 17:15:11 -07:00 |
|
kthread.c
|
cgroup, kthread: close race window where new kthreads can be migrated to non-root cgroups
|
2017-03-17 10:18:47 -04:00 |
|
latencytop.c
|
sched/headers: Prepare to move sched_info_on() and force_schedstat_enabled() from <linux/sched.h> to <linux/sched/stat.h>
|
2017-03-02 08:42:39 +01:00 |
|
Makefile
|
crash: move crashkernel parsing and vmcore related code under CONFIG_CRASH_CORE
|
2017-05-08 17:15:11 -07:00 |
|
membarrier.c
|
Fix: Disable sys_membarrier when nohz_full is enabled
|
2017-01-23 11:32:16 -08:00 |
|
memremap.c
|
mm, zone_device: Replace {get, put}_zone_device_page() with a single reference to fix pmem crash
|
2017-05-01 09:15:53 +02:00 |
|
module-internal.h
|
|
|
|
module.c
|
kernel/module.c: use set_memory.h header
|
2017-05-08 17:15:14 -07:00 |
|
module_signing.c
|
|
|
|
notifier.c
|
kernel/notifier.c: simplify expression
|
2017-02-24 17:46:56 -08:00 |
|
nsproxy.c
|
perf: Add PERF_RECORD_NAMESPACES to include namespaces related info
|
2017-03-13 15:57:41 -03:00 |
|
padata.c
|
padata: get_next is never NULL
|
2017-04-21 20:30:46 +08:00 |
|
panic.c
|
sched/headers: Prepare for new header dependencies before moving code to <linux/sched/debug.h>
|
2017-03-02 08:42:34 +01:00 |
|
params.c
|
boot/param: Move next_arg() function to lib/cmdline.c for later reuse
|
2017-04-18 10:37:13 +02:00 |
|
pid.c
|
pidns: disable pid allocation if pid_ns_prepare_proc() is failed in alloc_pid()
|
2017-05-08 17:15:12 -07:00 |
|
pid_namespace.c
|
pidns: expose task pid_ns_for_children to userspace
|
2017-05-08 17:15:12 -07:00 |
|
profile.c
|
sched/headers: Prepare to move sched_info_on() and force_schedstat_enabled() from <linux/sched.h> to <linux/sched/stat.h>
|
2017-03-02 08:42:39 +01:00 |
|
ptrace.c
|
ptrace: fix PTRACE_LISTEN race corrupting task->state
|
2017-04-08 00:47:48 -07:00 |
|
range.c
|
|
|
|
reboot.c
|
|
|
|
relay.c
|
Merge branch 'work.splice' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2017-05-02 11:38:06 -07:00 |
|
resource.c
|
|
|
|
seccomp.c
|
sched/headers: Prepare for new header dependencies before moving code to <linux/sched/task_stack.h>
|
2017-03-02 08:42:36 +01:00 |
|
signal.c
|
Merge branch 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
|
2017-05-10 10:30:46 -07:00 |
|
smp.c
|
sched/headers: Prepare for new header dependencies before moving code to <linux/sched/idle.h>
|
2017-03-02 08:42:26 +01:00 |
|
smpboot.c
|
sched/headers: Prepare for new header dependencies before moving code to <linux/sched/task.h>
|
2017-03-02 08:42:35 +01:00 |
|
smpboot.h
|
|
|
|
softirq.c
|
sched/core: Remove 'task' parameter and rename tsk_restore_flags() to current_restore_flags()
|
2017-04-11 09:06:32 +02:00 |
|
stacktrace.c
|
stacktrace/x86: add function for detecting reliable stack traces
|
2017-03-08 09:18:02 +01:00 |
|
stop_machine.c
|
|
|
|
sys.c
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace
|
2017-05-05 11:08:43 -07:00 |
|
sys_ni.c
|
|
|
|
sysctl.c
|
proc/sysctl: fix the int overflow for jiffies conversion
|
2017-05-08 17:15:10 -07:00 |
|
sysctl_binary.c
|
net: Remove NET_CORE_BUDGET_USECS from sysctl binary interface.
|
2017-04-21 15:59:52 -04:00 |
|
task_work.c
|
|
|
|
taskstats.c
|
taskstats: add e/u/stime for TGID command
|
2017-05-08 17:15:12 -07:00 |
|
test_kprobes.c
|
|
|
|
torture.c
|
sched/headers: Prepare for new header dependencies before moving code to <linux/sched/clock.h>
|
2017-03-02 08:42:27 +01:00 |
|
tracepoint.c
|
sched/headers: Prepare for new header dependencies before moving code to <linux/sched/task.h>
|
2017-03-02 08:42:35 +01:00 |
|
tsacct.c
|
sched/headers: Prepare to move cputime functionality from <linux/sched.h> into <linux/sched/cputime.h>
|
2017-03-02 08:42:39 +01:00 |
|
ucount.c
|
ucount: Remove the atomicity from ucount->count
|
2017-03-06 15:26:37 -06:00 |
|
uid16.c
|
sched/headers: Prepare to remove <linux/cred.h> inclusion from <linux/sched.h>
|
2017-03-02 08:42:31 +01:00 |
|
up.c
|
|
|
|
user-return-notifier.c
|
|
|
|
user.c
|
sched/headers: Prepare for new header dependencies before moving code to <linux/sched/user.h>
|
2017-03-02 08:42:29 +01:00 |
|
user_namespace.c
|
sched/headers: Prepare for new header dependencies before moving code to <linux/sched/signal.h>
|
2017-03-02 08:42:29 +01:00 |
|
utsname.c
|
sched/headers: Prepare to move the task_lock()/unlock() APIs to <linux/sched/task.h>
|
2017-03-02 08:42:38 +01:00 |
|
utsname_sysctl.c
|
sched/headers: Remove <linux/rwsem.h> from <linux/sched.h>
|
2017-03-03 01:45:36 +01:00 |
|
watchdog.c
|
sched/headers: Prepare for new header dependencies before moving code to <linux/sched/debug.h>
|
2017-03-02 08:42:34 +01:00 |
|
watchdog_hld.c
|
sched/headers: Prepare for new header dependencies before moving code to <linux/sched/debug.h>
|
2017-03-02 08:42:34 +01:00 |
|
workqueue.c
|
Merge branch 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
|
2017-05-01 19:12:53 -07:00 |
|
workqueue_internal.h
|
|
|