Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3750109rdg; Wed, 18 Oct 2023 05:13:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFJC072ZwyH40v2birBBzb4g1lwGgeSXMPGVmaLdTxIFwnYi2YDYucUmqJIrurKvdagxwzs X-Received: by 2002:a05:6a00:134b:b0:68f:cbd3:5b01 with SMTP id k11-20020a056a00134b00b0068fcbd35b01mr8433230pfu.13.1697631223152; Wed, 18 Oct 2023 05:13:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697631223; cv=none; d=google.com; s=arc-20160816; b=szQc3Z9+TralVta5hSDgsU8NP52k3vQS/2UeD4tz4fXw6wRDWBFPWVOiR5dlMn6Z7J 2HNGXPPM02eozgguEn9FDv5OsXbThuwEsrIOcWk4WHcRFrp6lZq2r6HS+zZ94hfmXp/E SfNPwFWNMfw+SiIeTmdLGCeb+uf10DuDJex6Igyw6unj31R861r8qarbxPBJJh8p6Xyf 8h8CQcMSvwXDq17/78r1+litZuaAfwfRm/ryZLHlWpYZsKdOCU0lR+GsSQHt4mJmMJlQ YALgKAar2Jgg4qAhsyPl46EUdqgMdVtFv6yxNkHZeeC1ZHHL5jq7H6LyV9TLEuSId0/d qFRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PE/mHe/CAbrLfzX0O2jV2/dAhOsU7rUS7AFT41iKams=; fh=UdaE4jhmn+IaEzn3aGBbvUS1MFt2/3sN9tEmMzrU12Q=; b=zRv2MdCPXnuMnEcLCrAkP+ksS64w9DYkjCXwvnRjKHcp4idTnXvN98S5yRU5FpN0SX cQK+MGmCqEDR1nE5IOm4OiRg/qIyrzYtV11gtHpeNGr1emI0SdiXG28jLlhyd2BLVsQE OOxoTLz6Gpq7xqiKxHA4dPC/InaWOPn7AXvG5gQTuvETF+/0KTOjkbI17LhiTKEVF/QV MvkH2+WuAQsQi1+/GQrvKbvF6pP00VZ+rZJzYyHrqCo8mS12HvA6LNOxsYkwBaKTCz2X u0FHUKfK0PPx4VhRe2we5Q9UJvjF3H4AlXaRww+OX6ujDMuyeX9c8YZK5hLQ9PThsu2t k6+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VjZXp4bp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id c30-20020a056a00009e00b0068a6f6d9f7dsi3771243pfj.57.2023.10.18.05.13.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 05:13:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VjZXp4bp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id D84DB80E0D00; Wed, 18 Oct 2023 05:13:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230202AbjJRMNW (ORCPT + 99 others); Wed, 18 Oct 2023 08:13:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230125AbjJRMNV (ORCPT ); Wed, 18 Oct 2023 08:13:21 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1683198 for ; Wed, 18 Oct 2023 05:12:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697631160; 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: in-reply-to:in-reply-to:references:references; bh=PE/mHe/CAbrLfzX0O2jV2/dAhOsU7rUS7AFT41iKams=; b=VjZXp4bpKr7SjxWy+ln8AShiFzX9a+TDXoI+uIoAqUJ+8jZeeRC0V+6gf/8xWLs6GGUmqy IJd75cFz81bFN0Kh3MUKCJcbbdH/GK+PdtOk6hjf6VPuPNbkrpt1n0uNbLKykqCylbQDwX /2itr+DWxdV7kxvcFC4bXbZAkOKwoNY= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-383-yQuChPbGOM6sbMwZL2EhpA-1; Wed, 18 Oct 2023 08:12:34 -0400 X-MC-Unique: yQuChPbGOM6sbMwZL2EhpA-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4660688B7A7; Wed, 18 Oct 2023 12:12:34 +0000 (UTC) Received: from localhost (unknown [10.72.112.83]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8ECD720268CB; Wed, 18 Oct 2023 12:12:33 +0000 (UTC) Date: Wed, 18 Oct 2023 20:12:30 +0800 From: Baoquan He To: Dan Carpenter Cc: oe-kbuild@lists.linux.dev, Lorenzo Stoakes , lkp@intel.com, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List Subject: Re: mm/vmalloc.c:3689 vread_iter() error: we previously assumed 'vm' could be null (see line 3667) Message-ID: References: <89caf59a-d3b9-409d-b1ae-9e370cb9ee7d@kadam.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <89caf59a-d3b9-409d-b1ae-9e370cb9ee7d@kadam.mountain> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Wed, 18 Oct 2023 05:13:40 -0700 (PDT) Hi Dan, On 10/18/23 at 01:32pm, Dan Carpenter wrote: > On Wed, Oct 18, 2023 at 04:54:33PM +0800, Baoquan He wrote: > > Hi, > > > > On 10/17/23 at 05:26pm, Dan Carpenter wrote: > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > > head: 213f891525c222e8ed145ce1ce7ae1f47921cb9c > > > commit: 4c91c07c93bbbdd7f2d9de2beb7ee5c2a48ad8e7 mm: vmalloc: convert vread() to vread_iter() > > > config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20231017/202310171600.WCrsOwFj-lkp@intel.com/config) > > > compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 > > > reproduce: (https://download.01.org/0day-ci/archive/20231017/202310171600.WCrsOwFj-lkp@intel.com/reproduce) > > > > > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > > > the same patch/commit), kindly add following tags > > > | Reported-by: kernel test robot > > > | Reported-by: Dan Carpenter > > > | Closes: https://lore.kernel.org/r/202310171600.WCrsOwFj-lkp@intel.com/ > > > > > > smatch warnings: > > > mm/vmalloc.c:3689 vread_iter() error: we previously assumed 'vm' could be null (see line 3667) > > > > I see the code deficit, while the reproduce link seems to be unavilable. > > Could you double check the link and provide a good one so that I can > > verify the code fix? > > Here's a link. :) > > https://repo.or.cz/smatch.git/blob/HEAD:/Documentation/smatch.txt > > Just build it and run: > > ~/smatch/smatch_scripts/kchecker drivers/whatever/file.c I don't know smatch and lkp well, and have no idea on how to use above smatch.txt to build the target file.c. I meant in this lkp report, the config file is available, however, the reproduce file is empty. Could you help add an available reproduce file link? or give a little more detail guiding me how to make use of above smatch file to build .c file? Thanks a lot in advance. config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20231017/202310171600.WCrsOwFj-lkp@intel.com/config) reproduce: (https://download.01.org/0day-ci/archive/20231017/202310171600.WCrsOwFj-lkp@intel.com/reproduce) Thanks Baoquan