================================================================== BUG: KASAN: stack-out-of-bounds in i801_isr_byte_done drivers/i2c/busses/i2c-i801.c:597 [inline] BUG: KASAN: stack-out-of-bounds in i801_isr drivers/i2c/busses/i2c-i801.c:668 [inline] BUG: KASAN: stack-out-of-bounds in i801_isr+0xcfe/0xd60 drivers/i2c/busses/i2c-i801.c:649 Write of size 1 at addr ffffc900025e7db8 by task syz-executor.0/9802 CPU: 1 PID: 9802 Comm: syz-executor.0 Not tainted 5.13.0-rc4-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/0x2c6 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:597 [inline] i801_isr drivers/i2c/busses/i2c-i801.c:668 [inline] i801_isr+0xcfe/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 a0 3e 6a 89 e8 ff a8 d6 ff 65 66 c7 05 b5 4b c3 76 00 00 e8 50 20 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:ffffc90000518f70 EFLAGS: 00000216 RAX: 00000000ffffffff RBX: ffff88806ba98000 RCX: 1ffffffff2046752 RDX: 0000000000000000 RSI: 0000000000000101 RDI: 0000000000000000 RBP: ffff888011cbe280 R08: 0000000000000001 R09: ffffffff9022c8b7 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000 R13: 0000000000000100 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:lock_release+0x3f1/0x720 kernel/locking/lockdep.c:5520 Code: 7e 83 f8 01 0f 85 83 01 00 00 9c 58 f6 c4 02 0f 85 6e 01 00 00 48 f7 04 24 00 02 00 00 74 01 fb 48 b8 00 00 00 00 00 fc ff df <48> 01 c5 48 c7 45 00 00 00 00 00 c7 45 08 00 00 00 00 48 8b 84 24 RSP: 0018:ffffc900067876b8 EFLAGS: 00000206 RAX: dffffc0000000000 RBX: 07b81204c4a70325 RCX: ffffc90006787708 RDX: 1ffff1100d75313d RSI: 0000000000000001 RDI: 0000000000000000 RBP: 1ffff92000cf0ed9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001 R13: 0000000000000002 R14: ffff88806ba989f0 R15: ffff88806ba98000 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 get_signal+0x47f/0x2150 kernel/signal.c:2835 arch_do_signal_or_restart+0x2a8/0x1eb0 arch/x86/kernel/signal.c:789 handle_signal_work kernel/entry/common.c:147 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x171/0x280 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:301 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:57 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665d9 Code: Unable to access opcode bytes at RIP 0x4665af. RSP: 002b:00007f2227e2e218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: 0000000000000001 RBX: 000000000056bf88 RCX: 00000000004665d9 RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 000000000056bf8c RBP: 000000000056bf80 R08: 000000000000005e R09: 0000000000000000 R10: ffffffffffffffff R11: 0000000000000246 R12: 000000000056bf8c R13: 00007fff56cf421f R14: 00007f2227e2e300 R15: 0000000000022000 Memory state around the buggy address: ffffc900025e7c80: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 ffffc900025e7d00: f1 f1 04 f2 04 f2 04 f2 00 00 f2 f2 00 00 00 f2 >ffffc900025e7d80: f2 f2 f2 f2 00 00 00 f2 f2 f2 f2 f2 00 00 f3 f3 ^ ffffc900025e7e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900025e7e80: 00 f1 f1 f1 f1 00 f2 f2 f2 00 00 f3 f3 00 00 00 ==================================================================