================================================================== BUG: KASAN: slab-out-of-bounds in __list_del_entry_valid_or_report+0x1d4/0x200 lib/list_debug.c:62 Read of size 8 at addr ffff888079929550 by task syz.5.1326/10888 CPU: 3 UID: 0 PID: 10888 Comm: syz.5.1326 Not tainted 6.14.0-syzkaller-13546-g16cd1c265776 #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0xc3/0x670 mm/kasan/report.c:521 kasan_report+0xe0/0x110 mm/kasan/report.c:634 __list_del_entry_valid_or_report+0x1d4/0x200 lib/list_debug.c:62 __list_del_entry_valid include/linux/list.h:124 [inline] __list_del_entry include/linux/list.h:215 [inline] list_del_init include/linux/list.h:287 [inline] bt_accept_unlink+0x34/0x2e0 net/bluetooth/af_bluetooth.c:256 l2cap_sock_teardown_cb+0x1a3/0x3c0 net/bluetooth/l2cap_sock.c:1613 l2cap_chan_del+0xba/0x8f0 net/bluetooth/l2cap_core.c:655 l2cap_conn_del+0x37a/0x730 net/bluetooth/l2cap_core.c:1786 l2cap_disconn_cfm net/bluetooth/l2cap_core.c:7299 [inline] l2cap_disconn_cfm+0x96/0xd0 net/bluetooth/l2cap_core.c:7292 hci_disconn_cfm include/net/bluetooth/hci_core.h:2069 [inline] hci_conn_hash_flush+0x10b/0x260 net/bluetooth/hci_conn.c:2701 hci_dev_close_sync+0x602/0x11d0 net/bluetooth/hci_sync.c:5225 hci_dev_do_close+0x2e/0x90 net/bluetooth/hci_core.c:483 hci_unregister_dev+0x213/0x620 net/bluetooth/hci_core.c:2678 vhci_release+0x79/0xf0 drivers/bluetooth/hci_vhci.c:665 __fput+0x3ff/0xb70 fs/file_table.c:465 task_work_run+0x14d/0x240 kernel/task_work.c:227 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0xafb/0x2c30 kernel/exit.c:953 do_group_exit+0xd3/0x2a0 kernel/exit.c:1102 get_signal+0x2673/0x26d0 kernel/signal.c:3034 arch_do_signal_or_restart+0x8f/0x7d0 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218 __do_fast_syscall_32+0x80/0x120 arch/x86/entry/syscall_32.c:309 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf7f72579 Code: Unable to access opcode bytes at 0xf7f7254f. RSP: 002b:00000000f5096460 EFLAGS: 00000293 ORIG_RAX: 000000000000010b RAX: fffffffffffffdfc RBX: 0000000000000000 RCX: 0000000000000000 RDX: 00000000f5096494 RSI: 00000000f509648c RDI: 00000000f5096494 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000292 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 11147: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4331 [inline] __kvmalloc_node_noprof+0x279/0x600 mm/slub.c:5016 alloc_netdev_mqs+0xd2/0x1570 net/core/dev.c:11623 rtnl_create_link+0xc10/0xfa0 net/core/rtnetlink.c:3641 veth_newlink+0x1fc/0xa00 drivers/net/veth.c:1805 rtnl_newlink_create net/core/rtnetlink.c:3833 [inline] __rtnl_newlink net/core/rtnetlink.c:3950 [inline] rtnl_newlink+0xc42/0x2000 net/core/rtnetlink.c:4065 rtnetlink_rcv_msg+0x95b/0xe90 net/core/rtnetlink.c:6955 netlink_rcv_skb+0x16a/0x440 net/netlink/af_netlink.c:2534 netlink_unicast_kernel net/netlink/af_netlink.c:1313 [inline] netlink_unicast+0x53a/0x7f0 net/netlink/af_netlink.c:1339 netlink_sendmsg+0x8d1/0xdd0 net/netlink/af_netlink.c:1883 sock_sendmsg_nosec net/socket.c:712 [inline] __sock_sendmsg net/socket.c:727 [inline] __sys_sendto+0x495/0x510 net/socket.c:2180 __do_compat_sys_socketcall+0x60a/0x720 net/compat.c:475 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/syscall_32.c:306 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e The buggy address belongs to the object at ffff888079928000 which belongs to the cache kmalloc-cg-4k of size 4096 The buggy address is located 1960 bytes to the right of allocated 3496-byte region [ffff888079928000, ffff888079928da8) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x79928 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff888074dc9dc1 flags: 0x4fff00000000040(head|node=1|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 04fff00000000040 ffff88801b44c280 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000040004 00000000f5000000 ffff888074dc9dc1 head: 04fff00000000040 ffff88801b44c280 dead000000000122 0000000000000000 head: 0000000000000000 0000000000040004 00000000f5000000 ffff888074dc9dc1 head: 04fff00000000003 ffffea0001e64a01 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd60c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_RETRY_MAYFAIL|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 11147, tgid 11147 (syz-executor), ts 278335539189, free_ts 278325385665 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1717 prep_new_page mm/page_alloc.c:1725 [inline] get_page_from_freelist+0x1193/0x39b0 mm/page_alloc.c:3652 __alloc_frozen_pages_noprof+0x263/0x23a0 mm/page_alloc.c:4934 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2301 alloc_slab_page mm/slub.c:2459 [inline] allocate_slab mm/slub.c:2623 [inline] new_slab+0x23c/0x330 mm/slub.c:2676 ___slab_alloc+0xd9c/0x1940 mm/slub.c:3862 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3952 __slab_alloc_node mm/slub.c:4027 [inline] slab_alloc_node mm/slub.c:4188 [inline] __do_kmalloc_node mm/slub.c:4330 [inline] __kvmalloc_node_noprof+0x3a6/0x600 mm/slub.c:5016 alloc_netdev_mqs+0xd2/0x1570 net/core/dev.c:11623 rtnl_create_link+0xc10/0xfa0 net/core/rtnetlink.c:3641 veth_newlink+0x1fc/0xa00 drivers/net/veth.c:1805 rtnl_newlink_create net/core/rtnetlink.c:3833 [inline] __rtnl_newlink net/core/rtnetlink.c:3950 [inline] rtnl_newlink+0xc42/0x2000 net/core/rtnetlink.c:4065 rtnetlink_rcv_msg+0x95b/0xe90 net/core/rtnetlink.c:6955 netlink_rcv_skb+0x16a/0x440 net/netlink/af_netlink.c:2534 netlink_unicast_kernel net/netlink/af_netlink.c:1313 [inline] netlink_unicast+0x53a/0x7f0 net/netlink/af_netlink.c:1339 netlink_sendmsg+0x8d1/0xdd0 net/netlink/af_netlink.c:1883 page last free pid 11147 tgid 11147 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1262 [inline] __free_frozen_pages+0x69d/0xff0 mm/page_alloc.c:2680 discard_slab mm/slub.c:2720 [inline] __put_partials+0x16d/0x1c0 mm/slub.c:3189 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4e/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4151 [inline] slab_alloc_node mm/slub.c:4200 [inline] __do_kmalloc_node mm/slub.c:4330 [inline] __kmalloc_noprof+0x1d4/0x510 mm/slub.c:4343 kmalloc_noprof include/linux/slab.h:909 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] new_dir fs/proc/proc_sysctl.c:963 [inline] get_subdir fs/proc/proc_sysctl.c:1007 [inline] sysctl_mkdir_p fs/proc/proc_sysctl.c:1317 [inline] __register_sysctl_table+0xea2/0x1900 fs/proc/proc_sysctl.c:1392 __devinet_sysctl_register+0x1b9/0x360 net/ipv4/devinet.c:2678 devinet_sysctl_register net/ipv4/devinet.c:2718 [inline] devinet_sysctl_register+0x17b/0x200 net/ipv4/devinet.c:2708 inetdev_init+0x2b8/0x5a0 net/ipv4/devinet.c:291 inetdev_event+0xc5f/0x18a0 net/ipv4/devinet.c:1591 notifier_call_chain+0xb9/0x410 kernel/notifier.c:85 call_netdevice_notifiers_info+0xbe/0x140 net/core/dev.c:2183 call_netdevice_notifiers_extack net/core/dev.c:2221 [inline] call_netdevice_notifiers net/core/dev.c:2235 [inline] register_netdevice+0x182e/0x2270 net/core/dev.c:11054 hsr_dev_finalize+0x6cb/0xbe0 net/hsr/hsr_device.c:750 hsr_newlink+0x46e/0xa00 net/hsr/hsr_netlink.c:122 Memory state around the buggy address: ffff888079929400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888079929480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888079929500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888079929580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888079929600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================