On Mon, Jan 04, 2016 at 11:24:14AM -0700, Mathieu Poirier wrote: > On 20 December 2015 at 08:29, Rabin Vincent wrote: > > This patch introduces a use-after-free/double kfree() if the sink is > > disabled after the source. > > > > With this command sequence: > > > > # echo 1 > /sys/bus/coresight/devices/54162000.etb/enable_sink > > # echo 1 > /sys/bus/coresight/devices/5414c000.ptm/enable_source > > ... > > # echo 0 > /sys/bus/coresight/devices/54162000.etb/enable_sink > > # echo 0 > /sys/bus/coresight/devices/5414c000.ptm/enable_source > > Can you send me the full suite of commands to get to this result? I > simply can't trigger the trace you are collecting on your side. I > have the following SLUB debugging settings - can you double check > yours as well? The command sequence is exactly as mentioned above. The kernel is v4.4rc-8 + all your patches from this thread + the OMAP coresight patch I mentioned earlier. The .config and the entire log is attached. There seems to be also a lockdep warning for the second command which I missed earlier.