oom_control is deprecated and will be removed. Please report your usecase to linux-mm@kvack.org if you depend on this functionality. usb 5-1: dvb_usb_v2: found a 'MSI Mega Sky 55801 DVB-T USB2.0' in warm state usb 5-1: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 1 CPU: 0 UID: 0 PID: 5358 Comm: syz.0.0 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_lvl+0xe8/0x150 lib/dump_stack.c:120 fail_dump lib/fault-inject.c:74 [inline] should_fail_ex+0x3eb/0x540 lib/fault-inject.c:175 should_failslab+0xa8/0x100 mm/failslab.c:46 slab_pre_alloc_hook mm/slub.c:4675 [inline] slab_alloc_node mm/slub.c:5011 [inline] __do_kmalloc_node mm/slub.c:5530 [inline] __kmalloc_noprof+0xf9/0x710 mm/slub.c:5556 _kmalloc_noprof include/linux/slab.h:995 [inline] usb_alloc_urb+0x46/0x150 drivers/usb/core/urb.c:75 usb_urb_alloc_bulk_urbs+0xec/0x6d0 drivers/media/usb/dvb-usb-v2/usb_urb.c:143 dvb_usbv2_adapter_stream_init drivers/media/usb/dvb-usb-v2/dvb_usb_core.c:231 [inline] dvb_usbv2_adapter_init drivers/media/usb/dvb-usb-v2/dvb_usb_core.c:798 [inline] dvb_usbv2_init drivers/media/usb/dvb-usb-v2/dvb_usb_core.c:867 [inline] dvb_usbv2_probe+0xe26/0x3950 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c:982 usb_probe_interface+0x751/0xe00 drivers/usb/core/driver.c:399 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x254/0xae0 drivers/base/dd.c:707 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:869 driver_probe_device+0x4f/0x240 drivers/base/dd.c:899 __device_attach_driver+0x270/0x410 drivers/base/dd.c:1027 bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:503 __device_attach+0x2bd/0x430 drivers/base/dd.c:1131 proc_ioctl+0x409/0x660 drivers/usb/core/devio.c:2370 proc_ioctl_default+0xc4/0x110 drivers/usb/core/devio.c:2405 usbdev_do_ioctl drivers/usb/core/devio.c:2769 [inline] usbdev_ioctl+0x139d/0x21a0 drivers/usb/core/devio.c:2829 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fed5d19f559 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:00007fed5e007fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fed5d425fa0 RCX: 00007fed5d19f559 RDX: 0000200000000380 RSI: 00000000c0105512 RDI: 0000000000000007 RBP: 00007fed5d236b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fed5d426038 R14: 00007fed5d425fa0 R15: 00007ffe78018258 ================================================================== BUG: KASAN: slab-use-after-free in instrument_atomic_read_write include/linux/instrumented.h:112 [inline] BUG: KASAN: slab-use-after-free in atomic_fetch_sub_release include/linux/atomic/atomic-instrumented.h:400 [inline] BUG: KASAN: slab-use-after-free in __refcount_sub_and_test include/linux/refcount.h:389 [inline] BUG: KASAN: slab-use-after-free in __refcount_dec_and_test include/linux/refcount.h:432 [inline] BUG: KASAN: slab-use-after-free in refcount_dec_and_test include/linux/refcount.h:450 [inline] BUG: KASAN: slab-use-after-free in kref_put include/linux/kref.h:64 [inline] BUG: KASAN: slab-use-after-free in usb_free_urb+0x24/0x120 drivers/usb/core/urb.c:96 Write of size 4 at addr ffff88803172e800 by task syz.0.0/5358 CPU: 0 UID: 0 PID: 5358 Comm: syz.0.0 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_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200 instrument_atomic_read_write include/linux/instrumented.h:112 [inline] atomic_fetch_sub_release include/linux/atomic/atomic-instrumented.h:400 [inline] __refcount_sub_and_test include/linux/refcount.h:389 [inline] __refcount_dec_and_test include/linux/refcount.h:432 [inline] refcount_dec_and_test include/linux/refcount.h:450 [inline] kref_put include/linux/kref.h:64 [inline] usb_free_urb+0x24/0x120 drivers/usb/core/urb.c:96 usb_urb_free_urbs+0x248/0x3e0 drivers/media/usb/dvb-usb-v2/usb_urb.c:128 usb_urb_exitv2+0x2c/0x1d0 drivers/media/usb/dvb-usb-v2/usb_urb.c:349 dvb_usbv2_adapter_stream_exit drivers/media/usb/dvb-usb-v2/dvb_usb_core.c:239 [inline] dvb_usbv2_adapter_exit drivers/media/usb/dvb-usb-v2/dvb_usb_core.c:829 [inline] dvb_usbv2_exit+0x1be/0xb80 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c:844 dvb_usbv2_probe+0x4bb/0x3950 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c:994 usb_probe_interface+0x751/0xe00 drivers/usb/core/driver.c:399 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x254/0xae0 drivers/base/dd.c:707 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:869 driver_probe_device+0x4f/0x240 drivers/base/dd.c:899 __device_attach_driver+0x270/0x410 drivers/base/dd.c:1027 bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:503 __device_attach+0x2bd/0x430 drivers/base/dd.c:1131 proc_ioctl+0x409/0x660 drivers/usb/core/devio.c:2370 proc_ioctl_default+0xc4/0x110 drivers/usb/core/devio.c:2405 usbdev_do_ioctl drivers/usb/core/devio.c:2769 [inline] usbdev_ioctl+0x139d/0x21a0 drivers/usb/core/devio.c:2829 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fed5d19f559 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:00007fed5e007fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fed5d425fa0 RCX: 00007fed5d19f559 RDX: 0000200000000380 RSI: 00000000c0105512 RDI: 0000000000000007 RBP: 00007fed5d236b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fed5d426038 R14: 00007fed5d425fa0 R15: 00007ffe78018258 Allocated by task 5358: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:409 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:426 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5531 [inline] __kmalloc_noprof+0x366/0x710 mm/slub.c:5556 _kmalloc_noprof include/linux/slab.h:995 [inline] usb_alloc_urb+0x46/0x150 drivers/usb/core/urb.c:75 usb_urb_alloc_bulk_urbs+0xec/0x6d0 drivers/media/usb/dvb-usb-v2/usb_urb.c:143 dvb_usbv2_adapter_stream_init drivers/media/usb/dvb-usb-v2/dvb_usb_core.c:231 [inline] dvb_usbv2_adapter_init drivers/media/usb/dvb-usb-v2/dvb_usb_core.c:798 [inline] dvb_usbv2_init drivers/media/usb/dvb-usb-v2/dvb_usb_core.c:867 [inline] dvb_usbv2_probe+0xe26/0x3950 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c:982 usb_probe_interface+0x751/0xe00 drivers/usb/core/driver.c:399 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x254/0xae0 drivers/base/dd.c:707 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:869 driver_probe_device+0x4f/0x240 drivers/base/dd.c:899 __device_attach_driver+0x270/0x410 drivers/base/dd.c:1027 bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:503 __device_attach+0x2bd/0x430 drivers/base/dd.c:1131 proc_ioctl+0x409/0x660 drivers/usb/core/devio.c:2370 proc_ioctl_default+0xc4/0x110 drivers/usb/core/devio.c:2405 usbdev_do_ioctl drivers/usb/core/devio.c:2769 [inline] usbdev_ioctl+0x139d/0x21a0 drivers/usb/core/devio.c:2829 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 5358: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:264 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:296 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2780 [inline] slab_free mm/slub.c:6630 [inline] kfree+0x1c5/0x650 mm/slub.c:6923 usb_urb_alloc_bulk_urbs+0x5bc/0x6d0 drivers/media/usb/dvb-usb-v2/usb_urb.c:147 dvb_usbv2_adapter_stream_init drivers/media/usb/dvb-usb-v2/dvb_usb_core.c:231 [inline] dvb_usbv2_adapter_init drivers/media/usb/dvb-usb-v2/dvb_usb_core.c:798 [inline] dvb_usbv2_init drivers/media/usb/dvb-usb-v2/dvb_usb_core.c:867 [inline] dvb_usbv2_probe+0xe26/0x3950 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c:982 usb_probe_interface+0x751/0xe00 drivers/usb/core/driver.c:399 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x254/0xae0 drivers/base/dd.c:707 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:869 driver_probe_device+0x4f/0x240 drivers/base/dd.c:899 __device_attach_driver+0x270/0x410 drivers/base/dd.c:1027 bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:503 __device_attach+0x2bd/0x430 drivers/base/dd.c:1131 proc_ioctl+0x409/0x660 drivers/usb/core/devio.c:2370 proc_ioctl_default+0xc4/0x110 drivers/usb/core/devio.c:2405 usbdev_do_ioctl drivers/usb/core/devio.c:2769 [inline] usbdev_ioctl+0x139d/0x21a0 drivers/usb/core/devio.c:2829 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88803172e800 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 0 bytes inside of freed 192-byte region [ffff88803172e800, ffff88803172e8c0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x3172e flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 04fff00000000000 ffff88801c4413c0 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 5593310776 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1856 prep_new_page mm/page_alloc.c:1864 [inline] get_page_from_freelist+0x220f/0x2280 mm/page_alloc.c:3935 __alloc_frozen_pages_noprof+0x1fe/0x410 mm/page_alloc.c:5444 alloc_slab_page mm/slub.c:3384 [inline] allocate_slab+0x7d/0x5e0 mm/slub.c:3499 new_slab mm/slub.c:3550 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7539 refill_sheaf mm/slub.c:2917 [inline] __pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4811 alloc_from_pcs mm/slub.c:4887 [inline] slab_alloc_node mm/slub.c:5021 [inline] __kmalloc_cache_noprof+0x396/0x600 mm/slub.c:5676 _kmalloc_noprof include/linux/slab.h:991 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] call_usermodehelper_setup+0x8e/0x270 kernel/umh.c:360 kobject_uevent_env+0x662/0x9e0 lib/kobject_uevent.c:631 device_add+0x544/0xb80 drivers/base/core.c:3742 container_device_attach+0x1a5/0x220 drivers/acpi/container.c:65 acpi_scan_attach_handler drivers/acpi/scan.c:2325 [inline] acpi_bus_attach+0x6cd/0xcb0 drivers/acpi/scan.c:2386 device_for_each_child+0x10b/0x1a0 drivers/base/core.c:4105 acpi_dev_for_each_child+0x9b/0xe0 drivers/acpi/bus.c:1168 acpi_bus_attach+0x985/0xcb0 drivers/acpi/scan.c:2397 device_for_each_child+0x10b/0x1a0 drivers/base/core.c:4105 page_owner free stack trace missing Memory state around the buggy address: ffff88803172e700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88803172e780: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc >ffff88803172e800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88803172e880: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88803172e900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================