[<prev] [next>] [day] [month] [year] [list]
Message-ID: <5934B606.7050105@163.com>
Date: Mon, 05 Jun 2017 09:38:14 +0800
From: Jia-Ju Bai <baijiaju1990@....com>
To: Greg KH <gregkh@...uxfoundation.org>, wporter82@...il.com,
sergio.paracuellos@...il.com, aquannie@...il.com
CC: devel@...verdev.osuosl.org, LKML <linux-kernel@...r.kernel.org>
Subject: [BUG] rts5208: Sleeping under a spin lock in xd_init_l2p_tbl
According to rtsx_chip.c and xd.c, the driver may sleep under a spin lock.
The function call path is:
rtsx_exclusive_enter_ss (acquire the lock by spin_lock)
rtsx_enter_ss
rtsx_power_off_card
xd_cleanup_work
xd_delay_write
xd_finish_write
xd_set_unused_block
xd_build_l2p_tbl
xd_init_l2p_tbl
vmalloc --> may sleep
This bug is found by my static analysis tool and my code review.
I hope to fix it, but I do not have a good solution.
Thanks,
Jia-Ju Bai
Powered by blists - more mailing lists