Re: __ftrace_hash_rec_update FTRACE_WARN_ON.

From: Steven Rostedt
Date: Fri Jul 05 2013 - 10:54:01 EST


On Fri, 2013-07-05 at 10:26 -0400, Dave Jones wrote:
> WARNING: at kernel/trace/ftrace.c:1605 __ftrace_hash_rec_update.part.37+0x20a/0x240()
> Modules linked in: sctp libcrc32c snd_seq_dummy fuse tun rfcomm bnep scsi_transport_iscsi hidp nfnetlink can_bcm irda caif_socket nfc caif netrom crc_ccitt rose x25 appletalk ipt_ULOG rds bluetooth can_raw ipx phonet can rfkill af_802154 pppoe pppox p8023 llc2 af_key ppp_generic psnap p8022 atm llc slhc ax25 af_rxrpc snd_hda_codec_realtek snd_hda_codec_hdmi snd_hda_intel snd_hda_codec snd_hwdep snd_seq pcspkr snd_seq_device snd_pcm e1000e snd_page_alloc snd_timer snd ptp soundcore pps_core
> CPU: 1 PID: 15820 Comm: trinity-child2 Not tainted 3.10.0+ #21
> ffffffff81a1f20b ffff8801be9dfc60 ffffffff816f2120 0000000000000000
> ffff8801be9dfc98 ffffffff8104ca81 0000000000000000 0000000000000001
> ffff8801be424000 0000000000000000 ffff88022bd25518 ffff8801be9dfca8
> Call Trace:
> [<ffffffff816f2120>] dump_stack+0x4e/0x82
> [<ffffffff8104ca81>] warn_slowpath_common+0x61/0x80
> [<ffffffff8104cb5a>] warn_slowpath_null+0x1a/0x20
> [<ffffffff8111489a>] __ftrace_hash_rec_update.part.37+0x20a/0x240
> [<ffffffff811168a8>] ftrace_shutdown+0xb8/0x170
> [<ffffffff81116d40>] unregister_ftrace_function+0x30/0x50
> [<ffffffff81134487>] perf_ftrace_event_register+0x87/0x130
> [<ffffffff811342ec>] perf_trace_destroy+0x2c/0x50
> [<ffffffff8113caf9>] tp_perf_event_destroy+0x9/0x10
> [<ffffffff8113f0f7>] free_event+0xa7/0x310
> [<ffffffff8113f3c4>] perf_event_release_kernel+0x64/0x90
> [<ffffffff8113f830>] put_event+0x120/0x1b0
> [<ffffffff8113f740>] ? put_event+0x30/0x1b0
> [<ffffffff8113f8d0>] perf_release+0x10/0x20
> [<ffffffff811b7d15>] __fput+0xf5/0x2d0
> [<ffffffff811b7fae>] ____fput+0xe/0x10
> [<ffffffff8107798c>] task_work_run+0xac/0xe0
> [<ffffffff81051d27>] do_exit+0x2c7/0xcd0
> [<ffffffff81704b00>] ? ftrace_call+0x5/0x2f
> [<ffffffff81053afc>] do_group_exit+0x4c/0xc0
> [<ffffffff81053b84>] SyS_exit_group+0x14/0x20
> [<ffffffff817050d4>] tracesys+0xdd/0xe2
> ---[ end trace df06ab36fcd44d8b ]---
>
>
> 1605 if (FTRACE_WARN_ON((rec->flags & ~FTRACE_FL_MASK) == 0))
> 1606 return;
>

Can you find an easy reproducer for this?

-- Steve


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/