Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1032415pxb; Thu, 24 Mar 2022 11:25:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwe45dHdGPevZZN4+FyiPqBIYCPur/c0F33N0KXvd71M/o1bVmP5lJwlA8kfNNb91Bx6pHM X-Received: by 2002:a05:6402:2748:b0:419:25fd:1197 with SMTP id z8-20020a056402274800b0041925fd1197mr8379479edd.170.1648146320252; Thu, 24 Mar 2022 11:25:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648146320; cv=none; d=google.com; s=arc-20160816; b=ZdrXUD5ODeCqtu8vu9Wwv/oCMLJ6m0qRnDB63uSwfQBgQGnHOlXna10V8B9I6UaOfD SPcTHTlwd3xr2vPRpMLaaXvUQX/YhIEnZJEx+oSIFUcZ/pHJAdkh/VpevjC64o4/wcER tZF+JYKgeQkjmk/dLdPfmKIG65oq6lg9CurE5VtvbXst/ptFxHZyidCpe39KMapCn1+p y8fg98+7CzoLtXQJtPPMXjsIcykbdvvspnxxDJzQVfQuA4h9lhpkKJsI/bGn9LV1icM/ Z0zzrayEtNU4Q1GfE/8FQAdjibW6Oez/cJf0XhLIeoJfX2CLpcNQmMqCQk/B+V2oONeU zYmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Qw+/tGAcqsZzOdIU9mPy0h6XsR9YUgqE/aO4tJnDV/U=; b=mA+4e5qylen9OqLnTGwIGNxCUXm83T4/AyPcnOVc/7hQJU3SG0C9GBY5yluQEgbSz1 58/Hdr+/iYklfOI9wzIf3v5elOabgCbnzXMBPZ0uwyFw2rBHfO+qPazafot4sjaISMSc kvn12AwXFRLyr+NeWsze4oRPcCdv3fXeVh4MjtQBFHp5hmZrDwhtE58zR1Y9zdke/5rH ruo8YXNnhlr67DDhizIDmykB9kq4grjxA+NxNJzbOzpsVqT8LV0BnZvn3OTeu1hKPzBm cWBMIKGfV+VTcRTmmKcV6N49PAefUt2tRsR/ZhQDm+cxDNiAhXU2caertVJvlArO9cWx A+XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=AsueKvmL; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q15-20020a17090622cf00b006df76385dbdsi112154eja.605.2022.03.24.11.25.01; Thu, 24 Mar 2022 11:25:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=AsueKvmL; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343580AbiCWR3M (ORCPT + 70 others); Wed, 23 Mar 2022 13:29:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343571AbiCWR3L (ORCPT ); Wed, 23 Mar 2022 13:29:11 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4606F7DE3C for ; Wed, 23 Mar 2022 10:27:41 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id 25so2822401ljv.10 for ; Wed, 23 Mar 2022 10:27:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Qw+/tGAcqsZzOdIU9mPy0h6XsR9YUgqE/aO4tJnDV/U=; b=AsueKvmLHM2nGOpImBUVo8JvIUXQZTPBXUuZ+V1+E3nRTCnp7dAn5Ysn/GIxghzLln GZBXO3w4k/UDMjMFwtn/nP7LeVAoXHaabLGMz82QEQoUcyQ2iSJywkoB38HO0fhpi+qm ebKixIbEogjW5TDgyVUN+w+sNSt7oNBz0RQ04= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Qw+/tGAcqsZzOdIU9mPy0h6XsR9YUgqE/aO4tJnDV/U=; b=W42R5Wtn2fy0XdIeRIrv+bNvY/M1se3hZOWhTpEPmB1zQKAG4AvHON+aE3Ggi/SMBX EIQXtdONnjNq4aj9XWWwo7S/PYfvqz/1ghui/6IrayiNGJjS6SPhwjS0HGeDjeZpX6Q4 aR+o0LQd/ENZt3XWrRp2rbdB/n1lHdhd9MhbSH5CVwtZHfi+oODu1SG/KAud3wHNffq+ /ODzAXHst9q0J+5DXrSI5bzO6ifuQCNxj/qXJytoM8vUATgsVmLbeCsJv06lTECQ9Fgr 1hKSfia69nnzWhxVUIuToQQ58p72Mkm66NShTlZHoZpCEuRoiH1VEtuGC8KC1HEVeM3l Oi0g== X-Gm-Message-State: AOAM532tA0+419gv1RlLjEaWts7sI5VEIGaTRo+M4lpI2viuo/mCob0Y +Ik22JMrPd2MJCSWAPjI+nbKQUCTnVJ1q7aKe2k= X-Received: by 2002:a05:651c:124a:b0:249:5eae:745e with SMTP id h10-20020a05651c124a00b002495eae745emr898967ljh.296.1648056459223; Wed, 23 Mar 2022 10:27:39 -0700 (PDT) Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com. [209.85.167.42]) by smtp.gmail.com with ESMTPSA id z21-20020a195055000000b0044a2d880194sm45126lfj.223.2022.03.23.10.27.37 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Mar 2022 10:27:38 -0700 (PDT) Received: by mail-lf1-f42.google.com with SMTP id k21so3880334lfe.4 for ; Wed, 23 Mar 2022 10:27:37 -0700 (PDT) X-Received: by 2002:a05:6512:2294:b0:448:6c86:3c78 with SMTP id f20-20020a056512229400b004486c863c78mr661692lfu.531.1648056457283; Wed, 23 Mar 2022 10:27:37 -0700 (PDT) MIME-Version: 1.0 References: <1812355.tdWV9SEqCh@natalenko.name> In-Reply-To: <1812355.tdWV9SEqCh@natalenko.name> From: Linus Torvalds Date: Wed, 23 Mar 2022 10:27:21 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [REGRESSION] Recent swiotlb DMA_FROM_DEVICE fixes break ath9k-based AP To: Oleksandr Natalenko Cc: Halil Pasic , Christoph Hellwig , Marek Szyprowski , Robin Murphy , =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= , Kalle Valo , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Olha Cherevyk , iommu , linux-wireless , Netdev , Linux Kernel Mailing List , Greg Kroah-Hartman , stable Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Wed, Mar 23, 2022 at 12:19 AM Oleksandr Natalenko wrote: > > The following upstream commits: > > aa6f8dcbab47 swiotlb: rework "fix info leak with DMA_FROM_DEVICE" > ddbd89deb7d3 swiotlb: fix info leak with DMA_FROM_DEVICE > > break ath9k-based Wi-Fi access point for me. The AP emits beacons, but > no client can connect to it, either from the very beginning, or > shortly after start. These are the only symptoms I've noticed (i.e., > no BUG/WARNING messages in `dmesg` etc). Funky, but clearly true: > These commits appeared in v5.17 and v5.16.15, and both kernels are > broken for me. I'm pretty confident these commits make the difference > since I've built both v5.17 and v5.16.15 without them, and it fixed > the issue. Can you double-check (or just explicitly confirm if you already did that test) that you need to revert *both* of those commits, and it's the later "rework" fix that triggers it? > So, I do understand this might be an issue with regard to SG I/O > handling in ath9k, hence relevant people in Cc. Yeah, almost certainly an ath9k bug, but a regression is a regression, so if people can't find the issue in ath9k, we'll have to revert those commits. Honestly, I personally think they were a bit draconian to begin with, and didn't limit their effects sufficiently. I'm assuming that the ath9k issue is that it gives DMA mapping a big enough area to handle any possible packet size, and just expects - quite reasonably - smaller packets to only fill the part they need. Which that "info leak" patch obviously breaks entirely. So my expectation is that this is something we'll just revert, but it would be really good to have the ath9k people double-check. Linus