Hay
Date
Nov. 27, 2024, 3:37 a.m.

Environment
qemu-arm64
qemu-x86_64

[   57.693827] ==================================================================
[   57.694618] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   57.694618] 
[   57.695468] Invalid free of 0x00000000c60e739b (in kfence-#168):
[   57.696174]  test_invalid_addr_free+0xec/0x238
[   57.697059]  kunit_try_run_case+0x14c/0x3d0
[   57.697996]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   57.698664]  kthread+0x24c/0x2d0
[   57.699164]  ret_from_fork+0x10/0x20
[   57.699785] 
[   57.700065] kfence-#168: 0x00000000bae47ff0-0x00000000cd90d9ed, size=32, cache=test
[   57.700065] 
[   57.701352] allocated by task 298 on cpu 1 at 57.693672s (0.007671s ago):
[   57.702198]  test_alloc+0x22c/0x620
[   57.702745]  test_invalid_addr_free+0xd4/0x238
[   57.703515]  kunit_try_run_case+0x14c/0x3d0
[   57.704238]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   57.704915]  kthread+0x24c/0x2d0
[   57.705521]  ret_from_fork+0x10/0x20
[   57.706011] 
[   57.706423] CPU: 1 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241127 #1
[   57.707648] Tainted: [B]=BAD_PAGE, [N]=TEST
[   57.708171] Hardware name: linux,dummy-virt (DT)
[   57.708811] ==================================================================
[   57.590077] ==================================================================
[   57.590862] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   57.590862] 
[   57.591876] Invalid free of 0x000000008712e942 (in kfence-#167):
[   57.592775]  test_invalid_addr_free+0x1ac/0x238
[   57.593421]  kunit_try_run_case+0x14c/0x3d0
[   57.594238]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   57.594964]  kthread+0x24c/0x2d0
[   57.595631]  ret_from_fork+0x10/0x20
[   57.596394] 
[   57.596730] kfence-#167: 0x0000000083b6f074-0x00000000b777f08a, size=32, cache=kmalloc-32
[   57.596730] 
[   57.597782] allocated by task 296 on cpu 1 at 57.589839s (0.007934s ago):
[   57.598708]  test_alloc+0x298/0x620
[   57.599406]  test_invalid_addr_free+0xd4/0x238
[   57.599948]  kunit_try_run_case+0x14c/0x3d0
[   57.600639]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   57.601324]  kthread+0x24c/0x2d0
[   57.601906]  ret_from_fork+0x10/0x20
[   57.602482] 
[   57.602832] CPU: 1 UID: 0 PID: 296 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241127 #1
[   57.603924] Tainted: [B]=BAD_PAGE, [N]=TEST
[   57.604581] Hardware name: linux,dummy-virt (DT)
[   57.605182] ==================================================================

[   35.453504] ==================================================================
[   35.454174] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e3/0x260
[   35.454174] 
[   35.455037] Invalid free of 0x(____ptrval____) (in kfence-#111):
[   35.455529]  test_invalid_addr_free+0x1e3/0x260
[   35.456006]  kunit_try_run_case+0x1b3/0x490
[   35.456425]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   35.456881]  kthread+0x257/0x310
[   35.457587]  ret_from_fork+0x41/0x80
[   35.458315]  ret_from_fork_asm+0x1a/0x30
[   35.459078] 
[   35.459475] kfence-#111: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   35.459475] 
[   35.460848] allocated by task 315 on cpu 1 at 35.453377s (0.007467s ago):
[   35.461575]  test_alloc+0x35f/0x10d0
[   35.462125]  test_invalid_addr_free+0xdc/0x260
[   35.462532]  kunit_try_run_case+0x1b3/0x490
[   35.463060]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   35.463501]  kthread+0x257/0x310
[   35.463887]  ret_from_fork+0x41/0x80
[   35.464472]  ret_from_fork_asm+0x1a/0x30
[   35.464904] 
[   35.465186] CPU: 1 UID: 0 PID: 315 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241127 #1
[   35.466188] Tainted: [B]=BAD_PAGE, [N]=TEST
[   35.466585] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   35.467495] ==================================================================
[   35.557349] ==================================================================
[   35.557912] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfc/0x260
[   35.557912] 
[   35.558650] Invalid free of 0x(____ptrval____) (in kfence-#112):
[   35.559300]  test_invalid_addr_free+0xfc/0x260
[   35.559755]  kunit_try_run_case+0x1b3/0x490
[   35.560322]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   35.560797]  kthread+0x257/0x310
[   35.561081]  ret_from_fork+0x41/0x80
[   35.561525]  ret_from_fork_asm+0x1a/0x30
[   35.562155] 
[   35.562362] kfence-#112: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   35.562362] 
[   35.563070] allocated by task 317 on cpu 0 at 35.557261s (0.005805s ago):
[   35.563600]  test_alloc+0x2a7/0x10d0
[   35.563931]  test_invalid_addr_free+0xdc/0x260
[   35.564512]  kunit_try_run_case+0x1b3/0x490
[   35.565015]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   35.565425]  kthread+0x257/0x310
[   35.565678]  ret_from_fork+0x41/0x80
[   35.566181]  ret_from_fork_asm+0x1a/0x30
[   35.566699] 
[   35.566903] CPU: 0 UID: 0 PID: 317 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241127 #1
[   35.567783] Tainted: [B]=BAD_PAGE, [N]=TEST
[   35.568082] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   35.569062] ==================================================================