xfstests - ext4: BUG: KASAN: slab-use-after-free in bfq_setup_stable_merge+0x50/0x1c0
Snippet of test failure
# https://s3.us-east-1.amazonaws.com/arr-cki-prod-datawarehouse-public/datawarehouse-public/3833560278/redhat:788688033/build_x86_64_redhat:788688033-x86_64-kernel-debug/tests/3/results_0001/job.01/recipes/13455929/tasks/6/logs/generic-391.dmesg
[ 6443.174496] ./checking generic/391
[ 6446.299584] EXT4-fs (sda4): mounted filesystem 0a7adfdc-4ae7-4246-b0be-61f4c90e8be3 with ordered data mode. Quota mode: none.
[ 6449.620034] EXT4-fs (sda5): mounted filesystem 7e87cea1-fc18-4196-bb29-17afc860f6ad with ordered data mode. Quota mode: none.
[ 6449.730093] EXT4-fs (sda5): unmounting filesystem 7e87cea1-fc18-4196-bb29-17afc860f6ad.
[ 6450.089804] EXT4-fs (sda4): unmounting filesystem 0a7adfdc-4ae7-4246-b0be-61f4c90e8be3.
[ 6450.601841] EXT4-fs (sda4): mounted filesystem 0a7adfdc-4ae7-4246-b0be-61f4c90e8be3 with ordered data mode. Quota mode: none.
[ 6451.220003] run fstests generic/391 at 2023-02-25 03:03:09
[ 6523.585208] 391 (137642): drop_caches: 3
[ 6524.966470] EXT4-fs (sda4): unmounting filesystem 0a7adfdc-4ae7-4246-b0be-61f4c90e8be3.
[ 6525.753556] EXT4-fs (sda4): mounted filesystem 0a7adfdc-4ae7-4246-b0be-61f4c90e8be3 with ordered data mode. Quota mode: none.
[ 6525.801926] ==================================================================
[ 6525.809998] BUG: KASAN: slab-use-after-free in bfq_setup_stable_merge+0x50/0x1c0
[ 6525.818266] Read of size 1 at addr ffff888157c52da8 by task kworker/1:182/13510
[ 6525.828096] CPU: 1 PID: 13510 Comm: kworker/1:182 Not tainted 6.2.0 #1
[ 6525.835397] Hardware name: Dell Inc. PowerEdge R720/0X3D66, BIOS 2.7.0 05/23/2018
[ 6525.843752] Workqueue: xfs-inodegc/sda7 xfs_inodegc_worker [xfs]
[ 6525.851263] Call Trace:
[ 6525.853995] <TASK>
[ 6525.856340] dump_stack_lvl+0x5a/0x80
[ 6525.860428] print_report+0x17f/0x570
[ 6525.864523] ? do_raw_spin_lock+0xd8/0x160
[ 6525.869103] ? __virt_addr_valid+0xe1/0x160
[ 6525.873783] ? bfq_setup_stable_merge+0x50/0x1c0
[ 6525.878943] kasan_report+0x15e/0x190
[ 6525.883036] ? bfqg_and_blkg_put+0xee/0x180
[ 6525.887713] ? bfq_setup_stable_merge+0x50/0x1c0
[ 6525.892878] bfq_setup_stable_merge+0x50/0x1c0
[ 6525.897848] bfq_insert_requests+0x13b2/0x3020
[ 6525.902830] blk_mq_sched_insert_requests+0x145/0x4b0
[ 6525.908480] blk_mq_flush_plug_list+0xc8/0x6b0
[ 6525.913451] __blk_flush_plug+0x1fb/0x240
[ 6525.917932] ? xfs_buf_ioapply_map+0x271/0x2e0 [xfs]
[ 6525.924245] blk_finish_plug+0x37/0x50
[ 6525.928437] _xfs_buf_ioapply+0x140/0x2c0 [xfs]
[ 6525.934265] __xfs_buf_submit+0x1f3/0x400 [xfs]
[ 6525.940130] xfs_buf_read_map+0x22d/0x4f0 [xfs]
[ 6525.945992] ? xfs_btree_read_buf_block+0x13d/0x1b0 [xfs]
[ 6525.952821] xfs_trans_read_buf_map+0x16e/0x560 [xfs]
[ 6525.959257] ? xfs_btree_read_buf_block+0x13d/0x1b0 [xfs]
[ 6525.966077] xfs_btree_read_buf_block+0x13d/0x1b0 [xfs]
[ 6525.972733] xfs_btree_lookup_get_block+0x14c/0x2b0 [xfs]
[ 6525.979562] xfs_btree_lookup+0x1c5/0x760 [xfs]
[ 6525.985430] ? xfs_inobt_init_cursor+0x16d/0x190 [xfs]
[ 6525.991968] xfs_difree_inobt+0xc5/0x5a0 [xfs]
[ 6525.997883] xfs_difree+0x1e0/0x250 [xfs]
[ 6526.003164] xfs_ifree+0xc1/0x980 [xfs]
[ 6526.008246] ? lock_is_held_type+0xda/0x140
[ 6526.012925] ? __down_write_common+0xdf/0x140
[ 6526.017797] ? __down_write_common+0xdf/0x140
[ 6526.022668] ? lock_is_held_type+0xda/0x140
[ 6526.027339] ? rcu_read_lock_sched_held+0x34/0x70
[ 6526.032591] xfs_inactive_ifree+0xf8/0x240 [xfs]
[ 6526.038547] xfs_inactive+0x251/0x260 [xfs]
[ 6526.044017] xfs_inodegc_worker+0x15b/0x3e0 [xfs]
[ 6526.050085] process_one_work+0x480/0x8a0
[ 6526.054580] worker_thread+0x47e/0x7c0
[ 6526.058774] ? __pfx_worker_thread+0x10/0x10
[ 6526.063549] kthread+0x17d/0x1a0
[ 6526.067150] ? __pfx_kthread+0x10/0x10
[ 6526.071342] ret_from_fork+0x2c/0x50
[ 6526.075358] </TASK>
Test logs on DataWarehouse
DataWarehouse issue
Additional details
N/A
In case opening the links above result in a 404 page on DataWarehouse, please make sure you are correctly logged into DataWarehouse via Red Hat SSO.