Go to file
David Arcari b2ec0c8f53 platform/x86: ideapad-laptop: pass a correct pointer to the driver data
JIRA: https://issues.redhat.com/browse/RHEL-105420

commit e4d4648eac8b4ef39f412d07715eb26f1ccd7342
Author: Fedor Pchelkin <pchelkin@ispras.ru>
Date:   Tue Jan 28 00:02:01 2025 +0300

    platform/x86: ideapad-laptop: pass a correct pointer to the driver data

    devm_platform_profile_register() expects a pointer to the private driver
    data but instead an address of the pointer variable is passed due to a
    typo. This leads to the crashes later:

    BUG: unable to handle page fault for address: 00000000fe0d0044
    PGD 0 P4D 0
    Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI
    CPU: 6 UID: 0 PID: 1284 Comm: tuned Tainted: G        W          6.13.0+ #7
    Tainted: [W]=WARN
    Hardware name: LENOVO 21D0/LNVNB161216, BIOS J6CN45WW 03/17/2023
    RIP: 0010:__mutex_lock.constprop.0+0x6bf/0x7f0
    Call Trace:
     <TASK>
     dytc_profile_set+0x4a/0x140 [ideapad_laptop]
     _store_and_notify+0x13/0x40 [platform_profile]
     class_for_each_device+0x145/0x180
     platform_profile_store+0xc0/0x130 [platform_profile]
     kernfs_fop_write_iter+0x13e/0x1f0
     vfs_write+0x290/0x450
     ksys_write+0x6c/0xe0
     do_syscall_64+0x82/0x160
     entry_SYSCALL_64_after_hwframe+0x76/0x7e

    Found by Linux Verification Center (linuxtesting.org).

    Fixes: 249c576f0f9d ("ACPI: platform_profile: Let drivers set drvdata to the class device")
    Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
    Reviewed-by: Kurt Borja <kuurtb@gmail.com>
    Link: https://lore.kernel.org/r/20250127210202.568691-1-pchelkin@ispras.ru
    Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
    Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

Signed-off-by: David Arcari <darcari@redhat.com>
2025-09-22 14:22:32 -04:00
Documentation ACPI: platform_profile: Add documentation 2025-09-22 14:22:30 -04:00
LICENSES
arch Merge: x86/hyperv: Fix kdump on Azure CVMs 2025-09-20 09:46:15 -04:00
block
certs
crypto
drivers platform/x86: ideapad-laptop: pass a correct pointer to the driver data 2025-09-22 14:22:32 -04:00
fs Merge: RHEL-9.8 early NFS Fixes/Stable updates 2025-09-20 09:46:09 -04:00
include ACPI: platform_profile: Add support for hidden choices 2025-09-22 14:22:30 -04:00
init
io_uring
ipc
kernel Merge tag 'kernel-5.14.0-611.2.1.el9_7' from 9.7 2025-09-18 16:12:45 -03:00
lib
mm Merge: RHEL-9.8 early NFS Fixes/Stable updates 2025-09-20 09:46:09 -04:00
net Merge: tunnels: reset the GSO metadata before reusing the skb 2025-09-20 09:46:13 -04:00
redhat [redhat] kernel-5.14.0-618.el9 2025-09-20 09:56:12 -04:00
samples
scripts kbuild: scripts/gdb: bring the "abspath" back 2025-08-19 20:06:25 -03:00
security Merge: Secure boot sysfs enhancements 2025-09-10 14:25:54 +00:00
sound
tools tools/power turbostat: version 2025.09.09 2025-08-31 08:16:45 -04:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.gitlab-ci.yml
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
Kconfig.redhat
MAINTAINERS x86/platform/amd: Move the <asm/amd_node.h> header to <asm/amd/node.h> 2025-09-15 08:55:57 -04:00
Makefile Makefile: add $(srctree) to dependency of compile_commands.json target 2025-08-19 20:06:25 -03:00
Makefile.rhelver [redhat] kernel-5.14.0-618.el9 2025-09-20 09:56:12 -04:00
README
makefile

README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.