================================================================== BUG: KASAN: out-of-bounds in i801_isr_byte_done drivers/i2c/busses/i2c-i801.c:608 [inline] BUG: KASAN: out-of-bounds in i801_isr drivers/i2c/busses/i2c-i801.c:668 [inline] BUG: KASAN: out-of-bounds in i801_isr+0xc70/0xd60 drivers/i2c/busses/i2c-i801.c:649 Read of size 1 at addr ffffc9000d73fd58 by task syz-executor.3/14605 CPU: 2 PID: 14605 Comm: syz-executor.3 Not tainted 5.13.0-rc6-syzkaller #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x141/0x1d7 lib/dump_stack.c:120 print_address_description.constprop.0.cold+0x5/0x2f8 mm/kasan/report.c:233 __kasan_report mm/kasan/report.c:419 [inline] kasan_report.cold+0x7c/0xd8 mm/kasan/report.c:436 i801_isr_byte_done drivers/i2c/busses/i2c-i801.c:608 [inline] i801_isr drivers/i2c/busses/i2c-i801.c:668 [inline] i801_isr+0xc70/0xd60 drivers/i2c/busses/i2c-i801.c:649 __handle_irq_event_percpu+0x303/0x8f0 kernel/irq/handle.c:156 handle_irq_event_percpu kernel/irq/handle.c:196 [inline] handle_irq_event+0x102/0x290 kernel/irq/handle.c:213 handle_fasteoi_irq+0x22f/0x9f0 kernel/irq/chip.c:714 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline] handle_irq arch/x86/kernel/irq.c:231 [inline] __common_interrupt+0x9e/0x200 arch/x86/kernel/irq.c:250 common_interrupt+0x4c/0xd0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x1e/0x40 arch/x86/include/asm/idtentry.h:638 RIP: 0010:__do_softirq+0x196/0x9f6 kernel/softirq.c:545 Code: 00 48 01 f0 48 89 44 24 18 48 c7 c7 20 55 6a 89 e8 7f 99 d6 ff 65 66 c7 05 b5 4a c3 76 00 00 e8 20 ea 3a f8 fb b8 ff ff ff ff <48> c7 c3 c0 a0 c0 8b 41 0f bc c5 41 89 c7 41 83 c7 01 75 47 e9 d2 RSP: 0018:ffffc90000550f70 EFLAGS: 00000202 RAX: 00000000ffffffff RBX: ffff888017d4b880 RCX: 1ffffffff2045d0a RDX: 0000000000000000 RSI: 0000000000000102 RDI: 0000000000000000 RBP: ffff888011ac9c40 R08: 0000000000000001 R09: ffffffff902278b7 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000 R13: 0000000000000002 R14: 0000000000000000 R15: 0000000000000000 invoke_softirq kernel/softirq.c:433 [inline] __irq_exit_rcu+0x136/0x200 kernel/softirq.c:637 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:647 RIP: 0010:perf_trace_lock+0xce/0x4d0 include/trace/events/lock.h:39 Code: 89 48 85 ff 48 0f 44 f8 e8 ff 99 90 02 49 8d 7d 78 49 89 c4 48 89 fa 8d 40 01 48 c1 ea 03 c1 e0 10 83 c8 18 89 85 40 ff ff ff <48> b8 00 00 00 00 00 fc ff df 80 3c 02 00 0f 85 d5 02 00 00 49 8b RSP: 0018:ffffc9000d2af800 EFLAGS: 00000206 RAX: 00000000000e0018 RBX: ffff888078ad9610 RCX: 0000000000000005 RDX: 1ffffffff17ced07 RSI: ffffffff8bf79620 RDI: ffffffff8be76838 RBP: ffffc9000d2af8d8 R08: 0000000000000000 R09: ffffffff8dc96957 R10: fffffbfff1b92d2a R11: 0000000000000000 R12: 000000000000000d R13: ffffffff8be767c0 R14: ffffffff8bf79620 R15: ffffc9000d2af8b0 trace_lock_release include/trace/events/lock.h:58 [inline] lock_release+0x4a8/0x720 kernel/locking/lockdep.c:5523 zap_pte_range mm/memory.c:1270 [inline] zap_pmd_range mm/memory.c:1374 [inline] zap_pud_range mm/memory.c:1403 [inline] zap_p4d_range mm/memory.c:1424 [inline] unmap_page_range+0xe30/0x2650 mm/memory.c:1445 unmap_single_vma+0x198/0x300 mm/memory.c:1490 unmap_vmas+0x16d/0x2f0 mm/memory.c:1522 exit_mmap+0x2a8/0x590 mm/mmap.c:3208 __mmput+0x122/0x470 kernel/fork.c:1096 mmput+0x58/0x60 kernel/fork.c:1117 exit_mm kernel/exit.c:502 [inline] do_exit+0xb0a/0x2a60 kernel/exit.c:813 do_group_exit+0x125/0x310 kernel/exit.c:923 __do_sys_exit_group kernel/exit.c:934 [inline] __se_sys_exit_group kernel/exit.c:932 [inline] __ia32_sys_exit_group+0x3a/0x50 kernel/exit.c:932 do_syscall_32_irqs_on arch/x86/entry/common.c:78 [inline] __do_fast_syscall_32+0x67/0xe0 arch/x86/entry/common.c:143 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:168 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7f5b549 Code: Unable to access opcode bytes at RIP 0xf7f5b51f. RSP: 002b:00000000ff86511c EFLAGS: 00000286 ORIG_RAX: 00000000000000fc RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000000000 RDX: 00000000ffffffff RSI: 0000000000000003 RDI: 000000000816c000 RBP: 000000000000001e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Memory state around the buggy address: ffffc9000d73fc00: f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 00 00 ffffc9000d73fc80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc9000d73fd00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffffc9000d73fd80: 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 ffffc9000d73fe00: f2 f2 f2 00 00 00 00 00 00 00 00 00 00 00 f3 f3 ==================================================================