Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4685630imw; Tue, 19 Jul 2022 11:12:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s+65dWYkqlP3IbvcUQRzQuxuq7OQPa/R88iKkGLS10qXSG0UetRI6cKN4qPe1erSoukmrk X-Received: by 2002:a17:907:2c4a:b0:72b:5b9b:9c50 with SMTP id hf10-20020a1709072c4a00b0072b5b9b9c50mr32363017ejc.636.1658254331980; Tue, 19 Jul 2022 11:12:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658254331; cv=none; d=google.com; s=arc-20160816; b=msHJYKzEsbPNWg4lW8sQZp21Y+8EBQACsuiK4VgDrm+Opjrh92fOuFyThEQ29eW31J P8pWtorftrXlq/wXN005MFVVqZLrsw5vuZzK1XhxOiadgkaaK/0m7M61j96a8edqzKRL fmvUSkZG49k7e8AsxZl3KSq5R8Zz1DP+DZJeYq2ctdiD0TrpNMfpOnVSijJO0zfI0kIO cM5j9UEPSsZOur5sqz/RzfCdX2v6Z4Wc9Yb2QglqNPXsvX1gPAOMdKOiOTACsrlKtsFf RA0iyDm5hwDFhpO9IPCin52vyBNv7ug3CnadZ2/DIruN0fzrOaag0XMcwN8jUsBh1E2L ICGw== 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; bh=7MiZysmczU7UnTDpbAdedFqdy/EQ9HsgenZiYdkozzs=; b=T5vd8YiSQypF0iuF655cvEMwDIloHSxADuaFtGzBeHomWINcq+mc50vZzJAvlmtTW4 OX9xwBORq4muYgazdZ3wcOkIFUsgenPYL2uKCA4SnmG6yetwJ7M0xdMtZrQk6FwN6aza 2XdBzNSPn0grNP3KFz5LGnRCD42Zlo5d5lUQ8F1Dx49I4oeb83qGkr+vFfrKRwnwjzp+ vTVwxkif0CuUcXe9C1R4aXIGKiZTUIbpaKdG6ySJhQ37JpcE6HKKGJxPXnHJyQoqnQX0 hGsdbxB2gMIBbrTowExVEFgEfWbB+AZRW8sXZYM0hK6/9+CVkmNO8BzMVIj3zsJO2BfG pnqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr21-20020a1709073f9500b0072f46330088si6748022ejc.555.2022.07.19.11.11.43; Tue, 19 Jul 2022 11:12:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239593AbiGSSI6 (ORCPT + 99 others); Tue, 19 Jul 2022 14:08:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233593AbiGSSI5 (ORCPT ); Tue, 19 Jul 2022 14:08:57 -0400 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 339BD48EB1; Tue, 19 Jul 2022 11:08:56 -0700 (PDT) Received: by mail-pl1-f175.google.com with SMTP id w7so226320plp.5; Tue, 19 Jul 2022 11:08:56 -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=7MiZysmczU7UnTDpbAdedFqdy/EQ9HsgenZiYdkozzs=; b=H2pLxzruQhMn4l4qZI42eA7Mt56tvji6s1ca/GyiSnyu8hecHHKgYoLvjqTk/AwZ/C psAAausOipt23GmjfawQxVU4iszs0mh0Y15SklLtM4VOmV4owBw/Ipe1kK620eDejrcm 1kHxd33nGegPlYcuD5rRzYZEin5UBl215ST0K0pl6LiXZCXaOKlbBWdUpeqEbh8f/xSu R+U19VDNJU4odfU9lTSCazP/v9hXzKwsd/l62+hSEYZHQcE2C8OlPHBLgasoJnFXHA71 UdTsW8+nsS6TGiLheAXP+jLHyAP8aGqBo9uMvR/E3wDqJRAojrxn5u8y5gHULNhQQRtk k31w== X-Gm-Message-State: AJIora9+OyFJ+R4iDIGfC6md30Twq5K4FmQmw6dxs5yne31ABFvZ/li0 dzinIxr/JoH0AQxMGT6FvUo= X-Received: by 2002:a17:90a:9b03:b0:1f1:85b2:c52b with SMTP id f3-20020a17090a9b0300b001f185b2c52bmr614201pjp.159.1658254135544; Tue, 19 Jul 2022 11:08:55 -0700 (PDT) Received: from ?IPV6:2600:1010:b002:e126:5611:6026:69c2:37bc? ([2600:1010:b002:e126:5611:6026:69c2:37bc]) by smtp.gmail.com with ESMTPSA id i6-20020a056a00004600b0052592a8ef62sm11835507pfk.110.2022.07.19.11.08.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Jul 2022 11:08:54 -0700 (PDT) Message-ID: <2f0cba61-b98a-9b14-6bb5-700f2b367e3b@acm.org> Date: Tue, 19 Jul 2022 11:08:52 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] scsi: fix WARNING in scsi_alloc_sgtables Content-Language: en-US To: Jason Yan , martin.petersen@oracle.com, jejb@linux.vnet.ibm.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, hare@suse.com, hch@lst.de, syzbot+d44b35ecfb807e5af0b5@syzkaller.appspotmail.com References: <20220719080026.1595874-1-yanaijie@huawei.com> From: Bart Van Assche In-Reply-To: <20220719080026.1595874-1-yanaijie@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no 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-kernel@vger.kernel.org On 7/19/22 01:00, Jason Yan wrote: > When iovec_count is non-zero and dxfer_len is zero, the sg_io() just > genarated a null bio, and finally caused a warning below. To fix it, > skip generating a bio for this request if dxfer_len is zero. Since this patch is a bug fix, I think it needs a Fixes: tag. Thanks, Bart.