[PATCH 08/16] perf symbol: only set vmlinux longname & mark loaded if really loaded

2012-08-10 Thread Cody P Schafer
dso__load_vmlinux() uses the filename passed to it to directly set the dso long_name, which resulted in a use after free due to dso__load_vmlinux_path() treating 0 symbols as a load failure and subsequently freeing the contents of dso->long_name. Change dso__load_vmlinux() so that finding 0

[PATCH 08/16] perf symbol: only set vmlinux longname mark loaded if really loaded

2012-08-10 Thread Cody P Schafer
dso__load_vmlinux() uses the filename passed to it to directly set the dso long_name, which resulted in a use after free due to dso__load_vmlinux_path() treating 0 symbols as a load failure and subsequently freeing the contents of dso-long_name. Change dso__load_vmlinux() so that finding 0

[PATCH 08/16] perf symbol: only set vmlinux longname & mark loaded if really loaded

2012-08-09 Thread Cody P Schafer
dso__load_vmlinux() uses the filename passed to it to directly set the dso long_name, which resulted in a use after free due to dso__load_vmlinux_path() treating 0 symbols as a load failure and subsequently freeing the contents of dso->long_name. Change dso__load_vmlinux() so that finding 0

[PATCH 08/16] perf symbol: only set vmlinux longname mark loaded if really loaded

2012-08-09 Thread Cody P Schafer
dso__load_vmlinux() uses the filename passed to it to directly set the dso long_name, which resulted in a use after free due to dso__load_vmlinux_path() treating 0 symbols as a load failure and subsequently freeing the contents of dso-long_name. Change dso__load_vmlinux() so that finding 0