sr 1:0:0:0: [sr0] tag#0 unaligned transfer
blk_print_req_error: 119 callbacks suppressed
I/O error, dev sr0, sector 0 op 0x0:(READ) flags 0x800000 phys_seg 1 prio class 2
==================================================================
BUG: KASAN: slab-use-after-free in __blk_rq_map_sg+0x67b/0x740
Read of size 8 at addr ffff8880098cfb80 by task kworker/1:0H/24
CPU: 1 UID: 0 PID: 24 Comm: kworker/1:0H Not tainted 6.19.0-rc4-next-20260109 #1 PREEMPT(voluntary)
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
Workqueue: kblockd blk_mq_run_work_fn
Call Trace:
dump_stack_lvl+0xca/0x120
print_report+0xcb/0x610
kasan_report+0xca/0x100
__blk_rq_map_sg+0x67b/0x740
scsi_alloc_sgtables+0x206/0xc30
sd_init_command+0x8d8/0x30e0
scsi_queue_rq+0x133b/0x3280
blk_mq_dispatch_rq_list+0x3ad/0x1c00
__blk_mq_sched_dispatch_requests+0xc37/0x13e0
blk_mq_sched_dispatch_requests+0xd7/0x1b0
blk_mq_run_work_fn+0x1f9/0x380
process_one_work+0x8e1/0x1960
worker_thread+0x67e/0xe90
kthread+0x385/0x490
ret_from_fork+0x67a/0x7a0
ret_from_fork_asm+0x1a/0x30
Allocated by task 4360:
kasan_save_stack+0x24/0x50
kasan_save_track+0x14/0x30
__kasan_slab_alloc+0x59/0x70
kmem_cache_alloc_noprof+0x212/0x760
mempool_alloc_noprof+0x1b3/0x300
__sg_alloc_table+0x252/0x390
sg_alloc_table_chained+0x9f/0x1f0
scsi_alloc_sgtables+0x1bb/0xc30
sd_init_command+0x8d8/0x30e0
scsi_queue_rq+0x133b/0x3280
blk_mq_dispatch_rq_list+0x3ad/0x1c00
__blk_mq_sched_dispatch_requests+0x212/0x13e0
blk_mq_sched_dispatch_requests+0xd7/0x1b0
blk_mq_run_hw_queue+0x3bd/0x640
blk_mq_get_tag+0x4f9/0xaa0
__blk_mq_alloc_requests+0xa84/0x1640
blk_mq_submit_bio+0x1927/0x2440
__submit_bio+0x17f/0x5b0
submit_bio_noacct_nocheck+0x4f5/0xb40
submit_bio_noacct+0x35b/0x1330
ext4_mpage_readpages+0x614/0x1250
ext4_readahead+0x106/0x140
read_pages+0x196/0xb10
page_cache_ra_unbounded+0x3e8/0x840
page_cache_ra_order+0x3f6/0x4c0
page_cache_sync_ra+0x668/0xbc0
filemap_get_pages+0x353/0x18b0
filemap_splice_read+0x5c4/0xd10
ext4_file_splice_read+0xfd/0x150
do_splice_read+0x1f8/0x2a0
splice_direct_to_actor+0x2a8/0x9d0
do_splice_direct+0x179/0x250
do_sendfile+0xa8e/0xdc0
__x64_sys_sendfile64+0x1d3/0x210
do_syscall_64+0xbf/0x420
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Freed by task 292:
kasan_save_stack+0x24/0x50
kasan_save_track+0x14/0x30
kasan_save_free_info+0x3a/0x60
__kasan_slab_free+0x43/0x70
kmem_cache_free+0x2cd/0x660
mempool_free+0xdb/0x130
__sg_free_table+0x125/0x1a0
sg_free_table_chained+0x8d/0xa0
scsi_end_request+0x5ac/0x9e0
scsi_io_completion+0xbf/0x1620
scsi_complete+0x37c/0x680
blk_complete_reqs+0xb2/0xf0
handle_softirqs+0x1b1/0x7d0
__irq_exit_rcu+0xc4/0x100
irq_exit_rcu+0x9/0x20
sysvec_call_function_single+0xa6/0xc0
asm_sysvec_call_function_single+0x1a/0x20
The buggy address belongs to the object at ffff8880098cfb80
which belongs to the cache sgpool-16 of size 512
The buggy address is located 0 bytes inside of
freed 512-byte region [ffff8880098cfb80, ffff8880098cfd80)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x98ce
head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
anon flags: 0x100000000000040(head|node=0|zone=1)
page_type: f5(slab)
raw: 0100000000000040 ffff888009d9c3c0 0000000000000000 0000000000000001
raw: 0000000000000000 00000000800c000c 00000000f5000000 0000000000000000
head: 0100000000000040 ffff888009d9c3c0 0000000000000000 0000000000000001
head: 0000000000000000 00000000800c000c 00000000f5000000 0000000000000000
head: 0100000000000001 ffffea0000263381 00000000ffffffff 00000000ffffffff
head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000002
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff8880098cfa80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff8880098cfb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff8880098cfb80: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff8880098cfc00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff8880098cfc80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
------------[ cut here ]------------
WARNING: block/blk-mq-dma.c:309 at __blk_rq_map_sg+0x636/0x740, CPU#1: kworker/1:0H/24
Modules linked in:
CPU: 1 UID: 0 PID: 24 Comm: kworker/1:0H Tainted: G B 6.19.0-rc4-next-20260109 #1 PREEMPT(voluntary)
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
Workqueue: kblockd blk_mq_run_work_fn
RIP: 0010:__blk_rq_map_sg+0x636/0x740
Code: ff ff e8 dd 28 30 ff b9 06 00 00 00 48 89 d8 48 8d bc 24 98 00 00 00 48 89 7c 24 20 f3 48 ab e9 fd fa ff ff e8 bb 28 30 ff 90 <0f> 0b 90 e9 f8 fd ff ff 48 89 cf e8 aa 6c 6e ff e9 66 fa ff ff 48
RSP: 0018:ffff888009b6f670 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffffffff8245502e
RDX: ffff888009b60000 RSI: ffffffff82455235 RDI: 0000000000000004
RBP: 0000000000000001 R08: 0000000000000001 R09: fffffbfff0f64698
R10: 0000000000000001 R11: 0000000000000001 R12: dffffc0000000000
R13: 0000000000000e00 R14: ffff88800bc6b000 R15: ffff888009b6f7f8
FS: 0000000000000000(0000) GS:ffff8880e544a000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000556a13e752e8 CR3: 0000000013de8000 CR4: 0000000000350ef0
Call Trace:
scsi_alloc_sgtables+0x206/0xc30
sd_init_command+0x8d8/0x30e0
scsi_queue_rq+0x133b/0x3280
blk_mq_dispatch_rq_list+0x3ad/0x1c00
__blk_mq_sched_dispatch_requests+0xc37/0x13e0
blk_mq_sched_dispatch_requests+0xd7/0x1b0
blk_mq_run_work_fn+0x1f9/0x380
process_one_work+0x8e1/0x1960
worker_thread+0x67e/0xe90
sr 1:0:0:0: [sr0] tag#0 unaligned transfer
kthread+0x385/0x490
I/O error, dev sr0, sector 0 op 0x0:(READ) flags 0x800000 phys_seg 1 prio class 2
ret_from_fork+0x67a/0x7a0
ret_from_fork_asm+0x1a/0x30
irq event stamp: 32965
hardirqs last enabled at (32965): [] irqentry_exit+0x17b/0x650
hardirqs last disabled at (32964): [] handle_softirqs+0x65e/0x7d0
softirqs last enabled at (32610): [] __irq_exit_rcu+0xc4/0x100
softirqs last disabled at (32567): [] __irq_exit_rcu+0xc4/0x100
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
kernel BUG at drivers/scsi/scsi_lib.c:1173!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 1 UID: 0 PID: 24 Comm: kworker/1:0H Tainted: G B W 6.19.0-rc4-next-20260109 #1 PREEMPT(voluntary)
Tainted: [B]=BAD_PAGE, [W]=WARN
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
Workqueue: kblockd blk_mq_run_work_fn
RIP: 0010:scsi_alloc_sgtables+0xa32/0xc30
Code: e9 71 f7 ff ff e8 8e 14 32 fe 90 0f 0b 90 41 bc 0a 00 00 00 e9 c8 fc ff ff 41 bc 09 00 00 00 e9 bd fc ff ff e8 6f 14 32 fe 90 <0f> 0b 45 31 f6 e9 b7 f9 ff ff e8 5f 14 32 fe be 01 00 00 00 31 ff
RSP: 0018:ffff888009b6f7b0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88800bc6b0f8 RCX: ffffffff8343629d
RDX: ffff888009b60000 RSI: ffffffff83436681 RDI: 0000000000000004
RBP: 0000000000000002 R08: 0000000000000001 R09: fffffbfff0f64698
R10: 0000000000000002 R11: 0000000000000001 R12: 0000000000000001
R13: ffff88800bc6b01c R14: 0000000000000000 R15: 0000000000000000
FS: 0000000000000000(0000) GS:ffff8880e544a000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000556a13e752e8 CR3: 0000000013de8000 CR4: 0000000000350ef0
Call Trace:
sd_init_command+0x8d8/0x30e0
scsi_queue_rq+0x133b/0x3280
blk_mq_dispatch_rq_list+0x3ad/0x1c00
__blk_mq_sched_dispatch_requests+0xc37/0x13e0
blk_mq_sched_dispatch_requests+0xd7/0x1b0
blk_mq_run_work_fn+0x1f9/0x380
process_one_work+0x8e1/0x1960
worker_thread+0x67e/0xe90
kthread+0x385/0x490
ret_from_fork+0x67a/0x7a0
ret_from_fork_asm+0x1a/0x30
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:scsi_alloc_sgtables+0xa32/0xc30
Code: e9 71 f7 ff ff e8 8e 14 32 fe 90 0f 0b 90 41 bc 0a 00 00 00 e9 c8 fc ff ff 41 bc 09 00 00 00 e9 bd fc ff ff e8 6f 14 32 fe 90 <0f> 0b 45 31 f6 e9 b7 f9 ff ff e8 5f 14 32 fe be 01 00 00 00 31 ff
RSP: 0018:ffff888009b6f7b0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88800bc6b0f8 RCX: ffffffff8343629d
RDX: ffff888009b60000 RSI: ffffffff83436681 RDI: 0000000000000004
RBP: 0000000000000002 R08: 0000000000000001 R09: fffffbfff0f64698
R10: 0000000000000002 R11: 0000000000000001 R12: 0000000000000001
R13: ffff88800bc6b01c R14: 0000000000000000 R15: 0000000000000000
FS: 0000000000000000(0000) GS:ffff8880e544a000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000556a13e752e8 CR3: 0000000013de8000 CR4: 0000000000350ef0
BUG: sleeping function called from invalid context at ./include/linux/percpu-rwsem.h:51
in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 24, name: kworker/1:0H
preempt_count: 0, expected: 0
RCU nest depth: 1, expected: 0
INFO: lockdep is turned off.
CPU: 1 UID: 0 PID: 24 Comm: kworker/1:0H Tainted: G B D W 6.19.0-rc4-next-20260109 #1 PREEMPT(voluntary)
Tainted: [B]=BAD_PAGE, [D]=DIE, [W]=WARN
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
Workqueue: kblockd blk_mq_run_work_fn
Call Trace:
dump_stack_lvl+0xfa/0x120
__might_resched+0x2f3/0x510
exit_signals+0x2b/0xae0
do_exit+0x2e3/0x2950
make_task_dead+0x174/0x3b0
rewind_stack_and_make_dead+0x16/0x20
RIP: 0000:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0000:0000000000000000 EFLAGS: 00000000 ORIG_RAX: 0000000000000000
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000