Hi everybody, and thanks a lot for your work. I'm using my main laptop (no virtualized environment) with Kasan enabled. Kernel it's the Linus latest commit,¹ plus a few pulls from different git trees (BTRFS, drm-intel, ecc.). You can find a detailed list in the attached file: added_commit.txt.gz Anyway, after a suspend/resume I've got this: [ 4576.788539] ACPI: Low-level resume complete [ 4576.788571] ================================================================== [ 4576.788582] BUG: KASAN: stack-out-of-bounds in acpi_ns_lookup+0x16f/0x86b at addr ffff8802279ff820 [ 4576.788585] Read of size 8 by task systemd-sleep/7762 [ 4576.788588] page:ffffea00089e7fc0 count:0 mapcount:0 mapping: (null) index:0x0 [ 4576.788590] flags: 0x8000000000000000() [ 4576.788590] page dumped because: kasan: bad access detected [ 4576.788594] CPU: 0 PID: 7762 Comm: systemd-sleep Tainted: G OE 4.4.0-rc1Kasan-00497-g8f91a43 #23 [ 4576.788595] Hardware name: LENOVO 2356LRG/2356LRG, BIOS G7ETA3WW (2.63 ) 04/16/2015 [ 4576.788599] ffff8802279ff820 ffff8802279ff5b0 ffffffff819ba777 ffffffff82ef87e0 [ 4576.788601] ffff8802279ff638 ffffffff813ea321 ffff8802279ff6a0 0000000000000082 [ 4576.788603] 0000000000000046 0000000000000082 ffffffff02088020 0000000000000082 [ 4576.788603] Call Trace: [ 4576.788607] [] dump_stack+0x4b/0x74 [ 4576.788611] [] kasan_report_error+0x511/0x540 [ 4576.788614] [] ? set_track+0x6f/0x120 [ 4576.788617] [] __asan_report_load8_noabort+0x3e/0x40 [ 4576.788619] [] ? acpi_ns_lookup+0x16f/0x86b [ 4576.788621] [] acpi_ns_lookup+0x16f/0x86b [ 4576.788623] [] ? kasan_kmalloc+0x5e/0x70 [ 4576.788626] [] ? acpi_enter_sleep_state+0xed/0xed [ 4576.788629] [] ? acpi_ns_internalize_name+0xf6/0x15b [ 4576.788631] [] ? acpi_ns_build_internal_name+0x42d/0x42d [ 4576.788635] [] ? dump_trace+0x116/0x310 [ 4576.788638] [] ? acpi_os_wait_semaphore+0x47/0x62 [ 4576.788641] [] acpi_ns_get_node+0x1e3/0x239 [ 4576.788643] [] ? acpi_ns_opens_scope+0x64/0x64 [ 4576.788646] [] ? alloc_debug_processing+0x14f/0x180 [ 4576.788648] [] ? acpi_hw_write+0x10b/0x137 [ 4576.788650] [] ? acpi_hw_read_multiple+0x177/0x177 [ 4576.788653] [] acpi_ns_evaluate+0xb3/0x853 [ 4576.788655] [] ? acpi_ns_evaluate+0xb3/0x853 [ 4576.788657] [] ? kasan_kmalloc+0x5e/0x70 [ 4576.788660] [] ? kasan_slab_alloc+0xd/0x10 [ 4576.788662] [] ? kasan_unpoison_shadow+0x36/0x50 [ 4576.788664] [] acpi_get_sleep_type_data+0x11a/0x58a [ 4576.788667] [] acpi_hw_legacy_wake_prep+0x74/0x204 [ 4576.788669] [] ? acpi_hw_legacy_sleep+0x39f/0x39f [ 4576.788671] [] ? acpi_write_bit_register+0x279/0x2ab [ 4576.788673] [] ? acpi_read_bit_register+0x173/0x173 [ 4576.788676] [] acpi_hw_sleep_dispatch+0xb0/0xb5 [ 4576.788678] [] acpi_leave_sleep_state_prep+0x12/0x14 [ 4576.788680] [] acpi_suspend_enter+0x123/0x19c [ 4576.788682] [] ? acpi_hibernation_enter+0x2f/0x2f [ 4576.788686] [] suspend_devices_and_enter+0x7d8/0x980 [ 4576.788689] [] ? printk+0x94/0xb0 [ 4576.788692] [] ? arch_suspend_enable_irqs+0x10/0x10 [ 4576.788694] [] ? __wake_up+0x3f/0x50 [ 4576.788697] [] pm_suspend+0x480/0x600 [ 4576.788699] [] state_store+0x9d/0x110 [ 4576.788701] [] ? kobj_attr_show+0x60/0x60 [ 4576.788704] [] ? sysfs_kf_bin_read+0x2c0/0x2c0 [ 4576.788706] [] kobj_attr_store+0x36/0x70 [ 4576.788708] [] sysfs_kf_write+0x12c/0x1f0 [ 4576.788710] [] kernfs_fop_write+0x1f8/0x3a0 [ 4576.788713] [] __vfs_write+0xdb/0x4a0 [ 4576.788716] [] ? lru_cache_add_active_or_unevictable+0x48/0x110 [ 4576.788718] [] ? __vfs_read+0x490/0x490 [ 4576.788721] [] ? handle_mm_fault+0x14e4/0x3430 [ 4576.788723] [] ? do_mmap+0x61e/0x900 [ 4576.788727] [] ? security_mmap_file+0x6d/0x180 [ 4576.788729] [] ? vm_insert_page+0x4e0/0x4e0 [ 4576.788731] [] ? vm_mmap_pgoff+0x144/0x190 [ 4576.788733] [] ? rw_verify_area+0xb7/0x290 [ 4576.788735] [] ? vfs_getattr+0x21/0x30 [ 4576.788737] [] vfs_write+0x137/0x4b0 [ 4576.788740] [] SyS_write+0x103/0x220 [ 4576.788742] [] ? SyS_read+0x220/0x220 [ 4576.788745] [] entry_SYSCALL_64_fastpath+0x16/0x75 [ 4576.788746] Memory state around the buggy address: [ 4576.788749] ffff8802279ff700: f4 f4 f2 f2 f2 f2 00 f4 f4 f4 f3 f3 f3 f3 00 00 [ 4576.788750] ffff8802279ff780: 00 00 00 00 00 00 f1 f1 f1 f1 00 f4 f4 f4 f2 f2 [ 4576.788752] >ffff8802279ff800: f2 f2 00 00 f3 f3 00 00 00 00 00 00 f4 f4 f3 f3 [ 4576.788753] ^ [ 4576.788754] ffff8802279ff880: f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 00 f4 [ 4576.788755] ffff8802279ff900: f4 f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 [ 4576.788756] ================================================================== [ 4576.788757] Disabling lock debugging due to kernel taint Thanks a lot, Andrea --- ¹ 7f151f1d8abb7d5930b49d4796b463dca1673cb7