Hay
Date
Dec. 5, 2024, 2:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   39.168295] ==================================================================
[   39.169066] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   39.169066] 
[   39.169968] Invalid free of 0x00000000d2b2d440 (in kfence-#148):
[   39.170661]  test_invalid_addr_free+0xec/0x238
[   39.171413]  kunit_try_run_case+0x14c/0x3d0
[   39.172014]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.172783]  kthread+0x24c/0x2d0
[   39.173321]  ret_from_fork+0x10/0x20
[   39.173901] 
[   39.174279] kfence-#148: 0x0000000086488266-0x000000007bcc31dd, size=32, cache=test
[   39.174279] 
[   39.175250] allocated by task 298 on cpu 0 at 39.168197s (0.007044s ago):
[   39.176161]  test_alloc+0x22c/0x620
[   39.176663]  test_invalid_addr_free+0xd4/0x238
[   39.177516]  kunit_try_run_case+0x14c/0x3d0
[   39.178110]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.178995]  kthread+0x24c/0x2d0
[   39.179506]  ret_from_fork+0x10/0x20
[   39.180102] 
[   39.180419] CPU: 0 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241205 #1
[   39.181644] Tainted: [B]=BAD_PAGE, [N]=TEST
[   39.182238] Hardware name: linux,dummy-virt (DT)
[   39.182838] ==================================================================
[   39.064033] ==================================================================
[   39.064912] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   39.064912] 
[   39.065785] Invalid free of 0x00000000864907c0 (in kfence-#147):
[   39.066572]  test_invalid_addr_free+0x1ac/0x238
[   39.067272]  kunit_try_run_case+0x14c/0x3d0
[   39.067903]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.068649]  kthread+0x24c/0x2d0
[   39.069180]  ret_from_fork+0x10/0x20
[   39.069677] 
[   39.070064] kfence-#147: 0x000000009a3cd0f5-0x00000000a6a3ca1b, size=32, cache=kmalloc-32
[   39.070064] 
[   39.071037] allocated by task 296 on cpu 0 at 39.063844s (0.007184s ago):
[   39.072111]  test_alloc+0x298/0x620
[   39.072602]  test_invalid_addr_free+0xd4/0x238
[   39.073428]  kunit_try_run_case+0x14c/0x3d0
[   39.074178]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.074900]  kthread+0x24c/0x2d0
[   39.075384]  ret_from_fork+0x10/0x20
[   39.076045] 
[   39.076471] CPU: 0 UID: 0 PID: 296 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241205 #1
[   39.077595] Tainted: [B]=BAD_PAGE, [N]=TEST
[   39.078282] Hardware name: linux,dummy-virt (DT)
[   39.078851] ==================================================================

[   37.245549] ==================================================================
[   37.246218] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e3/0x260
[   37.246218] 
[   37.246865] Invalid free of 0x(____ptrval____) (in kfence-#111):
[   37.247430]  test_invalid_addr_free+0x1e3/0x260
[   37.248006]  kunit_try_run_case+0x1b3/0x490
[   37.248401]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   37.248950]  kthread+0x257/0x310
[   37.249313]  ret_from_fork+0x41/0x80
[   37.249821]  ret_from_fork_asm+0x1a/0x30
[   37.250249] 
[   37.250508] kfence-#111: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   37.250508] 
[   37.251376] allocated by task 314 on cpu 1 at 37.245398s (0.005974s ago):
[   37.252045]  test_alloc+0x35f/0x10d0
[   37.252320]  test_invalid_addr_free+0xdc/0x260
[   37.252979]  kunit_try_run_case+0x1b3/0x490
[   37.253468]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   37.254114]  kthread+0x257/0x310
[   37.254381]  ret_from_fork+0x41/0x80
[   37.254854]  ret_from_fork_asm+0x1a/0x30
[   37.255279] 
[   37.255549] CPU: 1 UID: 0 PID: 314 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241205 #1
[   37.256513] Tainted: [B]=BAD_PAGE, [N]=TEST
[   37.257008] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   37.257510] ==================================================================
[   37.349535] ==================================================================
[   37.350323] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfc/0x260
[   37.350323] 
[   37.351032] Invalid free of 0x(____ptrval____) (in kfence-#112):
[   37.351487]  test_invalid_addr_free+0xfc/0x260
[   37.352110]  kunit_try_run_case+0x1b3/0x490
[   37.352523]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   37.352990]  kthread+0x257/0x310
[   37.353302]  ret_from_fork+0x41/0x80
[   37.353781]  ret_from_fork_asm+0x1a/0x30
[   37.354112] 
[   37.354379] kfence-#112: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   37.354379] 
[   37.355374] allocated by task 316 on cpu 1 at 37.349384s (0.005984s ago):
[   37.356211]  test_alloc+0x2a7/0x10d0
[   37.356523]  test_invalid_addr_free+0xdc/0x260
[   37.356872]  kunit_try_run_case+0x1b3/0x490
[   37.357441]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   37.357969]  kthread+0x257/0x310
[   37.358370]  ret_from_fork+0x41/0x80
[   37.358718]  ret_from_fork_asm+0x1a/0x30
[   37.359107] 
[   37.359310] CPU: 1 UID: 0 PID: 316 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241205 #1
[   37.360382] Tainted: [B]=BAD_PAGE, [N]=TEST
[   37.360715] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   37.361539] ==================================================================