lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200910081445.43125.strakh@ispras.ru>
Date:	Thu, 8 Oct 2009 14:45:40 +0000
From:	Alexander Strakh <strakh@...ras.ru>
To:	Benjamin Kong <benjamin_kong@....com.tw>,
	Samuel Ortiz <samuel@...tiz.org>,
	rda-users@...ts.sourceforge.net,
	Linux Kernlel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [BUG] ali-ircc.c sleeping function called from invalid context

	KERNEL_VERSION: 2.6.31
	DESCRIBE:
(wrong message before that)
Driver reports/drivers/net/irda/ali-ircc.c  - get spin_lock twice 

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 second spin_lock_irqsave(&self->lock, flags)  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:

1050static void ali_ircc_sir_change_speed(struct ali_ircc_cb *priv, __u32 
speed)
1084        spin_lock_irqsave(&self->lock, flags);

Found by: Linux Driver Verification

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ