system crashed at _spin_lock+0xe after showing 'ata2' timeout error messages

Solution Verified - Updated -

Issue

  • VMWare virtual machine was crashed with the below error messages
ata2.00: qc timeout (cmd 0xa0)
ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
sr 1:0:0:0: CDB: Test Unit Ready: 00 00 00 00 00 00
ata2.00: cmd a0/00:00:00:00:00/00:00:00:00:00/a0 tag 0
         res 51/20:03:00:00:00/00:00:00:00:00/a0 Emask 0x5 (timeout)
ata2.00: status: { DRDY ERR }
ata2: soft resetting link
ata2.00: configured for UDMA/33
ata2: EH complete
ata2.00: qc timeout (cmd 0xa0)
ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
sr 1:0:0:0: CDB: Test Unit Ready: 00 00 00 00 00 00
ata2.00: cmd a0/00:00:00:00:00/00:00:00:00:00/a0 tag 0
         res 51/20:03:00:00:00/00:00:00:00:00/a0 Emask 0x5 (timeout)
ata2.00: status: { DRDY ERR }
ata2: soft resetting link
ata2.00: configured for UDMA/33
ata2: EH complete

...

BUG: unable to handle kernel NULL pointer dereference at (null)
IP: [<ffffffff8150010e>] _spin_lock+0xe/0x30
PGD 238d9c067 PUD 238d9d067 PMD 0 
Oops: 0002 [#1] SMP 
last sysfs file: /sys/devices/pci0000:00/0000:00:15.0/0000:03:00.0/local_cpus
CPU 0 
Modules linked in: bridge stp llc fuse autofs4 sunrpc cachefiles fscache(T) ipv6 vsock(U) uinput ppdev parport_pc parport e1000 vmware_balloon microcode sg vmci(U) i2c_piix4 i2c_core shpchp ext4 mbcache jbd2 sd_mod crc_t10dif sr_mod cdrom vmw_pvscsi pata_acpi ata_generic ata_piix dm_mirror dm_region_hash dm_log dm_mod [last unloaded: speedstep_lib]

Pid: 2710, comm: udisks-daemon Tainted: G           ---------------  T 2.6.32-279.el6.x86_64 #1 VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform
RIP: 0010:[<ffffffff8150010e>]  [<ffffffff8150010e>] _spin_lock+0xe/0x30
RSP: 0018:ffff880238d9b748  EFLAGS: 00010082
RAX: 0000000000010000 RBX: ffff880235f1d000 RCX: 0000000000000000
RDX: 00000000000ceec9 RSI: ffffffff81363180 RDI: 0000000000000000
RBP: ffff880238d9b748 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff880234d8d480
R13: ffff880234e1f000 R14: ffffc900097e0000 R15: ffffffff81363180
FS:  00007f0c644507a0(0000) GS:ffff88002f600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 0000000000000000 CR3: 0000000238d99000 CR4: 00000000000006f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process udisks-daemon (pid: 2710, threadinfo ffff880238d9a000, task ffff88023735e040)
Stack:
 ffff880238d9b788 ffffffff813814d7 ffff880234d8d480 ffff880234d8d480
<d> ffff880234d7a000 0000000000000000 0000000000000206 ffff880234d8d480
<d> ffff880238d9b7b8 ffffffff81363411 ffff880234d45800 ffff880234df0e60
Call Trace:
 [<ffffffff813814d7>] ata_scsi_queuecmd+0x47/0x2d0
 [<ffffffff81363411>] scsi_dispatch_cmd+0x101/0x360
 [<ffffffff8136af0d>] scsi_request_fn+0x41d/0x790
 [<ffffffff8107e0bd>] ? del_timer+0x7d/0xe0
 [<ffffffff8124f754>] ? elv_insert+0x154/0x1a0
 [<ffffffff8125c6c0>] ? blk_end_sync_rq+0x0/0x40
 [<ffffffff81255662>] __generic_unplug_device+0x32/0x40
 [<ffffffff8125c78e>] blk_execute_rq_nowait+0x8e/0x120
 [<ffffffff8125c8a4>] blk_execute_rq+0x84/0xf0
 [<ffffffff810629d3>] ? dequeue_entity+0x113/0x2e0
 [<ffffffff81258c66>] ? blk_get_request+0x46/0xa0
 [<ffffffff8136c898>] scsi_execute+0xe8/0x180
 [<ffffffff8136cb28>] scsi_execute_req+0xb8/0x190
 [<ffffffffa001b2eb>] sr_test_unit_ready+0x6b/0xf0 [sr_mod]
 [<ffffffff81162f55>] ? kmem_cache_alloc_notrace+0x115/0x130
 [<ffffffffa001c2bb>] sr_media_change+0xab/0x350 [sr_mod]
 [<ffffffff8109248c>] ? remove_wait_queue+0x3c/0x50
 [<ffffffff8118fd26>] ? free_poll_entry+0x26/0x30
 [<ffffffffa005f0b0>] media_changed+0x70/0xc0 [cdrom]
 [<ffffffffa005f137>] cdrom_media_changed+0x37/0x40 [cdrom]
 [<ffffffffa001b3d9>] sr_block_media_changed+0x19/0x20 [sr_mod]
 [<ffffffff811b3b93>] check_disk_change+0x33/0x80
 [<ffffffffa0062308>] cdrom_open+0x248/0x600 [cdrom]
 [<ffffffff812741ea>] ? kobject_get+0x1a/0x30
 [<ffffffff8125f25d>] ? get_disk+0x7d/0xf0
 [<ffffffff81193627>] ? __d_lookup+0xa7/0x150
 [<ffffffff812741ea>] ? kobject_get+0x1a/0x30
 [<ffffffffa001b599>] sr_block_open+0x79/0xd0 [sr_mod]
 [<ffffffff8134bad9>] ? get_device+0x19/0x20
 [<ffffffff811b49b3>] __blkdev_get+0xc3/0x3c0
 [<ffffffff811b4cd0>] ? blkdev_open+0x0/0xc0
 [<ffffffff811b4cc0>] blkdev_get+0x10/0x20
 [<ffffffff811b4d41>] blkdev_open+0x71/0xc0
 [<ffffffff8117888a>] __dentry_open+0x10a/0x360
 [<ffffffff8121429f>] ? security_inode_permission+0x1f/0x30
 [<ffffffff81178bf4>] nameidata_to_filp+0x54/0x70
 [<ffffffff8118c100>] do_filp_open+0x6c0/0xd60
 [<ffffffff810602a5>] ? wake_up_process+0x15/0x20
 [<ffffffff8119a330>] ? mntput_no_expire+0x30/0x110
 [<ffffffff81198182>] ? alloc_fd+0x92/0x160
 [<ffffffff81178639>] do_sys_open+0x69/0x140
 [<ffffffff8100c5b5>] ? math_state_restore+0x45/0x60
 [<ffffffff81178750>] sys_open+0x20/0x30
 [<ffffffff8100b0f2>] system_call_fastpath+0x16/0x1b
Code: e5 0f 1f 44 00 00 fa 66 0f 1f 44 00 00 f0 81 2f 00 00 00 01 74 05 e8 e2 e3 d7 ff c9 c3 55 48 89 e5 0f 1f 44 00 00 b8 00 00 01 00 <f0> 0f c1 07 0f b7 d0 c1 e8 10 39 c2 74 0e f3 90 0f 1f 44 00 00 
RIP  [<ffffffff8150010e>] _spin_lock+0xe/0x30
 RSP <ffff880238d9b748>
CR2: 0000000000000000

Environment

  • Red Hat Enterprise Linux 6
  • VMWare virtual guest

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content