Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp43378rbe; Wed, 28 Feb 2024 11:26:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU5Ou3nCZtz33lneHJyfgBZZKlUVcIr8mpfQyKg7Sg+txe/hoG81nTMNALodw9KlXyxgeP8UhvrQejcJJcrbFR/xUsYz9q8XdqdM38VCQ== X-Google-Smtp-Source: AGHT+IG+Bk4diwPi7pvmodra0cCCZafBQeKCUK3A59QfAASxObbJ/0DgiHxdZkrunRMBGm1pSfha X-Received: by 2002:a05:6358:6598:b0:17b:b998:dd40 with SMTP id x24-20020a056358659800b0017bb998dd40mr256119rwh.10.1709148392862; Wed, 28 Feb 2024 11:26:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709148392; cv=pass; d=google.com; s=arc-20160816; b=XfAtM/aUiCF7iBLUEeWR7GOOZtcu9HYQvPA3bb28oxUCXc66QwT/pMJgXsxXQ+4s0I WklIlQ5EfKm559wrMkBipbTUYRIKuEH2fOozqLS2dblQ18Yx4ItbhsqA6niasljGaoT9 T3/Deuw3IitV+Z3+hn5Eyo9q1nfXqXYjF5TmgpdSqvG9M4URGilZdLJWe5huksSLvseM ADgYIlRnko6Tc6TxrKZlIUN8cGHcxoGShsj7ofPiLyXINLkVNkuf8uhEId++N3Xy41JP axMQKNdf+x2b+UdEy54O+AOwwoKUlnoPku8c+yhUQW8/w4VIPi+9Dsiupke3JbL0M0xJ xKrA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=Bzu726Ai+TBY59G18muQwvBjEx5EepyiU/9T7B11GAA=; fh=nUP92WePsC0mZZxH9ZfhAE3C0ZUsfaloJOt6wMDC71g=; b=uAk6oD4brFvuiY5LQ1X9sJMdPE9T3HcPAk4Q/FD81i5tmUkcBUIRtT4RY5qdIIysmz IhLldaFM6celY3geaVStYWVWtfAgBhvocsCjYSp+StgcFi+BEikQI7oFC7Am50YykLVc WyFmA/cKeut/cEZfcLhNG3rQ62CMCbFzlbDzwbTchwL1j/joBnCP+LLQWTf0gTH0oznU NZihYtu0BYwof9pndGYu5wu7eaRssZFVzzAoPcjyuRQOO884LBrt99oivKejlSJKQ5GC Ea8dKGydNowo4gv1K1ylyxMYNgDYT5gAzLKzPHk0BQFsZR6+6sI8dqJ+j+XjE1A15cbs 1p+w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aB4VxPfe; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-85596-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85596-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id mb10-20020a056214550a00b0068f1387c655si188663qvb.187.2024.02.28.11.26.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 11:26:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85596-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aB4VxPfe; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-85596-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85596-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8A45D1C22C74 for ; Wed, 28 Feb 2024 19:26:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 75A5971EAE; Wed, 28 Feb 2024 19:26:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="aB4VxPfe" Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 05C8C4085D for ; Wed, 28 Feb 2024 19:26:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709148382; cv=none; b=hu2vHLehLzmyTMcUNKxta2403tWv8yftFQlekTDkwVl42CwvacXKieYDWHATQWiy9ynDCWVXNynU6cNocZsoIicp93u+yIA4JQermJXpMg0IRo1Xg0RrLXbMCRgInW5NtQqbVmAqphNwVKwtShTOP+Li0SBeu3V8hcB5qX9j5iI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709148382; c=relaxed/simple; bh=A/wKTs25P2h+C0/iIm+ViouQFJW7MRQ3etRuF2hNBTc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=aEXqVJbPuewNyHe5d1A8W6PIUlTMUfvliRtDcA992DCV6bn4TWahvaidQBqO7NTHzlx3dM8pPs4w8nqCD3uEc+h2bCOKMX0dUDKH4vqQEcHgmtbgODQkHuHiuYrVvvAylsW8KwytehYYJBfIwMBZQH7XUpz0POrGNgWfizvJVl8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=aB4VxPfe; arc=none smtp.client-ip=209.85.215.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pg1-f182.google.com with SMTP id 41be03b00d2f7-5d3907ff128so59521a12.3 for ; Wed, 28 Feb 2024 11:26:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709148380; x=1709753180; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Bzu726Ai+TBY59G18muQwvBjEx5EepyiU/9T7B11GAA=; b=aB4VxPfe+YlsayFt7jmytzM6MrxpKcV7d4AM4C+Px4OJ6lTcus97cSb/rHydnjD0ec 3DD3qSZ3FLH3ZNEEWcun0PSInwlYY5HibiYCSlPm25FyLq9cIDsmWmL4PTR6EjHbFzRY Xkzg/C0I0XY1SwtC4W48QmSQJOviX0fclpRnczIp69enfW+qYApJJLotUQlc+DTjk66y 115qZIcns0S6ktlbEgzjwhOTyiBYFKliz9jytuUeSVYRINRghR6d0BcHIPV9S4Kas7Ry nDIgLjP2+1YkiSHNZFZgO5te5wJY3gmDu4iHQQ5WI0u+vO9VWa/V0KTfd1Z0n7foMYPZ hzEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709148380; x=1709753180; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Bzu726Ai+TBY59G18muQwvBjEx5EepyiU/9T7B11GAA=; b=PZgjy1Vijli2CSIh34Izh0UrReCejJhMj3Ub23+qC8GkAiPcYjQQElD34dzGdbzsNH cdyvfBvYR4dhbdLZBq9A7v18FbnqaL1FDe4pICFjc6GaCr2CKLunzkfJEJf8uJvIddKW pmwG76J8tZYDlKaXMTh7MgazFYMWMOulXBWjPknD2LFeweuQMDiDQT90E0su0EgbdJch 9qn/h8NpEzqwWMuOWrLGVpbJZaIxw8r4q/oJ/i9XWtx2a+shlgLZKLwrCqZmsAgJo7J8 OctrSqA7qBq2o+p+9U9VLsxkMtTbmnGT7I6/dXj5JVfCXDWsWdgk430ufdamLmHccbrr 8YbQ== X-Gm-Message-State: AOJu0YxmBiawfHGW7MhHsRJd4BRCIctZcTyox7PomC26UMtnvL9x7MBd A6Gd/2Nz1x4MVxZr62NzeE/tJyr+W8GgTQ+JoHHc7VXH58vnAbWuxmwRjTfXomTHX26nbT0k0z1 kDcofLcZTUfd+PyX5MCY3Fx5w2ryKO9IOPWTPkw== X-Received: by 2002:a17:90a:d58b:b0:29a:1351:59c8 with SMTP id v11-20020a17090ad58b00b0029a135159c8mr117187pju.22.1709148380358; Wed, 28 Feb 2024 11:26:20 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?B?RGFuaWVsIETDrWF6?= Date: Wed, 28 Feb 2024 13:26:09 -0600 Message-ID: Subject: Re: ext4_mballoc_test: Internal error: Oops: map_id_range_down (kernel/user_namespace.c:318) To: Naresh Kamboju , Guenter Roeck Cc: open list , linux-ext4 , linux-fsdevel@vger.kernel.org, lkft-triage@lists.linaro.org, Jan Kara , Andreas Dilger , "Theodore Ts'o" , Christian Brauner , Randy Dunlap , shikemeng@huaweicloud.com, Arnd Bergmann , Dan Carpenter Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello! On Wed, 28 Feb 2024 at 12:19, Naresh Kamboju wr= ote: > Kunit ext4_mballoc_test tests found following kernel oops on Linux next. > All ways reproducible on all the architectures and steps to reproduce sha= red > in the bottom of this email. > > Reported-by: Linux Kernel Functional Testing > > Test log: > --------- > <6>[ 14.297909] KTAP version 1 > <6>[ 14.298306] # Subtest: ext4_mballoc_test > <6>[ 14.299114] # module: ext4 > <6>[ 14.300048] 1..6 > <6>[ 14.301204] KTAP version 1 > <6>[ 14.301853] # Subtest: test_new_blocks_simple > <1>[ 14.308203] Unable to handle kernel paging request at virtual > address dfff800000000000 > <1>[ 14.309700] KASAN: null-ptr-deref in range > [0x0000000000000000-0x0000000000000007] > <1>[ 14.310671] Mem abort info: > <1>[ 14.311141] ESR =3D 0x0000000096000004 > <1>[ 14.312969] EC =3D 0x25: DABT (current EL), IL =3D 32 bits > <1>[ 14.313566] SET =3D 0, FnV =3D 0 > <1>[ 14.314228] EA =3D 0, S1PTW =3D 0 > <1>[ 14.314750] FSC =3D 0x04: level 0 translation fault > <1>[ 14.316382] Data abort info: > <1>[ 14.316838] ISV =3D 0, ISS =3D 0x00000004, ISS2 =3D 0x00000000 > <1>[ 14.317742] CM =3D 0, WnR =3D 0, TnD =3D 0, TagAccess =3D 0 > <1>[ 14.318637] GCS =3D 0, Overlay =3D 0, DirtyBit =3D 0, Xs =3D 0 > <1>[ 14.319975] [dfff800000000000] address between user and kernel > address ranges > <0>[ 14.322307] Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP > <4>[ 14.324184] Modules linked in: > <4>[ 14.326693] CPU: 1 PID: 104 Comm: kunit_try_catch Tainted: G > N 6.8.0-rc6-next-20240228 #1 > <4>[ 14.327913] Hardware name: linux,dummy-virt (DT) > <4>[ 14.329173] pstate: 11400009 (nzcV daif +PAN -UAO -TCO +DIT > -SSBS BTYPE=3D--) > <4>[ 14.330117] pc : map_id_range_down (kernel/user_namespace.c:318) > <4>[ 14.331618] lr : make_kuid (kernel/user_namespace.c:415) > > <4>[ 14.344145] Call trace: > <4>[ 14.344565] map_id_range_down (kernel/user_namespace.c:318) > <4>[ 14.345378] make_kuid (kernel/user_namespace.c:415) > <4>[ 14.345998] inode_init_always (include/linux/fs.h:1375 fs/inode.c:174= ) > <4>[ 14.346696] alloc_inode (fs/inode.c:268) > <4>[ 14.347353] new_inode_pseudo (fs/inode.c:1007) > <4>[ 14.348016] new_inode (fs/inode.c:1033) > <4>[ 14.348644] ext4_mb_init (fs/ext4/mballoc.c:3404 fs/ext4/mballoc.c:37= 19) > <4>[ 14.349312] mbt_kunit_init (fs/ext4/mballoc-test.c:57 > fs/ext4/mballoc-test.c:314) > <4>[ 14.349983] kunit_try_run_case (lib/kunit/test.c:388 lib/kunit/test.c= :443) > <4>[ 14.350696] kunit_generic_run_threadfn_adapter (lib/kunit/try-catch.c= :30) > <4>[ 14.351530] kthread (kernel/kthread.c:388) > <4>[ 14.352168] ret_from_fork (arch/arm64/kernel/entry.S:861) > <0>[ 14.353385] Code: 52808004 b8236ae7 72be5e44 b90004c4 (38e368a1) > All code > =3D=3D=3D=3D=3D=3D=3D=3D > 0: 52808004 mov w4, #0x400 // #1024 > 4: b8236ae7 str w7, [x23, x3] > 8: 72be5e44 movk w4, #0xf2f2, lsl #16 > c: b90004c4 str w4, [x6, #4] > 10:* 38e368a1 ldrsb w1, [x5, x3] <-- trapping instruction > > Code starting with the faulting instruction > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 0: 38e368a1 ldrsb w1, [x5, x3] > <4>[ 14.354545] ---[ end trace 0000000000000000 ]--- > > Links: > - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-202402= 28/testrun/22877850/suite/log-parser-test/test/check-kernel-bug/log > - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-202402= 28/testrun/22877850/suite/log-parser-test/tests/ > - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-202402= 28/testrun/22877850/suite/log-parser-test/test/check-kernel-bug-43e0665fdb2= d5768ac093e1634e6d9a7c65ff1b6a66af7d0c12b3bce5ca7e717/details/ > > Steps to reproduce: > - https://tuxapi.tuxsuite.com/v1/groups/linaro/projects/lkft/tests/2czN4= PCDk4BIKg76qUnQE4WkNny/reproducer +Guenter. Just the thing we were talking about, at about the same time. Greetings! Daniel D=C3=ADaz daniel.diaz@linaro.org