Hay
Date
Dec. 3, 2024, 11:38 p.m.

Environment
qemu-arm64
qemu-x86_64

[   40.224235] ==================================================================
[   40.224999] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   40.224999] 
[   40.225876] Invalid free of 0x00000000cc322a06 (in kfence-#156):
[   40.227443]  test_double_free+0x100/0x238
[   40.228185]  kunit_try_run_case+0x14c/0x3d0
[   40.228817]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   40.229746]  kthread+0x24c/0x2d0
[   40.230448]  ret_from_fork+0x10/0x20
[   40.230983] 
[   40.231345] kfence-#156: 0x00000000cc322a06-0x000000004f9cfd72, size=32, cache=test
[   40.231345] 
[   40.232837] allocated by task 294 on cpu 1 at 40.223835s (0.008990s ago):
[   40.233683]  test_alloc+0x22c/0x620
[   40.234214]  test_double_free+0xd4/0x238
[   40.234773]  kunit_try_run_case+0x14c/0x3d0
[   40.235697]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   40.236421]  kthread+0x24c/0x2d0
[   40.236916]  ret_from_fork+0x10/0x20
[   40.237463] 
[   40.237786] freed by task 294 on cpu 1 at 40.223937s (0.013838s ago):
[   40.238956]  test_double_free+0xf0/0x238
[   40.239589]  kunit_try_run_case+0x14c/0x3d0
[   40.240356]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   40.241175]  kthread+0x24c/0x2d0
[   40.241710]  ret_from_fork+0x10/0x20
[   40.242419] 
[   40.242706] CPU: 1 UID: 0 PID: 294 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241203 #1
[   40.244080] Tainted: [B]=BAD_PAGE, [N]=TEST
[   40.244712] Hardware name: linux,dummy-virt (DT)
[   40.245450] ==================================================================
[   40.120258] ==================================================================
[   40.121234] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   40.121234] 
[   40.122634] Invalid free of 0x000000007a7a8d17 (in kfence-#155):
[   40.123979]  test_double_free+0x1bc/0x238
[   40.124642]  kunit_try_run_case+0x14c/0x3d0
[   40.125258]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   40.126054]  kthread+0x24c/0x2d0
[   40.126617]  ret_from_fork+0x10/0x20
[   40.127196] 
[   40.127527] kfence-#155: 0x000000007a7a8d17-0x00000000d35f0b53, size=32, cache=kmalloc-32
[   40.127527] 
[   40.128686] allocated by task 292 on cpu 0 at 40.119804s (0.008873s ago):
[   40.129654]  test_alloc+0x298/0x620
[   40.130207]  test_double_free+0xd4/0x238
[   40.130854]  kunit_try_run_case+0x14c/0x3d0
[   40.131494]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   40.132127]  kthread+0x24c/0x2d0
[   40.132720]  ret_from_fork+0x10/0x20
[   40.133238] 
[   40.133646] freed by task 292 on cpu 0 at 40.119941s (0.013695s ago):
[   40.134562]  test_double_free+0x1ac/0x238
[   40.135133]  kunit_try_run_case+0x14c/0x3d0
[   40.135736]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   40.136565]  kthread+0x24c/0x2d0
[   40.137159]  ret_from_fork+0x10/0x20
[   40.137755] 
[   40.138091] CPU: 0 UID: 0 PID: 292 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241203 #1
[   40.139401] Tainted: [B]=BAD_PAGE, [N]=TEST
[   40.140088] Hardware name: linux,dummy-virt (DT)
[   40.140795] ==================================================================

[   34.810507] ==================================================================
[   34.811086] BUG: KFENCE: invalid free in test_double_free+0x113/0x260
[   34.811086] 
[   34.811697] Invalid free of 0x(____ptrval____) (in kfence-#140):
[   34.812148]  test_double_free+0x113/0x260
[   34.812442]  kunit_try_run_case+0x1b3/0x490
[   34.812870]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   34.813574]  kthread+0x257/0x310
[   34.813859]  ret_from_fork+0x41/0x80
[   34.814259]  ret_from_fork_asm+0x1a/0x30
[   34.814624] 
[   34.814964] kfence-#140: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   34.814964] 
[   34.815459] allocated by task 314 on cpu 1 at 34.810246s (0.005207s ago):
[   34.816221]  test_alloc+0x2a7/0x10d0
[   34.816570]  test_double_free+0xdc/0x260
[   34.817032]  kunit_try_run_case+0x1b3/0x490
[   34.817344]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   34.817833]  kthread+0x257/0x310
[   34.818184]  ret_from_fork+0x41/0x80
[   34.818444]  ret_from_fork_asm+0x1a/0x30
[   34.818825] 
[   34.819097] freed by task 314 on cpu 1 at 34.810332s (0.008759s ago):
[   34.819780]  test_double_free+0xfb/0x260
[   34.820088]  kunit_try_run_case+0x1b3/0x490
[   34.820459]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   34.820774]  kthread+0x257/0x310
[   34.821016]  ret_from_fork+0x41/0x80
[   34.821292]  ret_from_fork_asm+0x1a/0x30
[   34.821712] 
[   34.821970] CPU: 1 UID: 0 PID: 314 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241203 #1
[   34.823050] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.823492] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   34.824267] ==================================================================
[   34.706649] ==================================================================
[   34.707277] BUG: KFENCE: invalid free in test_double_free+0x1d5/0x260
[   34.707277] 
[   34.707968] Invalid free of 0x(____ptrval____) (in kfence-#139):
[   34.708477]  test_double_free+0x1d5/0x260
[   34.709045]  kunit_try_run_case+0x1b3/0x490
[   34.709354]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   34.709743]  kthread+0x257/0x310
[   34.710104]  ret_from_fork+0x41/0x80
[   34.710510]  ret_from_fork_asm+0x1a/0x30
[   34.710884] 
[   34.711109] kfence-#139: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   34.711109] 
[   34.711625] allocated by task 312 on cpu 1 at 34.706245s (0.005375s ago):
[   34.712349]  test_alloc+0x35f/0x10d0
[   34.712884]  test_double_free+0xdc/0x260
[   34.713302]  kunit_try_run_case+0x1b3/0x490
[   34.713767]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   34.714132]  kthread+0x257/0x310
[   34.714366]  ret_from_fork+0x41/0x80
[   34.714775]  ret_from_fork_asm+0x1a/0x30
[   34.715220] 
[   34.715424] freed by task 312 on cpu 1 at 34.706357s (0.009061s ago):
[   34.715854]  test_double_free+0x1e2/0x260
[   34.716165]  kunit_try_run_case+0x1b3/0x490
[   34.716629]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   34.717134]  kthread+0x257/0x310
[   34.717510]  ret_from_fork+0x41/0x80
[   34.717849]  ret_from_fork_asm+0x1a/0x30
[   34.718186] 
[   34.718379] CPU: 1 UID: 0 PID: 312 Comm: kunit_try_catch Tainted: G    B            N 6.13.0-rc1-next-20241203 #1
[   34.719262] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.719862] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   34.720506] ==================================================================