Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2979641rdb; Wed, 15 Nov 2023 17:15:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IFouTB2JOI9L6TtPHQRPZtctf1MhyLANAUqZyVQqmjhoq4CV4V3sfcBFL5i0agI28mtyIMS X-Received: by 2002:a05:6358:5e17:b0:16b:c609:1aa with SMTP id q23-20020a0563585e1700b0016bc60901aamr9369940rwn.8.1700097356802; Wed, 15 Nov 2023 17:15:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700097356; cv=none; d=google.com; s=arc-20160816; b=wTKZ41Ze0by9nCFrasPisLJwR5T7tixmG6MpG9UR00GAojGg1CcVtgXUnZuIViU+6k kkZhtkkGJsO0XxdltciWc4ki14XVuRswKpVfDDfDtDWQEf/UMP+TG/4gVPcXwb2OX5cG GBzopO7C/tfm2uuW0C4UyY0ZsendP1n3VVe7i3EC8EDSn0vYS/KN7mhCPZv9bF84BTMu wp4nBeeF88KmUEf8KoQSc7FL3DM/H7pjzdzK05uJJ9UZ8Pk8EZFbJclJfUbbX9tbzhr6 yQ5d+brp0NKtT+BzMW9auSTFApmIEUv9AQQwl+IeU/fLNdDbaMj6E6YTJp5gAGPnonKv 7UyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:in-reply-to:date :mime-version; bh=21E7e9RhSv6D07zzIzwFZc3l/Yr9Y30fEeH+mcQUYOM=; fh=V9AeBafJgTW96HdC48wsxGAfd7Fe9P2uAL8tLCjpUN4=; b=f6L13EYQ3ois6z0de59x8aVDruccFz4gn8kS+vdtccvRRfgxrOeE62igFqsNRx/yG2 MvwzKVuOISTVJB/d36O3KLNtiX8Hq9Za+BghA3YhPqO0Z7zdIf4rNy41WZV/KTmD/ih+ HupFBuBTwZachfMlv0M9XRwfEvq5oaHZZbKXvAjFgeAK6b3u5/zs4ocCRvbnlcJXxCKd 18BtEoRB6zvLv5lmjOcvD9lDOVjThTg+Evp8ZtR433jbpyM7teRem0woqZLK/hiMI9uG Sio6Nov+GEI4XDxV1BtgwKYxGqvVtDtO7536o4EZ7XceUH8ZMTwJujBFw3Pq+erIxmPO UrNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id a14-20020a634d0e000000b005b8afa325b8si11316387pgb.410.2023.11.15.17.15.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 17:15:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id DF2048082866; Wed, 15 Nov 2023 17:15:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235606AbjKPBOy (ORCPT + 99 others); Wed, 15 Nov 2023 20:14:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235056AbjKPBOx (ORCPT ); Wed, 15 Nov 2023 20:14:53 -0500 Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CEE2192 for ; Wed, 15 Nov 2023 17:14:50 -0800 (PST) Received: by mail-pf1-f199.google.com with SMTP id d2e1a72fcca58-6c7c6ae381fso263108b3a.2 for ; Wed, 15 Nov 2023 17:14:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700097289; x=1700702089; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=21E7e9RhSv6D07zzIzwFZc3l/Yr9Y30fEeH+mcQUYOM=; b=d+MaaKvQ+uSFV08IMXpTHe0LP1SvIHw3tKhelPWGXx9rSnVUMlsUorPcMBnMqVcF6E 3E1qv5vUfSWaHXUBf5ZJ1JBhFac6DgwkqkE7CDp7fnnb0oO2ywbcUUq79R6eSulAlp1+ 5sy7SNMFQZ79uKTs37WyVceaJDKAzwh+Lu31rS9ujVMwGcfkEmfHooAcs+r8eTNRLEiL 265PZA2pqhLgb/66MaE1dVNfY47NZAXw4WP/03i8t8Zu+eqflhqYXO0f+EdTcCrsQwkh v5ZkAD1qbuJjSSDCVQQ8KMNHoVppqui7auTzeXSaAnKRVRQnWsE/U9M6of2JgIB84Xyo m/9w== X-Gm-Message-State: AOJu0YwESb8+4oNTMYewXgjsEj0/+ShQ+m8T7J39fCpABfwxw70922nS 7pPVWkCTDpih17ZzUTo+fOTYscXS9tq3W8hjFxxjqNuZOaJyeXQ= MIME-Version: 1.0 X-Received: by 2002:a05:6a00:8509:b0:690:d251:28b9 with SMTP id ha9-20020a056a00850900b00690d25128b9mr3513941pfb.4.1700097289638; Wed, 15 Nov 2023 17:14:49 -0800 (PST) Date: Wed, 15 Nov 2023 17:14:49 -0800 In-Reply-To: <0000000000000526f2060a30a085@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000085ad3060a3abf6a@google.com> Subject: Re: [syzbot] [PATCH] test warning in squashfs_read_data From: syzbot To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.4 required=5.0 tests=FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 15 Nov 2023 17:15:19 -0800 (PST) For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org. *** Subject: [PATCH] test warning in squashfs_read_data Author: lizhi.xu@windriver.com #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git ac347a0655db diff --git a/fs/squashfs/block.c b/fs/squashfs/block.c index 581ce9519339..cf21494e3994 100644 --- a/fs/squashfs/block.c +++ b/fs/squashfs/block.c @@ -330,6 +330,12 @@ int squashfs_read_data(struct super_block *sb, u64 index, int length, if (next_index) *next_index = index + length; + printk("l:%d, i: %d, ol: %d, mbu: %d, %s\n", length, index, output->length, + msblk->bytes_used, __func__); + if (!length) { + res = -EIO; + goto out; + } res = squashfs_bio_read(sb, index, length, &bio, &offset); if (res) goto out;