Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2473290rdb; Tue, 12 Sep 2023 03:05:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFiRiloll5mbl05qMISiv+h1N6SwOEa7QFMf7RMHGvlORZQb0/NDENKXfhgg/xaQ/vvbiAT X-Received: by 2002:a17:902:e808:b0:1c0:ec66:f2b2 with SMTP id u8-20020a170902e80800b001c0ec66f2b2mr17260438plg.27.1694513113831; Tue, 12 Sep 2023 03:05:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694513113; cv=none; d=google.com; s=arc-20160816; b=lrYzmonQ215JXPNtAwUygwTA1mVXjIeSN5G/mABrPZ8xh9YnkTe71v4ZP4Iwz2W/Gn 2vPvIKpgWow2gwyi++DawtbgSXyxvciH/71ShoXKO5Hce5fYK6RqLpvH9L7/K4PAuU4p uoEjwIIKy/f1OZuVsTdWRMwU97Znfyu+WaS20SZ+4Vm3ysN+l/n9DfBJAwVy1Err6VS1 FjKrgzfNyxnyhRFIWnjIkG8iPTrbRYa67KWe6nuO7gEDfvLX87MA6XeAJ35m2QVgS082 BpWjQlg9w+TaV7AsZnMkEtG8iGfwEJv8/ErRW67ShvajuI/VEJEVSbfzpdxY7muOm0Hz mGYg== 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:mime-version :dkim-signature; bh=KHya+7F1DBe8l/ePdcCte4Kk0bJRNucDG9gM+2FXrkk=; fh=Qc3vsjDLmpYszvBg7TCtFX0ppW3bmtVL8j0hqhwH8M4=; b=FR+S+ETDVZamv7BzbOSzEUrINSv2Drc+gqUq5ohseJgXFI7yPJvSY4N/nSQKCjrt6z QioxAz0r3aFndh2dsjyZ+xxB+v+Kh1QA+P3ZK3cGXoGcgUxcuxZlSevGitavErYB2YFv SZdO9kW89HVKnWLCB89LnHj4E8T3OzAiqkXaZAO08qraf2o++TwYgB0E/ciTX8BfzOYI VMJF/c66NlnrqdC7izwhOiNaTY6MW8EfkMZ2f2SESJ63mhzQkaxLEsq2MI4Wpbp5V6k+ 7TblvfDgFr0LYGvkjJ5Ys0fy79Uerdq2UPTZINqfH9yTPBaTJtJF88VQsUfsdXRd3ml4 uVJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fR+DUewD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id q9-20020a17090311c900b001b9736814b6si7791898plh.309.2023.09.12.03.05.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 03:05:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fR+DUewD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 3243F804C525; Tue, 12 Sep 2023 00:56:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231815AbjILH4X (ORCPT + 99 others); Tue, 12 Sep 2023 03:56:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231781AbjILH4P (ORCPT ); Tue, 12 Sep 2023 03:56:15 -0400 Received: from mail-ua1-x933.google.com (mail-ua1-x933.google.com [IPv6:2607:f8b0:4864:20::933]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DDFF10C3 for ; Tue, 12 Sep 2023 00:56:10 -0700 (PDT) Received: by mail-ua1-x933.google.com with SMTP id a1e0cc1a2514c-7a76ffc063bso1545249241.2 for ; Tue, 12 Sep 2023 00:56:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694505369; x=1695110169; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=KHya+7F1DBe8l/ePdcCte4Kk0bJRNucDG9gM+2FXrkk=; b=fR+DUewDqNkVYoyR5gduIF5UlpoPrlUnZcNfCxTcK5AOUDVJXfcEfYEnq6q2Qrc3wS s0/8GbVQnalKnK37kE2ifUgfMvwnA2eD3niGh0yxyRhhfY3ZPLZi2AY/y2aphSEPsUvc KNxmgj7G1CNaga1XreEHNNT7+yrL57EIcLF9LSiGPf7mQdlGz26Kaie4wmLGuFrVYiM1 tOyu742LPdgxscIL90Vjvuij21Am3lutJkj/V/gS/tnuRHs7p6ze+u+udey7Ccni/8RY BH3dirlbMR2DlUWZsAB1aLz5XpZBqGyLodmpJK3T0Ttz9ecqPgCSi6Z4iV/EAR2h2ObI MJCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694505369; x=1695110169; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=KHya+7F1DBe8l/ePdcCte4Kk0bJRNucDG9gM+2FXrkk=; b=vzUW9AAHic9U1ybq0YWcEDb5VzO2TN8tt2aCqpcSetfLj5HfZvYnW01SDl74VL5vPY JJ7lXkX3RybUSK3AAT5xtZMf+BMiuZ+3G9gxo1z8JO43C1pyNWKUtATk+toSgEhljCT5 1ewwdRi0p6zsFlj3uhVT6zL9WaaWT/TAc3R7TbuodwsaJs95pvuftNOMRkeUKi2eDhL9 U5KFyy61uCcv6QNkqdNShzubkgQ8Qic03JCLpvTy6LoLLaPLDVMvyxZXeQr/aXIRFWjd FwpE2ywbYZRHRySqXLjp44eEMSQh7bV5YYuNz6eqBVw1qO2dcSUw1MVRLamPXWbUyekh 3L8g== X-Gm-Message-State: AOJu0YzRKIlM9q4M5ximKSd/bLbf6cPJnN04cXLREU0DmOEDjcrHBaoh SWJA4YVsVr2a9+UZuZmAr8LzLuHxQmRp+ZHYN+8VpYWR3zGU7VWbp7fhMQ== X-Received: by 2002:a1f:c487:0:b0:48d:1359:4dcd with SMTP id u129-20020a1fc487000000b0048d13594dcdmr6428193vkf.7.1694505369434; Tue, 12 Sep 2023 00:56:09 -0700 (PDT) MIME-Version: 1.0 From: Naresh Kamboju Date: Tue, 12 Sep 2023 13:25:58 +0530 Message-ID: Subject: Qemu-arm64: LTP: cfs_bandwidth01: Unable to handle kernel NULL pointer dereference at virtual address 0000000000000038 To: open list , LTP List , Linux PM Cc: =?UTF-8?B?QWxleCBCZW5uw6ll?= , Anders Roxell , Arnd Bergmann , Vincent Guittot , Wei Gao , Peter Zijlstra , Martin Doucha , Cyril Hrubis Content-Type: text/plain; charset="UTF-8" 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 (groat.vger.email [0.0.0.0]); Tue, 12 Sep 2023 00:56:29 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=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 groat.vger.email Following kernel crash noticed on Linux stable-rc 6.5.3-rc1 on qemu-arm64 while running LTP sched tests cases. This is not always reproducible. Anyone have noticed LTP cfs_bandwidth01 causing a kernel crash on any of the devices or qemu-* ? I need to check similar crashes on other Linux trees and branches. Boot log and test log: --------------------- [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x000f0510] [ 0.000000] Linux version 6.5.3-rc1 (tuxmake@tuxmake) (Debian clang version 18.0.0 (++20230910112057+710b5a12324e-1~exp1~20230910112229.889), Debian LLD 18.0.0) #1 SMP PREEMPT @1694441978 [ 0.000000] KASLR enabled [ 0.000000] random: crng init done [ 0.000000] Machine model: linux,dummy-virt ... running LTP sched tests ... cfs_bandwidth01.c:129: TPASS: Workers exited cfs_bandwidth01.c:117: TPASS: Scheduled bandwidth constrained workers cfs_bandwidth01.c:54: TINFO: Set 'level2/cpu.max' = '5000 10000' <1>[ 74.455327] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000038 <1>[ 74.456395] Mem abort info: <1>[ 74.456639] ESR = 0x0000000097880004 <1>[ 74.458273] EC = 0x25: DABT (current EL), IL = 32 bits <1>[ 74.458859] SET = 0, FnV = 0 <1>[ 74.459495] EA = 0, S1PTW = 0 <1>[ 74.460171] FSC = 0x04: level 0 translation fault <1>[ 74.460799] Data abort info: <1>[ 74.461388] Access size = 4 byte(s) <1>[ 74.462068] SSE = 0, SRT = 8 <1>[ 74.462713] SF = 0, AR = 0 <1>[ 74.463257] CM = 0, WnR = 0, TnD = 0, TagAccess = 0 <1>[ 74.463996] GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0 <1>[ 74.465120] user pgtable: 4k pages, 48-bit VAs, pgdp=00000001029d6000 <1>[ 74.465818] [0000000000000038] pgd=0000000000000000, p4d=0000000000000000 <0>[ 74.468416] Internal error: Oops: 0000000097880004 [#1] PREEMPT SMP <4>[ 74.469489] Modules linked in: fuse drm dm_mod ip_tables x_tables <4>[ 74.470964] CPU: 0 PID: 435 Comm: cfs_bandwidth01 Not tainted 6.5.3-rc1 #1 <4>[ 74.471789] Hardware name: linux,dummy-virt (DT) <4>[ 74.473045] pstate: 634000c9 (nZCv daIF +PAN -UAO +TCO +DIT -SSBS BTYPE=--) <4>[ 74.473785] pc : set_next_entity+0xc0/0x1f8 <4>[ 74.475461] lr : pick_next_task_fair+0x204/0x3b8 <4>[ 74.476989] sp : ffff8000807eb870 <4>[ 74.477346] x29: ffff8000807eb870 x28: ffff0000c4e3b750 x27: ffffcb93e8e19008 <4>[ 74.478392] x26: ffff0000c4e3b0c0 x25: ffffcb93e8ab4828 x24: ffff0000c0354a00 <4>[ 74.479263] x23: ffff8000807eb900 x22: 0000000000000000 x21: ffff0000ff5b1300 <4>[ 74.480401] x20: ffff0000ff5b1300 x19: 0000000000000000 x18: 0000000000000000 <4>[ 74.481417] x17: 000000000000ba7e x16: 0000000000000606 x15: 000000000117d17a <4>[ 74.482733] x14: 0000000000000000 x13: 0000000f0f4bc800 x12: 00000000000002b0 <4>[ 74.484181] x11: 0000000f0f4bc800 x10: 0000000cf6ad6bd1 x9 : ffffcb93e6af8e4c <4>[ 74.485229] x8 : 0000000000000000 x7 : ffffcb93e8a3ccac x6 : 0000000000000003 <4>[ 74.486131] x5 : 000000008040002b x4 : 0000ffffbef0c000 x3 : ffff0000ff5b1200 <4>[ 74.487012] x2 : ffff0000c39efc00 x1 : 0000000000000000 x0 : ffff0000ff5b1300 <4>[ 74.488236] Call trace: <4>[ 74.488608] set_next_entity+0xc0/0x1f8 <4>[ 74.489280] pick_next_task_fair+0x204/0x3b8 <4>[ 74.489987] __schedule+0x1e0/0x9c8 <4>[ 74.490903] schedule+0x134/0x1b8 <4>[ 74.491632] schedule_preempt_disabled+0x90/0x108 <4>[ 74.492392] rwsem_down_write_slowpath+0x288/0x6f0 <4>[ 74.493056] down_write+0x48/0xb0 <4>[ 74.493606] unlink_anon_vmas+0x148/0x1b0 <4>[ 74.494222] free_pgtables+0x10c/0x200 <4>[ 74.494800] exit_mmap+0x174/0x3c0 <4>[ 74.495177] __mmput+0x48/0x150 <4>[ 74.495761] mmput+0x34/0x70 <4>[ 74.496058] exit_mm+0xbc/0x148 <4>[ 74.497651] do_exit+0x22c/0x910 <4>[ 74.498212] do_group_exit+0xa4/0xb0 <4>[ 74.498870] __arm64_sys_exit_group+0x24/0x30 <4>[ 74.499484] invoke_syscall+0x4c/0x120 <4>[ 74.499834] el0_svc_common+0xd0/0x110 <4>[ 74.500196] do_el0_svc+0x3c/0xb8 <4>[ 74.500475] el0_svc+0x30/0x90 <4>[ 74.500746] el0t_64_sync_handler+0x84/0x100 <4>[ 74.501309] el0t_64_sync+0x190/0x198 <0>[ 74.502156] Code: f900293f f9403908 b5ffff48 17ffffde (b9403a68) <4>[ 74.503735] ---[ end trace 0000000000000000 ]--- <6>[ 74.504727] note: cfs_bandwidth01[435] exited with irqs disabled Links: ----- - https://tuxapi.tuxsuite.com/v1/groups/linaro/projects/lkft/tests/2VFpDOMEgzroNyiP9SSlxRxHsMH - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.5.y/build/v6.5.2-740-g7bfd1316ceae/testrun/19901770/suite/log-parser-test/tests/ - https://storage.tuxsuite.com/public/linaro/lkft/builds/2VFpB1ieNZSp5zh0joVGtoMn7RG/ Steps to reproduce: ---------------- # To install tuxrun to your home directory at ~/.local/bin: # pip3 install -U --user tuxrun==0.49.2 # # Or install a deb/rpm depending on the running distribution # See https://tuxmake.org/install-deb/ or # https://tuxmake.org/install-rpm/ # # See https://tuxrun.org/ for complete documentation. # tuxrun --runtime podman --device qemu-arm64 --boot-args rw --kernel https://storage.tuxsuite.com/public/linaro/lkft/builds/2VFpB1ieNZSp5zh0joVGtoMn7RG/Image.gz --modules https://storage.tuxsuite.com/public/linaro/lkft/builds/2VFpB1ieNZSp5zh0joVGtoMn7RG/modules.tar.xz --rootfs https://storage.tuxboot.com/debian/bookworm/arm64/rootfs.ext4.xz --parameters SKIPFILE=skipfile-lkft.yaml --parameters SHARD_NUMBER=4 --parameters SHARD_INDEX=2 --image docker.io/linaro/tuxrun-dispatcher:v0.49.2 --tests ltp-sched --timeouts boot=30 ltp-sched=30 --overlay https://storage.tuxboot.com/overlays/debian/bookworm/arm64/ltp/20230516/ltp.tar.xz -- Linaro LKFT https://lkft.linaro.org