Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1704267pxb; Mon, 12 Apr 2021 04:55:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaS155oeGc41evCZoEZbLn4/gB2IxbGijzHCVplBed4FcUB3QD8GW7E4La0hJBJnjqX5zC X-Received: by 2002:a05:6402:150e:: with SMTP id f14mr29150831edw.63.1618228552426; Mon, 12 Apr 2021 04:55:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618228552; cv=none; d=google.com; s=arc-20160816; b=M5KT6S3nlJjnFtHyspnGpwC/8cnVhLHbTgD4DcfLpBoI5wWnqa7Uy0tmqaDLV4MLtJ iILDOBf01rfQ0HEu0mcWkwZoXg79X3DgpVx2hvlos4lackPOGsRk8tritaBwXoVs0BZr k/b6ciP7L6IWpISI2fp54hv1XbaRdIrj/k+TzoGCE0YIrun2ux2vAs5rvaStPLYLRDmU 4fzVI+gPSVUhT+8K4lv5lDcctgxTnUe9xYnCfz0HqhsVmQkd0m+eczf9M85ugfH1TLF+ t5NlnBwte4Z8ltSEjP0piBfSfP+cqev9xLWbBspMmHwmICukSg3aq5OOwi9m9TKBnLux UNcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=mHbB1+jDlvtrel4HuRA6ltCewiiB5NhKXt5FR2/2420=; b=MY91WehYBOw3ReKmxoP+zpSrcZXDUHgV2Y8eEEExvDjHxdtZbFAcCA5KXj1Mub8Gn1 OP+a2onul7fGKYdMTD0eZ34GoPZXkXC0IE2oxIsWEeXau3ouW3eT9jUmff7hZbSEFk9e DweY8syt7jCtlsmron0wEyxH9H+/hkhMsmPMfk7+k6m2ATBBgOd6xe5YcL2RNv0+z96b Ucdy4Lp1gRklRv7jVQjQzkdTIffEfNJ6zGdiSHnm3m8zo8NaMqHg5crJe/EC56z64rGd SjmB2e2zfblM8zYA8Ebpqiq45jocDy97rmVlhbqknglF4/w/1bxmjpLVbAJNdkzXVMnc w/hw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v7si8742328edd.479.2021.04.12.04.55.29; Mon, 12 Apr 2021 04:55:52 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239932AbhDLLyE (ORCPT + 99 others); Mon, 12 Apr 2021 07:54:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237792AbhDLLyD (ORCPT ); Mon, 12 Apr 2021 07:54:03 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDD85C061574 for ; Mon, 12 Apr 2021 04:53:45 -0700 (PDT) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94) (envelope-from ) id 1lVv8Q-00AgH5-WF; Mon, 12 Apr 2021 13:53:43 +0200 Message-ID: Subject: Re: Memory leak in ieee80211_rx_napi() From: Johannes Berg To: Larry Finger Cc: linux-wireless , Pkshih Date: Mon, 12 Apr 2021 13:53:42 +0200 In-Reply-To: <32687519-1c0e-1e6c-dbc3-1e9fd027fc8a@lwfinger.net> (sfid-20210411_211744_139894_B68237C3) References: <82a7c6c9bcbe923906276e8aa26a9a783598a0d7.camel@sipsolutions.net> <32687519-1c0e-1e6c-dbc3-1e9fd027fc8a@lwfinger.net> (sfid-20210411_211744_139894_B68237C3) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.4 (3.38.4-1.fc33) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Larry, Sorry I didn't respond to your other email on Friday - it was close to midnight here and I couldn't pay much attention over the weekend. > There were two bugs in rtw88. The first, suggested by PK, was that the sequence > between start/stop of NAPI and the enable/disable of interrupts were reversed. > The second bug was in NAPI polling as you suggested. The poll routine was > calling napi_schedule() rather than napi_reschedule(). > > With these two changes, my RTL8822CE handled 12 hours of flood ping with my > router without leaking a single buffer. Glad you found the issues, and thanks for following up! I do wonder where the SKBs were actually leaked, that's a bit strange, but I guess it doesn't matter much now. johannes