program: sendmsg$NFULNL_MSG_CONFIG(0xffffffffffffffff, &(0x7f0000000000)={0x0, 0x0, &(0x7f0000000040)={&(0x7f0000000080)=ANY=[@ANYBLOB="20030000000405000000000000000000050000030a000200000000b301000000"], 0x20}, 0x1, 0x0, 0x0, 0x20044000}, 0x40040) sendto$packet(0xffffffffffffffff, 0x0, 0x0, 0x5, 0x0, 0x0) ioctl$sock_SIOCGIFINDEX_80211(0xffffffffffffffff, 0x8933, &(0x7f00000000c0)={'wlan1\x00'}) r0 = syz_init_net_socket$bt_hci(0x1f, 0x3, 0x1) ioctl(r0, 0x8b32, &(0x7f0000000100)) r1 = openat$dm_control(0xffffffffffffff9c, &(0x7f0000000240), 0x2, 0x0) ioctl$DM_DEV_CREATE(r1, 0xc138fd03, &(0x7f0000000280)={0x4, 0x0, 0x0, 0x138, 0x138, 0x0, 0x0, 0x0, 0x0, 0x0, {0x0, {'syz', 0x0, '2\x00'}}}) ioctl$DM_TABLE_LOAD(r1, 0xc138fd09, &(0x7f00000003c0)={0x4, 0x0, 0x0, 0x1a8, 0x138, 0x1, 0x0, 0x80800, 0x0, 0x0, @by_name={0x0, {'syz', 0x0, '2\x00'}}, [@thin_pool={0x0, 0x2000, 0x0, 0x70, 'thin-pool\x00', {@ram={'/dev/ram', 0x0}, 0x20, @ram_num={'1:', 0x0}, 0x20, '128', 0x20, 0x0, ' 1 read_only'}}]}) [ 87.287995][ T5284] Bluetooth: hci0: command tx timeout [ 87.350887][ T9] cfg80211: failed to load regulatory.db [ 87.621391][ T5325] ================================================================== [ 87.621423][ T5325] BUG: KASAN: slab-use-after-free in pool_ctr+0x874/0xd60 [ 87.621703][ T5325] Read of size 8 at addr ffff888035ab8a98 by task syz.0.0/5325 [ 87.621737][ T5325] [ 87.621788][ T5325] CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 87.621802][ T5325] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 87.621869][ T5325] Call Trace: [ 87.621902][ T5325] [ 87.621935][ T5325] dump_stack_lvl+0xe8/0x150 [ 87.622159][ T5325] print_address_description+0x55/0x1e0 [ 87.622179][ T5325] ? pool_ctr+0x874/0xd60 [ 87.622223][ T5325] print_report+0x58/0x70 [ 87.622239][ T5325] kasan_report+0x117/0x150 [ 87.622297][ T5325] ? pool_ctr+0x874/0xd60 [ 87.622316][ T5325] pool_ctr+0x874/0xd60 [ 87.622336][ T5325] ? __pfx_pool_ctr+0x10/0x10 [ 87.622355][ T5325] ? rcu_is_watching+0x16/0xb0 [ 87.622404][ T5325] ? kfree+0x4d/0x650 [ 87.622428][ T5325] ? skip_spaces+0x8a/0xa0 [ 87.622584][ T5325] ? dm_split_args+0x50b/0x5d0 [ 87.622629][ T5325] dm_table_add_target+0x58d/0xc70 [ 87.622703][ T5325] table_load+0x325/0x8a0 [ 87.622718][ T5325] ? __pfx_table_load+0x10/0x10 [ 87.622733][ T5325] dm_ctl_ioctl+0x9ec/0xe10 [ 87.622809][ T5325] ? __pfx_table_load+0x10/0x10 [ 87.622821][ T5325] ? __pfx_dm_ctl_ioctl+0x10/0x10 [ 87.622883][ T5325] ? __fget_files+0x2a/0x420 [ 87.623021][ T5325] ? bpf_lsm_file_ioctl+0x9/0x20 [ 87.623135][ T5325] ? __pfx_dm_ctl_ioctl+0x10/0x10 [ 87.623150][ T5325] __se_sys_ioctl+0xfc/0x170 [ 87.623158][ T5325] do_syscall_64+0x166/0x520 [ 87.623225][ T5325] ? trace_irq_disable+0x3b/0x140 [ 87.623247][ T5325] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 87.623261][ T5325] ? clear_bhb_loop+0x70/0xc0 [ 87.623274][ T5325] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 87.623286][ T5325] RIP: 0033:0x7fe9d2d9f559 [ 87.623298][ T5325] 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 [ 87.623308][ T5325] RSP: 002b:00007fe9d3c3dfe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 87.623324][ T5325] RAX: ffffffffffffffda RBX: 00007fe9d3025fa0 RCX: 00007fe9d2d9f559 [ 87.623333][ T5325] RDX: 00002000000003c0 RSI: 00000000c138fd09 RDI: 0000000000000003 [ 87.623341][ T5325] RBP: 00007fe9d2e36b20 R08: 0000000000000000 R09: 0000000000000000 [ 87.623349][ T5325] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 87.623357][ T5325] R13: 00007fe9d3026038 R14: 00007fe9d3025fa0 R15: 00007ffebc91c4e8 [ 87.623372][ T5325] [ 87.623376][ T5325] [ 87.623379][ T5325] Allocated by task 5325: [ 87.623383][ T5325] kasan_save_track+0x3e/0x80 [ 87.623390][ T5325] __kasan_kmalloc+0x93/0xb0 [ 87.623398][ T5325] __kmalloc_cache_node_noprof+0x3cc/0x620 [ 87.623414][ T5325] dm_get_table_device+0x23e/0x730 [ 87.623455][ T5325] dm_get_device+0x327/0x760 [ 87.623466][ T5325] pool_ctr+0x4ae/0xd60 [ 87.623481][ T5325] dm_table_add_target+0x58d/0xc70 [ 87.623489][ T5325] table_load+0x325/0x8a0 [ 87.623496][ T5325] dm_ctl_ioctl+0x9ec/0xe10 [ 87.623505][ T5325] __se_sys_ioctl+0xfc/0x170 [ 87.623512][ T5325] do_syscall_64+0x166/0x520 [ 87.623521][ T5325] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 87.623527][ T5325] [ 87.623529][ T5325] Freed by task 5325: [ 87.623533][ T5325] kasan_save_track+0x3e/0x80 [ 87.623539][ T5325] kasan_save_free_info+0x40/0x50 [ 87.623550][ T5325] __kasan_slab_free+0x5c/0x80 [ 87.623560][ T5325] kfree+0x1c5/0x650 [ 87.623572][ T5325] dm_put_table_device+0x255/0x2a0 [ 87.623583][ T5325] dm_get_device+0x56f/0x760 [ 87.623592][ T5325] pool_ctr+0x585/0xd60 [ 87.623606][ T5325] dm_table_add_target+0x58d/0xc70 [ 87.623615][ T5325] table_load+0x325/0x8a0 [ 87.623622][ T5325] dm_ctl_ioctl+0x9ec/0xe10 [ 87.623636][ T5325] __se_sys_ioctl+0xfc/0x170 [ 87.623645][ T5325] do_syscall_64+0x166/0x520 [ 87.623657][ T5325] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 87.623667][ T5325] [ 87.623670][ T5325] The buggy address belongs to the object at ffff888035ab8a80 [ 87.623670][ T5325] which belongs to the cache kmalloc-96 of size 96 [ 87.623679][ T5325] The buggy address is located 24 bytes inside of [ 87.623679][ T5325] freed 96-byte region [ffff888035ab8a80, ffff888035ab8ae0) [ 87.623690][ T5325] [ 87.623692][ T5325] The buggy address belongs to the physical page: [ 87.623697][ T5325] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x35ab8 [ 87.623705][ T5325] flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) [ 87.623712][ T5325] page_type: f5(slab) [ 87.623719][ T5325] raw: 04fff00000000000 ffff88801c041280 dead000000000100 dead000000000122 [ 87.623724][ T5325] raw: 0000000000000000 0000000000200020 00000000f5000000 0000000000000000 [ 87.623728][ T5325] page dumped because: kasan: bad access detected [ 87.623751][ T5325] page_owner tracks the page as allocated [ 87.623754][ T5325] 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 20147003902 [ 87.623782][ T5325] post_alloc_hook+0x1f9/0x250 [ 87.623793][ T5325] get_page_from_freelist+0x2209/0x2280 [ 87.623801][ T5325] __alloc_frozen_pages_noprof+0x217/0x5a0 [ 87.623811][ T5325] allocate_slab+0x7d/0x620 [ 87.623824][ T5325] refill_objects+0x2d5/0x350 [ 87.623836][ T5325] __pcs_replace_empty_main+0x2c8/0x6c0 [ 87.623848][ T5325] __kmalloc_cache_node_noprof+0x446/0x620 [ 87.623864][ T5325] __get_vm_area_node+0x155/0x2f0 [ 87.623891][ T5325] __vmalloc_node_range_noprof+0x343/0x1540 [ 87.623901][ T5325] vzalloc_noprof+0xb2/0xe0 [ 87.623910][ T5325] tpg_alloc+0x14c/0x860 [ 87.623918][ T5325] vivid_probe+0x1b55/0x70c0 [ 87.623927][ T5325] platform_probe+0xf9/0x190 [ 87.623960][ T5325] really_probe+0x254/0xae0 [ 87.623966][ T5325] __driver_probe_device+0x1e8/0x360 [ 87.623977][ T5325] driver_probe_device+0x4f/0x240 [ 87.623987][ T5325] page last free pid 1 tgid 1 ts 20146925318 stack trace: [ 87.623995][ T5325] __free_frozen_pages+0xc93/0xd90 [ 87.624010][ T5325] __kasan_populate_vmalloc+0x1a8/0x1c0 [ 87.624025][ T5325] alloc_vmap_area+0xd10/0x1410 [ 87.624038][ T5325] __get_vm_area_node+0x200/0x2f0 [ 87.624050][ T5325] __vmalloc_node_range_noprof+0x343/0x1540 [ 87.624064][ T5325] vzalloc_noprof+0xb2/0xe0 [ 87.624078][ T5325] tpg_alloc+0x116/0x860 [ 87.624086][ T5325] vivid_probe+0x1b55/0x70c0 [ 87.624098][ T5325] platform_probe+0xf9/0x190 [ 87.624111][ T5325] really_probe+0x254/0xae0 [ 87.624121][ T5325] __driver_probe_device+0x1e8/0x360 [ 87.624135][ T5325] driver_probe_device+0x4f/0x240 [ 87.624145][ T5325] __driver_attach+0x339/0x600 [ 87.624158][ T5325] bus_for_each_dev+0x23b/0x2c0 [ 87.624165][ T5325] bus_add_driver+0x38f/0x6e0 [ 87.624172][ T5325] driver_register+0x23a/0x320 [ 87.624179][ T5325] [ 87.624181][ T5325] Memory state around the buggy address: [ 87.624185][ T5325] ffff888035ab8980: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc [ 87.624192][ T5325] ffff888035ab8a00: 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc [ 87.624199][ T5325] >ffff888035ab8a80: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 87.624204][ T5325] ^ [ 87.624209][ T5325] ffff888035ab8b00: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 87.624217][ T5325] ffff888035ab8b80: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 87.624222][ T5325] ================================================================== [ 87.624343][ T5325] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 87.941764][ T5325] CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) [ 87.946498][ T5325] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 87.951444][ T5325] Call Trace: [ 87.952863][ T5325] [ 87.954306][ T5325] vpanic+0x56d/0xa60 [ 87.956541][ T5325] ? __pfx_vpanic+0x10/0x10 [ 87.958962][ T5325] panic+0xc5/0xd0 [ 87.960677][ T5325] ? __pfx_panic+0x10/0x10 [ 87.962629][ T5325] ? preempt_schedule_thunk+0x16/0x40 [ 87.964777][ T5325] ? pool_ctr+0x874/0xd60 [ 87.966497][ T5325] ? preempt_schedule_thunk+0x16/0x40 [ 87.968759][ T5325] ? pool_ctr+0x874/0xd60 [ 87.970919][ T5325] check_panic_on_warn+0x89/0xb0 [ 87.973125][ T5325] ? pool_ctr+0x874/0xd60 [ 87.975285][ T5325] end_report+0x73/0x170 [ 87.976719][ T5325] ? pool_ctr+0x874/0xd60 [ 87.978188][ T5325] kasan_report+0x128/0x150 [ 87.979778][ T5325] ? pool_ctr+0x874/0xd60 [ 87.984870][ T5325] pool_ctr+0x874/0xd60 [ 87.986741][ T5325] ? __pfx_pool_ctr+0x10/0x10 [ 87.988712][ T5325] ? rcu_is_watching+0x16/0xb0 [ 87.990672][ T5325] ? kfree+0x4d/0x650 [ 87.992454][ T5325] ? skip_spaces+0x8a/0xa0 [ 87.994388][ T5325] ? dm_split_args+0x50b/0x5d0 [ 87.996595][ T5325] dm_table_add_target+0x58d/0xc70 [ 87.998873][ T5325] table_load+0x325/0x8a0 [ 88.000650][ T5325] ? __pfx_table_load+0x10/0x10 [ 88.003006][ T5325] dm_ctl_ioctl+0x9ec/0xe10 [ 88.005220][ T5325] ? __pfx_table_load+0x10/0x10 [ 88.007550][ T5325] ? __pfx_dm_ctl_ioctl+0x10/0x10 [ 88.012360][ T5325] ? __fget_files+0x2a/0x420 [ 88.014569][ T5325] ? bpf_lsm_file_ioctl+0x9/0x20 [ 88.016700][ T5325] ? __pfx_dm_ctl_ioctl+0x10/0x10 [ 88.018847][ T5325] __se_sys_ioctl+0xfc/0x170 [ 88.020804][ T5325] do_syscall_64+0x166/0x520 [ 88.022771][ T5325] ? trace_irq_disable+0x3b/0x140 [ 88.024835][ T5325] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 88.027570][ T5325] ? clear_bhb_loop+0x70/0xc0 [ 88.029769][ T5325] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 88.032387][ T5325] RIP: 0033:0x7fe9d2d9f559 [ 88.034303][ T5325] 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 [ 88.042555][ T5325] RSP: 002b:00007fe9d3c3dfe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 88.046146][ T5325] RAX: ffffffffffffffda RBX: 00007fe9d3025fa0 RCX: 00007fe9d2d9f559 [ 88.049642][ T5325] RDX: 00002000000003c0 RSI: 00000000c138fd09 RDI: 0000000000000003 [ 88.053127][ T5325] RBP: 00007fe9d2e36b20 R08: 0000000000000000 R09: 0000000000000000 [ 88.056522][ T5325] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 88.060097][ T5325] R13: 00007fe9d3026038 R14: 00007fe9d3025fa0 R15: 00007ffebc91c4e8 [ 88.063351][ T5325] [ 88.067232][ T5325] Kernel Offset: disabled [ 88.069220][ T5325] Rebooting in 86400 seconds..