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 __lock_acquire+0x3426/0x4980 kernel/locking/lockdep.c:3294 Read of size 8 at addr ffff8881e08cc620 by task syz-executor.1/6629 CPU: 0 PID: 6629 Comm: syz-executor.1 Not tainted 4.19.163-syzkaller #0 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+0x123/0x177 lib/dump_stack.c:118 print_address_description.cold.8+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.9+0x242/0x309 mm/kasan/report.c:412 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 __lock_acquire+0x3426/0x4980 kernel/locking/lockdep.c:3294 lock_acquire+0x173/0x3d0 kernel/locking/lockdep.c:3907 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline] _raw_spin_lock_bh+0x31/0x40 kernel/locking/spinlock.c:168 spin_lock_bh include/linux/spinlock.h:334 [inline] lock_sock_nested+0x3a/0x100 net/core/sock.c:2864 lock_sock include/net/sock.h:1510 [inline] nr_accept+0x4a8/0x640 net/netrom/af_netrom.c:808 __sys_accept4+0x32b/0x6b0 net/socket.c:1589 __do_sys_accept net/socket.c:1630 [inline] __se_sys_accept net/socket.c:1627 [inline] __x64_sys_accept+0x70/0xb0 net/socket.c:1627 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4598f9 Code: 7d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 4b b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f0d6faf4c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002b RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000004598f9 RDX: 0000000020000080 RSI: 0000000020000280 RDI: 0000000000000004 RBP: 000000000075c070 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f0d6faf56d4 R13: 00000000004bf7c9 R14: 00000000004d11a0 R15: 00000000ffffffff Allocated by task 6622: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:553 __do_kmalloc mm/slab.c:3727 [inline] __kmalloc+0x15b/0x770 mm/slab.c:3736 kmalloc include/linux/slab.h:520 [inline] sk_prot_alloc+0x148/0x240 net/core/sock.c:1466 sk_alloc+0x30/0xca0 net/core/sock.c:1520 nr_create+0x7e/0x5a0 net/netrom/af_netrom.c:436 __sock_create+0x262/0x540 net/socket.c:1276 sock_create net/socket.c:1316 [inline] __sys_socket+0xd7/0x1d0 net/socket.c:1346 __do_sys_socket net/socket.c:1355 [inline] __se_sys_socket net/socket.c:1353 [inline] __x64_sys_socket+0x6e/0xb0 net/socket.c:1353 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 6620: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3503 [inline] kfree+0xcf/0x220 mm/slab.c:3822 sk_prot_free net/core/sock.c:1503 [inline] __sk_destruct+0x3b0/0x540 net/core/sock.c:1584 sk_destruct+0x83/0xb0 net/core/sock.c:1599 __sk_free+0x9e/0x230 net/core/sock.c:1610 sk_free+0x23/0x30 net/core/sock.c:1621 sock_put include/net/sock.h:1711 [inline] nr_release+0x2a8/0x330 net/netrom/af_netrom.c:557 __sock_release+0xc2/0x290 net/socket.c:579 sock_close+0x10/0x20 net/socket.c:1140 __fput+0x249/0x7f0 fs/file_table.c:278 ____fput+0x9/0x10 fs/file_table.c:309 task_work_run+0x108/0x180 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x1a9/0x200 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x413/0x4e0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8881e08cc580 which belongs to the cache kmalloc-2048 of size 2048 The buggy address is located 160 bytes inside of 2048-byte region [ffff8881e08cc580, ffff8881e08ccd80) The buggy address belongs to the page: page:ffffea0007823300 count:1 mapcount:0 mapping:ffff8881f6400c40 index:0x0 compound_mapcount: 0 flags: 0x2fffc0000008100(slab|head) raw: 02fffc0000008100 ffffea0007822508 ffffea0007834188 ffff8881f6400c40 raw: 0000000000000000 ffff8881e08cc580 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881e08cc500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881e08cc580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8881e08cc600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881e08cc680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881e08cc700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================