New issue
Advanced search Search tips

Issue 655274 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

verity_error may be called with interrupts disabled, causing "BUG: sleeping function called from invalid context"

Project Member Reported by groeck@chromium.org, Oct 12 2016

Issue description

If a USB drive used as storage is removed during suspend/resume, or fails to resume, the following traceback may be observed.

[   88.205417] device-mapper: verity: verification failure occurred: block failure
[   88.205454] BUG: sleeping function called from invalid context at /mnt/host/source/src/third_party/kernel/v4.4/kernel/locking/rwsem.c:21
[   88.205499] in_atomic(): 1, irqs_disabled(): 128, pid: 19753, name: udevd
[   88.205543] CPU: 0 PID: 19753 Comm: udevd Not tainted 4.4.14-05813-g30792b8 #1
[   88.205562] Hardware name: Google Kevin (DT)
[   88.205580] Call trace:
[   88.205617] [<ffffffc000208784>] dump_backtrace+0x0/0x160
[   88.205645] [<ffffffc000208904>] show_stack+0x20/0x28
[   88.205672] [<ffffffc0004b2428>] dump_stack+0x90/0xb0
[   88.205699] [<ffffffc0002480d0>] ___might_sleep+0x140/0x14c
[   88.205723] [<ffffffc00024815c>] __might_sleep+0x80/0x90
[   88.205751] [<ffffffc000903c8c>] down_read+0x2c/0x5c
[   88.205779] [<ffffffc00024072c>] __blocking_notifier_call_chain+0x3c/0x70
[   88.205827] [<ffffffc000240798>] blocking_notifier_call_chain+0x38/0x44
[   88.205885] [<ffffffc000718618>] verity_error.isra.8+0x108/0x16c
[   88.205933] [<ffffffc0007186c4>] verity_end_io+0x48/0xa0
[   88.205960] [<ffffffc0004888c0>] bio_endio+0xa0/0xb8
[   88.205989] [<ffffffc000491028>] blk_update_request+0x228/0x378
[   88.206018] [<ffffffc0004911b0>] blk_update_bidi_request+0x38/0x98
[   88.206046] [<ffffffc0004920d4>] __blk_end_bidi_request+0x3c/0x68
[   88.206074] [<ffffffc000492240>] __blk_end_request_all+0x3c/0x54
[   88.206102] [<ffffffc000492484>] blk_peek_request+0x22c/0x29c
[   88.206129] [<ffffffc00060d808>] scsi_request_fn+0x54/0x58c
[   88.206156] [<ffffffc00048e228>] __blk_run_queue+0x40/0x58
[   88.206183] [<ffffffc00048f4b0>] queue_unplugged+0xb0/0x100
[   88.206208] [<ffffffc00049281c>] blk_flush_plug_list+0x1e0/0x210
[   88.206232] [<ffffffc000492c18>] blk_finish_plug+0x3c/0x58
[   88.206261] [<ffffffc000305a98>] __do_page_cache_readahead+0x1f8/0x244

__blk_run_queue() is called with interrupts disabled.

 
console-ramoops.txt
127 KB View Download
log-100716-105135.tar.gz
573 KB Download

Sign in to add a comment