IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_hsr: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_1: link becomes ready IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready 8021q: adding VLAN 0 to HW filter on device batadv0 ================================================================== BUG: KASAN: use-after-free in smc_diag_msg_common_fill net/smc/smc_diag.c:43 [inline] BUG: KASAN: use-after-free in __smc_diag_dump.isra.4+0x2792/0x2ae0 net/smc/smc_diag.c:93 Read of size 8 at addr ffff888089d51160 by task syz-executor0/8279 CPU: 0 PID: 8279 Comm: syz-executor0 Not tainted 4.20.0+ #298 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d3/0x2c6 lib/dump_stack.c:113 print_address_description.cold.5+0x9/0x1ff mm/kasan/report.c:187 kasan_report.cold.6+0x1b/0x39 mm/kasan/report.c:317 __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:135 smc_diag_msg_common_fill net/smc/smc_diag.c:43 [inline] __smc_diag_dump.isra.4+0x2792/0x2ae0 net/smc/smc_diag.c:93 smc_diag_dump_proto.isra.5+0x2e8/0x3c0 net/smc/smc_diag.c:211 smc_diag_dump+0x26/0x70 net/smc/smc_diag.c:225 netlink_dump+0x600/0x1080 net/netlink/af_netlink.c:2244 __netlink_dump_start+0x59a/0x7c0 net/netlink/af_netlink.c:2352 netlink_dump_start include/linux/netlink.h:225 [inline] smc_diag_handler_dump+0x2a3/0x350 net/smc/smc_diag.c:242 __sock_diag_cmd net/core/sock_diag.c:232 [inline] sock_diag_rcv_msg+0x31d/0x410 net/core/sock_diag.c:263 netlink_rcv_skb+0x16c/0x430 net/netlink/af_netlink.c:2477 sock_diag_rcv+0x2a/0x40 net/core/sock_diag.c:274 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline] netlink_unicast+0x59f/0x750 net/netlink/af_netlink.c:1336 netlink_sendmsg+0xa18/0xfc0 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xd5/0x120 net/socket.c:631 ___sys_sendmsg+0x7fd/0x930 net/socket.c:2116 __sys_sendmsg+0x11d/0x280 net/socket.c:2154 __compat_sys_sendmsg net/compat.c:754 [inline] __do_compat_sys_sendmsg net/compat.c:761 [inline] __se_compat_sys_sendmsg net/compat.c:758 [inline] __ia32_compat_sys_sendmsg+0x7a/0xb0 net/compat.c:758 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x34d/0xfb2 arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7f23849 Code: 85 d2 74 02 89 0a 5b 5d c3 8b 04 24 c3 8b 14 24 c3 8b 3c 24 c3 90 90 90 90 90 90 90 90 90 90 90 90 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000f7f1f0cc EFLAGS: 00000296 ORIG_RAX: 0000000000000172 RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 0000000020000040 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 8279: save_stack+0x43/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] kasan_kmalloc+0xcb/0xd0 mm/kasan/common.c:482 kasan_slab_alloc+0x12/0x20 mm/kasan/common.c:397 kmem_cache_alloc+0x130/0x730 mm/slab.c:3541 sock_alloc_inode+0x1d/0x260 net/socket.c:244 alloc_inode+0x63/0x190 fs/inode.c:210 new_inode_pseudo+0x71/0x1a0 fs/inode.c:906 sock_alloc+0x41/0x270 net/socket.c:547 __sock_create+0x175/0x930 net/socket.c:1241 sock_create_kern+0x3b/0x50 net/socket.c:1323 smc_create+0x17c/0x3b0 net/smc/af_smc.c:1921 __sock_create+0x536/0x930 net/socket.c:1277 sock_create net/socket.c:1317 [inline] __sys_socket+0x106/0x260 net/socket.c:1347 __do_sys_socket net/socket.c:1356 [inline] __se_sys_socket net/socket.c:1354 [inline] __ia32_sys_socket+0x73/0xb0 net/socket.c:1354 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x34d/0xfb2 arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 Freed by task 8278: save_stack+0x43/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:444 kasan_slab_free+0xe/0x10 mm/kasan/common.c:452 __cache_free mm/slab.c:3485 [inline] kmem_cache_free+0x83/0x290 mm/slab.c:3747 sock_destroy_inode+0x51/0x60 net/socket.c:272 destroy_inode+0x159/0x200 fs/inode.c:267 evict+0x5e0/0x980 fs/inode.c:575 iput_final fs/inode.c:1550 [inline] iput+0x679/0xa90 fs/inode.c:1576 __sock_release+0x1ec/0x250 net/socket.c:590 sock_release+0x17/0x20 net/socket.c:598 smc_release+0x297/0x9a0 net/smc/af_smc.c:155 __sock_release+0xd7/0x250 net/socket.c:579 sock_close+0x19/0x20 net/socket.c:1141 __fput+0x385/0xa50 fs/file_table.c:278 ____fput+0x15/0x20 fs/file_table.c:309 task_work_run+0x1e8/0x2a0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x318/0x380 arch/x86/entry/common.c:166 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath arch/x86/entry/common.c:268 [inline] do_syscall_32_irqs_on arch/x86/entry/common.c:341 [inline] do_fast_syscall_32+0xcd5/0xfb2 arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 The buggy address belongs to the object at ffff888089d51140 which belongs to the cache sock_inode_cache(17:syz0) of size 976 The buggy address is located 32 bytes inside of 976-byte region [ffff888089d51140, ffff888089d51510) The buggy address belongs to the page: page:ffffea0002275440 count:1 mapcount:0 mapping:ffff88809a781980 index:0xffff888089d51ffd flags: 0x1fffc0000000200(slab) raw: 01fffc0000000200 ffffea00022746c8 ffffea00025ba908 ffff88809a781980 raw: ffff888089d51ffd ffff888089d51140 0000000100000003 ffff888085e92d80 page dumped because: kasan: bad access detected page->mem_cgroup:ffff888085e92d80 Memory state around the buggy address: ffff888089d51000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888089d51080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888089d51100: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ^ ffff888089d51180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888089d51200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================