Skip to content

unreferenced object in kmemleak #1078

@Bogdan107

Description

@Bogdan107

I got an error:

# cat /sys/kernel/debug/kmemleak
unreferenced object 0xffff979c19298440 (size 32):                                                                                                                                                                                             
  comm "bumblebeed", pid 15450, jiffies 4294694353 (age 8127.681s)                                                                                                                                                                            
  hex dump (first 32 bytes):
    5c 5f 53 42 5f 2e 50 43 49 30 2e 47 50 31 37 2e  \_SB_.PCI0.GP17.
    56 47 41 5f 00 00 00 00 00 00 00 00 00 00 00 00  VGA_............
  backtrace:
    [<0000000064e54179>] acpi_ut_initialize_buffer+0x36/0x6b
    [<000000004aca805b>] acpi_ns_handle_to_pathname+0x4d/0x72
    [<0000000049979e1a>] acpi_get_name+0x58/0x7c
    [<0000000002ecd249>] 0xffffffffc032b70d
    [<000000003551212e>] 0xffffffffc032b94c
    [<0000000072714275>] 0xffffffffc033131b
    [<000000009e0690cb>] do_one_initcall+0x57/0x200
    [<00000000381878d9>] do_init_module+0x87/0x2a0
    [<000000008ad02371>] __do_sys_finit_module+0xb5/0x120
    [<0000000013d803ea>] do_syscall_64+0x33/0x80
    [<000000005f189bb5>] entry_SYSCALL_64_after_hwframe+0x44/0xa9
unreferenced object 0xffff979c19298220 (size 32):
  comm "bumblebeed", pid 15450, jiffies 4294694353 (age 8127.681s)
  hex dump (first 32 bytes):
    5c 5f 53 42 5f 2e 50 43 49 30 2e 47 50 31 37 2e  \_SB_.PCI0.GP17.
    56 47 41 5f 00 00 00 00 00 00 00 00 00 00 00 00  VGA_............
  backtrace:
    [<0000000064e54179>] acpi_ut_initialize_buffer+0x36/0x6b
    [<000000004aca805b>] acpi_ns_handle_to_pathname+0x4d/0x72
    [<0000000049979e1a>] acpi_get_name+0x58/0x7c
    [<0000000002ecd249>] 0xffffffffc032b70d
    [<000000003551212e>] 0xffffffffc032b94c
    [<0000000072cc7276>] 0xffffffffc033137f
    [<000000009e0690cb>] do_one_initcall+0x57/0x200
    [<00000000381878d9>] do_init_module+0x87/0x2a0
    [<000000008ad02371>] __do_sys_finit_module+0xb5/0x120
    [<0000000013d803ea>] do_syscall_64+0x33/0x80
    [<000000005f189bb5>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

# dmesg | grep -i PCI0.GP17
[   27.223546] bbswitch: Found discrete VGA device 0000:05:00.0: \_SB_.PCI0.GP17.VGA_
[   27.223576] bbswitch: failed to evaluate \_SB_.PCI0.GP17.VGA_._DSM {0xF8,0xD8,0x86,0xA4,0xDA,0x0B,0x1B,0x47,0xA7,0x2B,0x60,0x42,0xA6,0xB5,0xBE,0xE0} 0x100 0x0 {0x00,0x00,0x00,0x00}: AE_NOT_FOUND
[   27.223591] bbswitch: failed to evaluate \_SB_.PCI0.GP17.VGA_._DSM {0xA0,0xA0,0x95,0x9D,0x60,0x00,0x48,0x4D,0xB3,0x4D,0x7E,0x5F,0xEA,0x12,0x9F,0xD4} 0x102 0x0 {0x00,0x00,0x00,0x00}: AE_NOT_FOUND

# dmesg | grep -i bbswitch
[   27.223525] bbswitch: version 0.8
[   27.223542] bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.GPP0.PEGP
[   27.223546] bbswitch: Found discrete VGA device 0000:05:00.0: \_SB_.PCI0.GP17.VGA_
[   27.223576] bbswitch: failed to evaluate \_SB_.PCI0.GP17.VGA_._DSM {0xF8,0xD8,0x86,0xA4,0xDA,0x0B,0x1B,0x47,0xA7,0x2B,0x60,0x42,0xA6,0xB5,0xBE,0xE0} 0x100 0x0 {0x00,0x00,0x00,0x00}: AE_NOT_FOUND
[   27.223591] bbswitch: failed to evaluate \_SB_.PCI0.GP17.VGA_._DSM {0xA0,0xA0,0x95,0x9D,0x60,0x00,0x48,0x4D,0xB3,0x4D,0x7E,0x5F,0xEA,0x12,0x9F,0xD4} 0x102 0x0 {0x00,0x00,0x00,0x00}: AE_NOT_FOUND
[   27.223592] bbswitch: No suitable _DSM call found.

# dmesg -l err,warn | grep -v VBox | grep -v xfs | grep -v rtc | grep -v ELAN
[    1.394441] ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GPP1.WLAN], AE_NOT_FOUND (20201113/dswload2-162)
[    1.394457] ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20201113/psobject-220)
[    1.831431] Expanded resource Reserved due to conflict with PCI Bus 0000:00
[    2.056303] pci 0000:00:00.2: can't derive routing for PCI INT A
[    2.056305] pci 0000:00:00.2: PCI INT A: not connected
[    2.057526]  PPR X2APIC NX GT IA GA PC GA_vAPIC
[    2.080444] DLM installed
[    2.159607] ACPI Error: AE_NOT_FOUND, While resolving a named reference package element - \_PR_.P000 (20201113/dspkginit-438)
[    2.160273] ACPI: Invalid passive threshold
[    2.589492] r8169 0000:02:00.0: can't disable ASPM; OS doesn't have ASPM control
[    2.642741] usb: port power management may be unreliable
[    2.664015] i8042: PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
[    8.228772] nvidia: loading out-of-tree module taints kernel.
[    8.228804] nvidia: module license 'NVIDIA' taints kernel.
[    8.228807] Disabling lock debugging due to kernel taint
[    8.373428] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  460.67  Thu Mar 11 00:11:45 UTC 2021
[   10.619821] ================================================================================
[   10.619824] UBSAN: shift-out-of-bounds in drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device_queue_manager.c:1140:32
[   10.619828] shift exponent 64 is too large for 64-bit type 'long long unsigned int'
[   10.619831] CPU: 0 PID: 3675 Comm: udevd Tainted: P           OE   T 5.11.15-gentoo-x86_64 #2
[   10.619835] Hardware name: HP HP Pavilion Gaming Laptop 15-ec1xxx/87B1, BIOS F.20 11/04/2020
[   10.619837] Call Trace:
[   10.619840]  dump_stack+0x77/0x97
[   10.619847]  ubsan_epilogue+0x5/0x40
[   10.619850]  __ubsan_handle_shift_out_of_bounds.cold+0x61/0xed
[   10.619854]  initialize_cpsch.cold+0x30/0x35 [amdgpu]
[   10.620242]  device_queue_manager_init+0x207/0x3e0 [amdgpu]
[   10.620580]  kgd2kfd_device_init.cold+0x168/0x373 [amdgpu]
[   10.620957]  amdgpu_amdkfd_device_init+0x145/0x180 [amdgpu]
[   10.621284]  amdgpu_device_ip_init+0x378/0x3a4 [amdgpu]
[   10.621662]  amdgpu_device_init.cold+0x429/0x735 [amdgpu]
[   10.622026]  amdgpu_driver_load_kms+0x59/0x1e0 [amdgpu]
[   10.622317]  amdgpu_pci_probe+0xf8/0x180 [amdgpu]
[   10.622600]  local_pci_probe+0x42/0x80
[   10.622606]  ? _cond_resched+0x16/0x40
[   10.622610]  pci_call_probe+0x5a/0x120
[   10.622614]  ? kernfs_create_link+0x5d/0xa0
[   10.622618]  pci_device_probe+0xb8/0x100
[   10.622621]  really_probe+0x104/0x480
[   10.622624]  driver_probe_device+0xcd/0xe0
[   10.622627]  device_driver_attach+0xc0/0xe0
[   10.622630]  __driver_attach+0x8a/0x160
[   10.622633]  ? device_driver_attach+0xe0/0xe0
[   10.622635]  ? device_driver_attach+0xe0/0xe0
[   10.622637]  bus_for_each_dev+0x89/0xe0
[   10.622642]  bus_add_driver+0x12b/0x200
[   10.622646]  driver_register+0x8f/0xe0
[   10.622649]  ? 0xffffffffc24a1000
[   10.622651]  do_one_initcall+0x57/0x200
[   10.622657]  do_init_module+0x87/0x2a0
[   10.622662]  __do_sys_init_module+0x13c/0x1c0
[   10.622667]  do_syscall_64+0x33/0x80
[   10.622672]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[   10.622676] RIP: 0033:0x7fb4f57a883a
[   10.622680] Code: 48 8b 0d 29 c6 0b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 af 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d f6 c5 0b 00 f7 d8 64 89 01 48
[   10.622683] RSP: 002b:00007ffc9b026ed8 EFLAGS: 00000246 ORIG_RAX: 00000000000000af
[   10.622687] RAX: ffffffffffffffda RBX: 00005600180e7b10 RCX: 00007fb4f57a883a
[   10.622689] RDX: 00005600180d5c00 RSI: 0000000001069d59 RDI: 00007fb4f23bc010
[   10.622691] RBP: 00007fb4f23bc010 R08: 0000000000000000 R09: 00007fb4f3425d68
[   10.622693] R10: 0000000000008000 R11: 0000000000000246 R12: 00005600180d5c00
[   10.622695] R13: 00005600180dbe70 R14: 0000000000000000 R15: 00005600181089a0
[   10.622713] ================================================================================
[   11.646107] amdgpu 0000:05:00.0: amdgpu: Unsupported power profile mode 0 on RENOIR
[   26.135526] ================================================================================
[   26.135532] UBSAN: array-index-out-of-bounds in drivers/net/wireless/realtek/rtw88/phy.c:1661:35
[   26.135538] index 5 is out of range for type 'u8 [5]'
[   26.135541] CPU: 2 PID: 74 Comm: kworker/u32:2 Tainted: P           OE   T 5.11.15-gentoo-x86_64 #2
[   26.135546] Hardware name: HP HP Pavilion Gaming Laptop 15-ec1xxx/87B1, BIOS F.20 11/04/2020
[   26.135550] Workqueue: phy0 ieee80211_scan_work
[   26.135560] Call Trace:
[   26.135563]  dump_stack+0x77/0x97
[   26.135571]  ubsan_epilogue+0x5/0x40
[   26.135575]  __ubsan_handle_out_of_bounds.cold+0x43/0x48
[   26.135580]  rtw_get_tx_power_params+0x70c/0xa60 [rtw88_core]
[   26.135600]  ? check_hw_ready+0x4f/0xa0 [rtw88_core]
[   26.135616]  rtw_phy_get_tx_power_index+0x4b/0xe0 [rtw88_core]
[   26.135632]  rtw_phy_set_tx_power_level+0xd2/0x1a0 [rtw88_core]
[   26.135648]  rtw_set_channel+0xc1/0x120 [rtw88_core]
[   26.135664]  rtw_ops_config+0x87/0xc0 [rtw88_core]
[   26.135679]  ieee80211_hw_config+0x84/0x100
[   26.135683]  ieee80211_scan_state_set_channel+0x81/0x180
[   26.135688]  ieee80211_scan_work+0x19f/0x2a0
[   26.135693]  process_one_work+0x1f0/0x3a0
[   26.135700]  worker_thread+0x4f/0x320
[   26.135704]  ? process_one_work+0x3a0/0x3a0
[   26.135708]  kthread+0x120/0x140
[   26.135713]  ? __kthread_bind_mask+0x60/0x60
[   26.135716]  ret_from_fork+0x22/0x30
[   26.135723] ================================================================================
[   27.223576] bbswitch: failed to evaluate \_SB_.PCI0.GP17.VGA_._DSM {0xF8,0xD8,0x86,0xA4,0xDA,0x0B,0x1B,0x47,0xA7,0x2B,0x60,0x42,0xA6,0xB5,0xBE,0xE0} 0x100 0x0 {0x00,0x00,0x00,0x00}: AE_NOT_FOUND
[   27.223591] bbswitch: failed to evaluate \_SB_.PCI0.GP17.VGA_._DSM {0xA0,0xA0,0x95,0x9D,0x60,0x00,0x48,0x4D,0xB3,0x4D,0x7E,0x5F,0xEA,0x12,0x9F,0xD4} 0x102 0x0 {0x00,0x00,0x00,0x00}: AE_NOT_FOUND
[   27.223592] bbswitch: No suitable _DSM call found.
[   27.440040] ACPI Warning: \_SB.PCI0.GPP0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20201113/nsarguments-61)
[   28.442823] ================================================================================
[   28.442828] UBSAN: shift-out-of-bounds in drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn21/display_rq_dlg_calc_21.c:288:38
[   28.442833] shift exponent 4294966273 is too large for 32-bit type 'int'
[   28.442837] CPU: 2 PID: 15336 Comm: X Tainted: P           OE   T 5.11.15-gentoo-x86_64 #2
[   28.442841] Hardware name: HP HP Pavilion Gaming Laptop 15-ec1xxx/87B1, BIOS F.20 11/04/2020
[   28.442843] Call Trace:
[   28.442845]  dump_stack+0x77/0x97
[   28.442852]  ubsan_epilogue+0x5/0x40
[   28.442855]  __ubsan_handle_shift_out_of_bounds.cold+0x61/0xed
[   28.442859]  handle_det_buf_split.isra.0.cold+0x1c/0x4b [amdgpu]
[   28.443198]  dml_rq_dlg_get_rq_params+0x205/0x240 [amdgpu]
[   28.443523]  dml21_rq_dlg_get_dlg_reg+0x194/0x2a0 [amdgpu]
[   28.443838]  ? sched_clock_cpu+0x10/0xe0
[   28.443845]  ? dml21_rq_dlg_get_rq_reg+0x3a0/0x3a0 [amdgpu]
[   28.444148]  dcn20_calculate_dlg_params+0x48b/0x740 [amdgpu]
[   28.444473]  dcn21_validate_bandwidth_fp+0x212/0x380 [amdgpu]
[   28.444808]  dcn21_validate_bandwidth+0x29/0x40 [amdgpu]
[   28.445127]  dc_validate_global_state+0x313/0x4e0 [amdgpu]
[   28.445451]  amdgpu_dm_atomic_check+0x8ed/0x980 [amdgpu]
[   28.445788]  drm_atomic_check_only+0x22e/0x480
[   28.445796]  drm_atomic_commit+0x13/0x60
[   28.445800]  drm_atomic_helper_set_config+0x70/0xc0
[   28.445814]  drm_ioctl_kernel+0xb3/0x100
[   28.445818]  drm_ioctl+0x235/0x420
[   28.445825]  amdgpu_drm_ioctl+0x49/0x80 [amdgpu]
[   28.446069]  __x64_sys_ioctl+0x8d/0xc0
[   28.446074]  do_syscall_64+0x33/0x80
[   28.446079]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[   28.446085] RIP: 0033:0x7f1d5342a807
[   28.446090] Code: 01 75 a5 49 8d 3c 1c e8 f7 fe ff ff 85 c0 78 a6 5b 4c 89 e0 5d 41 5c c3 66 2e 0f 1f 84 00 00 00 00 00 90 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 29 66 0c 00 f7 d8 64 89 01 48
[   28.446093] RSP: 002b:00007ffdc26835b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[   28.446098] RAX: ffffffffffffffda RBX: 00007ffdc26835f0 RCX: 00007f1d5342a807
[   28.446100] RDX: 00007ffdc26835f0 RSI: 00000000c06864a2 RDI: 000000000000000f
[   28.446102] RBP: 00000000c06864a2 R08: 0000000000000000 R09: 00005561ab0b1a70
[   28.446104] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
[   28.446106] R13: 000000000000000f R14: 00005561aa5bdc60 R15: 00005561aa778c20
[   28.446129] ================================================================================

Kernel 5.11.15-gentoo-x86_64
x11-misc/bumblebee 3.2.1_p20210112-r4
sys-power/bbswitch 0.8-r5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions