================================================================== BUG: KASAN: out-of-bounds in check_canary_byte mm/kfence/core.c:211 [inline] BUG: KASAN: out-of-bounds in for_each_canary mm/kfence/core.c:245 [inline] BUG: KASAN: out-of-bounds in kfence_guarded_free+0x7f1/0x8f0 mm/kfence/core.c:374 Read of size 1 at addr ffff88823bd3ec79 by task syz-executor.2/21841 CPU: 0 PID: 21841 Comm: syz-executor.2 Not tainted 5.10.0-next-20201223-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x107/0x163 lib/dump_stack.c:120 print_address_description.constprop.0.cold+0x5b/0x2f8 mm/kasan/report.c:230 __kasan_report mm/kasan/report.c:396 [inline] kasan_report.cold+0x79/0xd5 mm/kasan/report.c:413 check_canary_byte mm/kfence/core.c:211 [inline] for_each_canary mm/kfence/core.c:245 [inline] kfence_guarded_free+0x7f1/0x8f0 mm/kfence/core.c:374 __kfence_free+0x70/0x150 mm/kfence/core.c:756 do_slab_free mm/slub.c:3145 [inline] slab_free mm/slub.c:3158 [inline] kfree+0x57c/0x5c0 mm/slub.c:4156 skb_free_head net/core/skbuff.c:595 [inline] skb_release_data+0x6d9/0x910 net/core/skbuff.c:615 skb_release_all net/core/skbuff.c:669 [inline] __kfree_skb net/core/skbuff.c:683 [inline] kfree_skb net/core/skbuff.c:701 [inline] kfree_skb+0x133/0x3f0 net/core/skbuff.c:695 skb_queue_purge+0x14/0x30 net/core/skbuff.c:3086 packet_release+0x75f/0xc90 net/packet/af_packet.c:3102 __sock_release+0xcd/0x280 net/socket.c:597 sock_close+0x18/0x20 net/socket.c:1256 __fput+0x283/0x920 fs/file_table.c:280 task_work_run+0xdd/0x190 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x249/0x250 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:302 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x417bf1 Code: 75 14 b8 03 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 a4 1a 00 00 c3 48 83 ec 08 e8 0a fc ff ff 48 89 04 24 b8 03 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 53 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007ffc0eb69900 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000006 RCX: 0000000000417bf1 RDX: 0000000000000000 RSI: ffffffff88eed2be RDI: 0000000000000005 RBP: 0000000000000001 R08: ffffffff8132a984 R09: 00000000deefdb1b R10: 00007ffc0eb699e0 R11: 0000000000000293 R12: 000000000119ca00 R13: 000000000119ca00 R14: 00000000000003e8 R15: 000000000119c034 Allocated by task 0: (stack is not available) The buggy address belongs to the object at ffff88823bd3e000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1145 bytes to the right of 2048-byte region [ffff88823bd3e000, ffff88823bd3e800) The buggy address belongs to the page: page:000000000f735b01 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x23bd3e flags: 0x57ff00000001200(slab|reserved) raw: 057ff00000001200 ffffea0008ef4f88 ffffea0008ef4f88 ffff888010042000 raw: 0000000000000000 0000000000010000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88823bd3eb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88823bd3eb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88823bd3ec00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 ^ ffff88823bd3ec80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88823bd3ed00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================