TITLE: KFENCE: out-of-bounds read in test_out_of_bounds_read
ALT: bad-access in test_out_of_bounds_read
TYPE: KFENCE-READ

[    3.317089] ==================================================================
[    3.317855] BUG: KFENCE: out-of-bounds read in test_out_of_bounds_read+0xa6/0x234
[    3.317855] 
[    3.318783] Out-of-bounds read at 0xffff8c2aae231fff (1B left of kfence-#24):
[    3.319521]  test_out_of_bounds_read+0xa6/0x234
[    3.320001]  kunit_try_run_case+0x51/0x90
[    3.320425]  kunit_generic_run_threadfn_adapter+0x16/0x30
[    3.320989]  kthread+0x166/0x1a0
[    3.321340]  ret_from_fork+0x22/0x30
[    3.321719] 
[    3.321886] kfence-#24 [0xffff8c2aae232000-0xffff8c2aae23201f, size=32, cache=kmalloc-32] allocated by task 110:
[    3.322934]  test_alloc+0xf0/0x6ff
[    3.323294]  test_out_of_bounds_read+0x9b/0x234
[    3.323768]  kunit_try_run_case+0x51/0x90
[    3.324189]  kunit_generic_run_threadfn_adapter+0x16/0x30
[    3.324751]  kthread+0x166/0x1a0
[    3.325092]  ret_from_fork+0x22/0x30
[    3.325475] 
[    3.325640] CPU: 3 PID: 110 Comm: kunit_try_catch Not tainted 5.11.0-rc2+ #1
[    3.326368] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-2 04/01/2014
[    3.327229] RIP: 0010:test_out_of_bounds_read+0xa6/0x234
[    3.327784] Code: 58 54 e8 29 e6 20 ff b9 01 00 00 00 48 89 de 4c 89 e7 ba c0 0c 00 00 45 31 f6 e8 4f e3 ff ff 49 89 c5 48 8d 40 ff 48 89 45 88 <41> 8a 45 ff 48 b8 01 00 00 00 44 01 00 00 48 89 45 a0 8b 05 12 b7
[    3.329702] RSP: 0000:ffffa226013dfe40 EFLAGS: 00010246
[    3.330250] RAX: ffff8c2aae231fff RBX: 0000000000000020 RCX: ffffffffa1f5add7
[    3.330986] RDX: ffff8c2783f0dd00 RSI: 0000000000000000 RDI: ffffa22600013d48
[    3.331721] RBP: ffffa226013dfec8 R08: 0000000000000160 R09: ffffffffa2ccf996
[    3.332561] R10: 0000000000000017 R11: 0000000000000002 R12: ffffa22600013d48
[    3.333420] R13: ffff8c2aae232000 R14: 0000000000000000 R15: ffffa22600013d60
[    3.334271] FS:  0000000000000000(0000) GS:ffff8c2aafcc0000(0000) knlGS:0000000000000000
[    3.335235] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    3.335935] CR2: ffff8c2aae231fff CR3: 000000034740c001 CR4: 0000000000770ee0
[    3.336793] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[    3.337653] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[    3.338509] PKRU: 55555554
[    3.338842] Call Trace:
[    3.339145]  ? test_out_of_bounds_write+0x148/0x148
[    3.339737]  ? preempt_count_add+0x63/0xa0
[    3.340238]  ? test_init_on_free+0x10/0x10
[    3.340735]  kunit_try_run_case+0x51/0x90
[    3.341227]  ? kunit_try_catch_throw+0x20/0x20
[    3.341769]  kunit_generic_run_threadfn_adapter+0x16/0x30
[    3.342425]  kthread+0x166/0x1a0
[    3.342821]  ? __kthread_bind_mask+0x80/0x80
[    3.343339]  ret_from_fork+0x22/0x30
[    3.343776] ==================================================================
