Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 943023 Details for
Bug 1145751
kvm_clock lacks protection against tsc going backwards
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
RHEL PATCH 4/2
0004-ACPI-hotplug-Check-scan-handlers-in-acpi_scan_hot_re.patch (text/plain), 3.88 KB, created by
Prarit Bhargava
on 2014-10-01 11:48:46 UTC
(
hide
)
Description:
RHEL PATCH 4/2
Filename:
MIME Type:
Creator:
Prarit Bhargava
Created:
2014-10-01 11:48:46 UTC
Size:
3.88 KB
patch
obsolete
>From c6eaab5c006f921ea437f08c270f9dcbd45d581d Mon Sep 17 00:00:00 2001 >From: Prarit Bhargava <prarit@redhat.com> >Date: Thu, 25 Sep 2014 08:08:16 -0400 >Subject: [4/6] ACPI / hotplug: Check scan handlers in acpi_scan_hot_remove() > >commit dee1592638ab7ea35a32179b73f9284dead49c03 >Author: Tang Chen <tangchen@cn.fujitsu.com> >Date: Fri Aug 8 10:30:45 2014 +0800 > > ACPI / hotplug: Check scan handlers in acpi_scan_hot_remove() > > When ACPI_HOTPLUG_MEMORY is not configured, memory_device_handler.attach > is not set. In acpi_scan_attach_handler(), the acpi_device->handler will > not be initialized. > > In acpi_scan_hot_remove(), it doesn't check if acpi_device->handler is NULL. > If we do memory hot-remove without ACPI_HOTPLUG_MEMORY configured, the kernel > will panic. > > BUG: unable to handle kernel NULL pointer dereference at 0000000000000088 > IP: [<ffffffff813e318f>] acpi_device_hotplug+0x1d7/0x4c4 > PGD 0 > Oops: 0000 [#1] SMP > Modules linked in: sd_mod(E) sr_mod(E) cdrom(E) crc_t10dif(E) crct10dif_common(E) ata_piix(E) libata(E) > CPU: 0 PID: 41 Comm: kworker/u2:1 Tainted: G E 3.16.0-rc7--3.16-rc7-tangchen+ #20 > Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.7.5-0-ge51488c-20140602_164612-nilsson.home.kraxel.org 04/01/2014 > Workqueue: kacpi_hotplug acpi_hotplug_work_fn > task: ffff8800182436c0 ti: ffff880018254000 task.ti: ffff880018254000 > RIP: 0010:[<ffffffff813e318f>] [<ffffffff813e318f>] acpi_device_hotplug+0x1d7/0x4c4 > RSP: 0000:ffff880018257da8 EFLAGS: 00000246 > RAX: 0000000000000000 RBX: ffff88001cd8d800 RCX: 0000000000000000 > RDX: 0000000000000000 RSI: ffff88001e40e6f8 RDI: 0000000000000246 > RBP: ffff880018257df0 R08: 0000000000000096 R09: 00000000000011a0 > R10: 63735f6970636120 R11: 725f746f685f6e61 R12: 0000000000000003 > R13: ffff88001cc1c400 R14: ffff88001e062028 R15: 0000000000000040 > FS: 0000000000000000(0000) GS:ffff88001e400000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b > CR2: 0000000000000088 CR3: 000000001a9a2000 CR4: 00000000000006f0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 0000000000000000 DR7: 0000000000000000 > Stack: > 00000000523cab58 ffff88001cd8d9f8 ffff88001852d480 00000000523cab58 > ffff88001852d480 ffff880018221e40 ffff88001cc1c400 ffff88001cce2d00 > 0000000000000040 ffff880018257e08 ffffffff813dc31d ffff88001852d480 > Call Trace: > [<ffffffff813dc31d>] acpi_hotplug_work_fn+0x1e/0x29 > [<ffffffff8108eefb>] process_one_work+0x17b/0x460 > [<ffffffff8108f69d>] worker_thread+0x11d/0x5b0 > [<ffffffff8108f580>] ? rescuer_thread+0x3a0/0x3a0 > [<ffffffff81096811>] kthread+0xe1/0x100 > [<ffffffff81096730>] ? kthread_create_on_node+0x1a0/0x1a0 > [<ffffffff816cc6bc>] ret_from_fork+0x7c/0xb0 > [<ffffffff81096730>] ? kthread_create_on_node+0x1a0/0x1a0 > > This patch fixes this problem by checking if acpi_device->handler is NULL > in acpi_scan_hot_remove(). > > Fixes: d22ddcbc4fb7 (ACPI / hotplug: Add demand_offline hotplug profile flag) > Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com> > Cc: 3.14+ <stable@vger.kernel.org> # 3.14+ > [rjw: Subject] > Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> >--- > drivers/acpi/scan.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c >index a3ca7d0..af970f6 100644 >--- a/drivers/acpi/scan.c >+++ b/drivers/acpi/scan.c >@@ -270,7 +270,8 @@ static int acpi_scan_hot_remove(struct acpi_device *device) > unsigned long long sta; > acpi_status status; > >- if (device->handler->hotplug.demand_offline && !acpi_force_hot_remove) { >+ if (device->handler && device->handler->hotplug.demand_offline >+ && !acpi_force_hot_remove) { > if (!acpi_scan_is_offline(device, true)) > return -EBUSY; > } else { >-- >1.7.9.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1145751
:
941540
|
941541
|
941542
|
941543
|
941544
|
941545
|
943020
|
943021
|
943022
| 943023 |
943024
|
943025
|
975178
|
975179