================================================================== BUG: KASAN: slab-out-of-bounds in gb_operation_message_init drivers/greybus/operation.c:340 [inline] BUG: KASAN: slab-out-of-bounds in gb_operation_message_alloc+0x256/0x2c0 drivers/greybus/operation.c:385 Write of size 2 at addr ffff88810237ca40 by task swapper/1/0 CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted syzkaller #0 PREEMPT(lazy) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x13d/0x4b0 mm/kasan/report.c:482 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595 gb_operation_message_init drivers/greybus/operation.c:340 [inline] gb_operation_message_alloc+0x256/0x2c0 drivers/greybus/operation.c:385 gb_operation_create_common+0x9f/0x710 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+0x1dc/0x1050 drivers/greybus/operation.c:1063 greybus_data_rcvd+0x244/0x600 drivers/greybus/connection.c:89 cport_in_callback+0x1fb/0x280 drivers/greybus/es2.c:840 __usb_hcd_giveback_urb+0x38e/0x610 drivers/usb/core/hcd.c:1658 usb_hcd_giveback_urb+0x3ca/0x4a0 drivers/usb/core/hcd.c:1742 dummy_timer+0xdb5/0x3840 drivers/usb/gadget/udc/dummy_hcd.c:2051 __run_hrtimer kernel/time/hrtimer.c:2079 [inline] __hrtimer_run_queues+0x448/0x9a0 kernel/time/hrtimer.c:2136 hrtimer_run_softirq+0x1ca/0x360 kernel/time/hrtimer.c:2153 handle_softirqs+0x209/0xa00 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0x17a/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:1062 [inline] sysvec_apic_timer_interrupt+0x8f/0xb0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 RIP: 0010:pv_native_safe_halt+0xf/0x20 arch/x86/kernel/paravirt.c:64 Code: f6 c8 01 c3 cc cc cc cc 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 66 90 0f 00 2d 43 b9 24 00 fb f4 3c 0b 03 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 RSP: 0018:ffffc9000014fe10 EFLAGS: 00000242 RAX: 0000000000e2fc2f RBX: ffff8881022e8000 RCX: ffffffff87a1d455 RDX: 0000000000000001 RSI: ffffffff8951bcf4 RDI: ffffffff87f36780 RBP: ffffed102045d000 R08: 0000000000000001 R09: ffffed103eae67ad R10: ffff8881f5733d6b R11: 0000000000000001 R12: 0000000000000000 R13: 0000000000000000 R14: 1ffff92000029fc6 R15: dffffc0000000000 arch_safe_halt arch/x86/include/asm/paravirt.h:62 [inline] default_idle+0x9/0x10 arch/x86/kernel/process.c:768 default_idle_call+0x6c/0xb0 kernel/sched/idle.c:122 cpuidle_idle_call kernel/sched/idle.c:199 [inline] do_idle+0x3ae/0x5b0 kernel/sched/idle.c:355 cpu_startup_entry+0x4f/0x60 kernel/sched/idle.c:458 start_secondary+0x21d/0x2d0 arch/x86/kernel/smpboot.c:312 common_startup_64+0x13e/0x158 Allocated by task 0: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:409 [inline] __kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:426 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5531 [inline] __kmalloc_noprof+0x315/0x7e0 mm/slub.c:5556 _kmalloc_noprof include/linux/slab.h:995 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] gb_operation_message_alloc+0x9b/0x2c0 drivers/greybus/operation.c:380 gb_operation_create_common+0x9f/0x710 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+0x1dc/0x1050 drivers/greybus/operation.c:1063 greybus_data_rcvd+0x244/0x600 drivers/greybus/connection.c:89 cport_in_callback+0x1fb/0x280 drivers/greybus/es2.c:840 __usb_hcd_giveback_urb+0x38e/0x610 drivers/usb/core/hcd.c:1658 usb_hcd_giveback_urb+0x3ca/0x4a0 drivers/usb/core/hcd.c:1742 dummy_timer+0xdb5/0x3840 drivers/usb/gadget/udc/dummy_hcd.c:2051 __run_hrtimer kernel/time/hrtimer.c:2079 [inline] __hrtimer_run_queues+0x448/0x9a0 kernel/time/hrtimer.c:2136 hrtimer_run_softirq+0x1ca/0x360 kernel/time/hrtimer.c:2153 handle_softirqs+0x209/0xa00 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0x17a/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:1062 [inline] sysvec_apic_timer_interrupt+0x8f/0xb0 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 ffff88810237ca40 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 0 bytes inside of allocated 1-byte region [ffff88810237ca40, ffff88810237ca41) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88810237cf00 pfn:0x10237c flags: 0x200000000000200(workingset|node=0|zone=2) page_type: f5(slab) raw: 0200000000000200 ffff888100041500 ffffea000431ea90 ffffea00043ac750 raw: ffff88810237cf00 0000000000800073 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 5072024334 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860 prep_new_page mm/page_alloc.c:1868 [inline] get_page_from_freelist+0x9da/0x2970 mm/page_alloc.c:3950 __alloc_frozen_pages_noprof+0x2a7/0x2f80 mm/page_alloc.c:5492 alloc_slab_page mm/slub.c:3384 [inline] allocate_slab mm/slub.c:3499 [inline] new_slab+0xb1/0x6d0 mm/slub.c:3550 refill_objects+0xe3/0x410 mm/slub.c:7539 refill_sheaf mm/slub.c:2917 [inline] __pcs_replace_empty_main+0x35e/0x650 mm/slub.c:4811 alloc_from_pcs mm/slub.c:4887 [inline] slab_alloc_node mm/slub.c:5021 [inline] __do_kmalloc_node mm/slub.c:5530 [inline] __kmalloc_node_track_caller_noprof+0x62f/0x810 mm/slub.c:5662 __kmemdup_nul mm/util.c:64 [inline] kstrdup+0x51/0xe0 mm/util.c:84 kstrdup_const+0x63/0x80 mm/util.c:104 __kernfs_new_node+0x9b/0xa10 fs/kernfs/dir.c:663 kernfs_new_node fs/kernfs/dir.c:759 [inline] kernfs_create_dir_ns+0xa4/0x2b0 fs/kernfs/dir.c:1133 sysfs_create_dir_ns+0x13a/0x2b0 fs/sysfs/dir.c:59 create_dir lib/kobject.c:73 [inline] kobject_add_internal+0x2c8/0x930 lib/kobject.c:240 kobject_add_varg lib/kobject.c:374 [inline] kobject_add+0x16a/0x1e0 lib/kobject.c:426 irq_sysfs_add kernel/irq/irqdesc.c:372 [inline] alloc_descs kernel/irq/irqdesc.c:540 [inline] __irq_alloc_descs+0x392/0x5f0 kernel/irq/irqdesc.c:930 irq_domain_alloc_descs.part.0+0xb4/0xc0 kernel/irq/irqdomain.c:1298 page last free pid 1 tgid 1 ts 5069419180 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1402 [inline] __free_frozen_pages+0x792/0x1060 mm/page_alloc.c:2958 __kasan_populate_vmalloc_do mm/kasan/shadow.c:393 [inline] __kasan_populate_vmalloc+0x1ea/0x210 mm/kasan/shadow.c:424 kasan_populate_vmalloc include/linux/kasan.h:580 [inline] alloc_vmap_area+0x963/0x2bc0 mm/vmalloc.c:2151 __get_vm_area_node+0x1ed/0x350 mm/vmalloc.c:3281 get_vm_area_caller+0x71/0xa0 mm/vmalloc.c:3332 __ioremap_caller.isra.0+0x347/0x5f0 arch/x86/mm/ioremap.c:292 msix_map_region drivers/pci/msi/msi.c:592 [inline] msix_capability_init drivers/pci/msi/msi.c:744 [inline] __pci_enable_msix_range+0x982/0x1390 drivers/pci/msi/msi.c:858 pci_alloc_irq_vectors_affinity+0x23e/0x2b0 drivers/pci/msi/api.c:268 vp_request_msix_vectors drivers/virtio/virtio_pci_common.c:159 [inline] vp_find_vqs_msix+0x3fd/0xe10 drivers/virtio/virtio_pci_common.c:422 vp_find_vqs+0x96/0x7d0 drivers/virtio/virtio_pci_common.c:532 virtio_find_vqs include/linux/virtio_config.h:298 [inline] virtscsi_init.cold+0x325/0x65c drivers/scsi/virtio_scsi.c:886 virtscsi_probe+0x3a4/0xe80 drivers/scsi/virtio_scsi.c:944 virtio_dev_probe+0x72a/0xd30 drivers/virtio/virtio.c:349 call_driver_probe drivers/base/dd.c:629 [inline] really_probe+0x241/0xa60 drivers/base/dd.c:707 __driver_probe_device+0x210/0x460 drivers/base/dd.c:869 driver_probe_device+0x4a/0x140 drivers/base/dd.c:899 Memory state around the buggy address: ffff88810237c900: fa fc fc fc 02 fc fc fc fa fc fc fc fa fc fc fc ffff88810237c980: fa fc fc fc fa fc fc fc fa fc fc fc fa fc fc fc >ffff88810237ca00: fa fc fc fc fa fc fc fc 01 fc fc fc fa fc fc fc ^ ffff88810237ca80: fa fc fc fc fa fc fc fc fa fc fc fc fa fc fc fc ffff88810237cb00: fa fc fc fc fa fc fc fc fa fc fc fc fa fc fc fc ================================================================== ---------------- Code disassembly (best guess): 0: f6 c8 01 test $0x1,%al 3: c3 ret 4: cc int3 5: cc int3 6: cc int3 7: cc int3 8: 0f 1f 00 nopl (%rax) b: 90 nop c: 90 nop d: 90 nop e: 90 nop f: 90 nop 10: 90 nop 11: 90 nop 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop 16: 90 nop 17: 90 nop 18: 90 nop 19: 90 nop 1a: 90 nop 1b: f3 0f 1e fa endbr64 1f: 66 90 xchg %ax,%ax 21: 0f 00 2d 43 b9 24 00 verw 0x24b943(%rip) # 0x24b96b 28: fb sti 29: f4 hlt * 2a: e9 3c 0b 03 00 jmp 0x30b6b <-- trapping instruction 2f: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1) 36: 00 00 00 39: 66 90 xchg %ax,%ax 3b: 90 nop 3c: 90 nop 3d: 90 nop 3e: 90 nop 3f: 90 nop