================================================================== BUG: KASAN: out-of-bounds in i801_isr_byte_done drivers/i2c/busses/i2c-i801.c:599 [inline] BUG: KASAN: out-of-bounds in i801_isr drivers/i2c/busses/i2c-i801.c:670 [inline] BUG: KASAN: out-of-bounds in i801_isr+0xcfe/0xd60 drivers/i2c/busses/i2c-i801.c:651 Write of size 1 at addr ffffc900027a7db8 by task systemd-udevd/5038 CPU: 1 PID: 5038 Comm: systemd-udevd Not tainted 5.13.0-rc1-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:599 [inline] i801_isr drivers/i2c/busses/i2c-i801.c:670 [inline] i801_isr+0xcfe/0xd60 drivers/i2c/busses/i2c-i801.c:651 __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 ef 2d d6 ff 65 66 c7 05 b5 47 c3 76 00 00 e8 d0 16 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: ffff888022f1c300 RCX: 1ffffffff20462f2 RDX: 0000000000000000 RSI: 0000000000000101 RDI: 0000000000000000 RBP: ffff888011cbe280 R08: 0000000000000001 R09: ffffffff9022a8b7 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:get_reg arch/x86/kernel/unwind_orc.c:401 [inline] RIP: 0010:unwind_next_frame+0x116f/0x1ce0 arch/x86/kernel/unwind_orc.c:582 Code: 1c 02 00 00 3c 04 0f 84 a6 fc ff ff 84 c0 0f 85 85 fc ff ff 48 b8 00 00 00 00 00 fc ff df 48 8b 14 24 48 c1 ea 03 80 3c 02 00 <0f> 85 ab 07 00 00 4d 8b 6e 50 4d 85 ed 0f 84 12 fd ff ff 48 b8 00 RSP: 0018:ffffc9000a3572e0 EFLAGS: 00000246 RAX: dffffc0000000000 RBX: 1ffff9200146ae64 RCX: 1ffff9200146ae7e RDX: 1ffff9200146ae81 RSI: ffffc9000a357f58 RDI: ffffc9000a357410 RBP: 0000000000000001 R08: ffffffff8ed7eaba R09: 0000000000000001 R10: fffff5200146ae82 R11: 0000000000084087 R12: ffffc9000a3573ee R13: ffffc9000a3573ed R14: ffffc9000a3573b8 R15: ffffc9000a357f58 arch_stack_walk+0x7d/0xe0 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:121 kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:428 [inline] __kasan_slab_alloc+0x81/0xa0 mm/kasan/common.c:461 kasan_slab_alloc include/linux/kasan.h:236 [inline] slab_post_alloc_hook mm/slab.h:524 [inline] slab_alloc mm/slab.c:3323 [inline] kmem_cache_alloc+0x275/0x530 mm/slab.c:3507 vm_area_dup+0x88/0x2b0 kernel/fork.c:357 dup_mmap kernel/fork.c:537 [inline] dup_mm+0x543/0x1380 kernel/fork.c:1374 copy_mm kernel/fork.c:1426 [inline] copy_process+0x5ef9/0x7120 kernel/fork.c:2116 kernel_clone+0xe7/0xab0 kernel/fork.c:2503 __do_sys_clone+0xc8/0x110 kernel/fork.c:2620 do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f071738838b Code: db 45 85 f6 0f 85 95 01 00 00 64 4c 8b 04 25 10 00 00 00 31 d2 4d 8d 90 d0 02 00 00 31 f6 bf 11 00 20 01 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 de 00 00 00 85 c0 41 89 c5 0f 85 e5 00 00 RSP: 002b:00007ffd017f4230 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007ffd017f4230 RCX: 00007f071738838b RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 00007ffd017f4280 R08: 00007f07185398c0 R09: 0000000000000210 R10: 00007f0718539b90 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000020 R14: 0000000000000000 R15: 0000000000000000 Memory state around the buggy address: ffffc900027a7c80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc900027a7d00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 >ffffc900027a7d80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ^ ffffc900027a7e00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc900027a7e80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ==================================================================