================================================================== BUG: KASAN: slab-out-of-bounds in __mutex_waiter_is_first kernel/locking/mutex.c:199 [inline] BUG: KASAN: slab-out-of-bounds in __mutex_lock_common kernel/locking/mutex.c:694 [inline] BUG: KASAN: slab-out-of-bounds in __mutex_lock+0x1861/0x1b90 kernel/locking/mutex.c:776 Read of size 8 at addr ffff888037b880a8 by task khidpd_00065508/7963 CPU: 0 UID: 0 PID: 7963 Comm: khidpd_00065508 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+0x156/0x4c9 mm/kasan/report.c:482 kasan_report+0xdf/0x1e0 mm/kasan/report.c:595 __mutex_waiter_is_first kernel/locking/mutex.c:199 [inline] __mutex_lock_common kernel/locking/mutex.c:694 [inline] __mutex_lock+0x1861/0x1b90 kernel/locking/mutex.c:776 l2cap_unregister_user+0x71/0x240 net/bluetooth/l2cap_core.c:1721 hidp_session_thread+0x459/0x680 net/bluetooth/hidp/core.c:1304 kthread+0x370/0x450 kernel/kthread.c:436 ret_from_fork+0x754/0xd80 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff888037b88000 which belongs to the cache skbuff_small_head of size 704 The buggy address is located 168 bytes inside of allocated 704-byte region [ffff888037b88000, ffff888037b882c0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x37b88 head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801f6e0280 dead000000000100 dead000000000122 raw: 0000000000000000 0000000800130013 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801f6e0280 dead000000000100 dead000000000122 head: 0000000000000000 0000000800130013 00000000f5000000 0000000000000000 head: 00fff00000000002 ffffea0000dee201 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 6207, tgid 6207 (udevd), ts 120841477578, free_ts 120840771167 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x153/0x170 mm/page_alloc.c:1889 prep_new_page mm/page_alloc.c:1897 [inline] get_page_from_freelist+0x111d/0x3140 mm/page_alloc.c:3962 __alloc_frozen_pages_noprof+0x27c/0x2ba0 mm/page_alloc.c:5250 alloc_slab_page mm/slub.c:3296 [inline] allocate_slab mm/slub.c:3485 [inline] new_slab+0xa6/0x6c0 mm/slub.c:3543 refill_objects+0x26b/0x400 mm/slub.c:7178 refill_sheaf mm/slub.c:2818 [inline] alloc_full_sheaf mm/slub.c:2839 [inline] __pcs_replace_empty_main+0x1ab/0x600 mm/slub.c:4629 alloc_from_pcs mm/slub.c:4720 [inline] slab_alloc_node mm/slub.c:4854 [inline] kmem_cache_alloc_node_noprof+0x569/0x6f0 mm/slub.c:4921 kmalloc_reserve+0x148/0x350 net/core/skbuff.c:613 __alloc_skb+0x185/0x710 net/core/skbuff.c:713 alloc_skb include/linux/skbuff.h:1383 [inline] netlink_alloc_large_skb+0x69/0x150 net/netlink/af_netlink.c:1184 netlink_sendmsg+0x680/0xda0 net/netlink/af_netlink.c:1869 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] ____sys_sendmsg+0x9e1/0xb70 net/socket.c:2592 ___sys_sendmsg+0x190/0x1e0 net/socket.c:2646 __sys_sendmsg+0x170/0x220 net/socket.c:2678 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6982 tgid 6982 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0x7e1/0x10d0 mm/page_alloc.c:2978 hci_release_dev+0x4ef/0x630 net/bluetooth/hci_core.c:2777 bt_host_release+0x6a/0xb0 net/bluetooth/hci_sysfs.c:87 device_release+0xa4/0x240 drivers/base/core.c:2565 kobject_cleanup lib/kobject.c:689 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x1f7/0x640 lib/kobject.c:737 put_device+0x1f/0x30 drivers/base/core.c:3797 vhci_release+0x185/0x230 drivers/bluetooth/hci_vhci.c:691 __fput+0x3ff/0xb40 fs/file_table.c:469 task_work_run+0x150/0x240 kernel/task_work.c:233 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0x8b8/0x2b60 kernel/exit.c:976 do_group_exit+0xd5/0x2a0 kernel/exit.c:1118 get_signal+0x1ec7/0x21e0 kernel/signal.c:3034 arch_do_signal_or_restart+0x91/0x7a0 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:64 [inline] exit_to_user_mode_loop+0x86/0x4a0 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:325 [inline] do_syscall_64+0x67c/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff888037b87f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888037b88000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888037b88080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888037b88100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888037b88180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================