RAX: ffffffffffffffda RBX: 0000000000027ec0 RCX: 000000000045de29 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000005 RBP: 00007ff6ebfe3ca0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000200fc0 R11: 0000000000000246 R12: 0000000000000027 R13: 00007ffc1feeefdf R14: 00007ff6ebfe49c0 R15: 000000000118bf2c tipc: Failed do clone local mcast rcv buffer ================================================================== BUG: KASAN: use-after-free in __skb_unlink include/linux/skbuff.h:2043 [inline] BUG: KASAN: use-after-free in __skb_dequeue include/linux/skbuff.h:2062 [inline] BUG: KASAN: use-after-free in __skb_queue_purge include/linux/skbuff.h:2773 [inline] BUG: KASAN: use-after-free in tipc_mcast_xmit+0x1026/0x16c0 net/tipc/bcast.c:421 Read of size 8 at addr ffff88816d908a00 by task syz-executor.5/3270 CPU: 1 PID: 3270 Comm: syz-executor.5 Not tainted 5.4.69-syzkaller-00867-g9d0d630081ae #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+0x1b0/0x21e lib/dump_stack.c:118 print_address_description+0x96/0x5d0 mm/kasan/report.c:374 __kasan_report+0x14b/0x1c0 mm/kasan/report.c:506 kasan_report+0x27/0x50 mm/kasan/common.c:634 __skb_unlink include/linux/skbuff.h:2043 [inline] __skb_dequeue include/linux/skbuff.h:2062 [inline] __skb_queue_purge include/linux/skbuff.h:2773 [inline] tipc_mcast_xmit+0x1026/0x16c0 net/tipc/bcast.c:421 tipc_sendmcast+0xc00/0xeb0 net/tipc/socket.c:830 __tipc_sendmsg+0x120d/0x2d30 net/tipc/socket.c:1368 tipc_sendmsg+0x51/0x70 net/tipc/socket.c:1301 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] kernel_sendmsg+0xe2/0x120 net/socket.c:678 sock_no_sendpage+0x13f/0x1b0 net/core/sock.c:2768 kernel_sendpage net/socket.c:3764 [inline] sock_sendpage+0xd0/0x120 net/socket.c:936 pipe_to_sendpage+0x23b/0x300 fs/splice.c:449 splice_from_pipe_feed fs/splice.c:500 [inline] __splice_from_pipe+0x2d3/0x870 fs/splice.c:624 splice_from_pipe fs/splice.c:659 [inline] generic_splice_sendpage+0x172/0x200 fs/splice.c:829 splice_direct_to_actor+0x496/0xb00 fs/splice.c:976 do_splice_direct+0x279/0x3d0 fs/splice.c:1064 do_sendfile+0x89d/0x1110 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0x1ae/0x220 fs/read_write.c:1511 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45de29 Code: 0d b4 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ff6ebfe3c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 0000000000027ec0 RCX: 000000000045de29 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000005 RBP: 00007ff6ebfe3ca0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000200fc0 R11: 0000000000000246 R12: 0000000000000027 R13: 00007ffc1feeefdf R14: 00007ff6ebfe49c0 R15: 000000000118bf2c Allocated by task 3270: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc+0x117/0x1b0 mm/kasan/common.c:510 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc_node mm/slub.c:2803 [inline] slab_alloc mm/slub.c:2811 [inline] kmem_cache_alloc+0x1d5/0x250 mm/slub.c:2816 kmem_cache_alloc_node include/linux/slab.h:427 [inline] __alloc_skb+0x88/0x4d0 net/core/skbuff.c:198 alloc_skb_fclone include/linux/skbuff.h:1107 [inline] tipc_buf_acquire net/tipc/msg.c:66 [inline] tipc_msg_build+0x74a/0x1b20 net/tipc/msg.c:368 tipc_sendmcast+0x92a/0xeb0 net/tipc/socket.c:824 __tipc_sendmsg+0x120d/0x2d30 net/tipc/socket.c:1368 tipc_sendmsg+0x51/0x70 net/tipc/socket.c:1301 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] kernel_sendmsg+0xe2/0x120 net/socket.c:678 sock_no_sendpage+0x13f/0x1b0 net/core/sock.c:2768 kernel_sendpage net/socket.c:3764 [inline] sock_sendpage+0xd0/0x120 net/socket.c:936 pipe_to_sendpage+0x23b/0x300 fs/splice.c:449 splice_from_pipe_feed fs/splice.c:500 [inline] __splice_from_pipe+0x2d3/0x870 fs/splice.c:624 splice_from_pipe fs/splice.c:659 [inline] generic_splice_sendpage+0x172/0x200 fs/splice.c:829 splice_direct_to_actor+0x496/0xb00 fs/splice.c:976 do_splice_direct+0x279/0x3d0 fs/splice.c:1064 do_sendfile+0x89d/0x1110 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0x1ae/0x220 fs/read_write.c:1511 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 3270: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] kasan_set_free_info mm/kasan/common.c:332 [inline] __kasan_slab_free+0x168/0x220 mm/kasan/common.c:471 slab_free_hook mm/slub.c:1453 [inline] slab_free_freelist_hook+0xd0/0x150 mm/slub.c:1486 slab_free mm/slub.c:3051 [inline] kmem_cache_free+0xac/0x5c0 mm/slub.c:3067 tipc_buf_append+0x2d1/0xad0 net/tipc/msg.c:188 tipc_msg_reassemble+0x331/0x590 net/tipc/msg.c:726 tipc_mcast_xmit+0x223/0x16c0 net/tipc/bcast.c:385 tipc_sendmcast+0xc00/0xeb0 net/tipc/socket.c:830 __tipc_sendmsg+0x120d/0x2d30 net/tipc/socket.c:1368 tipc_sendmsg+0x51/0x70 net/tipc/socket.c:1301 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] kernel_sendmsg+0xe2/0x120 net/socket.c:678 sock_no_sendpage+0x13f/0x1b0 net/core/sock.c:2768 kernel_sendpage net/socket.c:3764 [inline] sock_sendpage+0xd0/0x120 net/socket.c:936 pipe_to_sendpage+0x23b/0x300 fs/splice.c:449 splice_from_pipe_feed fs/splice.c:500 [inline] __splice_from_pipe+0x2d3/0x870 fs/splice.c:624 splice_from_pipe fs/splice.c:659 [inline] generic_splice_sendpage+0x172/0x200 fs/splice.c:829 splice_direct_to_actor+0x496/0xb00 fs/splice.c:976 do_splice_direct+0x279/0x3d0 fs/splice.c:1064 do_sendfile+0x89d/0x1110 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0x1ae/0x220 fs/read_write.c:1511 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 The buggy address belongs to the object at ffff88816d908a00 which belongs to the cache skbuff_fclone_cache of size 488 The buggy address is located 0 bytes inside of 488-byte region [ffff88816d908a00, ffff88816d908be8) The buggy address belongs to the page: page:ffffea0005b64200 refcount:1 mapcount:0 mapping:ffff8881daa92500 index:0x0 compound_mapcount: 0 flags: 0x8000000000010200(slab|head) raw: 8000000000010200 0000000000000000 0000000100000001 ffff8881daa92500 raw: 0000000000000000 00000000800c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88816d908900: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc ffff88816d908980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88816d908a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88816d908a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88816d908b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 3270 Comm: syz-executor.5 Tainted: G B 5.4.69-syzkaller-00867-g9d0d630081ae #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:skb_release_data+0x118/0x6f0 net/core/skbuff.c:605 Code: ef 89 de e8 9a f4 1f fe 39 dd 0f 85 43 02 00 00 e8 1d f3 1f fe 48 8b 44 24 20 48 8d 68 02 48 89 e8 48 c1 e8 03 48 89 44 24 48 <42> 8a 04 30 84 c0 0f 85 d1 04 00 00 0f b6 5d 00 31 ff 89 de e8 6f RSP: 0018:ffff88816f8a6e50 EFLAGS: 00010206 RAX: 0000000030512a09 RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc90006d57000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: 0000000182895048 R08: ffffffff8321743a R09: ffffed10390aee09 R10: ffffed10390aee09 R11: 0000000000000000 R12: 1ffff110390aee06 R13: 0000000182895046 R14: dffffc0000000000 R15: ffff8881c8577030 FS: 00007ff6ebfe4700(0000) GS:ffff8881db900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000118c000 CR3: 00000001c4b0d006 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: skb_release_all net/core/skbuff.c:666 [inline] __kfree_skb+0x55/0x180 net/core/skbuff.c:680 __skb_queue_purge include/linux/skbuff.h:2774 [inline] tipc_mcast_xmit+0x10a8/0x16c0 net/tipc/bcast.c:421 tipc_sendmcast+0xc00/0xeb0 net/tipc/socket.c:830 __tipc_sendmsg+0x120d/0x2d30 net/tipc/socket.c:1368 tipc_sendmsg+0x51/0x70 net/tipc/socket.c:1301 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] kernel_sendmsg+0xe2/0x120 net/socket.c:678 sock_no_sendpage+0x13f/0x1b0 net/core/sock.c:2768 kernel_sendpage net/socket.c:3764 [inline] sock_sendpage+0xd0/0x120 net/socket.c:936 pipe_to_sendpage+0x23b/0x300 fs/splice.c:449 splice_from_pipe_feed fs/splice.c:500 [inline] __splice_from_pipe+0x2d3/0x870 fs/splice.c:624 splice_from_pipe fs/splice.c:659 [inline] generic_splice_sendpage+0x172/0x200 fs/splice.c:829 splice_direct_to_actor+0x496/0xb00 fs/splice.c:976 do_splice_direct+0x279/0x3d0 fs/splice.c:1064 do_sendfile+0x89d/0x1110 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0x1ae/0x220 fs/read_write.c:1511 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45de29 Code: 0d b4 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ff6ebfe3c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 0000000000027ec0 RCX: 000000000045de29 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000005 RBP: 00007ff6ebfe3ca0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000200fc0 R11: 0000000000000246 R12: 0000000000000027 R13: 00007ffc1feeefdf R14: 00007ff6ebfe49c0 R15: 000000000118bf2c Modules linked in: ---[ end trace 9610ccb4ef645904 ]--- RIP: 0010:skb_release_data+0x118/0x6f0 net/core/skbuff.c:605 Code: ef 89 de e8 9a f4 1f fe 39 dd 0f 85 43 02 00 00 e8 1d f3 1f fe 48 8b 44 24 20 48 8d 68 02 48 89 e8 48 c1 e8 03 48 89 44 24 48 <42> 8a 04 30 84 c0 0f 85 d1 04 00 00 0f b6 5d 00 31 ff 89 de e8 6f RSP: 0018:ffff88816f8a6e50 EFLAGS: 00010206 RAX: 0000000030512a09 RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc90006d57000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: 0000000182895048 R08: ffffffff8321743a R09: ffffed10390aee09 R10: ffffed10390aee09 R11: 0000000000000000 R12: 1ffff110390aee06 R13: 0000000182895046 R14: dffffc0000000000 R15: ffff8881c8577030 FS: 00007ff6ebfe4700(0000) GS:ffff8881db900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fbf75e2edb8 CR3: 00000001c4b0d001 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400