BUG: KASAN: vmalloc-out-of-bounds in i801_isr_byte_done drivers/i2c/busses/i2c-i801.c:593 [inline]
BUG: KASAN: vmalloc-out-of-bounds in i801_isr drivers/i2c/busses/i2c-i801.c:664 [inline]
BUG: KASAN: vmalloc-out-of-bounds in i801_isr+0xb2d/0xbf0 drivers/i2c/busses/i2c-i801.c:645
Write of size 1 at addr ffffc90000b67d78 by task blkid/15857
CPU: 1 PID: 15857 Comm: blkid Not tainted 5.9.0-rc2-syzkaller #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.12.0-59-gc9ba5276e321-prebuilt.qemu.org 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x18f/0x20d lib/dump_stack.c:118
print_address_description.constprop.0.cold+0x5/0x497 mm/kasan/report.c:383
__kasan_report mm/kasan/report.c:513 [inline]
kasan_report.cold+0x1f/0x37 mm/kasan/report.c:530
i801_isr_byte_done drivers/i2c/busses/i2c-i801.c:593 [inline]
i801_isr drivers/i2c/busses/i2c-i801.c:664 [inline]
i801_isr+0xb2d/0xbf0 drivers/i2c/busses/i2c-i801.c:645
__handle_irq_event_percpu+0x223/0xa30 kernel/irq/handle.c:156
handle_irq_event_percpu kernel/irq/handle.c:196 [inline]
handle_irq_event+0x102/0x285 kernel/irq/handle.c:213
handle_fasteoi_irq+0x22f/0x9f0 kernel/irq/chip.c:714
run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:50 [inline]
handle_irq arch/x86/kernel/irq.c:230 [inline]
__common_interrupt arch/x86/kernel/irq.c:249 [inline]
common_interrupt+0x96/0x1f0 arch/x86/kernel/irq.c:239
asm_common_interrupt+0x1e/0x40 arch/x86/include/asm/idtentry.h:572
RIP: 0010:__do_softirq+0x1c2/0xa24 kernel/softirq.c:284
Code: c7 c0 d8 3b b6 89 48 c1 e8 03 42 80 3c 30 00 0f 85 b9 07 00 00 48 83 3d 23 3a 96 01 00 0f 84 6f 06 00 00 fb 66 0f 1f 44 00 00 <48> c7 44 24 08 c0 90 a0 89 b8 ff ff ff ff 0f bc 04 24 83 c0 01 89
RSP: 0000:ffffc900004e8f70 EFLAGS: 00000286
RAX: 1ffffffff136c77b RBX: ffff88805f40c880 RCX: 1ffffffff1563f41
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff88200197
RBP: ffffc90000927d50 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000
asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:706
__run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline]
run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline]
do_softirq_own_stack+0x9d/0xd0 arch/x86/kernel/irq_64.c:77
invoke_softirq kernel/softirq.c:393 [inline]
__irq_exit_rcu kernel/softirq.c:423 [inline]
irq_exit_rcu+0x1f3/0x230 kernel/softirq.c:435
sysvec_apic_timer_interrupt+0x51/0xf0 arch/x86/kernel/apic/apic.c:1091
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:581
RIP: 0010:preempt_schedule_irq+0xa6/0x150 kernel/sched/core.c:4785
Code: 00 00 e8 4d 81 5a f9 e8 f8 bf 84 f9 4c 89 e8 48 c1 e8 03 80 3c 18 00 75 7a 48 83 3d 7b f5 c0 01 00 74 6c fb 66 0f 1f 44 00 00 01 00 00 00 e8 30 cf ff ff 48 c7 c0 d0 3b b6 89 48 c1 e8 03 80
RSP: 0000:ffffc90000927e58 EFLAGS: 00000286
RAX: 1ffffffff136c77b RBX: dffffc0000000000 RCX: 1ffffffff1563f41
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff87f54648
RBP: ffffed100be81910 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88805f40c880
R13: ffffffff89b63bd8 R14: 0000000000000000 R15: 0000000000000000
irqentry_exit_cond_resched kernel/entry/common.c:333 [inline]
irqentry_exit_cond_resched kernel/entry/common.c:325 [inline]
irqentry_exit+0x65/0x90 kernel/entry/common.c:363
asm_common_interrupt+0x1e/0x40 arch/x86/include/asm/idtentry.h:572
RIP: 0010:exit_to_user_mode_loop kernel/entry/common.c:126 [inline]
RIP: 0010:exit_to_user_mode_prepare+0xce/0x1c0 kernel/entry/common.c:167
Code: c3 0e 30 00 00 74 85 65 4c 8b 24 25 c0 fe 01 00 e8 77 12 17 00 48 83 3d 07 48 53 08 00 0f 84 c5 00 00 00 fb 66 0f 1f 44 00 00 c3 08 75 3e f6 c7 10 0f 85 83 00 00 00 f6 c3 04 75 74 83 e3 02
RSP: 0000:ffffc90000927f30 EFLAGS: 00000286
RAX: 000000000000092f RBX: 0000000000000008 RCX: 1ffffffff1563f41
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8162f3c9
RBP: ffffc90000927f58 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88805f40c880
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
irqentry_exit_to_user_mode+0x5/0x30 kernel/entry/common.c:255
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:581
RIP: 0033:0x7fb1a8ee1e62
Code: 88 b3 2f 00 44 8b 1d 89 b3 2f 00 41 83 fa 03 0f 8e 8b 01 00 00 31 ff 41 b9 04 00 00 00 0f 1f 00 89 f9 44 89 c8 83 c7 01 0f a2 1f 0f 84 6e 01 00 00 89 c2 c1 ea 05 83 e2 07 44 39 c2 75 e1 c1
RSP: 002b:00007ffc187fec40 EFLAGS: 00000202
RAX: 0000000004000122 RBX: 0000000001c0003f RCX: 000000000000003f
RDX: 0000000000000001 RSI: 0000000001000000 RDI: 0000000000000002
RBP: 0000000000008000 R08: 0000000000000003 R09: 0000000000000004
R10: 000000000000000d R11: 0000000001040800 R12: 00007fb1a91d4748
R13: 00007ffc187fed28 R14: 0000000000000002 R15: 0000000000000002
Memory state around the buggy address:
ffffc90000b67c00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
ffffc90000b67c80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
>ffffc90000b67d00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
^
ffffc90000b67d80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
ffffc90000b67e00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
==================================================================