batman_adv: batadv0: Interface activated: batadv_slave_1 IPv6: ADDRCONF(NETDEV_CHANGE): batadv_slave_1: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready ================================================================== BUG: KASAN: use-after-free in tcindex_set_parms+0x17d0/0x19d0 net/sched/cls_tcindex.c:455 Write of size 16 at addr ffff88809f9a2030 by task syz-executor243/8050 CPU: 0 PID: 8050 Comm: syz-executor243 Not tainted 4.19.108-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+0x188/0x20d lib/dump_stack.c:118 print_address_description.cold+0x7c/0x212 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold+0x88/0x2b9 mm/kasan/report.c:396 tcindex_set_parms+0x17d0/0x19d0 net/sched/cls_tcindex.c:455 tcindex_change+0x200/0x2d3 net/sched/cls_tcindex.c:517 tc_new_tfilter+0xa6b/0x1450 net/sched/cls_api.c:1320 rtnetlink_rcv_msg+0x453/0xaf0 net/core/rtnetlink.c:4777 netlink_rcv_skb+0x160/0x410 net/netlink/af_netlink.c:2455 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x4d7/0x6a0 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x80b/0xcd0 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:632 ___sys_sendmsg+0x803/0x920 net/socket.c:2115 __sys_sendmsg+0xec/0x1b0 net/socket.c:2153 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x443de9 Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 0f 83 6b 0e fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffed4891b98 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000443de9 RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000000000003 RBP: 00007ffed4891be0 R08: 00000000bb1414ac R09: 00000000bb1414ac R10: 00000000bb1414ac R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000405170 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 7840: set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc mm/kasan/kasan.c:553 [inline] kasan_kmalloc+0xbf/0xe0 mm/kasan/kasan.c:531 kmem_cache_alloc+0x127/0x710 mm/slab.c:3559 prepare_creds+0x39/0x410 kernel/cred.c:255 do_faccessat+0x94/0x7a0 fs/open.c:359 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 7840: set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0xf7/0x140 mm/kasan/kasan.c:521 __cache_free mm/slab.c:3503 [inline] kmem_cache_free+0x7f/0x260 mm/slab.c:3765 __put_cred+0x1de/0x250 kernel/cred.c:151 put_cred include/linux/cred.h:276 [inline] do_faccessat+0x64e/0x7a0 fs/open.c:438 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff88809f9a2000 which belongs to the cache cred_jar of size 184 The buggy address is located 48 bytes inside of 184-byte region [ffff88809f9a2000, ffff88809f9a20b8) The buggy address belongs to the page: page:ffffea00027e6880 count:1 mapcount:0 mapping:ffff88812c290b00 index:0x0 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffffea00027e8988 ffffea000278b988 ffff88812c290b00 raw: 0000000000000000 ffff88809f9a2000 0000000100000010 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809f9a1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88809f9a1f80: 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88809f9a2000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88809f9a2080: fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc ffff88809f9a2100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================