Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4055146imu; Mon, 24 Dec 2018 14:40:55 -0800 (PST) X-Google-Smtp-Source: ALg8bN4t2Eb+1VaNCksFxVtkWIGiMWMzOvDna0Rw4u6ZduZat4kQuc+Nt8MXKoI7QrBSxMFO74eP X-Received: by 2002:a17:902:2a0a:: with SMTP id i10mr14186574plb.323.1545691255621; Mon, 24 Dec 2018 14:40:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545691255; cv=none; d=google.com; s=arc-20160816; b=OFENKLX7GmFYQaMAyPXwOB5kssfcpBXS2fjEDVOmKh2g/nk3R3wV9z57SMb2XdBuGL sAHo8bmpChl/UpOBBJ71YT83qZqB9nyxeb0rRD00pl74QW3haiDRyqxyfvL4hf1ceXNu zKGE3ii0hKz1JhDPAIMGgukIkfAga8RrHDz2mAuLkJS9Pe47FeSd5Bf7BbwP3Y/a58r2 102lT/Fzwzbrbt9FzaDLnt7OXm+1SlZDJetNaoTgQCLPnndJcsM65vznzj0Ks5mPSNmx RbE7FzOWx9c8IsDKyesD9kzJgRl1UgzNgHn8ylgTBmR6prTwUIInbrWvCmLo4c0NlLZz SWSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=YYoDM1NRWN6OlCaZiF11PqDvN1ybOFTfhIdXIzsDEWU=; b=lQ0HSbEen+xvK1A6VUbnxvBbHDJYrj5d4wPHs2+ul4XOd/5lqPYcWaPt3ozNEdbo5i EJIgsU+0PVCcYBUkSqo1GickXx+1hU2ZvI4H0pZvW+fhH9G/SO9SKHhg5na5HreONSgK PHlfrXqls/a9Brr+L5eErHYjmDeUvHZw97XlUfWSZ3g4tMn84xdjmjlIRJcYLTw0jaaK ef6zFva2nmmMiYDjPhrKN8YvgAHd3yWeBRaYtXjLJ49KMNlSbAhKxskmY5j+2eTMFsHp IjFffMof+KpwwEz8cg6agOAAkVBCXNJKwZin5G3YjqUVZtB+Dssn/An2maVDPkV2smAM +GGA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 90si26811214plb.17.2018.12.24.14.40.39; Mon, 24 Dec 2018 14:40:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725843AbeLXWjr (ORCPT + 99 others); Mon, 24 Dec 2018 17:39:47 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:37640 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725788AbeLXWjr (ORCPT ); Mon, 24 Dec 2018 17:39:47 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::cf9]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id EB48A100AF102; Mon, 24 Dec 2018 14:39:46 -0800 (PST) Date: Mon, 24 Dec 2018 14:39:46 -0800 (PST) Message-Id: <20181224.143946.1890079755062380899.davem@davemloft.net> To: clabbe.montjoie@gmail.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [BUG] net: sungem: device driver frees DMA memory with wrong function From: David Miller In-Reply-To: <20181223193821.GA24922@Red> References: <20181223193821.GA24922@Red> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 24 Dec 2018 14:39:47 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Corentin Labbe Date: Sun, 23 Dec 2018 20:38:21 +0100 > During a boot on a qemu machine, I hit the following problem: ... > After some pr_info, I found that the function triggering this is the pci_unmap_page() in gem_tx(). > So clearly this WARNING() is strange since it says "unmapped as single". I also went through the code paths and this makes no sense to me either.