Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp1941581rdb; Tue, 5 Sep 2023 09:22:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEC1xc9GTN1PJYjbXAweV1Ch07lBftEgDzbWJM8dqjMYMnXld7Y/d0BFw84uXn1EAaZXQGJ X-Received: by 2002:a17:907:72d5:b0:9a2:1ec1:625d with SMTP id du21-20020a17090772d500b009a21ec1625dmr248027ejc.64.1693930957974; Tue, 05 Sep 2023 09:22:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693930957; cv=none; d=google.com; s=arc-20160816; b=s/WHiBBVwEqzedYIXwOa5Ubuqvt5zNUADwUsjGnSu+MEITVu91ehD/c32zUP0qBtkP t6LUcJUSE8/a2X8XotD9a53ps82ouiJh4mzAGcKVufBEKc0E5RAtZlGIx/CFql/tMWgF tX7Q3Y8eMErKEQeJUE5NP3bDfxqilsS0VtwSLpmxHPAsEOrdEbSen6T7MFcxeCkF6YAR ZtZvTqSU1+5lajLvKd4ZJikcOOw4kY0m3H5q8eB4+3xgge20ecG0O6Mbsn8FEugX/lXm i9CVVCuzjwaTk0HuZfnYuWq98fh7kdPVPdoHjLH5Lwqh/Wij/L3Zg30CFZgUb62CuuP6 ey2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=sVn5DkV6XBahYJlGgHVxn87Ah3hspPLN913g7w+bU/A=; fh=r9iEFw3Orr5o6yAtAraMGUaYCo1VTG0Y+9KsEHET3xQ=; b=mZCmPTcBkAYzMwj6OAU1EwODDQ9hv1y07aqJIBlT7Kyon0JRREacuuRqbtd3Zv205x NhR2Hc7Q7xhAThPj3IM/S62UeTYhfu/gMoSiJlRG7owXI/HESLiMVhvn2Zytoys3ItxA 3Oy0UbAV0CT7WsAoELuwNd69KSedQzLmbfkwu0Mfno/5BDt+lvCwJxQyNNvZW9uVqQcv xv4e6mr2qmBdqK1QqeWyHqzGTEzOfzPZHO+i/jxJ14TIpAxTF/Ek2max2Xg6SZ6Zp8FH c4g45DlUllFt4QsjefoRx7+eXQtiOu6PPAj/IhnsJHyut8ViB1BaUzyeODx6HMnu2W89 5ktQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=QmyxZR7y; 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=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r9-20020a1709067fc900b009932d8a227asi7365604ejs.277.2023.09.05.09.22.28; Tue, 05 Sep 2023 09:22:37 -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; dkim=pass header.i=@inria.fr header.s=dc header.b=QmyxZR7y; 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=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232333AbjHaJBT (ORCPT + 8 others); Thu, 31 Aug 2023 05:01:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230141AbjHaJBR (ORCPT ); Thu, 31 Aug 2023 05:01:17 -0400 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A9F5CE6 for ; Thu, 31 Aug 2023 02:01:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:message-id:mime-version; bh=sVn5DkV6XBahYJlGgHVxn87Ah3hspPLN913g7w+bU/A=; b=QmyxZR7yHgsYAIVV1d9eCNMC82DB/AxldjVnAlGUdMiHzZ8gdtijdU41 xfsIpjjut+G8Gs8X+dcOT+wK56vd8es4B3gG93heSqpEC+63UqEBtY2Aa 9em8swmrerKEOQRrarSXAEVCm6IHq8gIhCrc9ZaqoOnit3UMS2zNMyYEY c=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=julia.lawall@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.02,216,1688421600"; d="scan'208";a="123636226" Received: from dt-lawall.paris.inria.fr ([128.93.67.65]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2023 11:01:02 +0200 Date: Thu, 31 Aug 2023 11:01:02 +0200 (CEST) From: Julia Lawall To: "Paul E. McKenney" cc: linux-kernel@vger.kernel.org, oe-kbuild-all@lists.linux.dev Subject: [paulmck-rcu:dev.2023.08.22a 63/69] kernel/locking/locktorture.c:294:20-23: ERROR: t is NULL but dereferenced. (fwd) Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_BLOCKED,T_SPF_HELO_TEMPERROR,T_SPF_TEMPERROR 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 Maybe a ! has been forgotton on line 290? julia ---------- Forwarded message ---------- Date: Thu, 31 Aug 2023 10:46:56 +0800 From: kernel test robot To: oe-kbuild@lists.linux.dev Cc: lkp@intel.com, Julia Lawall Subject: [paulmck-rcu:dev.2023.08.22a 63/69] kernel/locking/locktorture.c:294:20-23: ERROR: t is NULL but dereferenced. BCC: lkp@intel.com CC: oe-kbuild-all@lists.linux.dev CC: linux-kernel@vger.kernel.org TO: "Paul E. McKenney" tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2023.08.22a head: 354957ec11dc80eac68c4b1e10c237d69adc1833 commit: 758918804e0d5216981df3cef99ffd7ba0842192 [63/69] locktorture: Add indication of task write-holding lock :::::: branch date: 6 days ago :::::: commit date: 7 days ago config: i386-randconfig-053-20230831 (https://download.01.org/0day-ci/archive/20230831/202308311022.j7jKnIdL-lkp@intel.com/config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce: (https://download.01.org/0day-ci/archive/20230831/202308311022.j7jKnIdL-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: Julia Lawall | Closes: https://lore.kernel.org/r/202308311022.j7jKnIdL-lkp@intel.com/ cocci warnings: (new ones prefixed by >>) >> kernel/locking/locktorture.c:294:20-23: ERROR: t is NULL but dereferenced. kernel/locking/locktorture.c:294:43-47: ERROR: t is NULL but dereferenced. vim +294 kernel/locking/locktorture.c bdd8d60bd4047a Paul E. McKenney 2023-08-23 284 94a8fb5e4673d7 Paul E. McKenney 2023-08-22 285 static int torture_spin_lock_dump(struct notifier_block *nb, unsigned long v, void *ptr) 94a8fb5e4673d7 Paul E. McKenney 2023-08-22 286 { 758918804e0d52 Paul E. McKenney 2023-08-23 287 struct task_struct *t = READ_ONCE(lock_is_write_held); 758918804e0d52 Paul E. McKenney 2023-08-23 288 94a8fb5e4673d7 Paul E. McKenney 2023-08-22 289 pr_alert("%s invoked: v=%lu, duration=%lu.\n", __func__, v, (unsigned long)ptr); 758918804e0d52 Paul E. McKenney 2023-08-23 290 if (t) { 758918804e0d52 Paul E. McKenney 2023-08-23 291 pr_alert("%s No task holding lock.\n", __func__); 758918804e0d52 Paul E. McKenney 2023-08-23 292 } else { 758918804e0d52 Paul E. McKenney 2023-08-23 293 pr_alert("%s Lock held by task %ps %d %*s\n", 758918804e0d52 Paul E. McKenney 2023-08-23 @294 __func__, t, t->pid, TASK_COMM_LEN, t->comm); 758918804e0d52 Paul E. McKenney 2023-08-23 295 sched_show_task(t); 758918804e0d52 Paul E. McKenney 2023-08-23 296 } bdd8d60bd4047a Paul E. McKenney 2023-08-23 297 spinlock_dump(&torture_spinlock, true); 94a8fb5e4673d7 Paul E. McKenney 2023-08-22 298 return NOTIFY_OK; 94a8fb5e4673d7 Paul E. McKenney 2023-08-22 299 } 94a8fb5e4673d7 Paul E. McKenney 2023-08-22 300 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki