Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2667299imm; Fri, 20 Jul 2018 02:46:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfGlMrwxceMlPyjrKdQWYoxkNKNYXcOWkY8GTRKcJGMh7gKAMicHvM8Xyd19XFHIw3o8MGK X-Received: by 2002:a65:40ca:: with SMTP id u10-v6mr1392405pgp.2.1532079967853; Fri, 20 Jul 2018 02:46:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532079967; cv=none; d=google.com; s=arc-20160816; b=ssjiq/FisRjgfTMfq8bFMv5i0sfOKpodhzt4QMgSD/Hbm3BazHzMneHlSGE7+M+Xo8 ZmCC9GrUWXGOgl6lG1Lwi7QXoUelhWIaBRAbdiZQ/OBhvC4mvtKLjsA5nYguDUchU9TB KOC0Bi6C5LHMK2VyKo69LtiNYCOwaibRei6pPkXLJBd25+5tLr7WItjrsT7pOymE2JDv MKgL9bCLFeeQ+SEQvORAm1TDAUzjZ9crYX3Y8tNMk5UtQkVHUEiGjzVDW+BlBUGVFVCw f492GAs4hhxJASFMa2y0a4I2VdFLSErZ+BK9mGKL6VXYETUZK3RCD/sPzyAbEZS3dT+e V6bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:date:message-id :cc:to:subject:from:arc-authentication-results; bh=wJtrSV4tKVP4jyp7k37YaBvQaW9OQSl5fRzF0ARbPCk=; b=UpiHdnINkScrtC+Uf0oBGPwZ1+8GXmUTb9WPYk0b1m6zSEUbvsBnmbodgzYM/55zCz m0zPchA/Lhlst64IxEYOKKSMrrEeusz0F9twRlgx0Ejr7W0X3cypcSLGYMuoqI5oZsxC OW2R1JawqXoCrfqwNHDNEPm2erZoJplN1tByqmqBKXjWcqlTMEmwpjP64H1yBkKYvUpU oNZEpOqf2N+l9qYFwnbfuny9LoeJmt/Wr/3mkt1Gj9tyIcjqnJz307a9+cPKLcvltCRC MVwdaPlijvYQocr+6+Su/WEwqSD3eNJiRilBTcs1LY3M1HoHLWTa0vNd06maEOD6IvoX OE+A== 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 z137-v6si1382506pgz.144.2018.07.20.02.45.53; Fri, 20 Jul 2018 02:46:07 -0700 (PDT) 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 S1727681AbeGTKcS (ORCPT + 99 others); Fri, 20 Jul 2018 06:32:18 -0400 Received: from mx3.molgen.mpg.de ([141.14.17.11]:45153 "EHLO mx1.molgen.mpg.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727233AbeGTKcS (ORCPT ); Fri, 20 Jul 2018 06:32:18 -0400 Received: from keineahnung.molgen.mpg.de (keineahnung.molgen.mpg.de [141.14.17.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 975FF2012BA076; Fri, 20 Jul 2018 11:44:49 +0200 (CEST) From: Paul Menzel Subject: BUG: KASAN: use-after-free in xhci_trb_virt_to_dma.part.24+0x1c/0x80 To: Mathias Nyman Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <95b4bdb2-962f-561e-ac14-79cd44395915@molgen.mpg.de> Date: Fri, 20 Jul 2018 11:44:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="------------ms080108080105030605040006" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a cryptographically signed message in MIME format. --------------ms080108080105030605040006 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Dear Linux folks, Using Linux 4.18-rc5+ with kmemleak enabled on a MSI B350M MORTAR (MS-7A3= 7) with an AMD Ryzen 3 2200G, the memory leak below is suspected. ``` $ sudo less /sys/kernel/debug/kmemleak unreferenced object 0xffff894f8874a2b8 (size 8): comm "systemd-udevd", pid 119, jiffies 4294893109 (age 908.348s) hex dump (first 8 bytes): 34 01 05 00 00 00 00 00 4....... backtrace: [<00000000308e4456>] xhci_init+0x81/0x170 [xhci_hcd] [<00000000269aa18f>] xhci_gen_setup+0x2cb/0x510 [xhci_hcd] [<000000007b70d85f>] xhci_pci_setup+0x4d/0x120 [xhci_pci] [<0000000059f49127>] usb_add_hcd+0x2b6/0x800 [usbcore] [<000000009a16d67c>] usb_hcd_pci_probe+0x1f3/0x460 [usbcore] [<0000000001295c2e>] xhci_pci_probe+0x27/0x1d7 [xhci_pci] [<00000000395bd8f9>] local_pci_probe+0x41/0x90 [<00000000a344e362>] pci_device_probe+0x189/0x1a0 [<00000000318999e5>] driver_probe_device+0x2b9/0x460 [<00000000c29d8a55>] __driver_attach+0xdd/0x110 [<00000000975b7f46>] bus_for_each_dev+0x76/0xc0 [<000000006bc40955>] bus_add_driver+0x152/0x230 [<00000000840ed63c>] driver_register+0x6b/0xb0 [<00000000123908c4>] do_one_initcall+0x46/0x1c3 [<00000000ce69c793>] do_init_module+0x5a/0x210 [<0000000091d4aef2>] load_module+0x21c4/0x2410 [=E2=80=A6] ``` Kind regards, Paul --------------ms080108080105030605040006 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCC EFowggUSMIID+qADAgECAgkA4wvV+K8l2YEwDQYJKoZIhvcNAQELBQAwgYIxCzAJBgNVBAYT AkRFMSswKQYDVQQKDCJULVN5c3RlbXMgRW50ZXJwcmlzZSBTZXJ2aWNlcyBHbWJIMR8wHQYD VQQLDBZULVN5c3RlbXMgVHJ1c3QgQ2VudGVyMSUwIwYDVQQDDBxULVRlbGVTZWMgR2xvYmFs Um9vdCBDbGFzcyAyMB4XDTE2MDIyMjEzMzgyMloXDTMxMDIyMjIzNTk1OVowgZUxCzAJBgNV BAYTAkRFMUUwQwYDVQQKEzxWZXJlaW4genVyIEZvZXJkZXJ1bmcgZWluZXMgRGV1dHNjaGVu IEZvcnNjaHVuZ3NuZXR6ZXMgZS4gVi4xEDAOBgNVBAsTB0RGTi1QS0kxLTArBgNVBAMTJERG Ti1WZXJlaW4gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgMjCCASIwDQYJKoZIhvcNAQEBBQAD ggEPADCCAQoCggEBAMtg1/9moUHN0vqHl4pzq5lN6mc5WqFggEcVToyVsuXPztNXS43O+FZs FVV2B+pG/cgDRWM+cNSrVICxI5y+NyipCf8FXRgPxJiZN7Mg9mZ4F4fCnQ7MSjLnFp2uDo0p eQcAIFTcFV9Kltd4tjTTwXS1nem/wHdN6r1ZB+BaL2w8pQDcNb1lDY9/Mm3yWmpLYgHurDg0 WUU2SQXaeMpqbVvAgWsRzNI8qIv4cRrKO+KA3Ra0Z3qLNupOkSk9s1FcragMvp0049ENF4N1 xDkesJQLEvHVaY4l9Lg9K7/AjsMeO6W/VRCrKq4Xl14zzsjz9AkH4wKGMUZrAcUQDBHHWekC AwEAAaOCAXQwggFwMA4GA1UdDwEB/wQEAwIBBjAdBgNV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