From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7BC60C433EF for ; Sun, 12 Jun 2022 04:42:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231546AbiFLEmr (ORCPT ); Sun, 12 Jun 2022 00:42:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbiFLEmq (ORCPT ); Sun, 12 Jun 2022 00:42:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F24CD69B59 for ; Sat, 11 Jun 2022 21:42:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 76E7560B0C for ; Sun, 12 Jun 2022 04:42:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id D67F2C341D0 for ; Sun, 12 Jun 2022 04:42:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655008964; bh=XS3vPnOj2fP9OmKF4UZw15ccoRttTjgw5JqpnultRi4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VOnodljAfY8diW/lWMbNwENeNGMuBWakNj70aYUa1BFCh4Bx0EVwedHdXXzBU8+HM QK009hklBQnd63cI6/+gutnGMM9anWl0uE/p7vIsTLlHHfEHHomsS4Yh2oxHLg6d3S /hFwx3BL71rVyxZP7dcPkXqU/nDbFCehgTX5/Lj0nsN1SZDmRuQpoC+/qAujd8z+LE 1/CBJCKI6/S86n3Th7n/X4O+QDp/IePKUs4NjXLN75cfbD2ZYdEEBMcmX/nupnu9v4 4Ischrh992yE8aCAtybOGUmACgY0wpBllpsXAZAsBmB1ebqHv9lOMFjq/74/RacY6h nb9/Qqqnd30KQ== Received: by aws-us-west-2-korg-bugzilla-1.web.codeaurora.org (Postfix, from userid 48) id C46C4C05FF5; Sun, 12 Jun 2022 04:42:44 +0000 (UTC) From: bugzilla-daemon@kernel.org To: linux-xfs@vger.kernel.org Subject: [Bug 216073] [s390x] kernel BUG at mm/usercopy.c:101! usercopy: Kernel memory exposure attempt detected from vmalloc 'n o area' (offset 0, size 1)! Date: Sun, 12 Jun 2022 04:42:44 +0000 X-Bugzilla-Reason: None X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: CC filesystem_xfs@kernel-bugs.kernel.org X-Bugzilla-Product: Memory Management X-Bugzilla-Component: Other X-Bugzilla-Version: 2.5 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zlang@redhat.com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: akpm@linux-foundation.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugzilla.kernel.org/ Auto-Submitted: auto-generated MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org https://bugzilla.kernel.org/show_bug.cgi?id=3D216073 --- Comment #10 from Zorro Lang (zlang@redhat.com) --- On Wed, Jun 08, 2022 at 09:13:12PM +0200, Alexander Gordeev wrote: > On Wed, Jun 08, 2022 at 10:19:22AM +0800, Zorro Lang wrote: > > One of the test environment details as [1]. The xfstests config as [2]. > > It's easier to reproduce on 64k directory size xfs by running xfstests > > auto group. >=20 >=20 > Thanks for the details, Zorro! >=20 > Do you create test and scratch device with xfs_io, as README suggests? > If yes, what are sizes of the files? > Also, do you run always xfs/auto or xfs/294 hits for you reliably? Looks likt it's not a s390x specific bug, I just hit this issue once (not 1= 00% reproducible) on aarch64 with linux v5.19.0-rc1+ [1]. So back to cc linux-mm to get more review. Thanks, Zorro [1] [ 980.200947] usercopy: Kernel memory exposure attempt detected from vmall= oc 'no area' (offset 0, size 1)!=20 [ 980.200968] ------------[ cut here ]------------=20 [ 980.200969] kernel BUG at mm/usercopy.c:101!=20 [ 980.201081] Internal error: Oops - BUG: 0 [#1] SMP=20 [ 980.224192] Modules linked in: rfkill arm_spe_pmu mlx5_ib ast drm_vram_helper drm_ttm_helper ttm ib_uverbs acpi_ipmi drm_kms_helper ipmi_= ssif fb_sys_fops syscopyarea sysfillrect ib_core sysimgblt arm_cmn arm_dmc620_pmu arm_dsu_pmu cppc_cpufreq sunrpc vfat fat drm fuse xfs libcrc32c mlx5_core crct10dif_ce ghash_ce sha2_ce sha256_arm64 sha1_ce sbsa_gwdt nvme igb mlxfw nvme_core tls i2c_algo_bit psample pci_hyperv_intf i2c_designware_platform i2c_designware_core xgene_hwmon ipmi_devintf ipmi_msghandler=20 [ 980.268449] CPU: 42 PID: 121940 Comm: rm Kdump: loaded Not tainted 5.19.0-rc1+ #1=20 [ 980.275921] Hardware name: GIGABYTE R272-P30-JG/MP32-AR0-JG, BIOS F16f (= SCP: 1.06.20210615) 07/01/2021=20 [ 980.285214] pstate: 60400009 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE= =3D--)=20 [ 980.292165] pc : usercopy_abort+0x78/0x7c=20 [ 980.296167] lr : usercopy_abort+0x78/0x7c=20 [ 980.300166] sp : ffff80002b007730=20 [ 980.303469] x29: ffff80002b007740 x28: ffff80002b007cc0 x27: ffffdc5683ecc880=20 [ 980.310595] x26: 1ffff00005600f9b x25: ffffdc5681c90000 x24: ffff80002b007cdc=20 [ 980.317722] x23: ffff800041a0004a x22: 0000000000000001 x21: 0000000000000001=20 [ 980.324848] x20: 0000000000000000 x19: ffff800041a00049 x18: 0000000000000000=20 [ 980.331974] x17: 2720636f6c6c616d x16: 76206d6f72662064 x15: 6574636574656420=20 [ 980.339101] x14: 74706d6574746120 x13: 21293120657a6973 x12: ffff6106cbc4c03f=20 [ 980.346227] x11: 1fffe106cbc4c03e x10: ffff6106cbc4c03e x9 : ffffdc5681f36e30=20 [ 980.353353] x8 : ffff08365e2601f7 x7 : 0000000000000001 x6 : ffff6106cbc4c03e=20 [ 980.360480] x5 : ffff08365e2601f0 x4 : 1fffe10044b11801 x3 : 0000000000000000=20 [ 980.367606] x2 : 0000000000000000 x1 : ffff08022588c000 x0 : 000000000000005c=20 [ 980.374733] Call trace:=20 [ 980.377167] usercopy_abort+0x78/0x7c=20 [ 980.380819] check_heap_object+0x3dc/0x3e0=20 [ 980.384907] __check_object_size.part.0+0x6c/0x1f0=20 [ 980.389688] __check_object_size+0x24/0x30=20 [ 980.393774] filldir64+0x548/0x84c=20 [ 980.397165] xfs_dir2_block_getdents+0x404/0x960 [xfs]=20 [ 980.402437] xfs_readdir+0x3c4/0x4b0 [xfs]=20 [ 980.406652] xfs_file_readdir+0x6c/0xa0 [xfs]=20 [ 980.411127] iterate_dir+0x3a4/0x500=20 [ 980.414691] __do_sys_getdents64+0xb0/0x230=20 [ 980.418863] __arm64_sys_getdents64+0x70/0xa0=20 [ 980.423209] invoke_syscall.constprop.0+0xd8/0x1d0=20 [ 980.427991] el0_svc_common.constprop.0+0x224/0x2bc=20 [ 980.432858] do_el0_svc+0x4c/0x90=20 [ 980.436163] el0_svc+0x5c/0x140=20 [ 980.439294] el0t_64_sync_handler+0xb4/0x130=20 [ 980.443553] el0t_64_sync+0x174/0x178=20 [ 980.447206] Code: f90003e3 aa0003e3 91098100 97ffe24b (d4210000)=20=20 [ 980.453292] SMP: stopping secondary CPUs=20 [ 980.458162] Starting crashdump kernel...=20 [ 980.462073] Bye! >=20 > Thanks! > --=20 You may reply to this email to add a comment. You are receiving this mail because: You are watching someone on the CC list of the bug.=