Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3509523pxk; Mon, 21 Sep 2020 16:06:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBo5Mhi9RJzeEQQ5S0XXDm7yA7UzD76LuY+CiU+zzX8YfTwjMvP1HFSciMSnharQbzbRW6 X-Received: by 2002:a17:906:c0c8:: with SMTP id bn8mr1888811ejb.256.1600729597716; Mon, 21 Sep 2020 16:06:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600729597; cv=none; d=google.com; s=arc-20160816; b=vJEYqni+/0xooDRtqSYaVZJQxDN03P3gUqGcv5gLIz0DQTYA7m6MHrgz2MTIIeR6PX 86g7pmMyDaCkTuEis0I+4mUu8GnGTgtaKVOK+MJWdQ/5kkGEUHFCammtCOZ1P9LsfvYr J9urJKPXFXXu85wwR0Q1nAwRD+4uFJGdVrQhJYmpB5ac2eEnlWEQXK91OUixrsEf0EdS JasFbGDyMc+H0l878tcSDEcbPV3mhbLWkby2D4HnOKKsqDHSAxpkM3GNaMwMouLVyuY3 nsJJrqNrQQXyFRMRFDkyfSwf7Hd3mqlFxvJwATWnZIxjbiAO+yXssITQdhMqIVQXBDyf Luig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=buxecpnwFXQjOdy2o4aC6QJJC2voHeLV76sj9RxzVr0=; b=kND5hqoErgPpP1QJoCuGhzsbNcbhrcaU+pTDJzy0nGCNnt75SvTykvW4kU7al5Ko29 u8YEw1ZarwIJYJydKfmWLF4QB/X/cP2zpwd8p0DYxNYR6TfLUP1YwcblQUO1oDw2xqA2 esZhRwJ+extkIziseP/ZtWwL8gxvLxX7Snvp77hJGoxHLr/vOdx8iZ53o21MTqnlVmfH tl3qhrTx54V8633Ye/03yScvw8pBuLOhvMBN/hNfdriMmMEnMP2vWzuk1PcXFcm6X5Gr c+qRiGJz6M+me7bWHfJystOpPcTeIHGhmjg8yvycAaLYZ7mc7nDI/0gAfqQSB5PeQBx/ 81TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=T9rFgBNo; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i12si9072818edy.604.2020.09.21.16.06.03; Mon, 21 Sep 2020 16:06:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=T9rFgBNo; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728704AbgIUXEk (ORCPT + 99 others); Mon, 21 Sep 2020 19:04:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726457AbgIUXEk (ORCPT ); Mon, 21 Sep 2020 19:04:40 -0400 Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 118FFC061755; Mon, 21 Sep 2020 16:04:40 -0700 (PDT) Received: by mail-qk1-x742.google.com with SMTP id w12so17141868qki.6; Mon, 21 Sep 2020 16:04:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=buxecpnwFXQjOdy2o4aC6QJJC2voHeLV76sj9RxzVr0=; b=T9rFgBNo0UWnF94bkPIMe1dAJ04AMWR5vKWCv+CA+SF8ztvgW/dfRQqo5jYidlZa0x /MLJW240kxK4Na53BdzkLafvC6igwgKRoBYwOYCfpXzx1fEgrn4qDeG2ZOJGm/OhhMft gu8ELttcPnBSI03NMUanqKwaFdeOYaxbamB1PW6lohutHoqS+7MoC8hwFlxWzGeuI6u0 YLrTwvXUtPmsc9aPLqc5rVj8vO28A79tZnqsAzHx+MktaDEBMwYSj/8kGDGavL2STzWv IJHSLnN71bsRLM7rKoIUCviIFto6IkA+HeJavP99253UyNJoXs1RH2m4NaOKHFBQJGNn DoJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=buxecpnwFXQjOdy2o4aC6QJJC2voHeLV76sj9RxzVr0=; b=m4tNjMprzKYzeHNrQGXr1LQHGhyXFLTWkcZIBJ7BEORxfBxWKDgdLCQkOTtCluPNVL mhBqQDud7gSXZY5u2nC7UUZIx6w9AP9WSoc1KtxrqgIuuNHO2PHIHo4VSUSfg4gsS4Sf yc0M/1gdM6K6xp6lYWqDS8I4udzTzq2sj3uGzuCNZGwx8+Xnpf6/2Mx9n5Xve4D+obzq leLm6OjSOHjKx7HOrP8mG4d4wlUWtsm3myDm0QNoxKh89ba9I8Or1LG8W1hmpsH4MV67 l21eGJvnZVnMBm8d3yimZvVIQuzmmIYCdB7M1CAnknVwyiDAIZ/RRHVpcYN6UYzZQhI8 8DYg== X-Gm-Message-State: AOAM531DVXdJG8Vm7wIsYju/kPdH8FLP8/Taur6NLwaQtbqTjFBIasAb Le5o80KbMbhL7xEnis7e5gg= X-Received: by 2002:a37:7ac1:: with SMTP id v184mr2307937qkc.146.1600729479226; Mon, 21 Sep 2020 16:04:39 -0700 (PDT) Received: from [192.168.1.181] (pool-173-75-208-99.phlapa.fios.verizon.net. [173.75.208.99]) by smtp.gmail.com with ESMTPSA id r21sm11473544qtj.80.2020.09.21.16.04.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Sep 2020 16:04:38 -0700 (PDT) Subject: Re: [PATCH] wireless: ath9k: hif_usb: fix race condition between usb_get_urb() and usb_kill_anchored_urbs() To: Kalle Valo Cc: davem@davemloft.net, kuba@kernel.org, gregkh@linuxfoundation.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, ath9k-devel@qca.qualcomm.com, syzkaller-bugs@googlegroups.com, syzbot+89bd486af9427a9fc605@syzkaller.appspotmail.com References: <20200911071427.32354-1-brookebasile@gmail.com> <20200921130559.005D8C43382@smtp.codeaurora.org> From: Brooke Basile Message-ID: <22bfd12a-c7ea-f03f-5d44-f94646b083f3@gmail.com> Date: Mon, 21 Sep 2020 19:04:38 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20200921130559.005D8C43382@smtp.codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 9/21/20 9:05 AM, Kalle Valo wrote: > Brooke Basile wrote: > >> Calls to usb_kill_anchored_urbs() after usb_kill_urb() on multiprocessor >> systems create a race condition in which usb_kill_anchored_urbs() deallocates >> the URB before the completer callback is called in usb_kill_urb(), resulting >> in a use-after-free. >> To fix this, add proper lock protection to usb_kill_urb() calls that can >> possibly run concurrently with usb_kill_anchored_urbs(). >> >> Reported-by: syzbot+89bd486af9427a9fc605@syzkaller.appspotmail.com >> Link: https://syzkaller.appspot.com/bug?id=cabffad18eb74197f84871802fd2c5117b61febf >> Signed-off-by: Brooke Basile >> Signed-off-by: Kalle Valo > > Patch applied to ath-next branch of ath.git, thanks. > > 03fb92a432ea ath9k: hif_usb: fix race condition between usb_get_urb() and usb_kill_anchored_urbs() > Thank you! :) Best, Brooke Basile