From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758847AbcHDQAq (ORCPT ); Thu, 4 Aug 2016 12:00:46 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:35567 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758761AbcHDQAo (ORCPT ); Thu, 4 Aug 2016 12:00:44 -0400 Date: Thu, 4 Aug 2016 18:00:40 +0200 From: Peter Zijlstra To: Vegard Nossum Cc: David Carrillo-Cisneros , Vineet Gupta , Kan Liang , Arnaldo Carvalho de Melo , LKML , Alexander Shishkin , Frederic Weisbecker Subject: Re: NULL ptr deref in perf/filter_match Message-ID: <20160804160040.GP6879@twins.programming.kicks-ass.net> References: <20160804123724.GN6862@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 04, 2016 at 05:55:30PM +0200, Vegard Nossum wrote: > BTW, this seems to show up slightly more frequently although I've seen > it a couple of times before without your patch too so it's probably > unrelated: Frederic, could you have a look? > WARNING: CPU: 0 PID: 1244 at arch/x86/kernel/hw_breakpoint.c:121 > arch_install_hw_breakpoint+0x284/0x2f0 > Can't find any breakpoint slot > CPU: 0 PID: 1244 Comm: trinity-c0 Not tainted 4.7.0+ #73 > Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS > rel-1.9.3-0-ge2fc41e-prebuilt.qemu-project.org 04/01/20 > 14 > ffffffff83a1a5a0 ffff880116b6f860 ffffffff81d75571 ffff880116b6f8d8 > 0000000000000000 ffff880116b6f8a8 ffffffff810fd28f ffff880115fb5a00 > ffff880100000079 ffffed0022d6df17 0000000000000004 ffff88010e202a80 > Call Trace: > [] dump_stack+0x65/0x84 > [] __warn+0x17f/0x1a0 > [] warn_slowpath_fmt+0x92/0xb0 > [] ? __warn+0x1a0/0x1a0 > [] ? perf_event_update_userpage+0x3ca/0x660 > [] arch_install_hw_breakpoint+0x284/0x2f0 > [] hw_breakpoint_add+0xd4/0x100 > [] event_sched_in.isra.100+0x3a7/0xa40 > [] group_sched_in+0x103/0x3e0 > [] ? sched_clock+0x9/0x10 > [] ctx_sched_in+0x80d/0x16f0 > [] perf_event_sched_in+0x60/0x80 > [] ctx_resched+0x60/0xa0 > [] __perf_install_in_context+0x247/0x320 > [] ? __perf_event_enable+0xb60/0xb60 > [] ? perf_duration_warn+0x40/0x40 > [] remote_function+0x115/0x1a0 > [] ? perf_duration_warn+0x40/0x40 > [] generic_exec_single+0x191/0x290 > [] ? perf_duration_warn+0x40/0x40 > [] smp_call_function_single+0xde/0x350 > [] ? generic_smp_call_function_single_interrupt+0x10/0x10 > [] perf_install_in_context+0x200/0x370 > [] ? perf_remove_from_context+0xc0/0xc0 > [] ? __perf_event_enable+0xb60/0xb60 > [] SYSC_perf_event_open+0xd62/0x1cf0 > [] ? perf_event_set_output+0x400/0x400 > [] ? __this_cpu_preempt_check+0x13/0x20 > [] ? perf_pmu_unregister+0x470/0x470 > [] SyS_perf_event_open+0x9/0x10 > [] do_syscall_64+0x1a1/0x460 > [] ? __context_tracking_enter+0xaa/0x200 > [] entry_SYSCALL64_slow_path+0x25/0x25 > ---[ end trace 966c767fd836202d ]---