From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753833Ab2AOCfU (ORCPT ); Sat, 14 Jan 2012 21:35:20 -0500 Received: from cantor2.suse.de ([195.135.220.15]:37375 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751661Ab2AOCfT (ORCPT ); Sat, 14 Jan 2012 21:35:19 -0500 Date: Sat, 14 Jan 2012 18:34:04 -0800 From: Greg KH To: Tony Luck Cc: Alan Stern , Linus Torvalds , "Srivatsa S. Bhat" , Ming Lei , Djalal Harouni , Borislav Petkov , Hidetoshi Seto , Ingo Molnar , Andi Kleen , linux-kernel@vger.kernel.org, Kay Sievers , gouders@et.bocholt.fh-gelsenkirchen.de, Marcos Souza , Linux PM mailing list , "Rafael J. Wysocki" , "tglx@linutronix.de" , prasad@linux.vnet.ibm.com, justinmattock@gmail.com, Jeff Chua , Suresh B Siddha , Peter Zijlstra , Mel Gorman , Gilad Ben-Yossef Subject: Re: x86/mce: machine check warning during poweroff Message-ID: <20120115023404.GA4268@suse.de> References: <20120114144938.GA32033@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 14, 2012 at 06:05:24PM -0800, Tony Luck wrote: > On Sat, Jan 14, 2012 at 8:30 AM, Alan Stern wrote: > > The driver core isn't designed to handle device structures that get > > unregistered and then spring back to life; callers are supposed to > > allocate a fresh new structure instead. > > Does every caller use "kzalloc()" for this fresh new structure (or even > for the original registration) rather than "kmalloc()"? They better, as that's what they are required to do :) The kernel would be crashing with slab debugging enabled, if it wasn't so today. thanks, greg k-h