Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3885560rwr; Sun, 7 May 2023 22:39:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Fxsoz9AglvkPhSv6WTPaajHaAoBZ5481/P+24KOMDCtEDCYa6KhCqHAs+aCySd9X6Qjl6 X-Received: by 2002:a05:6a20:7345:b0:100:bda9:4b37 with SMTP id v5-20020a056a20734500b00100bda94b37mr903694pzc.57.1683524342322; Sun, 07 May 2023 22:39:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683524342; cv=none; d=google.com; s=arc-20160816; b=SCpLjMmTohlAv3c0Dnj6GPyBpVuXZHUAo234xakYs+5HSa5XWnUlFbpIEf8/Z3Hw8c Wj4eysJDpGsk3B6A8pGdgje0KEUiZ+Lu5i7Cc9NW+JdEA+oDJP22mxP2YdJusmjtzSfO 4TkxMQuZB4LHglWnU9EV0bY1/2GhEQFECc3RF3Jf9jX6KJfaqypdOLSU+lFGDu+DAf0e vGg5NC9HVRcY/+Yb8YVPotBw8r8Cejrc9WBxN4TlFHDDZn6+A9e3ewNu0JbudA30d7NX 8aPqLzJx9jBj4WLUNcX1GqDYGJD6BMg8grlxEMSBwLjcol/Sxmpg3n18txC8UGpJzuIA NK4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=jC08OjOC1DWla5nQSfzR7s/KkTqWo5bIIZj9+W6g+KM=; b=z6O1+1jO8nzeM3Vb3a8vVXXMsaipQbBSPa26KhOc2f1c8O/75EQyOpeNpIrv/lBfSd KhTdRzQYgcSq7di+OSesSXMATbABrGvJDanR45NdM1/+223badDGuuDmH5s0FO9Qo1tq m+pKCPtpg61/QQOM+MfMPvU+tE4sermCdLQSGBEQWFHJecrD2NbSo74WFFLWz7YQR36A RvmcDQKoG5s82w22rANGwaYi9vdD2XuNSl8rxXYK+1QUOapFdFjJ/7P8QLlgqYKglYSt G3BIeOe6uDqhbc1qQxvA1r1ZBV3czz3tF6hBx5vFdC1fWXWvHTbZ/LF2I8u+cXXtxp1a rQ9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=OicGTxtj; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g65-20020a625244000000b006439d34a090si7717297pfb.238.2023.05.07.22.38.39; Sun, 07 May 2023 22:39:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=OicGTxtj; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 S232632AbjEHFea (ORCPT + 99 others); Mon, 8 May 2023 01:34:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232454AbjEHFe2 (ORCPT ); Mon, 8 May 2023 01:34:28 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A97B17FD1 for ; Sun, 7 May 2023 22:34:00 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-4f14865fcc0so9031e87.0 for ; Sun, 07 May 2023 22:34:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1683524033; x=1686116033; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=jC08OjOC1DWla5nQSfzR7s/KkTqWo5bIIZj9+W6g+KM=; b=OicGTxtjW2mt75iwX6QB6dwfsblhe+yEiK7bjD6KZmI57VudTyUd37y3lH5jPPFXlc Ul8ke53k+V1idOTPGuYuVNSj/yAxV5Dsjx3CYJ4NL5nCzuaM4RmLWdgrZDsKC+AS2WeK 8jgCPM5vdlFztC/2PI+AnJ3QJ3WM47b5y5GqqP+CNCyqHnF698/cy6xG99GD5T6QbsCv q3DxeKUaeTcXu60YydDRPN0ZKZNSE1QyKv6yIrqgVfFH4W2YJCUB6H4EYuaStxZ79O3Q zA91I4SPA+Zw5pFBgfaKdUnbKnIPQ6YEY/Bj6IBvaaW8VTo2wUMPfOsInpD26KYwgTz5 JyuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683524033; x=1686116033; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jC08OjOC1DWla5nQSfzR7s/KkTqWo5bIIZj9+W6g+KM=; b=jhyqeKue8EyWsJuFNlTGlWfpfudHHg8lH5Xdl2h8Q/2aXCMj8DJjcjRYJouzY0Fp9r SswoNuUNJnWJsApjT+L8C8gHPe2lnF7Z+1T0sodyci0n3SfjuMPDhBydtmjzhmgRuA5J 1G7od26+z3L9I5NbmpsYIDZvZ+BVZCFUdecj3aL3vhpPjfO8JbEBL9N/5G6wqTTEU9ZK 2h2LI52ABO+6f6L36f30No/iox3qMvCr0Tjm6rJhvlufKYINnXTP+xWMCdU9JuvCYhsq rnTS0LUDx0yuBFWW31fbZ6fGMFnSIWpG/jVj8jtBmIp99q07+7W6ju3+gnioQvxf4Shv c3mQ== X-Gm-Message-State: AC+VfDzvPckMK0G36ldwXtP2LRrU0qnyZc5Y6QpD0Z2CoqlxrJ7jBd2h +Omr5J5Rf/3N2fYsGZJ90TFHe+7zKt6zaLkjFAUoJA== X-Received: by 2002:ac2:4eda:0:b0:4ef:ef1d:a97b with SMTP id p26-20020ac24eda000000b004efef1da97bmr177755lfr.0.1683524033064; Sun, 07 May 2023 22:33:53 -0700 (PDT) MIME-Version: 1.0 References: <00000000000050327205f9d993b2@google.com> <41ddc20d-8675-d8bc-18c6-2a26f0d6b104@linaro.org> <20230505040134.GA883142@mit.edu> In-Reply-To: <20230505040134.GA883142@mit.edu> From: Dmitry Vyukov Date: Mon, 8 May 2023 07:33:39 +0200 Message-ID: Subject: Re: [PATCH] hwrng: virtio - Fix race on data_avail and actual data To: "Theodore Ts'o" Cc: Tudor Ambarus , Herbert Xu , syzbot , davem@davemloft.net, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, olivia@selenic.com, syzkaller-bugs@googlegroups.com, Jason Wang , "Michael S. Tsirkin" , Laurent Vivier , Rusty Russell , Aleksandr Nogikh , syzkaller Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, 5 May 2023 at 06:01, Theodore Ts'o wrote: > > On Thu, May 04, 2023 at 09:10:43AM +0100, Tudor Ambarus wrote: > > > The syzbot ID is already present in the in the Reported-by tag. > > > There is no reason to clutter up the commit message with redundant > > > information. > > > > As you prefer. Theodore Ts'o encourages to add a dashboard link, here's > > his reasoning: > > https://github.com/google/syzkaller/issues/3393#issuecomment-1347476434 > > The reason why I've requested having both the Link and Reported-by is > because you don't know the secret incantation: > > s;Reported-by: syzbot\+\([0-9a-z]+\)@syzkaller.appspotmail.com;https://syzkaller.appspotmail.com/extid?=\1; > > ... you can't easily get from a "Reported-by:" e-mail address to a URL > link that will actually get you to the syzkaller page. What I used to > do was to go to https://groups.google.com/g/syzkaller-bugs and then > enter into the Google Groups searech box: > > Reported-by: syzbot+726dc8c62c3536431ceb@syzkaller.appspotmail.com > > which is a ***super*** clunky way to get to the syzkaller page. What > would be nice is if there was an easy way that didn't rely on kernel > developers knowing the internal URL structure of Syzbot to be able to > enter the Reported-by link on some convenient web page, perhaps in a > search box found in the front page of https://syzkaller.appspot.com, > and be able to find the syzbot report web page that way. > > Since that doesn't exist today, I include both the Reported-by: and > Link: in my commit descriptions, out of consideration to the reviewer > who might want to be able to find the Syzbot page and don't know the > secret trick to calculate the URL from the Reported-by: e-mail > address. > > > Another gotcha with Syzbot is that there are two id's, the "extid" and > the "id" which makes thing ***super*** confusing. For example, both > of these URL's go the same Syzbot report: > > https://syzkaller.appspot.com/bug?extid=726dc8c62c3536431ceb > https://syzkaller.appspot.com/bug?id=eec08eb3763c9ec749fd565e70cfe6e485af7ed7 > > The Reported-by e-mail address uses the extid. So for example, this > case, it would be syzbot+726dc8c62c3536431ceb@syzkaller.appspotmail.com. > > However, all of the links in the Syzbot web pages use the id form of > the URL. So if you were browsing the syzbot reports assigned to the > crypto subsystem via https://syzkaller.appspot.com/upstream/s/crypto, > you would find the id-style link, and then the commit fixing the bug > might have something like this: > > Reported-by: syzbot+726dc8c62c3536431ceb@syzkaller.appspotmail.com > Link: https://syzkaller.appspot.com/bug?id=eec08eb3763c9ec749fd565e70cfe6e485af7ed7 > > In that case, there is no (obvious) relationship between the hex > string found in the Reported-by line and the Link line. > > > One additional unfortunate fallout from syzbot having an "extid" and > "id", is that depending on how the syzbot entry initially found by the > contributor sending in a patch to address a syzbot report, either URL > can be found in mailing list archives. So if you search for > "extid=726dc8c62c3536431ceb" you won't find references to > "id=eec08eb3763c9ec749fd565e70cfe6e485af7ed7" even though they are > both referring to same Syzbot report. > > <<< sigh >>>> As they say, the hardest problem to solve in the > C.S. world is naming, and syzbot has two names for every single syzbot > report, and both are exposed to the poor user. :-( A link like this may work for syzbot instead of the Reported-by tag (may work out of the box, but need to double check if we start to use this): Link: https://syzkaller.appspot.com/bug?extid=726dc8c62c3536431ceb Or similarly this may work: Reported-by: https://syzkaller.appspot.com/bug?extid=726dc8c62c3536431ceb I think the parsing code mostly looks for the hash. This was proposed, but people said that they need links to lore and don't want links to syzkaller dashboard. So this was rejected at the time.