syzbot |
sign-in | mailing list | source | docs |
================================================================== BUG: KASAN: use-after-free in steam_send_report+0x74/0x2a0 drivers/hid/hid-steam.c:172 Read of size 8 at addr ffff8881155d34d0 by task syz.0.3578/13197 CPU: 0 PID: 13197 Comm: syz.0.3578 Not tainted 6.1.128-syzkaller-00002-g44db4837f75e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: <TASK> __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0x158/0x4e0 mm/kasan/report.c:427 kasan_report+0x13c/0x170 mm/kasan/report.c:531 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report_generic.c:351 steam_send_report+0x74/0x2a0 drivers/hid/hid-steam.c:172 steam_send_report_byte drivers/hid/hid-steam.c:212 [inline] steam_set_lizard_mode drivers/hid/hid-steam.c:285 [inline] steam_input_open+0x108/0x1a0 drivers/hid/hid-steam.c:299 input_open_device+0x1a5/0x310 drivers/input/input.c:650 evdev_open_device drivers/input/evdev.c:400 [inline] evdev_open+0x3df/0x620 drivers/input/evdev.c:487 chrdev_open+0x4f7/0x620 fs/char_dev.c:414 do_dentry_open+0x891/0x1250 fs/open.c:884 vfs_open+0x73/0x80 fs/open.c:1015 do_open fs/namei.c:3625 [inline] path_openat+0x2532/0x2d60 fs/namei.c:3782 do_filp_open+0x230/0x480 fs/namei.c:3809 do_sys_openat2+0x151/0x870 fs/open.c:1341 do_sys_open fs/open.c:1357 [inline] __do_sys_openat fs/open.c:1373 [inline] __se_sys_openat fs/open.c:1368 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1368 x64_sys_call+0x6bf/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:258 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fc28d38bad0 Code: 48 89 44 24 20 75 93 44 89 54 24 0c e8 49 94 02 00 44 8b 54 24 0c 89 da 48 89 ee 41 89 c0 bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 38 44 89 c7 89 44 24 0c e8 9c 94 02 00 8b 44 RSP: 002b:00007fc28e22fb70 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fc28d38bad0 RDX: 0000000000000000 RSI: 00007fc28e22fc10 RDI: 00000000ffffff9c RBP: 00007fc28e22fc10 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000001 R14: 00007fc28d5a5fa0 R15: 00007fffe76d7958 </TASK> Allocated by task 12472: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 kasan_save_alloc_info+0x1f/0x30 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:379 [inline] __kasan_kmalloc+0x9c/0xb0 mm/kasan/common.c:388 kasan_kmalloc include/linux/kasan.h:212 [inline] __do_kmalloc_node mm/slab_common.c:938 [inline] __kmalloc_node_track_caller+0xb3/0x1e0 mm/slab_common.c:958 kmalloc_reserve net/core/skbuff.c:446 [inline] __alloc_skb+0x125/0x2d0 net/core/skbuff.c:515 alloc_skb include/linux/skbuff.h:1290 [inline] nlmsg_new include/net/netlink.h:991 [inline] netlink_ack+0x392/0x12a0 net/netlink/af_netlink.c:2440 netlink_rcv_skb+0x24a/0x410 net/netlink/af_netlink.c:2509 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:6168 netlink_unicast_kernel net/netlink/af_netlink.c:1312 [inline] netlink_unicast+0x906/0xab0 net/netlink/af_netlink.c:1338 netlink_sendmsg+0xa15/0xd30 net/netlink/af_netlink.c:1860 sock_sendmsg_nosec net/socket.c:716 [inline] __sock_sendmsg net/socket.c:728 [inline] __sys_sendto+0x480/0x600 net/socket.c:2143 __do_sys_sendto net/socket.c:2155 [inline] __se_sys_sendto net/socket.c:2151 [inline] __x64_sys_sendto+0xe5/0x100 net/socket.c:2151 x64_sys_call+0x15c/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:45 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Last potentially related work creation: kasan_save_stack+0x3b/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xb4/0xc0 mm/kasan/generic.c:486 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:496 __call_rcu_common kernel/rcu/tree.c:2807 [inline] call_rcu+0xdc/0x10f0 kernel/rcu/tree.c:2926 fib6_info_release include/net/ip6_fib.h:350 [inline] fixup_permanent_addr net/ipv6/addrconf.c:3564 [inline] addrconf_permanent_addr+0x376/0xba0 net/ipv6/addrconf.c:3592 addrconf_notify+0x7c2/0xe10 net/ipv6/addrconf.c:3664 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0x8c/0xf0 kernel/notifier.c:455 __dev_notify_flags+0x304/0x610 dev_change_flags+0xf0/0x1a0 net/core/dev.c:8687 do_setlink+0xdb8/0x4050 net/core/rtnetlink.c:2830 __rtnl_newlink net/core/rtnetlink.c:3605 [inline] rtnl_newlink+0x170f/0x2030 net/core/rtnetlink.c:3652 rtnetlink_rcv_msg+0x9a5/0xca0 net/core/rtnetlink.c:6150 netlink_rcv_skb+0x1cd/0x410 net/netlink/af_netlink.c:2503 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:6168 netlink_unicast_kernel net/netlink/af_netlink.c:1312 [inline] netlink_unicast+0x906/0xab0 net/netlink/af_netlink.c:1338 netlink_sendmsg+0xa15/0xd30 net/netlink/af_netlink.c:1860 sock_sendmsg_nosec net/socket.c:716 [inline] __sock_sendmsg net/socket.c:728 [inline] __sys_sendto+0x480/0x600 net/socket.c:2143 __do_sys_sendto net/socket.c:2155 [inline] __se_sys_sendto net/socket.c:2151 [inline] __x64_sys_sendto+0xe5/0x100 net/socket.c:2151 x64_sys_call+0x15c/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:45 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Second to last potentially related work creation: kasan_save_stack+0x3b/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xb4/0xc0 mm/kasan/generic.c:486 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:496 kvfree_call_rcu+0x9f/0x800 kernel/rcu/tree.c:3445 drop_sysctl_table+0x311/0x450 fs/proc/proc_sysctl.c:1727 drop_sysctl_table+0x323/0x450 fs/proc/proc_sysctl.c:1730 unregister_sysctl_table+0x76/0x120 fs/proc/proc_sysctl.c:1765 unregister_net_sysctl_table+0x15/0x20 net/sysctl_net.c:175 __devinet_sysctl_unregister net/ipv4/devinet.c:2635 [inline] devinet_sysctl_unregister net/ipv4/devinet.c:2663 [inline] inetdev_destroy net/ipv4/devinet.c:329 [inline] inetdev_event+0x7ef/0x1110 net/ipv4/devinet.c:1615 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0x8c/0xf0 kernel/notifier.c:455 call_netdevice_notifiers_info net/core/dev.c:1978 [inline] call_netdevice_notifiers_extack net/core/dev.c:2016 [inline] call_netdevice_notifiers net/core/dev.c:2030 [inline] unregister_netdevice_many+0xe25/0x1730 net/core/dev.c:10908 default_device_exit_batch+0x975/0xa00 net/core/dev.c:11421 ops_exit_list net/core/net_namespace.c:177 [inline] cleanup_net+0x6c9/0xbf0 net/core/net_namespace.c:604 process_one_work+0x73d/0xcb0 kernel/workqueue.c:2299 worker_thread+0xa60/0x1260 kernel/workqueue.c:2446 kthread+0x26d/0x300 kernel/kthread.c:386 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 The buggy address belongs to the object at ffff8881155d3400 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 208 bytes inside of 512-byte region [ffff8881155d3400, ffff8881155d3600) The buggy address belongs to the physical page: page:ffffea0004557400 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8881155d1400 pfn:0x1155d0 head:ffffea0004557400 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 ffffea0004cd2b08 ffffea0004b23708 ffff888100042f00 raw: ffff8881155d1400 000000000010000a 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 107, tgid 107 (udevd), ts 5158713741, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x213/0x220 mm/page_alloc.c:2637 prep_new_page+0x1b/0x110 mm/page_alloc.c:2644 get_page_from_freelist+0x3a98/0x3b10 mm/page_alloc.c:4539 __alloc_pages+0x234/0x610 mm/page_alloc.c:5837 alloc_slab_page+0x6c/0xf0 allocate_slab mm/slub.c:1962 [inline] new_slab+0x90/0x3e0 mm/slub.c:2015 ___slab_alloc+0x6f9/0xb80 mm/slub.c:3203 __slab_alloc+0x5d/0xa0 mm/slub.c:3302 slab_alloc_node mm/slub.c:3387 [inline] __kmem_cache_alloc_node+0x207/0x2a0 mm/slub.c:3462 __do_kmalloc_node mm/slab_common.c:937 [inline] __kmalloc_node_track_caller+0xa2/0x1e0 mm/slab_common.c:958 kmalloc_reserve net/core/skbuff.c:446 [inline] __alloc_skb+0x125/0x2d0 net/core/skbuff.c:515 alloc_skb include/linux/skbuff.h:1290 [inline] alloc_skb_with_frags+0xa6/0x680 net/core/skbuff.c:6162 sock_alloc_send_pskb+0x915/0xa50 net/core/sock.c:2756 unix_dgram_sendmsg+0x5b1/0x2050 net/unix/af_unix.c:1920 sock_sendmsg_nosec net/socket.c:716 [inline] __sock_sendmsg net/socket.c:728 [inline] sock_write_iter+0x394/0x4e0 net/socket.c:1133 call_write_iter include/linux/fs.h:2274 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0xaf6/0xed0 fs/read_write.c:584 page_owner free stack trace missing Memory state around the buggy address: ffff8881155d3380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881155d3400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8881155d3480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881155d3500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881155d3580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== @]@] (null): No HID_FEATURE_REPORT submitted - nothing to read @]@] (null): No HID_FEATURE_REPORT submitted - nothing to read loop0: detected capacity change from 0 to 1024 EXT4-fs (loop0): Test dummy encryption mode enabled EXT4-fs (loop0): couldn't mount as ext2 due to feature incompatibilities
Time | Kernel | Commit | Syzkaller | Config | Log | Report | Syz repro | C repro | VM info | Assets (help?) | Manager | Title |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2025/03/10 04:27 | android14-6.1 | 44db4837f75e | 163f510d | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-android-6-1 | KASAN: use-after-free Read in steam_send_report |