================================================================== BUG: KASAN: global-out-of-bounds in __release_resource+0x233/0x2c0 kernel/resource.c:241 Read of size 8 at addr ffffffff90ab55e8 by task syz.1.1309/12549 CPU: 2 UID: 0 PID: 12549 Comm: syz.1.1309 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x13d/0x4b0 mm/kasan/report.c:482 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595 __release_resource+0x233/0x2c0 kernel/resource.c:241 release_resource+0x26/0x40 kernel/resource.c:319 pci_free_resources drivers/pci/remove.c:16 [inline] pci_destroy_dev drivers/pci/remove.c:56 [inline] pci_remove_bus_device+0x2d3/0x3b0 drivers/pci/remove.c:110 pci_stop_and_remove_bus_device_locked+0x1a/0x20 drivers/pci/remove.c:136 remove_store+0x123/0x140 drivers/pci/pci-sysfs.c:523 dev_attr_store+0x58/0x80 drivers/base/core.c:2505 sysfs_kf_write+0xf2/0x150 fs/sysfs/file.c:145 kernfs_fop_write_iter+0x3e0/0x5f0 fs/kernfs/file.c:345 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1050 fs/read_write.c:687 ksys_write+0x12a/0x250 fs/read_write.c:739 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f19dbb9df99 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f19dc9da028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f19dbe25fa0 RCX: 00007f19dbb9df99 RDX: 0000000000000002 RSI: 0000200000000400 RDI: 0000000000000003 RBP: 00007f19dbc34ec4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f19dbe26038 R14: 00007f19dbe25fa0 R15: 00007ffed2a3f408 The buggy address belongs to the variable: dev_attr_threaded+0x48/0x60 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10ab5 flags: 0xfff00000002000(reserved|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000002000 ffffea000042ad48 ffffea000042ad48 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffffffff90ab5480: f9 f9 f9 f9 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 ffffffff90ab5500: 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 00 00 f9 f9 >ffffffff90ab5580: f9 f9 f9 f9 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 ^ ffffffff90ab5600: 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 00 00 00 00 ffffffff90ab5680: 00 00 00 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 f9 ==================================================================