IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_batadv: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): batadv_slave_1: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready tls_set_device_offload_rx: netdev lo with no TLS offload ================================================================== BUG: KASAN: slab-out-of-bounds in atomic_read include/asm-generic/atomic-instrumented.h:21 [inline] BUG: KASAN: slab-out-of-bounds in refcount_add_not_zero arch/x86/include/asm/refcount.h:87 [inline] BUG: KASAN: slab-out-of-bounds in refcount_inc_not_zero arch/x86/include/asm/refcount.h:109 [inline] BUG: KASAN: slab-out-of-bounds in sk_psock_get include/linux/skmsg.h:404 [inline] BUG: KASAN: slab-out-of-bounds in tls_sw_recvmsg+0xa78/0x10f0 net/tls/tls_sw.c:1626 Read of size 4 at addr ffff8880a11b8258 by task syz-executor.3/10222 CPU: 0 PID: 10222 Comm: syz-executor.3 Not tainted 5.0.0-rc4-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+0x86/0xca lib/dump_stack.c:113 print_address_description.cold.3+0x9/0x244 mm/kasan/report.c:187 kasan_report.cold.4+0x1b/0x35 mm/kasan/report.c:317 check_memory_region_inline mm/kasan/generic.c:185 [inline] check_memory_region+0x13c/0x1b0 mm/kasan/generic.c:191 kasan_check_read+0x11/0x20 mm/kasan/common.c:100 atomic_read include/asm-generic/atomic-instrumented.h:21 [inline] refcount_add_not_zero arch/x86/include/asm/refcount.h:87 [inline] refcount_inc_not_zero arch/x86/include/asm/refcount.h:109 [inline] sk_psock_get include/linux/skmsg.h:404 [inline] tls_sw_recvmsg+0xa78/0x10f0 net/tls/tls_sw.c:1626 inet_recvmsg+0x111/0x580 net/ipv4/af_inet.c:830 sock_recvmsg_nosec net/socket.c:794 [inline] sock_recvmsg net/socket.c:801 [inline] sock_recvmsg+0xb7/0xf0 net/socket.c:797 ___sys_recvmsg+0x219/0x540 net/socket.c:2278 do_recvmmsg+0x221/0x650 net/socket.c:2391 __sys_recvmmsg+0x175/0x1c0 net/socket.c:2470 __do_sys_recvmmsg net/socket.c:2493 [inline] __se_sys_recvmmsg net/socket.c:2486 [inline] __x64_sys_recvmmsg+0xc0/0x160 net/socket.c:2486 do_syscall_64+0xa3/0x440 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4665e9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f939c848188 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665e9 RDX: 000000000000000a RSI: 00000000200030c0 RDI: 0000000000000005 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000010000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffef2a579df R14: 00007f939c848300 R15: 0000000000022000 Allocated by task 10248: save_stack mm/kasan/common.c:73 [inline] set_track mm/kasan/common.c:85 [inline] __kasan_kmalloc.part.0+0x66/0x100 mm/kasan/common.c:496 __kasan_kmalloc.constprop.1+0xb5/0xc0 mm/kasan/common.c:477 kasan_kmalloc mm/kasan/common.c:504 [inline] kasan_slab_alloc+0x11/0x20 mm/kasan/common.c:411 slab_post_alloc_hook mm/slab.h:444 [inline] slab_alloc_node mm/slub.c:2739 [inline] slab_alloc mm/slub.c:2747 [inline] kmem_cache_alloc+0xd9/0x2c0 mm/slub.c:2752 kmem_cache_zalloc include/linux/slab.h:730 [inline] kcm_attach net/kcm/kcmsock.c:1405 [inline] kcm_attach_ioctl net/kcm/kcmsock.c:1490 [inline] kcm_ioctl+0x7a3/0x1400 net/kcm/kcmsock.c:1696 sock_do_ioctl+0xd9/0x270 net/socket.c:950 sock_ioctl+0x287/0x510 net/socket.c:1074 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:509 [inline] do_vfs_ioctl+0x196/0x10c0 fs/ioctl.c:696 ksys_ioctl+0x62/0x90 fs/ioctl.c:713 __do_sys_ioctl fs/ioctl.c:720 [inline] __se_sys_ioctl fs/ioctl.c:718 [inline] __x64_sys_ioctl+0x6e/0xb0 fs/ioctl.c:718 do_syscall_64+0xa3/0x440 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8880a11b8000 which belongs to the cache kcm_psock_cache of size 544 The buggy address is located 56 bytes to the right of 544-byte region [ffff8880a11b8000, ffff8880a11b8220) The buggy address belongs to the page: page:ffffea0002846e00 count:1 mapcount:0 mapping:ffff8882354a4600 index:0x0 compound_mapcount: 0 flags: 0xfff00000010200(slab|head) raw: 00fff00000010200 dead000000000100 dead000000000200 ffff8882354a4600 raw: 0000000000000000 0000000080170017 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page allocated via order 2, migratetype Unmovable, gfp_mask 0x152c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC) set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook mm/page_alloc.c:1950 [inline] prep_new_page mm/page_alloc.c:1958 [inline] get_page_from_freelist.part.22+0x300d/0x45b0 mm/page_alloc.c:3500 get_page_from_freelist mm/page_alloc.c:3390 [inline] __alloc_pages_nodemask+0x2a6/0x2500 mm/page_alloc.c:4535 alloc_pages_current+0xd6/0x1b0 mm/mempolicy.c:2106 alloc_pages include/linux/gfp.h:509 [inline] alloc_slab_page mm/slub.c:1477 [inline] allocate_slab mm/slub.c:1622 [inline] new_slab+0x417/0x780 mm/slub.c:1696 new_slab_objects mm/slub.c:2450 [inline] ___slab_alloc+0x5b7/0x900 mm/slub.c:2602 __slab_alloc.isra.22+0x4f/0x80 mm/slub.c:2642 slab_alloc_node mm/slub.c:2705 [inline] slab_alloc mm/slub.c:2747 [inline] kmem_cache_alloc+0x244/0x2c0 mm/slub.c:2752 kmem_cache_zalloc include/linux/slab.h:730 [inline] kcm_attach net/kcm/kcmsock.c:1405 [inline] kcm_attach_ioctl net/kcm/kcmsock.c:1490 [inline] kcm_ioctl+0x7a3/0x1400 net/kcm/kcmsock.c:1696 sock_do_ioctl+0xd9/0x270 net/socket.c:950 sock_ioctl+0x287/0x510 net/socket.c:1074 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:509 [inline] do_vfs_ioctl+0x196/0x10c0 fs/ioctl.c:696 ksys_ioctl+0x62/0x90 fs/ioctl.c:713 __do_sys_ioctl fs/ioctl.c:720 [inline] __se_sys_ioctl fs/ioctl.c:718 [inline] __x64_sys_ioctl+0x6e/0xb0 fs/ioctl.c:718 do_syscall_64+0xa3/0x440 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Memory state around the buggy address: ffff8880a11b8100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880a11b8180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880a11b8200: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880a11b8280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880a11b8300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== tls_set_device_offload_rx: netdev lo with no TLS offload ------------[ cut here ]------------ downgrading a read lock WARNING: CPU: 0 PID: 10256 at kernel/locking/lockdep.c:3553 __lock_downgrade kernel/locking/lockdep.c:3553 [inline] WARNING: CPU: 0 PID: 10256 at kernel/locking/lockdep.c:3553 lock_downgrade+0x3c1/0x610 kernel/locking/lockdep.c:3816