Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1558606lqt; Wed, 20 Mar 2024 07:34:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVYfcwhdEh4ysdfEfbk+mM6Zluev8bBQ9ne4HkjZNQItuKjln4HYhku7pASP7r03zfgj4pRlCO/XCS7kK8b8UJyGbpFGAQzEEHPV1jkUg== X-Google-Smtp-Source: AGHT+IHORE5HEWO1aw3g4RJUlCWov67ZPyakU38q4nYGbdC+R5/3Iw+XKNmm4v00AD8/K78RTZgk X-Received: by 2002:a05:620a:4095:b0:78a:2a4b:b276 with SMTP id f21-20020a05620a409500b0078a2a4bb276mr540790qko.4.1710945283662; Wed, 20 Mar 2024 07:34:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710945283; cv=pass; d=google.com; s=arc-20160816; b=asd895c0korCdtiRyn34D5+mPHCAC/I3VGZUIbELbnALIw3noYTYqJDHTOCNpKBKgN 1nJQtrck+Ewq1+QK3c8DWU7vX0kFbB4/+eEgUdqHcq9QKLbqpwMgQQn1k9GhgcbN/h9N 9j/zgvYoloHOTfrv4lS6/IE9sQowlqMIMiK7gEN83DyecCkFaXzsuSVpmZRg/OK6KCBi sYoqhUiPXCbdT4fwuq3FJGgpTchSKqISAiTfSB6og1/kZkI2mTvIwkg+FhZTmD9X+ace agURduaDeOlKQ/JiwROCSyLTxdJURZcwdE4IZl+Ob5Te0YyER4y6YHp/CHeza14RN5Bk KnEw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=khYNXymsT+E8p0FjZwJDp71uipc4zclpoWCWnK64qRY=; fh=RHR4dl+pJbLNadxd9JS3DqrDRnVPiHI4iiSC+aJsxWg=; b=RWWruSl/eDT1r6KJwW8cKYUlleT/7f0qDY1wjdn9JARsp2h83NAFI5QfDSRNjR4oOy E2dJdxChnDmFMcLyrYCvyfWurYTX4sGKahunaL+0g+gALXLKYtyODL42WCC5ZKEZw3jR SKZmBelcQkTxuPlGLdLW8kTmGg8r4szro36sExwsYCO0uBUhrIoWsW2zGzuRDgcCbIJs 4o51mv4cIMSkPAjAAVuAcbGMOzy/7zSGGiDqWa6/+d7ic2cmXMj23vyj9s2epVLjSHQV ZNtU+yh+KlYXHYW42QMe3Stp0hgvhOjZO7/JBIxRXQgjHe2pdtNq0guT2u/bkXWCtzN8 DGhw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-wireless+bounces-4986-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4986-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id p24-20020a05620a113800b0078a16104c86si3176244qkk.65.2024.03.20.07.34.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 07:34:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4986-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-wireless+bounces-4986-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4986-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 628B51C218AC for ; Wed, 20 Mar 2024 14:34:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C662A47F4D; Wed, 20 Mar 2024 14:34:36 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from mail-io1-f72.google.com (mail-io1-f72.google.com [209.85.166.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 158E54594B for ; Wed, 20 Mar 2024 14:34:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710945276; cv=none; b=tdZF4JkS/ZBOCOcSVcpW2+6CHwvvEvLPcb94IRcS35IpqTWsnAYTA6dGcA7by7kIIzGGfbJL9Ko3LfTaPLiFk7PWrtsXfiboXPC79I3E048eDVYP9GgMR1/ZKD5+Q2yQxTJB9RF+G0PBvbGMLCTeFCIBl48QjTv5fNzrt3k+AX8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710945276; c=relaxed/simple; bh=7hu9ZVSc8l53UBO4uyM282N7T1rYQJki/LduGx1yOF0=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=Hock8vyv5MVcNcTcBcQwL/gM5bG/yd7jmmIt++NS5OkYMukhmJJf/jhipDTdIdjRUnrQemcySTwD1SDs9u6rlInsJCY5zIqYKb5uZLy6SMLystZ8/rte9JiuY9tgiCf8qPt2+vTCCFI9OO2D+muwg+z45A+4+d6guiesOfhtHUE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-io1-f72.google.com with SMTP id ca18e2360f4ac-7cbf1d5d35bso591436539f.0 for ; Wed, 20 Mar 2024 07:34:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710945274; x=1711550074; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=khYNXymsT+E8p0FjZwJDp71uipc4zclpoWCWnK64qRY=; b=UHeuKVTNh9aBlhYdasT3RrpffdqwreS/6czIwqfPkwFh0kNkPUgFQjw8eqlBhHhcu8 hWTDVKXDvnO1GnyfVc/ZzfGORJ91CorOVgEzwHilhD+yqZV8d9IN5WoGFalIQk+zCEG9 ZxjyyPvXl3pBXL9w0ONkppN7DmVqq8v2VxbP9imsmlVVcE6Gj/PrBEJJt+LA+pxvZ/WT USS+t5KhEI1XP+MgGmwtYL1WXJlBOoJ825dkLGanBfp8vXbAT8G88LQNpPuv7gRq4sWm IMtYjYmsoFuhjubmB7MaYz0wk9DzevCEm2b2VG+qqsLQY3yaVbNkiDyEnlrKZkcwApp1 tH1A== X-Forwarded-Encrypted: i=1; AJvYcCW3//ojJ8Rd6PvV7byeL4zYz0502oPxVqTyGqT6xmMhn1IzcdT+wQJ0lRGBnQdr9SBIk8U0mEHu9yfY1ODRe+zI3s3SRucNgQRcufZPBFg= X-Gm-Message-State: AOJu0YwPcEI309YF2WMi6t8YQZKpQCfWbUJLGvB4txrsIdAY3LfWUgUb ZdKqITcFr61u4F+oQKWM26ywzYhd/DniIsOydIwia4D1UaDShc7QFNwcMQQUwy4Bq66GWjp9Ix5 I7GuzsbPJWEpKROzFLliE3r6hqFDB9wrdBu0UblWeXTAgZiByPkd89FM= Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6602:3424:b0:7cc:70b6:4379 with SMTP id n36-20020a056602342400b007cc70b64379mr265593ioz.1.1710945274309; Wed, 20 Mar 2024 07:34:34 -0700 (PDT) Date: Wed, 20 Mar 2024 07:34:34 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000004e41110614187d35@google.com> Subject: [syzbot] [wireless?] [usb?] UBSAN: array-index-out-of-bounds in htc_issue_send From: syzbot To: kvalo@kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com, toke@toke.dk Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: a788e53c05ae usb: usb-acpi: Fix oops due to freeing uninit.. git tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing console output: https://syzkaller.appspot.com/x/log.txt?x=1324bffa180000 kernel config: https://syzkaller.appspot.com/x/.config?x=dd8c589043bc2b49 dashboard link: https://syzkaller.appspot.com/bug?extid=93cbd5fbb85814306ba1 compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11c95c6e180000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1734b9f1180000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/070d17d2f510/disk-a788e53c.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/13f35a4bb3f0/vmlinux-a788e53c.xz kernel image: https://storage.googleapis.com/syzbot-assets/6825f1cdc918/bzImage-a788e53c.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+93cbd5fbb85814306ba1@syzkaller.appspotmail.com usb 1-1: ath9k_htc: Transferred FW: ath9k_htc/htc_9271-1.4.0.fw, size: 51008 ath9k_htc 1-1:1.0: ath9k_htc: HTC initialized with 33 credits ------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in drivers/net/wireless/ath/ath9k/htc_hst.c:26:51 index 255 is out of range for type 'htc_endpoint [22]' CPU: 1 PID: 2494 Comm: kworker/1:2 Not tainted 6.8.0-rc6-syzkaller-00190-ga788e53c05ae #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 Workqueue: events request_firmware_work_func Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106 ubsan_epilogue lib/ubsan.c:217 [inline] __ubsan_handle_out_of_bounds+0x111/0x150 lib/ubsan.c:347 htc_issue_send.constprop.0+0x209/0x230 drivers/net/wireless/ath/ath9k/htc_hst.c:26 ath9k_wmi_cmd_issue drivers/net/wireless/ath/ath9k/wmi.c:305 [inline] ath9k_wmi_cmd+0x424/0x630 drivers/net/wireless/ath/ath9k/wmi.c:342 ath9k_regread+0xdb/0x160 drivers/net/wireless/ath/ath9k/htc_drv_init.c:242 ath9k_hw_read_revisions drivers/net/wireless/ath/ath9k/hw.c:287 [inline] __ath9k_hw_init drivers/net/wireless/ath/ath9k/hw.c:572 [inline] ath9k_hw_init+0xf02/0x2b30 drivers/net/wireless/ath/ath9k/hw.c:700 ath9k_init_priv drivers/net/wireless/ath/ath9k/htc_drv_init.c:662 [inline] ath9k_init_device drivers/net/wireless/ath/ath9k/htc_drv_init.c:839 [inline] ath9k_htc_probe_device+0xb37/0x25f0 drivers/net/wireless/ath/ath9k/htc_drv_init.c:963 ath9k_htc_hw_init+0x33/0x70 drivers/net/wireless/ath/ath9k/htc_hst.c:529 ath9k_hif_usb_firmware_cb+0x272/0x620 drivers/net/wireless/ath/ath9k/hif_usb.c:1273 request_firmware_work_func+0x13a/0x240 drivers/base/firmware_loader/main.c:1163 process_one_work+0x886/0x15d0 kernel/workqueue.c:2633 process_scheduled_works kernel/workqueue.c:2706 [inline] worker_thread+0x8b9/0x1290 kernel/workqueue.c:2787 kthread+0x2c6/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:243 ---[ end trace ]--- --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title If you want syzbot to run the reproducer, reply with: #syz test: git://repo/address.git branch-or-commit-hash If you attach or paste a git patch, syzbot will apply it before testing. If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup