Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1082240ybl; Wed, 21 Aug 2019 09:51:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqySIfXEKq1H8pFrad2sc6npA/1p9h7A7d1VixlUHwuO0XEMBDAWLOrjqOwPYbY3LGGlPKJ8 X-Received: by 2002:a17:902:bb94:: with SMTP id m20mr34167769pls.336.1566406317618; Wed, 21 Aug 2019 09:51:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566406317; cv=none; d=google.com; s=arc-20160816; b=jsSu1c5zhCPIrJRRjNhiQoq2En02S7qevhq7Taxt2HkiyA97ifh7jRup+5clFLEe1h AkRdscIXXRpUipP0M3mAvQiJUgWcTBoj6Go+L8iL/tt3QxDSsUoK0J3NR9fcn4DrKvPZ tbOMqEqYioLbI12/4409ZsXhdxv0Dh5a/WhLmZvtTbKGnsGre/vg+oQNpZHR1mCfIcWd 8JDb+l2Cr1OAdbwgBdPDe/2HMqXlG3dhz1rFKb3oM5bGf3W2uuDZI63/mbWmbUGDBm5V 8j4XbenLyaO1wwH6A58VB2wfU4SezITj6gM8mKuwxGzVyv7H5SBXrRwHILNP4olCLS9K DAQA== 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=dNLL8R5Ozl+yUbTTz0wtZ6BTtTLjEvK9s2CYPkCtL7o=; b=Nu+dHt/36MCdVJXrNgrY55hieq665onbSx5WTe/ct1I5oZVCTOox1XY4r7Lfex3qYh vsCc0cQ2d/jY14rph26uGAUjHw+DYWK6CFjv0/o//BQ7LPeZix9wwsJRaPuuVA8szSCU f0SPC/Jqi6zAJx81QnDRERZIf7K/H913XPkL7F/q42LOHD5qB7exAMBEARdP0rmGYgbA r3JspxGr8vqG67zt8AEt0q3iTStrobgXZr9TWZ2KkrBbC1Z8XYxWueCziSpxv/7mxN76 Agl85HutE1Oueg4OkCTWJ+N0CHpj7/BkSAf2cmqIpsxMAG9Bt3gaMTpiRVHFIGPh3Hui lZkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=GjstqJzq; 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 9si14564036pgo.283.2019.08.21.09.51.42; Wed, 21 Aug 2019 09:51:57 -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=GjstqJzq; 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 S1729578AbfHUQuj (ORCPT + 99 others); Wed, 21 Aug 2019 12:50:39 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:35542 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726828AbfHUQuj (ORCPT ); Wed, 21 Aug 2019 12:50:39 -0400 Received: by mail-pl1-f196.google.com with SMTP id gn20so1639146plb.2 for ; Wed, 21 Aug 2019 09:50:39 -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=dNLL8R5Ozl+yUbTTz0wtZ6BTtTLjEvK9s2CYPkCtL7o=; b=GjstqJzqiWim4DDuwFd0g+cGejELz5UNq4QiK/WmnN0FNkrbmqOkdW9duNhHU8gZ8K xVfQk91OUNALPQghxN4Aq/ItuVzKWI783T40f5LeRpverVYuRi+XzcMBCmmWaOhNE9bf grRYIod7QwSfSnxzRMpSn6cDVgx30+dTKt+rzVulZduUmsXf0IkVIb8Qo3v4uLXv4hW5 38zk9tBVS7EFMKtZMdULMVMZmpqTkaV+kH0JHobeNMAUhdFPTIlVf5tmTMs8I3XEO9wz 1d4JWpi6iRZQzAdIHWwxJkd8JaKn89mF5AUHAt38THIZwALYKRnxmvi4S0s3wZG9KvbA 488g== 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=dNLL8R5Ozl+yUbTTz0wtZ6BTtTLjEvK9s2CYPkCtL7o=; b=fSfRMMkA3jZXRZHNCfNvo/FjB+5poJHM9bLEywcrOTMSYlqNt3841HNRn2JxZTB5a3 H/kDvz53rd4832JaXjXY2qHUNsV769wnCas9m/Pe2cnzTflz7KYaUdSeieXM9pPWBLw7 MqW73kY0svSfPkOev+RHDF2rSa5YLfdUMSYr0tF2UFnN2r8KZ9Se+mw/1vU51y8LQiwH 8yun7WFtEhFzbBxkUVcL94WxJmDuCgh+p1aOQKsvq9MLrSaismzjn7sSKgM8rXVeWl1J SyeLcd+JlmRtXAEHUG1Waafg+DrV8xMOLX439oMsHgGdf1s8V0nhY2kPd62xmTFNyfi1 PRQw== X-Gm-Message-State: APjAAAXwL+rLE7Txu/p6cVb2XCTi9RwBeCMYikIkfcChhP16460DacoW DLXI6gNmHjOuSgBMBF5k1NZgsdZuxxqbXeqXakXQ7w== X-Received: by 2002:a17:902:ab96:: with SMTP id f22mr35635682plr.147.1566406238620; Wed, 21 Aug 2019 09:50:38 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Andrey Konovalov Date: Wed, 21 Aug 2019 18:50:27 +0200 Message-ID: Subject: Re: KASAN: slab-out-of-bounds Read in hidraw_ioctl To: Alan Stern Cc: syzbot , Benjamin Tissoires , Jiri Kosina , linux-input@vger.kernel.org, LKML , 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 Wed, Aug 21, 2019 at 6:26 PM Andrey Konovalov wrote: > > On Wed, Aug 21, 2019 at 6:24 PM Alan Stern wrote: > > > > On Wed, 21 Aug 2019, Andrey Konovalov wrote: > > > > > On Wed, Aug 21, 2019 at 3:37 PM syzbot > > > wrote: > > > > > > > > Hello, > > > > > > > > syzbot has tested the proposed patch but the reproducer still triggered > > > > crash: > > > > KASAN: slab-out-of-bounds Read in hidraw_ioctl > > > > > > Same here, a different bug. > > > > It looks like I've got the fix for both these bugs. Testing now... > > Great! Do you think "BUG: bad usercopy in hidraw_ioctl" can also be > fixed by one of those fixes? We actually have a bunch of other non reproducible bug reports that come from HID. I think I'll dup them into these two bugs that you've fixed, and we'll see if syzkaller triggers them again once the fixes are upstream. > > > > > > > Tested on: > > > > > > > > commit: e96407b4 usb-fuzzer: main usb gadget fuzzer driver > > > > git tree: https://github.com/google/kasan.git > > > > console output: https://syzkaller.appspot.com/x/log.txt?x=14f14a1e600000 > > > > kernel config: https://syzkaller.appspot.com/x/.config?x=cfa2c18fb6a8068e > > > > compiler: gcc (GCC) 9.0.0 20181231 (experimental) > > > > patch: https://syzkaller.appspot.com/x/patch.diff?x=171cd95a600000 > > > > Why don't these patch-test reports include the dashboard link? It sure > > would be handy to have a copy of it here. Sorry, didn't notice this comment. This should be easy to implement, I'll look into that, thanks!