================================================================== 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 ffff8880236d5502 by task strace-static-x/5658 CPU: 1 UID: 0 PID: 5658 Comm: strace-static-x Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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:1658 dummy_timer+0xa9a/0x4ce0 drivers/usb/gadget/udc/dummy_hcd.c:2051 __run_hrtimer kernel/time/hrtimer.c:2079 [inline] __hrtimer_run_queues+0x3bc/0xa10 kernel/time/hrtimer.c:2136 hrtimer_run_softirq+0x1e3/0x2e0 kernel/time/hrtimer.c:2153 handle_softirqs+0x265/0x8d0 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0xc6/0x220 kernel/softirq.c:786 irq_exit_rcu+0x9/0x30 kernel/softirq.c:809 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1073 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1073 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:5434 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 77 4e 8b 0a e8 72 8b 3a 00 fb 4c 8b 65 c8 <49> 8d bc 24 18 17 00 00 48 89 f8 48 c1 e8 03 42 0f b6 04 30 84 c0 RSP: 0018:ffffc90003c2f7a0 EFLAGS: 00000202 RAX: 0000000000414683 RBX: ffff8880b833d3a0 RCX: 8000000000000001 RDX: 0000000000000000 RSI: ffffffff8e9f0244 RDI: ffffffff8cb01080 RBP: ffffc90003c2f7f0 R08: ffffffff91e120bf R09: 1ffffffff23c2417 R10: dffffc0000000000 R11: fffffbfff23c2418 R12: ffff88807f59ddc0 R13: ffff88807f59ddc0 R14: dffffc0000000000 R15: 1ffff11017067a74 context_switch kernel/sched/core.c:5586 [inline] __schedule+0x17e5/0x5830 kernel/sched/core.c:7382 preempt_schedule_common+0x7f/0xd0 kernel/sched/core.c:7561 preempt_schedule_thunk+0x16/0x40 arch/x86/entry/thunk.S:12 __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:220 [inline] _raw_spin_unlock_irq+0x47/0x50 kernel/locking/spinlock.c:229 spin_unlock_irq include/linux/spinlock.h:413 [inline] ptrace_resume kernel/ptrace.c:892 [inline] ptrace_request+0x1206/0x25d0 kernel/ptrace.c:1356 arch_ptrace+0x289/0x410 arch/x86/kernel/ptrace.c:848 __do_sys_ptrace kernel/ptrace.c:1443 [inline] __se_sys_ptrace+0x150/0x3a0 kernel/ptrace.c:1416 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x16a/0x530 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x00000000004ebd9b Code: 8d 44 24 70 41 83 f8 03 c7 44 24 10 08 00 00 00 48 89 44 24 18 48 8d 44 24 30 4c 0f 43 d1 48 89 44 24 20 b8 65 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 3d 48 85 c0 78 06 41 83 f8 02 76 1a 48 8b 54 RSP: 002b:00007ffc135a0730 EFLAGS: 00000206 ORIG_RAX: 0000000000000065 RAX: ffffffffffffffda RBX: 0000000012f55420 RCX: 00000000004ebd9b RDX: 0000000000000000 RSI: 000000000000181a RDI: 0000000000000018 RBP: 0000000000000018 R08: 0000000000000017 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000012f57f00 R13: 0000000000000000 R14: 0000000000000018 R15: 0000000012f5c8a0 Allocated by task 5658: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3f/0x90 mm/kasan/common.c:79 poison_kmalloc_redzone mm/kasan/common.c:412 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:429 kasan_kmalloc include/linux/kasan.h:267 [inline] __do_kmalloc_node mm/slub.c:5527 [inline] __kmalloc_noprof+0x366/0x710 mm/slub.c:5552 _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:1658 dummy_timer+0xa9a/0x4ce0 drivers/usb/gadget/udc/dummy_hcd.c:2051 __run_hrtimer kernel/time/hrtimer.c:2079 [inline] __hrtimer_run_queues+0x3bc/0xa10 kernel/time/hrtimer.c:2136 hrtimer_run_softirq+0x1e3/0x2e0 kernel/time/hrtimer.c:2153 handle_softirqs+0x265/0x8d0 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0xc6/0x220 kernel/softirq.c:786 irq_exit_rcu+0x9/0x30 kernel/softirq.c:809 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1073 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1073 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 The buggy address belongs to the object at ffff8880236d5500 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 2 bytes inside of allocated 3-byte region [ffff8880236d5500, ffff8880236d5503) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x236d5 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff88813fe3b500 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000800080 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 3870826357 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1874 prep_new_page+0x22/0xb0 mm/page_alloc.c:1882 get_page_from_freelist+0x22a1/0x22e0 mm/page_alloc.c:3964 __alloc_frozen_pages_noprof+0x211/0x450 mm/page_alloc.c:5506 alloc_slab_page mm/slub.c:3382 [inline] allocate_slab+0x7d/0x5e0 mm/slub.c:3497 new_slab mm/slub.c:3548 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7522 refill_sheaf mm/slub.c:2915 [inline] __pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4807 alloc_from_pcs mm/slub.c:4883 [inline] slab_alloc_node mm/slub.c:5017 [inline] __do_kmalloc_node mm/slub.c:5526 [inline] __kmalloc_noprof+0x476/0x710 mm/slub.c:5552 _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:705 pci_dev_acpi_reset+0x86/0x160 drivers/pci/pci-acpi.c:960 pci_init_reset_methods+0xef/0x7d0 drivers/pci/pci.c:5436 pci_init_capabilities drivers/pci/probe.c:2694 [inline] pci_device_add+0x1091/0x1920 drivers/pci/probe.c:2765 page_owner free stack trace missing Memory state around the buggy address: ffff8880236d5400: fa fc fc fc fa fc fc fc fa fc fc fc fa fc fc fc ffff8880236d5480: fa fc fc fc fa fc fc fc fa fc fc fc fa fc fc fc >ffff8880236d5500: 03 fc fc fc fa fc fc fc fa fc fc fc 06 fc fc fc ^ ffff8880236d5580: 06 fc fc fc 06 fc fc fc 06 fc fc fc 06 fc fc fc ffff8880236d5600: 06 fc fc fc 06 fc fc fc 06 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 77 4e 8b 0a call 0xa8b4e96 1f: e8 72 8b 3a 00 call 0x3a8b96 24: fb sti 25: 4c 8b 65 c8 mov -0x38(%rbp),%r12 * 29: 49 8d bc 24 18 17 00 lea 0x1718(%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