Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 30 Aug 2002 17:13:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 30 Aug 2002 17:13:04 -0400 Received: from vasquez.zip.com.au ([203.12.97.41]:8713 "EHLO vasquez.zip.com.au") by vger.kernel.org with ESMTP id ; Fri, 30 Aug 2002 17:13:01 -0400 Message-ID: <3D6FE062.A48B6F03@zip.com.au> Date: Fri, 30 Aug 2002 14:15:14 -0700 From: Andrew Morton X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.19-rc3 i686) X-Accept-Language: en MIME-Version: 1.0 To: Terence Ripperda CC: linux-kernel@vger.kernel.org Subject: Re: lockup on Athlon systems, kernel race condition? References: <20020830204022.GC736@hygelac> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 934 Lines: 30 Terence Ripperda wrote: > > ... > > asmlinkage long sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) > { > struct file * filp; > unsigned int flag; > int on, error = -EBADF; > > filp = fget(fd); > if (!filp) > goto out; > error = 0; > lock_kernel(); <==== > switch (cmd) { This CPU is spinning, waiting for kernel_flag. It will take the IPI and the other CPU's smp_call_function() will succeed. Possibly the IPI has got lost - seems that this is a popular failure mode for flakey chipsets/motherboards. Or someone has called sys_ioctl() with interrupts disabled. That's very doubtful. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/