Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp167191lqm; Tue, 30 Apr 2024 17:05:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXgew3cZQ+/njz+wtXCrQ/HorkJ/1NI4ubtlifqwludVP4WrbpOIA1m516qa3mooThKp+oiM/TiaxzyILuDZjRVcxkpF282L9WXjYVm1Q== X-Google-Smtp-Source: AGHT+IFySEqHvA+4cpv8JiV+fJ//TuabV4xt2tpBxGl1Y/p3yj2MbpQ20EbCbD48pLJ4gqkxUs3l X-Received: by 2002:a17:902:f541:b0:1e3:f012:568d with SMTP id h1-20020a170902f54100b001e3f012568dmr1139041plf.15.1714521938753; Tue, 30 Apr 2024 17:05:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714521938; cv=pass; d=google.com; s=arc-20160816; b=iSKWYRErctkYVCGa6kx0BA+9woKE+QIJX/j5J8YmYf8PKsAm7qZk6tpL7hdYPeqNCG ujapEEUpNWcwe+0QZJim5zyw3EaQ85S98Ht/59K74v1rb6GdRhrchz1kCTM8lWHy3Zyu WQEc5fct3UmYFslTgdvqOxMv5Qqcy56s5gb/s8ppAv+v8dQLf5Hi5GvfJrm0obGM8sIc TPnIOSobipyWPAQdPrCdDEsTyf3vRAXQ5kOQw4z9QylK/Kmln+RixvQmI98HhoxBDyCX IBp62B1gBI7uQn7s9pxW/rJPx3bsZD4+hO2UO85wfQogl9aV39jm99qsBj5FqYEDudv+ sISQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=WiVidNUIAMfw97yNwIF6B0NElPzkIH13qWlyRWHjQ6A=; fh=Fk89HeP+41JgFvAx4ze7Nvu0UG8u2uOkDm3+1XDWDek=; b=YrsdDuo6ykDNOsspKkbdT/acxuZjgUxPemJuRs0YcCnS3W1KNtvav4fIc+fK+C6REl pMmwH/JAsK+OGm9QeOyUhhPjwFg5eqWhygA2z+TgLrZtxNboj3L0kO48/FT00MefEX17 2+rt8ADzQVZIUFc7pwHGIctxwh9IvLfzHuYRcffcT0NS05J6d+zHOR1w2H39JebZH97c UzD5pWI3YSKokHDzAjR6AgOyG3U7fgBUQV5YAtL9ua4I6YPy29ILcrrAGD0nfks2jklT 7arwSlxK4TJlCv5UL6ZRCGaBosvswL2K/WoLHq+mcAEFQULbJGh6zvRLGDQa/21cTzIe Z2KA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-164824-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164824-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id h14-20020a170902680e00b001ec510354fesi1766980plk.163.2024.04.30.17.05.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 17:05:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164824-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-164824-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164824-linux.lists.archive=gmail.com@vger.kernel.org" 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8B6DDB2169F for ; Wed, 1 May 2024 00:05:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C7FC2A20; Wed, 1 May 2024 00:05:26 +0000 (UTC) Received: from mail78-59.sinamail.sina.com.cn (mail78-59.sinamail.sina.com.cn [219.142.78.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 580F0163 for ; Wed, 1 May 2024 00:05:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=219.142.78.59 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521926; cv=none; b=WspiQurveEUDS20h52RJfCn614yVDjpfcFTOPUKwZed9ONT7RryGNrfzpHG6zrbu8dEu8KsOCHhsVRmU3uwizFnCV2bJqRjNw+SFzAG/awCZMsUrCZfGwrHLCLMur2ftu/icPtkhaQtms0HUgxpfMe+79DaUDGtBP7okSH7uyAU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714521926; c=relaxed/simple; bh=xoT+UJkJG+lxyRa60Owza3mn+OsosmSKPLvUo549pXM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=buKWDGmNJbu+HBPxrWbffuPUGzUX2jvq+krteGImJPEsCY0q9ODhL7guxr2zrq6OSnbLuYlfTPGTgnJmCaUWXM9znOMC28hwGyPSq7rf+n+27P9FislEADmPFwgVQtxBgJXNNlkxw1BT8bnE7nttAJTmu0Jey5c6YiI6sAZ8C5g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com; spf=pass smtp.mailfrom=sina.com; arc=none smtp.client-ip=219.142.78.59 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sina.com X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([116.24.11.115]) by sina.com (172.16.235.25) with ESMTP id 66318735000014BE; Wed, 1 May 2024 08:05:11 +0800 (CST) X-Sender: hdanton@sina.com X-Auth-ID: hdanton@sina.com Authentication-Results: sina.com; spf=none smtp.mailfrom=hdanton@sina.com; dkim=none header.i=none; dmarc=none action=none header.from=hdanton@sina.com X-SMAIL-MID: 48427634210290 X-SMAIL-UIID: CA5B7832F9D748CAAA841ECD24C5BD8D-20240501-080511-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [wireless?] [usb?] INFO: trying to register non-static key in skb_dequeue (3) Date: Wed, 1 May 2024 08:05:14 +0800 Message-Id: <20240501000514.1552-1-hdanton@sina.com> In-Reply-To: <0000000000006ca6cc061751a86a@google.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Tue, 30 Apr 2024 08:02:25 -0700 > syzbot found the following issue on: > > HEAD commit: 3f12222a4beb usb: dwc3: core: Fix compile warning on s390 .. > git tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=118eeccf180000 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing --- x/drivers/net/wireless/realtek/rtlwifi/usb.c +++ y/drivers/net/wireless/realtek/rtlwifi/usb.c @@ -171,6 +171,7 @@ static int _rtl_usb_init_tx(struct ieee8 u32 i; struct rtl_priv *rtlpriv = rtl_priv(hw); struct rtl_usb *rtlusb = rtl_usbdev(rtl_usbpriv(hw)); + int err = 0; rtlusb->max_bulk_out_size = IS_HIGH_SPEED_USB(rtlusb->udev) ? USB_HIGH_SPEED_BULK_SIZE @@ -185,7 +186,8 @@ static int _rtl_usb_init_tx(struct ieee8 if (!ep_num) { rtl_dbg(rtlpriv, COMP_INIT, DBG_DMESG, "Invalid endpoint map setting!\n"); - return -EINVAL; + err = -EINVAL; + break; } } @@ -203,7 +205,7 @@ static int _rtl_usb_init_tx(struct ieee8 skb_queue_head_init(&rtlusb->tx_skb_queue[i]); init_usb_anchor(&rtlusb->tx_pending[i]); } - return 0; + return err; } static void _rtl_rx_work(struct tasklet_struct *t); @@ -236,7 +238,7 @@ static int _rtl_usb_init(struct ieee8021 struct rtl_priv *rtlpriv = rtl_priv(hw); struct rtl_usb_priv *usb_priv = rtl_usbpriv(hw); struct rtl_usb *rtlusb = rtl_usbdev(usb_priv); - int err; + int err, rc; u8 epidx; struct usb_interface *usb_intf = rtlusb->intf; u8 epnums = usb_intf->cur_altsetting->desc.bNumEndpoints; @@ -286,7 +288,9 @@ static int _rtl_usb_init(struct ieee8021 /* usb endpoint mapping */ err = rtlpriv->cfg->usb_interface_cfg->usb_endpoint_mapping(hw); rtlusb->usb_mq_to_hwq = rtlpriv->cfg->usb_interface_cfg->usb_mq_to_hwq; - _rtl_usb_init_tx(hw); + rc = _rtl_usb_init_tx(hw); + if (!err) + err = rc; _rtl_usb_init_rx(hw); return err; } --