================================================================== 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 ffff88823bceeffb by task syz-executor751/31952 CPU: 1 PID: 31952 Comm: syz-executor751 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+0x368/0x3c0 mm/slub.c:4156 key_create_or_update+0x83f/0xee0 security/keys/key.c:957 __do_sys_add_key+0x215/0x430 security/keys/keyctl.c:134 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x441209 Code: e8 fc ab 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 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 1b 09 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffd0650dae8 EFLAGS: 00000246 ORIG_RAX: 00000000000000f8 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441209 RDX: 0000000020000340 RSI: 0000000000000000 RDI: 00000000200000c0 RBP: 000000000002874d R08: 00000000fffffffe R09: 00000000004002c8 R10: 00000000000000a3 R11: 0000000000000246 R12: 0000000000401fb0 R13: 0000000000402040 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 2846403498: ------------[ cut here ]------------ slab index 831406 out of bounds (390) for stack id adacafae WARNING: CPU: 1 PID: 31952 at lib/stackdepot.c:211 stack_depot_fetch+0x6d/0xa0 lib/stackdepot.c:211 Modules linked in: CPU: 1 PID: 31952 Comm: syz-executor751 Not tainted 5.10.0-next-20201223-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:stack_depot_fetch+0x6d/0xa0 lib/stackdepot.c:211 Code: 48 c1 e0 04 25 f0 3f 00 00 48 01 d0 48 8d 50 18 48 89 13 8b 40 0c 48 83 c4 10 5b c3 89 f9 48 c7 c7 70 cf fc 8a e8 a1 67 f1 04 <0f> 0b 48 83 c4 10 31 c0 5b c3 48 83 c4 10 31 c0 5b c3 48 c7 c7 00 RSP: 0018:ffffc9000d387b48 EFLAGS: 00010086 RAX: 0000000000000000 RBX: ffffc9000d387b68 RCX: 0000000000000000 RDX: ffff888018e61b00 RSI: ffffffff815b95f5 RDI: fffff52001a70f5b RBP: ffffea0008ef3b80 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff815b7a4b R11: 0000000000000000 R12: ffff88823bceeffb R13: ffff88823bcee000 R14: ffff88823bcee0c0 R15: 00000000ffffffad FS: 0000000001359880(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200000c0 CR3: 0000000024300000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: print_stack+0x9/0x18 mm/kasan/report.c:114 describe_object_stacks mm/kasan/report.c:176 [inline] describe_object mm/kasan/report.c:206 [inline] print_address_description.constprop.0.cold+0x21a/0x2f8 mm/kasan/report.c:237 __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+0x368/0x3c0 mm/slub.c:4156 key_create_or_update+0x83f/0xee0 security/keys/key.c:957 __do_sys_add_key+0x215/0x430 security/keys/keyctl.c:134 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x441209 Code: e8 fc ab 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 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 1b 09 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffd0650dae8 EFLAGS: 00000246 ORIG_RAX: 00000000000000f8 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441209 RDX: 0000000020000340 RSI: 0000000000000000 RDI: 00000000200000c0 RBP: 000000000002874d R08: 00000000fffffffe R09: 00000000004002c8 R10: 00000000000000a3 R11: 0000000000000246 R12: 0000000000401fb0 R13: 0000000000402040 R14: 0000000000000000 R15: 0000000000000000