From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752144AbbIQMyI (ORCPT ); Thu, 17 Sep 2015 08:54:08 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:43946 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751418AbbIQMyF (ORCPT ); Thu, 17 Sep 2015 08:54:05 -0400 Date: Thu, 17 Sep 2015 05:54:04 -0700 From: Greg KH To: Borislav Petkov Cc: Josh Boyer , Philip =?iso-8859-1?Q?M=FCller?= , Thomas Gleixner , "Linux-Kernel@Vger. Kernel. Org" , Sudeep Holla , Guenter Roeck , manjaro-dev@manjaro.org, Ingo Molnar , "H. Peter Anvin" , Andre Przywara , Borislav Petkov Subject: Re: [linux41] regression with 'x86/cacheinfo: Move cacheinfo sysfs code to generic infrastructure' on AMD i686 Message-ID: <20150917125404.GC16085@kroah.com> References: <55B16967.1040609@manjaro.org> <55B47BB8.6080202@manjaro.org> <20150726084154.GA14829@nazgul.tnic> <55B4BC7F.1060402@manjaro.org> <20150726144244.GA15550@nazgul.tnic> <20150917071504.GA12316@nazgul.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150917071504.GA12316@nazgul.tnic> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 17, 2015 at 09:15:04AM +0200, Borislav Petkov wrote: > On Wed, Sep 16, 2015 at 07:52:47PM -0400, Josh Boyer wrote: > > On Sun, Jul 26, 2015 at 10:42 AM, Borislav Petkov wrote: > > > On Sun, Jul 26, 2015 at 12:54:55PM +0200, Philip Müller wrote: > > >> I can confirm your patch working. However, it might be good to use yours > > >> and Thomas' in combination to solve this properly. > > > > > > Please do not top-post. > > > > > > We could use Thomas' too although from looking at it, > > > detect_cache_attributes() allocates a per-CPU per_cpu_cacheinfo thing > > > for each CPU. By the time we hit cache_shared_cpu_map_remove() in > > > free_cache_attributes(), those per_cpu_cacheinfo(cpu) things are still > > > allocated. We kfree them in the next step only. > > > > > > But I like the moving of the check from the CPU hotplug callback to > > > free_cache_attributes(). > > > > > > So I'll merge the two patches and write up a proper commit message, > > > unless someone objects. > > > > > > I'll add your Tested-by too. > > > > Did this actually happen? I don't see either fix in Linus' tree yet, > > the merge window is closed, and the bug happens on 4.1 and 4.2 stable > > kernels.. > > Greg wanted to pick it up... > > Greg, what's up? It's in my "to-apply" queue, let me go dig it up now... thanks for the reminder. greg k-h