Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755585AbZJHIU3 (ORCPT ); Thu, 8 Oct 2009 04:20:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755299AbZJHIU3 (ORCPT ); Thu, 8 Oct 2009 04:20:29 -0400 Received: from smtp.ispras.ru ([83.149.198.201]:47772 "EHLO smtp.ispras.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755279AbZJHIU1 (ORCPT ); Thu, 8 Oct 2009 04:20:27 -0400 From: Alexander Strakh Organization: ISP RAS To: Benjamin Kong , Samuel Ortiz , rda-users@lists.sourceforge.net, Linux Kernlel Mailing List Subject: [BUG] ali-ircc.c sleeping function called from invalid context Date: Thu, 8 Oct 2009 12:22:29 +0000 User-Agent: KMail/1.10.3 (Linux/2.6.27.29-0.1-default; KDE/4.1.3; x86_64; ; ) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200910081222.29956.strakh@ispras.ru> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 957 Lines: 26 KERNEL_VERSION: 2.6.31 DESCRIBE: Driver reports/drivers/net/irda/ali-ircc.c might sleep in attomic context, because it calls ali_ircc_change_speed after spin_lock_irqsave: drivers/net/irda/ali-ircc.c: 2028static int ali_ircc_net_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) ... 2056 spin_lock_irqsave(&self->lock, flags); 2057 ali_ircc_change_speed(self, irq->ifr_baudrate); ... Path to might_sleep macro from ali_ircc_change_speed: 1. ali_ircc_change_speed calls ali_ircc_sir_change_speed ./drivers/net/irda/ali-ircc.c:999 2. ali_ircc_sir_change_speed calls spin_lock_irqsave at ./drivers/net/irda/ali-ircc.c:1084 Found by: Linux Driver Verification -- 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/