fix the global-out-of-bounds in update_pdata#353
Open
bhe4 wants to merge 1 commit intointel:ia_ipu6from
Open
Conversation
the patch is to fix the below issue: BUG: KASAN: global-out-of-bounds in update_pdata+0x80b/0xcc0 [ipu6_acpi_pdata] Write of size 8 at addr ffffffffc09bace8 by task (udev-worker)/235 Call Trace: <TASK> dump_stack_lvl+0x36/0x80 print_report+0xcf/0x640 ? kasan_unpoison+0x44/0x80 ? lock_acquire.part.0.isra.0+0x41/0xc0 ? update_pdata+0x80b/0xcc0 [ipu6_acpi_pdata] kasan_report+0xb7/0x100 ? update_pdata+0x80b/0xcc0 [ipu6_acpi_pdata] update_pdata+0x80b/0xcc0 [ipu6_acpi_pdata] get_sensor_pdata+0x2dd/0x940 [ipu6_acpi_pdata] ? __pfx_get_sensor_pdata+0x40/0x40 [ipu6_acpi_pdata] ipu_acpi_test+0x2c4/0x400 [ipu6_acpi] ? __pfx_get_sensor_pdata+0x40/0x40 [ipu6_acpi_pdata] ? __pfx_ipu_acpi_test+0x40/0x40 [ipu6_acpi] bus_for_each_dev+0xcf/0x140 ? __pfx_bus_for_each_dev+0x40/0x40 ? do_raw_spin_unlock+0xa6/0x140 ? __pfx_isys_init_acpi_add_device+0x40/0x40 [intel_ipu6] ipu_get_acpi_devices+0x52/0x100 [ipu6_acpi] ipu_pci_probe+0x106d/0x1400 [intel_ipu6] ? __pfx_lock_release+0x40/0x40 ? __pfx_ipu_pci_probe+0x40/0x40 [intel_ipu6] ? lock_acquire.part.0.isra.0+0x80/0xc0 ? do_raw_spin_unlock+0xa6/0x140 ? _raw_spin_unlock_irqrestore+0x22/0x80 pci_device_probe+0xf8/0x240 really_probe+0x276/0x5c0 Signed-off-by: Bo He <bo.he@intel.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BUG: KASAN: global-out-of-bounds in update_pdata+0x80b/0xcc0 [ipu6_acpi_pdata]
Write of size 8 at addr ffffffffc09bace8 by task (udev-worker)/235