================================================================== 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+0x242/0x280 drivers/greybus/operation.c:385 Write of size 2 at addr ffff888021aa5722 by task swapper/1/0 CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 gb_operation_message_init drivers/greybus/operation.c:341 [inline] gb_operation_message_alloc+0x242/0x280 drivers/greybus/operation.c:385 gb_operation_create_common+0xa9/0x650 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+0x284/0x1280 drivers/greybus/operation.c:1063 greybus_data_rcvd+0x22c/0x550 drivers/greybus/connection.c:89 cport_in_callback+0x1bd/0x3b0 drivers/greybus/es2.c:840 __usb_hcd_giveback_urb+0x378/0x540 drivers/usb/core/hcd.c:1657 dummy_timer+0xa91/0x4cf0 drivers/usb/gadget/udc/dummy_hcd.c:2019 __run_hrtimer kernel/time/hrtimer.c:2067 [inline] __hrtimer_run_queues+0x3bc/0xa10 kernel/time/hrtimer.c:2124 hrtimer_run_softirq+0x1e3/0x2e0 kernel/time/hrtimer.c:2141 handle_softirqs+0x226/0x860 kernel/softirq.c:645 __do_softirq kernel/softirq.c:679 [inline] invoke_softirq kernel/softirq.c:519 [inline] __irq_exit_rcu+0xcb/0x220 kernel/softirq.c:767 irq_exit_rcu+0x9/0x30 kernel/softirq.c:784 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 RIP: 0010:finish_task_switch+0x413/0xc60 kernel/sched/core.c:5371 Code: 04 00 00 41 c7 84 24 20 0e 00 00 00 00 00 00 0f 1f 44 00 00 49 83 c4 48 4c 89 e7 e8 f7 0d 51 0a e8 d2 00 3a 00 fb 4c 8b 65 c8 <49> 8d bc 24 10 17 00 00 48 89 f8 48 c1 e8 03 42 0f b6 04 30 84 c0 RSP: 0000:ffffc900001a7be0 EFLAGS: 00000202 RAX: 000000000005f045 RBX: ffff8880b873c8e0 RCX: 8000000000000001 RDX: 0000000000000000 RSI: ffffffff8e474d42 RDI: ffffffff8c6d9480 RBP: ffffc900001a7c30 R08: ffffffff907a187f R09: 1ffffffff20f430f R10: dffffc0000000000 R11: fffffbfff20f4310 R12: ffff88801e695dc0 R13: ffff88801e695dc0 R14: dffffc0000000000 R15: 1ffff110170e791c context_switch kernel/sched/core.c:5523 [inline] __schedule+0x17e3/0x58f0 kernel/sched/core.c:7270 schedule_idle+0x51/0x90 kernel/sched/core.c:7388 do_idle+0x4ad/0x540 kernel/sched/idle.c:384 cpu_startup_entry+0x43/0x60 kernel/sched/idle.c:454 start_secondary+0x101/0x110 arch/x86/kernel/smpboot.c:312 common_startup_64+0x13e/0x157 Allocated by task 0: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5414 [inline] __kmalloc_noprof+0x36b/0x720 mm/slub.c:5439 _kmalloc_noprof include/linux/slab.h:995 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] gb_operation_message_alloc+0x8c/0x280 drivers/greybus/operation.c:380 gb_operation_create_common+0xa9/0x650 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+0x284/0x1280 drivers/greybus/operation.c:1063 greybus_data_rcvd+0x22c/0x550 drivers/greybus/connection.c:89 cport_in_callback+0x1bd/0x3b0 drivers/greybus/es2.c:840 __usb_hcd_giveback_urb+0x378/0x540 drivers/usb/core/hcd.c:1657 dummy_timer+0xa91/0x4cf0 drivers/usb/gadget/udc/dummy_hcd.c:2019 __run_hrtimer kernel/time/hrtimer.c:2067 [inline] __hrtimer_run_queues+0x3bc/0xa10 kernel/time/hrtimer.c:2124 hrtimer_run_softirq+0x1e3/0x2e0 kernel/time/hrtimer.c:2141 handle_softirqs+0x226/0x860 kernel/softirq.c:645 __do_softirq kernel/softirq.c:679 [inline] invoke_softirq kernel/softirq.c:519 [inline] __irq_exit_rcu+0xcb/0x220 kernel/softirq.c:767 irq_exit_rcu+0x9/0x30 kernel/softirq.c:784 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 The buggy address belongs to the object at ffff888021aa5720 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 2 bytes inside of allocated 3-byte region [ffff888021aa5720, ffff888021aa5723) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888021aa5800 pfn:0x21aa5 flags: 0xfff00000000200(workingset|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000200 ffff88801b041500 ffff88801b040348 ffffea0000cf02d0 raw: ffff888021aa5800 0000000000800063 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 3030840806 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871 prep_new_page mm/page_alloc.c:1879 [inline] get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436 alloc_slab_page mm/slub.c:3347 [inline] allocate_slab+0x7d/0x620 mm/slub.c:3462 new_slab mm/slub.c:3513 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7410 refill_sheaf mm/slub.c:2885 [inline] __pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4774 alloc_from_pcs mm/slub.c:4850 [inline] slab_alloc_node mm/slub.c:4984 [inline] __do_kmalloc_node mm/slub.c:5413 [inline] __kmalloc_noprof+0x47b/0x720 mm/slub.c:5439 _kmalloc_noprof include/linux/slab.h:995 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] acpi_ns_internalize_name+0x2da/0x3f0 drivers/acpi/acpica/nsutils.c:331 acpi_ns_get_node_unlocked+0x186/0x480 drivers/acpi/acpica/nsutils.c:666 acpi_ns_get_node+0x76/0xc0 drivers/acpi/acpica/nsutils.c:726 acpi_get_handle+0x18c/0x290 drivers/acpi/acpica/nsxfname.c:98 acpi_has_method+0x8c/0xe0 drivers/acpi/utils.c:672 __acpi_dev_get_resources drivers/acpi/resource.c:958 [inline] acpi_dev_get_resources+0x11f/0x220 drivers/acpi/resource.c:1004 acpi_device_enumeration_by_parent drivers/acpi/scan.c:1800 [inline] acpi_init_device_object+0x1a69/0x2b50 drivers/acpi/scan.c:1829 acpi_add_single_object+0x107/0x1b60 drivers/acpi/scan.c:1874 acpi_bus_check_add+0x2b7/0x8a0 drivers/acpi/scan.c:2175 page last free pid 1 tgid 1 ts 2825805371 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1418 [inline] __free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962 __slab_free+0x274/0x2c0 mm/slub.c:5815 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179 kasan_quarantine_remove_cache+0x1cc/0x380 mm/kasan/quarantine.c:369 kmem_cache_shrink+0xd/0x20 mm/slab_common.c:611 acpi_os_purge_cache+0x15/0x20 drivers/acpi/osl.c:1622 acpi_purge_cached_objects+0xac/0x100 drivers/acpi/acpica/utxface.c:239 acpi_initialize_objects+0x2e/0xb0 drivers/acpi/acpica/utxfinit.c:250 acpi_bus_init+0xa8/0x360 drivers/acpi/bus.c:1397 acpi_init+0xa1/0x1f0 drivers/acpi/bus.c:1486 do_one_initcall+0x250/0x870 init/main.c:1357 do_initcall_level+0x10a/0x1a0 init/main.c:1419 do_initcalls+0x59/0xa0 init/main.c:1435 kernel_init_freeable+0x29d/0x3e0 init/main.c:1670 kernel_init+0x22/0x1d0 init/main.c:1560 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 Memory state around the buggy address: ffff888021aa5600: 05 fc fc fc 05 fc fc fc 05 fc fc fc fa fc fc fc ffff888021aa5680: fa fc fc fc 00 fc fc fc 00 fc fc fc fa fc fc fc >ffff888021aa5700: fa fc fc fc 03 fc fc fc fa fc fc fc 00 fc fc fc ^ ffff888021aa5780: fa fc fc fc 06 fc fc fc 06 fc fc fc 06 fc fc fc ffff888021aa5800: fa fc fc fc fa fc fc fc fa fc fc fc fa fc fc fc ================================================================== ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 00 00 add %al,(%rax) 2: 41 c7 84 24 20 0e 00 movl $0x0,0xe20(%r12) 9: 00 00 00 00 00 e: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 13: 49 83 c4 48 add $0x48,%r12 17: 4c 89 e7 mov %r12,%rdi 1a: e8 f7 0d 51 0a call 0xa510e16 1f: e8 d2 00 3a 00 call 0x3a00f6 24: fb sti 25: 4c 8b 65 c8 mov -0x38(%rbp),%r12 * 29: 49 8d bc 24 10 17 00 lea 0x1710(%r12),%rdi <-- trapping instruction 30: 00 31: 48 89 f8 mov %rdi,%rax 34: 48 c1 e8 03 shr $0x3,%rax 38: 42 0f b6 04 30 movzbl (%rax,%r14,1),%eax 3d: 84 c0 test %al,%al