Hay
Date
Nov. 28, 2024, 2:36 a.m.

Environment
qemu-arm64
qemu-x86_64

[   39.346400] ==================================================================
[   39.347091] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   39.347091] 
[   39.347864] Invalid free of 0x0000000078e637e1 (in kfence-#140):
[   39.348668]  test_double_free+0x1bc/0x238
[   39.349834]  kunit_try_run_case+0x14c/0x3d0
[   39.350409]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.351061]  kthread+0x24c/0x2d0
[   39.351563]  ret_from_fork+0x10/0x20
[   39.352151] 
[   39.352507] kfence-#140: 0x0000000078e637e1-0x000000007f56d0a4, size=32, cache=kmalloc-32
[   39.352507] 
[   39.353439] allocated by task 291 on cpu 0 at 39.345851s (0.007578s ago):
[   39.354260]  test_alloc+0x298/0x620
[   39.354816]  test_double_free+0xd4/0x238
[   39.355369]  kunit_try_run_case+0x14c/0x3d0
[   39.356010]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.356748]  kthread+0x24c/0x2d0
[   39.357287]  ret_from_fork+0x10/0x20
[   39.357839] 
[   39.358207] freed by task 291 on cpu 0 at 39.345974s (0.012221s ago):
[   39.358899]  test_double_free+0x1ac/0x238
[   39.359501]  kunit_try_run_case+0x14c/0x3d0
[   39.360038]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.360686]  kthread+0x24c/0x2d0
[   39.361248]  ret_from_fork+0x10/0x20
[   39.361816] 
[   39.362208] CPU: 0 UID: 0 PID: 291 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241128 #1
[   39.363292] Tainted: [B]=BAD_PAGE, [N]=TEST
[   39.363806] Hardware name: linux,dummy-virt (DT)
[   39.364308] ==================================================================
[   39.450240] ==================================================================
[   39.450931] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   39.450931] 
[   39.451716] Invalid free of 0x00000000b4af0662 (in kfence-#141):
[   39.453303]  test_double_free+0x100/0x238
[   39.453875]  kunit_try_run_case+0x14c/0x3d0
[   39.454759]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.455589]  kthread+0x24c/0x2d0
[   39.456258]  ret_from_fork+0x10/0x20
[   39.456809] 
[   39.457380] kfence-#141: 0x00000000b4af0662-0x00000000e4e7b9ad, size=32, cache=test
[   39.457380] 
[   39.458435] allocated by task 293 on cpu 1 at 39.449803s (0.008621s ago):
[   39.459582]  test_alloc+0x22c/0x620
[   39.460302]  test_double_free+0xd4/0x238
[   39.461015]  kunit_try_run_case+0x14c/0x3d0
[   39.461617]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.462564]  kthread+0x24c/0x2d0
[   39.463253]  ret_from_fork+0x10/0x20
[   39.463760] 
[   39.464408] freed by task 293 on cpu 1 at 39.449906s (0.014495s ago):
[   39.465214]  test_double_free+0xf0/0x238
[   39.465608]  kunit_try_run_case+0x14c/0x3d0
[   39.466238]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   39.466936]  kthread+0x24c/0x2d0
[   39.467415]  ret_from_fork+0x10/0x20
[   39.467927] 
[   39.468337] CPU: 1 UID: 0 PID: 293 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241128 #1
[   39.469362] Tainted: [B]=BAD_PAGE, [N]=TEST
[   39.469914] Hardware name: linux,dummy-virt (DT)
[   39.470459] ==================================================================

[   31.292227] ==================================================================
[   31.292781] BUG: KFENCE: invalid free in test_double_free+0x1d5/0x260
[   31.292781] 
[   31.293269] Invalid free of 0x(____ptrval____) (in kfence-#114):
[   31.293939]  test_double_free+0x1d5/0x260
[   31.294355]  kunit_try_run_case+0x1b3/0x490
[   31.294649]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.295264]  kthread+0x257/0x310
[   31.295718]  ret_from_fork+0x41/0x80
[   31.296100]  ret_from_fork_asm+0x1a/0x30
[   31.296458] 
[   31.296619] kfence-#114: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   31.296619] 
[   31.297687] allocated by task 311 on cpu 1 at 31.291822s (0.005861s ago):
[   31.298171]  test_alloc+0x35f/0x10d0
[   31.298547]  test_double_free+0xdc/0x260
[   31.299024]  kunit_try_run_case+0x1b3/0x490
[   31.299643]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.300177]  kthread+0x257/0x310
[   31.300536]  ret_from_fork+0x41/0x80
[   31.300859]  ret_from_fork_asm+0x1a/0x30
[   31.301387] 
[   31.301624] freed by task 311 on cpu 1 at 31.291923s (0.009697s ago):
[   31.302247]  test_double_free+0x1e2/0x260
[   31.302706]  kunit_try_run_case+0x1b3/0x490
[   31.303003]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.303694]  kthread+0x257/0x310
[   31.304164]  ret_from_fork+0x41/0x80
[   31.304507]  ret_from_fork_asm+0x1a/0x30
[   31.304973] 
[   31.305297] CPU: 1 UID: 0 PID: 311 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241128 #1
[   31.306176] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.306583] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   31.307194] ==================================================================
[   31.396044] ==================================================================
[   31.396743] BUG: KFENCE: invalid free in test_double_free+0x113/0x260
[   31.396743] 
[   31.397641] Invalid free of 0x(____ptrval____) (in kfence-#115):
[   31.399082]  test_double_free+0x113/0x260
[   31.399559]  kunit_try_run_case+0x1b3/0x490
[   31.399974]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.400653]  kthread+0x257/0x310
[   31.401131]  ret_from_fork+0x41/0x80
[   31.401578]  ret_from_fork_asm+0x1a/0x30
[   31.401909] 
[   31.402165] kfence-#115: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   31.402165] 
[   31.403009] allocated by task 313 on cpu 0 at 31.395776s (0.007229s ago):
[   31.403729]  test_alloc+0x2a7/0x10d0
[   31.404189]  test_double_free+0xdc/0x260
[   31.404568]  kunit_try_run_case+0x1b3/0x490
[   31.405241]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.405752]  kthread+0x257/0x310
[   31.406231]  ret_from_fork+0x41/0x80
[   31.406749]  ret_from_fork_asm+0x1a/0x30
[   31.407213] 
[   31.407484] freed by task 313 on cpu 0 at 31.395864s (0.011616s ago):
[   31.408229]  test_double_free+0xfb/0x260
[   31.408685]  kunit_try_run_case+0x1b3/0x490
[   31.409242]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.409833]  kthread+0x257/0x310
[   31.410352]  ret_from_fork+0x41/0x80
[   31.410740]  ret_from_fork_asm+0x1a/0x30
[   31.411443] 
[   31.411666] CPU: 0 UID: 0 PID: 313 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241128 #1
[   31.412752] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.413256] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   31.413923] ==================================================================