Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4871942ybi; Tue, 30 Jul 2019 09:34:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqyNCOdyS1xdrsPXpoPKSzDBC7MSwOoBAYmOzOlCeOdKiu92Qvcp34EF7OKTMYBqDa0XoY2i X-Received: by 2002:aa7:8189:: with SMTP id g9mr43426291pfi.143.1564504490020; Tue, 30 Jul 2019 09:34:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564504490; cv=none; d=google.com; s=arc-20160816; b=DjGN9zxEygmWmtifMOJmZKhPgg7vne90V+w0fp8kzooTYpccubvy8xRsBkvNv3msIV ifMoOyIpuUNAJ0zBrB2g/Ka9npTo4usSkJkBISOxcXwp+0VCje1qU2QsDvZb0TVKVYxy hrwS3gGNpRLoKK7BhLM1JHGbVH8KhYXLj8p3yndjmAM4jP2Naf/J2EgztJ54Wgg7cu2g 6eNOs+mYLS6dZ4AVKCkBXwkbv3R7w/xfMr9x+IwraETrdbRcdN6dYQ53cbTRf8gNndZj +19JOQglOkRxMOO8WXyDnGxjOMnbt7GS8acGWU6tfqbAQS/CUXiakIp2kHUmho7qXEmX NREQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=aLW6xr/ZT3S3E1+3lAes0TB19oJInjpQS73rS0vOgHQ=; b=oAK6WE6VP87ZquZeG0c9wAxnos59oQHBAwY8ysv2/Tq0F+xsBZ1UrrFOQcIN3Z9VH0 iwJrDwZ8z4n8jtnu1sstceuYAKxzhLx97M1jxmg3DKy2Hmh0KRxVcVU2n9a8f2ypU+a8 xzrIRjJUXWIbg8sLIlHhOizspQz4xfXta+hX1jFJn2uSwHNp3w6sx8LveAO1z+0Q9mI0 BEECVSvoFTHICp2hAPNAdUQzjKnw56J/Edm/8uuKt7/Y9Xab/bLai3jUjxiufakwaODg yREFHXTrZByUVqollkrYFE8/Q4vPeJw6iYCoX5uuWNLdqJgsr3I8utZBlb9kDvjxxif4 DWZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=KiUYWlMN; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k76si29119348pga.294.2019.07.30.09.34.34; Tue, 30 Jul 2019 09:34:50 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=KiUYWlMN; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728204AbfG3OWT (ORCPT + 99 others); Tue, 30 Jul 2019 10:22:19 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:45664 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726174AbfG3OWT (ORCPT ); Tue, 30 Jul 2019 10:22:19 -0400 Received: by mail-pf1-f194.google.com with SMTP id r1so29919093pfq.12 for ; Tue, 30 Jul 2019 07:22:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aLW6xr/ZT3S3E1+3lAes0TB19oJInjpQS73rS0vOgHQ=; b=KiUYWlMNbFKz4eb3Mytz+22rvH2Xd6UXPsyCa66JfHZLSLb4G26Qu8vHXW0ZpObBzZ FPbTVY7LqSopBSV6MmE6y5eIRadxDkJQDpdgx9OZud+35RGx2laE1BpO4NykX8vbUOl2 TdAnO9JH4iyU14KNuSB0TTNIv/z/Pz7r00CT7vDZU2tIPKujob8izh3lVADx53amPwwo hGgA9/nyE9v0ZPQrPMfW4MfM3xHDE4CatLOI/Fl7vH7nqY/h0ibcLTW6e6YLx2aSWeLS 7bdDfH3n/oHlb71fVuCCctVQiK7kc4eC95D5pnXFanLpJBAdNvzpSBmN0EQBSOXZkyD8 HRdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aLW6xr/ZT3S3E1+3lAes0TB19oJInjpQS73rS0vOgHQ=; b=Mhse51KTB+pRrRl6pnIVtMNAhsuKhFMoAi8vD4aBBTdAZ9JRXOknV4wNlgNJVW9wba dCB+t+EoXwhMqFhreboPuMWY4/+1yXa3bWt00Xt6SLZWa2O3tr/+2cYgpuyel1/McaTW 1O9IfIbwyZsp9mwY7+1f3WW3PMYX0rdvnN3Ag6UfjSf2SxOMplpGMYIStd7kaCUvO8fV s/pORMZBccJdG5l/HfjNQ07ItkT9D3dmnSo8EUKmY+h6x1pN67kV/KJFoY4clAnVsBCh 63z35hlBjZztkITLYHTl66DiMX5ordGFmGTdRfIULYpKX0mfxMa9C1nTkhVkeuXhvxmY oCiw== X-Gm-Message-State: APjAAAWKhaTsnbMOf0INmHJn8DDjNCM/V8fpLapjtAdegRV/lFuRA+Hb m8BsXq6atowLeYwkfp29t9L+i8pZC0sm4wM6fdD40w== X-Received: by 2002:a65:4b8b:: with SMTP id t11mr108766121pgq.130.1564496538253; Tue, 30 Jul 2019 07:22:18 -0700 (PDT) MIME-Version: 1.0 References: <00000000000014c877058ee2c4a6@google.com> In-Reply-To: From: Andrey Konovalov Date: Tue, 30 Jul 2019 16:22:07 +0200 Message-ID: Subject: Re: KMSAN: kernel-usb-infoleak in pcan_usb_pro_send_req To: Alan Stern Cc: syzbot , Alexander Potapenko , Greg Kroah-Hartman , "Gustavo A. R. Silva" , Kernel development list , USB list , syzkaller-bugs Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 30, 2019 at 4:20 PM Andrey Konovalov wrote: > > On Tue, Jul 30, 2019 at 4:17 PM Alan Stern wrote: > > > > On Tue, 30 Jul 2019, syzbot wrote: > > > > > Hello, > > > > > > syzbot found the following crash on: > > > > > > HEAD commit: 41550654 [UPSTREAM] KVM: x86: degrade WARN to pr_warn_rate.. > > > git tree: kmsan > > > console output: https://syzkaller.appspot.com/x/log.txt?x=13e95183a00000 > > > kernel config: https://syzkaller.appspot.com/x/.config?x=40511ad0c5945201 > > > dashboard link: https://syzkaller.appspot.com/bug?extid=513e4d0985298538bf9b > > > compiler: clang version 9.0.0 (/home/glider/llvm/clang > > > 80fee25776c2fb61e74c1ecb1a523375c2500b69) > > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17eafa1ba00000 > > > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17b87983a00000 > > > > > > IMPORTANT: if you fix the bug, please add the following tag to the commit: > > > Reported-by: syzbot+513e4d0985298538bf9b@syzkaller.appspotmail.com > > > > > > usb 1-1: config 0 has no interface number 0 > > > usb 1-1: New USB device found, idVendor=0c72, idProduct=0014, > > > bcdDevice=8b.53 > > > usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 > > > usb 1-1: config 0 descriptor?? > > > peak_usb 1-1:0.146: PEAK-System PCAN-USB X6 v0 fw v0.0.0 (2 channels) > > > ================================================================== > > > BUG: KMSAN: kernel-usb-infoleak in usb_submit_urb+0x7ef/0x1f50 > > > drivers/usb/core/urb.c:405 > > > > What does "kernel-usb-infoleak" mean? > > That means that the kernel put some uninitialized data into a request > that was sent to a USB device. Here's a better report for this bug: https://syzkaller.appspot.com/text?tag=CrashReport&x=11dae8ec600000 This is a real bug, I was able to reproduce it with a hardware reproducer and leak some kernel pointers AFAIR. > > > > > Alan Stern > >