lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 29 Nov 2019 15:59:14 -0300
From:   Arnaldo Carvalho de Melo <arnaldo.melo@...il.com>
To:     Jiri Olsa <jolsa@...hat.com>
Cc:     Arnaldo Carvalho de Melo <arnaldo.melo@...il.com>,
        Ingo Molnar <mingo@...nel.org>,
        Thomas Gleixner <tglx@...utronix.de>,
        Jiri Olsa <jolsa@...nel.org>,
        Namhyung Kim <namhyung@...nel.org>,
        Clark Williams <williams@...hat.com>,
        linux-kernel@...r.kernel.org, linux-perf-users@...r.kernel.org,
        Arnaldo Carvalho de Melo <acme@...hat.com>,
        Adrian Hunter <adrian.hunter@...el.com>,
        Andi Kleen <ak@...ux.intel.com>
Subject: Re: [PATCH 04/15] perf tools: Add map_groups to 'struct
 addr_location'

Em Fri, Nov 29, 2019 at 07:03:54PM +0100, Jiri Olsa escreveu:
> On Fri, Nov 29, 2019 at 01:06:31PM -0300, Arnaldo Carvalho de Melo wrote:
> > Em Fri, Nov 29, 2019 at 12:17:33PM -0300, Arnaldo Carvalho de Melo escreveu:
> > > Em Fri, Nov 29, 2019 at 02:40:56PM +0100, Jiri Olsa escreveu:
> > > > > +++ b/tools/perf/util/callchain.c
> > > > > @@ -1119,8 +1119,8 @@ int fill_callchain_info(struct addr_location *al, struct callchain_cursor_node *
> > > > >  			goto out;
> > > > >  	}
> > > > >  
> > > > > -	if (al->map->groups == &al->machine->kmaps) {
> > > > > -		if (machine__is_host(al->machine)) {
> > > > > +	if (al->mg == &al->mg->machine->kmaps) {
> > 
> > > > heya, I'm getting segfault because of this change
> > 
> > > > perf record --call-graph dwarf ./ex
> > 
> > > > 	(gdb) r report --stdio
> > > > 	Program received signal SIGSEGV, Segmentation fault.
> > > > 	fill_callchain_info (al=0x7fffffffa1b0, node=0xcd2bd0, hide_unresolved=false) at util/callchain.c:1122
> > > > 	1122            if (al->maps == &al->maps->machine->kmaps) {
> > > > 	(gdb) p al->maps
> > > > 	$1 = (struct maps *) 0x0

> > > > I wish all those map changes would go through some review,
> > > > I have no idea how the code works now ;-)

> > > ouch, I did tons of tests, obviously some more, and reviewing, would
> > > catch these, my bad, will try and fix this...

> > > And yeah, I reproduced the problem, working on a fix.

> > Can you try with this one-liner?

> yep, it fixes the issue for me

Thanks, I'm taking that as a Tested-by: you, in addition to the
Reported-by,

- Arnaldo

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ