================================================================== BUG: KASAN: slab-out-of-bounds in gb_operation_message_init drivers/greybus/operation.c:341 [inline] BUG: KASAN: slab-out-of-bounds in gb_operation_message_alloc+0x224/0x258 drivers/greybus/operation.c:385 Write of size 2 at addr ffff0000c64b3442 by task syz.0.17/4933 CPU: 0 UID: 0 PID: 4933 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/23/2026 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 print_address_description+0xb0/0x238 mm/kasan/report.c:378 print_report+0x68/0x84 mm/kasan/report.c:482 kasan_report+0x8c/0xc4 mm/kasan/report.c:595 __asan_report_store2_noabort+0x20/0x2c mm/kasan/report_generic.c:384 gb_operation_message_init drivers/greybus/operation.c:341 [inline] gb_operation_message_alloc+0x224/0x258 drivers/greybus/operation.c:385 gb_operation_create_common+0xa4/0x3b4 drivers/greybus/operation.c:532 gb_operation_create_incoming drivers/greybus/operation.c:644 [inline] gb_connection_recv_request drivers/greybus/operation.c:926 [inline] gb_connection_recv+0x268/0xfd4 drivers/greybus/operation.c:1063 greybus_data_rcvd+0x254/0x67c drivers/greybus/connection.c:89 cport_in_callback+0x15c/0x298 drivers/greybus/es2.c:840 __usb_hcd_giveback_urb+0x314/0x594 drivers/usb/core/hcd.c:1657 usb_hcd_giveback_urb+0x100/0x350 drivers/usb/core/hcd.c:1741 dummy_timer+0x570/0x2ba0 drivers/usb/gadget/udc/dummy_hcd.c:2023 __run_hrtimer kernel/time/hrtimer.c:2074 [inline] __hrtimer_run_queues+0x310/0x998 kernel/time/hrtimer.c:2131 hrtimer_run_softirq+0x1b4/0x2a8 kernel/time/hrtimer.c:2148 handle_softirqs+0x324/0xcbc kernel/softirq.c:645 __do_softirq+0x14/0x20 kernel/softirq.c:679 ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:78 call_on_irq_stack+0x30/0x48 arch/arm64/kernel/entry.S:901 do_softirq_own_stack+0x20/0x2c arch/arm64/kernel/irq.c:83 invoke_softirq kernel/softirq.c:526 [inline] __irq_exit_rcu+0x10c/0x318 kernel/softirq.c:758 irq_exit_rcu+0x14/0x84 kernel/softirq.c:775 __el1_irq arch/arm64/kernel/entry-common.c:569 [inline] el1_interrupt+0x40/0x60 arch/arm64/kernel/entry-common.c:581 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:586 el1h_64_irq+0x78/0x7c arch/arm64/kernel/entry.S:602 vma_flags_overwrite_word include/linux/mm_types.h:1109 [inline] (P) vm_flags_init include/linux/mm.h:1006 [inline] (P) vm_area_init_from mm/vma_init.c:57 [inline] (P) vm_area_dup+0x290/0x5c8 mm/vma_init.c:135 (P) __split_vma+0x1a8/0x83c mm/vma.c:560 split_vma mm/vma.c:643 [inline] vma_modify+0x11ac/0x18f0 mm/vma.c:1771 vma_modify_flags+0x228/0x33c mm/vma.c:1799 mprotect_fixup+0x2b0/0x728 mm/mprotect.c:824 do_mprotect_pkey+0x7f8/0xa84 mm/mprotect.c:1002 __do_sys_mprotect mm/mprotect.c:1023 [inline] __se_sys_mprotect mm/mprotect.c:1020 [inline] __arm64_sys_mprotect+0x88/0xa0 mm/mprotect.c:1020 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x60/0x1d8 arch/arm64/kernel/entry-common.c:796 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:815 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:606 Allocated by task 4933: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:78 kasan_save_alloc_info+0x40/0x50 mm/kasan/generic.c:570 poison_kmalloc_redzone mm/kasan/common.c:409 [inline] __kasan_kmalloc+0x9c/0xb4 mm/kasan/common.c:426 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5414 [inline] __kmalloc_noprof+0x34c/0x6c8 mm/slub.c:5439 _kmalloc_noprof include/linux/slab.h:995 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] gb_operation_message_alloc+0x90/0x258 drivers/greybus/operation.c:380 gb_operation_create_common+0xa4/0x3b4 drivers/greybus/operation.c:532 gb_operation_create_incoming drivers/greybus/operation.c:644 [inline] gb_connection_recv_request drivers/greybus/operation.c:926 [inline] gb_connection_recv+0x268/0xfd4 drivers/greybus/operation.c:1063 greybus_data_rcvd+0x254/0x67c drivers/greybus/connection.c:89 cport_in_callback+0x15c/0x298 drivers/greybus/es2.c:840 __usb_hcd_giveback_urb+0x314/0x594 drivers/usb/core/hcd.c:1657 usb_hcd_giveback_urb+0x100/0x350 drivers/usb/core/hcd.c:1741 dummy_timer+0x570/0x2ba0 drivers/usb/gadget/udc/dummy_hcd.c:2023 __run_hrtimer kernel/time/hrtimer.c:2074 [inline] __hrtimer_run_queues+0x310/0x998 kernel/time/hrtimer.c:2131 hrtimer_run_softirq+0x1b4/0x2a8 kernel/time/hrtimer.c:2148 handle_softirqs+0x324/0xcbc kernel/softirq.c:645 __do_softirq+0x14/0x20 kernel/softirq.c:679 The buggy address belongs to the object at ffff0000c64b3440 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 2 bytes inside of allocated 3-byte region [ffff0000c64b3440, ffff0000c64b3443) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1064b3 flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) page_type: f5(slab) raw: 05ffc00000000000 ffff0000c0001500 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000800080 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000c64b3300: fa fc fc fc 06 fc fc fc 06 fc fc fc 06 fc fc fc ffff0000c64b3380: 06 fc fc fc fa fc fc fc 06 fc fc fc 06 fc fc fc >ffff0000c64b3400: 06 fc fc fc 06 fc fc fc 03 fc fc fc 06 fc fc fc ^ ffff0000c64b3480: 06 fc fc fc 06 fc fc fc 06 fc fc fc 00 fc fc fc ffff0000c64b3500: 06 fc fc fc 06 fc fc fc 06 fc fc fc 06 fc fc fc ================================================================== usb 1-1: failed to resubmit arpc in-urb: -19 usb 1-1: failed to resubmit arpc in-urb: -19 usb 1-1: failed to resubmit in-urb: -19 usb 1-1: failed to resubmit in-urb: -19 usb 1-1: failed to resubmit in-urb: -19 usb 1-1: failed to resubmit in-urb: -19