From: "Jan Beulich" Subject: Re: [Patch] Call sched_destroy_domain before cpupool_rm_domain. Date: Thu, 07 Nov 2013 07:39:10 +0000 Message-ID: <527B51AE020000780010075B@nat28.tlf.novell.com> References: <1383534234-3933-1-git-send-email-nate.studer@dornerworks.com> <52773EF2.8000308@ts.fujitsu.com> <1383557167.9207.35.camel@Solace> <52776FBC.50800@ts.fujitsu.com> <5277BBB6.5050604@dornerworks.com> <52788932.1030209@ts.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <52788932.1030209@ts.fujitsu.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Nate Studer , Juergen Gross Cc: George Dunlap , Dario Faggioli , Keir Fraser , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 05.11.13 at 06:59, Juergen Gross wrote: > On 04.11.2013 16:22, Nate Studer wrote: >> On 11/4/2013 4:58 AM, Juergen Gross wrote: >>> All other schedulers will just call xfree() for the domain specific data (and >>> may be update some statistic data, which is not critical). >> >> The credit and credit2 schedulers do a bit more than that in their free_domdata >> functions. > > Sorry, got not enough sleep on the weekend ;-) > > I checked only 4.1 and 4.2 trees. There only xfree of the domain data is > done. > >> >> The credit scheduler frees the node_affinity_cpumask contained in the domain >> data and the credit2 scheduler deletes a list element contained in the domain >> data. Since with this bug they are accessing structures that do not belong to >> them, bad things happen. > > So the patch would be subject to a 4.3 backport, I think. Hmm, I'm slightly confused: credit2's free_domdata has always been doing more than just xfree() afaict, and hence backporting is either necessary uniformly or (taking into account that it was made clear that arinc doesn't work with CPU pools anyway so far) not at all. Please clarify. Jan