Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1822479ybl; Thu, 9 Jan 2020 02:12:12 -0800 (PST) X-Google-Smtp-Source: APXvYqzv7NtQjxlIdTPId/Ti4qxBJRz1VXEpBEip2VArxaa4dXD+6ogab9/bgES6mgqyax5gGLYA X-Received: by 2002:aca:d502:: with SMTP id m2mr2382432oig.41.1578564732545; Thu, 09 Jan 2020 02:12:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578564732; cv=none; d=google.com; s=arc-20160816; b=FLS1MD2DlLKLE+M3pdI3VBJQg2LyVLMlZ/uv8O1nUtdcSUQ+fB75uzgr1qdGgQQ4C9 hJukl+esUl0JK1wOy1D55UAlZBBHHp/y3dzk6ZGzIDxwzNFhop+xSdp1s7nbm3PErgVJ rcKYAlho9eVIl+raksyAcdZUEXugMIj+QL1KfLRVleyTilqN2BwDOhp+XNMcgZEN5BUU QCEKjnJIYvzGqceITBFa0ixAN0CfTJPLYt9bfGpE5TB/UeRKfgW/yszQ2cezal4UAVSS au16psET5u1JYL9GV5p6lbeq/f3kgSQGRdkcfWzrKaVDjhZuZuoIw7b2opwUG8DO+J+p CJVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=pa+VUcms1G+AHxJVPMm8WUTSFExJoXoBaf03mkKjAPQ=; b=Tt2mNxJQvWlJtnsScydldNDznD9XkudwVaKga3hFZFH9jliNSafZlNbKGrwx353XDq +nKlGi7hGpiYwDr640MTTrJycTkiFO6ruz0fkSenSFrbH0Y3m8O3wOEVoWTG3f9J9CY8 a0AYYgHInX2nXtfNshYqeww+AR6DOtLoF7AUmHFU9bqKwYMVx1pYzSf7nw4heU9hYstl bDiANlh6qDuThAXErUVbaQepIJOwU6tM9NSMXnVSFfLbEwl36nfXvdxlqslL9uSRKRKG 4rOk5rh+cCkls8z0Q8q88tnROqI1ySE6DC3E38F0sRL0NJewKLHYqAlYB41FlzuhXmEl 2wGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=i1OJEqeU; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m82si3429417oig.129.2020.01.09.02.12.01; Thu, 09 Jan 2020 02:12:12 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=i1OJEqeU; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728915AbgAIIw5 (ORCPT + 99 others); Thu, 9 Jan 2020 03:52:57 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:34605 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728690AbgAIIw5 (ORCPT ); Thu, 9 Jan 2020 03:52:57 -0500 Received: by mail-lj1-f195.google.com with SMTP id z22so6366900ljg.1; Thu, 09 Jan 2020 00:52:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=pa+VUcms1G+AHxJVPMm8WUTSFExJoXoBaf03mkKjAPQ=; b=i1OJEqeUqzz80wI9KuHtx8elrrKZEAg6QEAf/+T0NZiZV3NWOiB2mon6n2XW6eEN7c Dedv7mbW+bMXdVzSfa0mK8Pb3k3R7tlQ0z5Q59DkFla9Q7RagRS+IbwFPQDKtDr0CvGz CqZExJ/4oZadn96A4otTrDnPM445qXH/ayo9/lFqUghe8cUfiDnN5OzSOF9fFim8+sXO eSacaDVVVyWkE6btZ4PVXykxl9YXvZV+ZjmYByxEM28VEQlbInGZ5hTVhLPPeps8+M9E CGvxVesjFd69DjoVi5xbVJ4vbT643PH0Gc6Sl4fUrMLprbbD5rkh/jug5mJ6339LphLV DDYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :date:message-id:mime-version; bh=pa+VUcms1G+AHxJVPMm8WUTSFExJoXoBaf03mkKjAPQ=; b=Kqj311kochfDC0yGFudbrgcFgchEQ5MDsK4Kx7ArVGgOFnuhHMLCulwpnv0YvnZj+q HhOW/GZoYRqn6ikPyO9McFPfotKARzmt7AFqzxac1aLhs4BQaQtrOMpJf5vjj8nMmDRd K0ym2M0j9DA1uUUZZki3sQ8GZq+PyGUE9fBZGPnDa62Kpazt4tHnAOHBd3/fqvhpRY0Z mNxbCaPEgOT7lpwLsoIOT6rgV8AW3oimAEd8opNm+Hs26QWrLz9gx0G9a6++/lybzDa1 CLlzia9t3B8CtirBR/R7xsg+WqfJH2uReIksYg3wJhk/RphR/ixlpRcRGehL1141ORn9 oDKg== X-Gm-Message-State: APjAAAWgMqoguiV6BfOmrvjAxByXmA9DLbWFScizOTEqaRWdWFXr8sxY 9meRhCBXcPBb20+/aJ9uHXsncPIK X-Received: by 2002:a2e:9692:: with SMTP id q18mr5670714lji.177.1578559974763; Thu, 09 Jan 2020 00:52:54 -0800 (PST) Received: from saruman (88-113-215-33.elisa-laajakaista.fi. [88.113.215.33]) by smtp.gmail.com with ESMTPSA id w19sm2664474lfl.55.2020.01.09.00.52.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2020 00:52:53 -0800 (PST) From: Felipe Balbi To: Mika Westerberg , Paul Menzel Cc: Greg KH , Mathias Nyman , linux-usb@vger.kernel.org, LKML Subject: Re: BUG: KASAN: use-after-free in xhci_trb_virt_to_dma.part.24+0x1c/0x80 In-Reply-To: <20200103110451.GJ465886@lahna.fi.intel.com> References: <95b4bdb2-962f-561e-ac14-79cd44395915@molgen.mpg.de> <20180720095410.GA11904@kroah.com> <107dbdd1-4e45-836f-7f8f-85bc63374e4f@molgen.mpg.de> <30b069b5-63f6-dd9e-b323-668f06bff6cf@molgen.mpg.de> <20200103110451.GJ465886@lahna.fi.intel.com> Date: Thu, 09 Jan 2020 10:53:47 +0200 Message-ID: <875zhlt3hg.fsf@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, Mika Westerberg writes: > On Thu, Jan 02, 2020 at 03:10:14PM +0100, Paul Menzel wrote: >> Mika, as you fixed the other leak, any idea, how to continue from the >> kmemleak log below? >>=20 >> ``` >> unreferenced object 0xffff8c207a1e1408 (size 8): >> comm "systemd-udevd", pid 183, jiffies 4294667978 (age 752.292s) >> hex dump (first 8 bytes): >> 34 01 05 00 00 00 00 00 4....... >> backtrace: >> [<00000000aea7b46d>] xhci_mem_init+0xcfa/0xec0 [xhci_hcd] > > There are probably better ways for doing this but you can use objdump > for example: > > $ objdump -l --prefix-addresses -j .text --disassemble=3Dxhci_mem_init = drivers/usb/host/xhci-hcd.ko > > then find the offset xhci_mem_init+0xcfa. It should show you the line > numbers as well if you have compiled your kernel with debug info. This > should be close to the line that allocated the memory that was leaked. addr2line helps here. So does gdb (gdb vmlinux l *(xhci_mem_init+0xcfa)) =2D-=20 balbi --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEElLzh7wn96CXwjh2IzL64meEamQYFAl4W6hsACgkQzL64meEa mQahAw//eVR5E4c0CZ9GI782MazL/BmWTpoHqKhbEONjRiqeFy8tdytMt7Ea4j1g VTo/hWfLp7JIR7TY6DL1OYHBTjjM/vWG5NNI5qzXKAZJ8pAc/33IWlUnhrF35sks DTsB0H0IJdwvqDgcNGBCSwufVbaHbk7M65fxkjcmLGiYUJ/YaZn5qIHi/5/4OHff PGuZhV8fvrYMAUyfyVnlks3rN+545nW2yaiQfuVGZEK+QGupMTgGZMYh7ZfkMnAh l/uWczDQKLAuIu/NvRin+nZWSIvc5JJn8DbIlI3Y8e8J0oHUSV2Icfkou6TW/c7J YB7rIr74QOfS6PqG1xvLtCO1wv/JWsBpbdwUV8F0nrbYp7AupN1QKhVaYMBukESP 9KJTEYYjG0RdYVwE3SnjSiMJXGnIwt/s7bcZN7kbeHPFPE3DdIJ2yVCK22JeN7fp scts2s15m+FWb+bsPO1wve5rci7L5uDrUpq45fnPqIE/W0r5ffUXdYnEyKuLbMoJ /e61PNRLrXL2ptSsYq7eu4HybBlJzFBj8t9tMDdg4YAuChjVUD1YIvOIcBPCq4L3 MbLW3CbG8AjFDHpWWMFK/F010lvemVDMuSEJFF2afc5ZuHK4915Urve1gncWB0CF OsJW0wA+3YafO8ULyn+BTUEc13SBJsFRIW90ojcQDRrDCXsdP6c= =152o -----END PGP SIGNATURE----- --=-=-=--