Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp886834pxb; Wed, 27 Oct 2021 14:29:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWiPPPMnS9nawhBuvewXgOpiAi8Wtnppwjw9yL7y/6LDgNX4FVd+Au06o8o8ya+Rc/1LUH X-Received: by 2002:a17:906:6a0a:: with SMTP id qw10mr96904ejc.466.1635370165178; Wed, 27 Oct 2021 14:29:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635370165; cv=none; d=google.com; s=arc-20160816; b=pT7YZNAM+/uJeEca7jrylzm4lpZRAoVQcsPa+NeGz9c/C30ytsZd5Wzl6GKgukxif5 dRzYQitz3mJrAfVAhIXsJmBU43WdbiLaOIhr1Fl49jfSRkSeH1ObLGuHoM857hLbWPFJ qofF/taeG1xUzm14rlhGj4XG4Ev8Ea8L9oriuMuvrhaV6HzFMaNLje/ocWcQzbWDxpL5 4A8GKyHeLvPMhx9ftKz+4XzCs1gtAKZmrouuQ13m6Vq3l5Pqj0y8l4ERywVgnnVpJwhz 9p1Oxx0I0bXMccNAvBq2hTN21N0fOIlTyR8NgP/DRKdBMzruouIlbyjGT/zZmQqYyytY af6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=z/Y6Y4Q6GIPOPylGz9rQN8XoIPlqV9Q9ShHOXlxCR0A=; b=ATmjWqFwdKzUrH5m3lYzhy6D4YoFdBEf/g/S3vvwN1xkMmYuW6CYt+2UsGYVJAYeKH yKd4DHxJ/Czg5nlMdRbMrk+vw4+oXApiZHSa7/OnnD9I+OkLJtTkoTG/WGB+NF8cWDkb Mtqdz/bDqGp9F6MlJavaSes0ciRIWdVGCyS7AvRzN+qI3/2ifISPJUFHfcySPmLrT+AO zqrhayJ/OcXV5Xc/oNtE44lahr3LBp8YesmP2AJ0KVynqVCF8s1Q7cYi4NGhBL8GSi6R 1WPwF4/K0wEVv+QsBSMhnRc4Ldah17Dk1CR68JAJsSI+Ej5nFA0E4pWQF583tV8KiEdB Yndg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DB54l3j7; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l12si1182695edq.430.2021.10.27.14.28.58; Wed, 27 Oct 2021 14:29:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DB54l3j7; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239274AbhJ0Q20 (ORCPT + 99 others); Wed, 27 Oct 2021 12:28:26 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:27189 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234414AbhJ0Q20 (ORCPT ); Wed, 27 Oct 2021 12:28:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635351960; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=z/Y6Y4Q6GIPOPylGz9rQN8XoIPlqV9Q9ShHOXlxCR0A=; b=DB54l3j71ePXSH9VgMLP2RZ7hUNQyzAaDSssj38h+9Hl/X5X+jni04xr1m9OrII9qsyf+p WW9qvF2AFfmZu01Ih/Rc+Xp9jYyjdKxHwzYlyya5RCnfTrfLqHDV/uSur83Duih+XIh9bC RnlrUBwmRJVVNs5nuVWKJYKq3sefmUo= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-123-8BOJZC5PMI6CVIrEoJ-m0Q-1; Wed, 27 Oct 2021 12:25:58 -0400 X-MC-Unique: 8BOJZC5PMI6CVIrEoJ-m0Q-1 Received: by mail-wm1-f71.google.com with SMTP id l187-20020a1c25c4000000b0030da46b76daso2124294wml.9 for ; Wed, 27 Oct 2021 09:25:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=z/Y6Y4Q6GIPOPylGz9rQN8XoIPlqV9Q9ShHOXlxCR0A=; b=RskPCfGhFqOqrf/FIOpTFfsyFgtVOr8uZbig37ZUO2jdxEqVF98x2yuZ1h7SfDjYeT blL+Z3xnOF2leyd5Y8si3yNNsK8f0rlHwplN+Sb5472GnpGhibiH2YRr4Nvod3hnzOt9 vIVlyXsauKNOKxIJNcaQLNBY2SbM6sRP5wXawYy+6+aaOb9xAWr22vrwJf4WUvcUBZa6 J4/8aj1PliCSh2vwl8f+G0Lyz6LoX5LsyHAGCiRIEqkZWltnzRoEfHOkY+TTl2zL2Tqd JnwdYNU7i+ymWl4gy1YcJfC2fiyaOOABqlAQ0CUdjSWE2V5XaD3slZr78S/BgVrgmdeF TdCQ== X-Gm-Message-State: AOAM531ZG9LRJqefSgI6NBBguzPrtu/83XHq7ElMR5VUXz72O7ehVj8M GbP2KhvTErJsMNtmPHEJslvt+pDhuWvd9sZ1WWVdjcYoRRnP/ZhBDStLlTTNew1cY9+PXcHF3ty JW2EDTgRnMS7i89bHZxVwoC2Z X-Received: by 2002:a5d:47a3:: with SMTP id 3mr28992992wrb.336.1635351957421; Wed, 27 Oct 2021 09:25:57 -0700 (PDT) X-Received: by 2002:a5d:47a3:: with SMTP id 3mr28992960wrb.336.1635351957172; Wed, 27 Oct 2021 09:25:57 -0700 (PDT) Received: from [192.168.100.42] ([82.142.14.190]) by smtp.gmail.com with ESMTPSA id n7sm334197wra.37.2021.10.27.09.25.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Oct 2021 09:25:56 -0700 (PDT) Message-ID: <589f86e0-af0e-c172-7ec6-72148ba7b3b0@redhat.com> Date: Wed, 27 Oct 2021 18:25:55 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [syzbot] KASAN: slab-out-of-bounds Read in copy_data Content-Language: en-US To: "Michael S. Tsirkin" , Dmitry Vyukov Cc: syzbot , davem@davemloft.net, herbert@gondor.apana.org.au, jiri@nvidia.com, kuba@kernel.org, leonro@nvidia.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, mpm@selenic.com, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com References: <000000000000a4cd2105cf441e76@google.com> <20211027111300-mutt-send-email-mst@kernel.org> From: Laurent Vivier In-Reply-To: <20211027111300-mutt-send-email-mst@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 27/10/2021 17:28, Michael S. Tsirkin wrote: > On Wed, Oct 27, 2021 at 03:36:19PM +0200, Dmitry Vyukov wrote: >> On Wed, 27 Oct 2021 at 15:11, Laurent Vivier wrote: >>> >>> On 26/10/2021 18:39, syzbot wrote: >>>> Hello, >>>> >>>> syzbot found the following issue on: >>>> >>>> HEAD commit: 9ae1fbdeabd3 Add linux-next specific files for 20211025 >>>> git tree: linux-next >>>> console output: https://syzkaller.appspot.com/x/log.txt?x=1331363cb00000 >>>> kernel config: https://syzkaller.appspot.com/x/.config?x=aeb17e42bc109064 >>>> dashboard link: https://syzkaller.appspot.com/bug?extid=b86736b5935e0d25b446 >>>> compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 >>>> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=116ce954b00000 >>>> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=132fcf62b00000 >>>> >>>> The issue was bisected to: >>>> >>>> commit 22849b5ea5952d853547cc5e0651f34a246b2a4f >>>> Author: Leon Romanovsky >>>> Date: Thu Oct 21 14:16:14 2021 +0000 >>>> >>>> devlink: Remove not-executed trap policer notifications >>>> >>>> bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=137d8bfcb00000 >>>> final oops: https://syzkaller.appspot.com/x/report.txt?x=10fd8bfcb00000 >>>> console output: https://syzkaller.appspot.com/x/log.txt?x=177d8bfcb00000 >>>> >>>> IMPORTANT: if you fix the issue, please add the following tag to the commit: >>>> Reported-by: syzbot+b86736b5935e0d25b446@syzkaller.appspotmail.com >>>> Fixes: 22849b5ea595 ("devlink: Remove not-executed trap policer notifications") >>>> >>>> ================================================================== >>>> BUG: KASAN: slab-out-of-bounds in memcpy include/linux/fortify-string.h:225 [inline] >>>> BUG: KASAN: slab-out-of-bounds in copy_data+0xf3/0x2e0 drivers/char/hw_random/virtio-rng.c:68 >>>> Read of size 64 at addr ffff88801a7a1580 by task syz-executor989/6542 >>>> >>> >>> I'm not able to reproduce the problem with next-20211026 and the C reproducer. >>> >>> And reviewing the code in copy_data() I don't see any issue. >>> >>> Is it possible to know what it the VM configuration used to test it? >> >> Hi Laurent, >> >> syzbot used e2-standard-2 GCE VM when that happened. >> You can see some info about these VMs under the "VM info" link on the dashboard. > > Could you pls confirm whether reverting > caaf2874ba27b92bca6f0298bf88bad94067ec37 addresses this? > I've restarted the syzbot on top of "hwrng: virtio - don't wait on cleanup" [1] and the problem has not been triggered. See https://syzkaller.appspot.com/bug?extid=b86736b5935e0d25b446 Thanks, Laurent [1] d721abbeb145 hwrng: virtio - don't wait on cleanup bb768beb0a5f hwrng: virtio - add an internal buffer d25f27432f80 (origin/master, origin/HEAD, master) Merge tag 'arm-soc-fixes-5.15-3' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc