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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 60F21EB64DD for ; Tue, 11 Jul 2023 19:44:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9BEA36B0071; Tue, 11 Jul 2023 15:44:20 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 96E1A6B0072; Tue, 11 Jul 2023 15:44:20 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 836726B0075; Tue, 11 Jul 2023 15:44:20 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 72C856B0071 for ; Tue, 11 Jul 2023 15:44:20 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 44B4BB01A5 for ; Tue, 11 Jul 2023 19:44:20 +0000 (UTC) X-FDA: 81000357480.10.1289C56 Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) by imf04.hostedemail.com (Postfix) with ESMTP id 631F140011 for ; Tue, 11 Jul 2023 19:44:18 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=google.com header.s=20221208 header.b=SeyA6AXp; spf=pass (imf04.hostedemail.com: domain of isaacmanjarres@google.com designates 209.85.160.175 as permitted sender) smtp.mailfrom=isaacmanjarres@google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1689104658; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=RSEbbHdSy2/6yMNHt5Jl2Q8DKG5onoGGlP2gwab29zg=; b=UIYcoeNiooULzwnAxcwb1N8MjbHUROiSjvmyCdKvWttDAkO6Q8q/+jhDh162A4U67I4T3X eU1kJlMEBeDjqBsQnh3W1PM/8uHNBk5JS8TCnrgOwpM6Wn9+tI+Tww87TjouFhhCEg29Gp 4ao8XJl1kkOVaapawHt0bJ2pd5yXNYo= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689104658; a=rsa-sha256; cv=none; b=SiCb0lYadIfUplWTMLyjFDUuRtEQhxkZwIqOuG00BSO1fcozegw4zuMKXS+BEtrEPghwDv cl6zXtbE8cA54f2pb3y8dOpybEdVT6tXHyzdKrynYG8HYHgUsiFFXyXR68uBrsWgAmqp41 ZYTamMUQ0H1hkqkXVQQhucoS3C/Z1TI= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=google.com header.s=20221208 header.b=SeyA6AXp; spf=pass (imf04.hostedemail.com: domain of isaacmanjarres@google.com designates 209.85.160.175 as permitted sender) smtp.mailfrom=isaacmanjarres@google.com; dmarc=pass (policy=reject) header.from=google.com Received: by mail-qt1-f175.google.com with SMTP id d75a77b69052e-4036bd4fff1so4391cf.0 for ; Tue, 11 Jul 2023 12:44:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1689104655; x=1691696655; 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=RSEbbHdSy2/6yMNHt5Jl2Q8DKG5onoGGlP2gwab29zg=; b=SeyA6AXpzijMHYXA7cjzccjTbzwZWoJYGstW61Xg9auwvLtgCrdRrgY1+rb4mj71zP kAS2JOoSuGreMHzZKF2SAOd8m8inSHMQZgSh0jbn1xWhgbEas4OlDao6V2S+bsSTFY2z uU6/VkjyeAF+R9FkqY3cTYdzrYNRhtU//Y/fgFb2hnacZ2I/Z5+XqSPPfv61v8zsEbwi 8XX2N0+8VH/AfGGcFQLJslO5U0WDrchRnXwftY3cdzAWsPVuXSca9UUDTROL7eyfo70L tgvclsm/4/QPawY1PY0reLmxJ7efSbL/jmnI3m9zBBeGaMI/OXPA4hkzZTy8dDamPq9s uxLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689104655; x=1691696655; 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=RSEbbHdSy2/6yMNHt5Jl2Q8DKG5onoGGlP2gwab29zg=; b=YvZpHjoeufqyHu+mdK40VbYbAF6pXfnBUEEpruHOmWHma3JyB1GTR0tC6xWXqc2uHm mRAtr8PglCfb/EswPzdcNojBhOcdUnYTmiksW4iTPfVqAgBgXZyGiM+3OrJRRA86qkeT Bis8dGq/3CFSZixMXCrfvnf2mhxs7hpORG+nXgOGPk3vFISfp5QSBn0Lxn7JahtyKd9X eCLD0oyYw2mnZWtU7XYKZUZQlMDgSoxkvjfS4Zh1gAbVIXwdQddU4x2Fm6o7GfhqCWha ur7EJYUrvVgqMUROcjaS5l99m11QLNTcUXALFL8sFaWVyZrfN/DRYLkwF0EPbQHovjCS hQFQ== X-Gm-Message-State: ABy/qLZmhIcswV5WmN/DSqAp9gXRiO+VNtq33xr54xwkVn3HUFLi4aan YhgCVZXzB+s5VXU8p1KWicKzi+G9iW8p/93979O9UQ== X-Google-Smtp-Source: APBJJlEMGrJhIDMpPTyu7e5avzS4Ytu2jD6E5EuDUDLHHML24qva5gPcogEF3c06DP35r+OQbQLaaRAwWhkADKINe28= X-Received: by 2002:ac8:570d:0:b0:3f9:a770:7279 with SMTP id 13-20020ac8570d000000b003f9a7707279mr28180qtw.9.1689104654972; Tue, 11 Jul 2023 12:44:14 -0700 (PDT) MIME-Version: 1.0 References: <20230612153201.554742-1-catalin.marinas@arm.com> In-Reply-To: From: Isaac Manjarres Date: Tue, 11 Jul 2023 12:44:03 -0700 Message-ID: Subject: Re: [PATCH v7 00/17] mm, dma, arm64: Reduce ARCH_KMALLOC_MINALIGN to 8 To: Amit Pundir Cc: Catalin Marinas , Andrew Morton , Linus Torvalds , Christoph Hellwig , Robin Murphy , Arnd Bergmann , Greg Kroah-Hartman , Will Deacon , Marc Zyngier , Herbert Xu , Ard Biesheuvel , Saravana Kannan , Alasdair Kergon , Daniel Vetter , Joerg Roedel , Mark Brown , Mike Snitzer , "Rafael J. Wysocki" , Jonathan Cameron , Vlastimil Babka , linux-mm@kvack.org, iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Linux regressions mailing list , John Stultz Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Stat-Signature: 7fwq4wucesu3zwaa3bibgdd7es6c1swx X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 631F140011 X-Rspam-User: X-HE-Tag: 1689104658-307441 X-HE-Meta: U2FsdGVkX18a73P1drEs6p/MUHZ6XXR5UQM+dWnVGc6piKyqk9ElF2dJXj00l+P1X7XHMW9vspmgbgMG/1GOQCTFYe9sPtpVdu+IU3TYD4kntVSxfcLSeg1lGC/8v9CPZcY+LipbrlrW7k/AxGHq4K2QcDWxSouQvwrEzGQU1pFtiGSWePgcSY2AbsoCQCWe1CV/2s47/dz8swTPZY9yMyhcBGETJmaDmPWhDlY8b7k1RyU8zBiiPgJBdziM8vPo2Iqy9TpJmqwi7Z3d9WnFsGWmajDn79fQR0x+2wX7mx8wqhcyWHMNrrlW0EW/BQb9g25mKg5V0AQCFIFZmhAXAXrIOXjU+tT9HE+tdpCGG3PoWLDe3MKv3oCFmbPxKfS6cXVQ2h2mId72sW9HbeY+shbB7lVP0+N697/vSO/4wWHhuHQHyjScXSqedyo6xYSAORkqu2CXvSnELVUm7I7gasWWT1w1pt94iY+wYCEtQjl0DhbGmq2U2aN1ows2YhSYLl1ZvnxwKUW/q7lUMFyRPOqCJrUerVYjujWzzUsopBhYg7BIuh+mFqNKLGMjjwI+0mI304cpSvejc8BulUx+yIxKOYqtTEGn0C5Lwxim+AGXz9z7CvePCSrMUPbXt1UY5CVD3BQDwScfKX6xmKmen9BlUzi4BJNoAIRa7SXOE/mDws0zgFsyHuM27ReBJojgziPWHwjbTnRm2yg3rlLA13hs+aJg2+l982LaVLAvNWAuxCbMpoeCIj6+KmpVylhLl03XXMKO18hfgB9FuMntPI2yMmiS5AnrMi1MePejJW42dPMIJBkbbYmyTEvfdkp15WNso88aGHNHwNSOnb7smiMxHvkMVzs9YnniVxbRUJ0rvo/GLAyxQUCxaKmzowR2pXkhs5TDePWMBLZZwWuu4aB5Icw58MYmCioebE+In/1QlT20ADyBhJ/A+PY/wMDCIa423T4y0rzjnI4HCh/ tQWQFm+r mWkvCXbf6Db/nhE018T6oTPQ7ssmmuyupAj83zB948ubU/OZedViwuq2bO+mSmy3HzU0ltKNJd4Dt3NgQsxA4EjV3UmiR2SlF5XT8tN9zf7vqQ0E9mzkJX+zwdnMjm0MZqpzkCPJDaRkJpLjYRFkxEozYbE44/4Cw964aeCo6rwyfnGJ27n1v3omVtUtpu4ta30rZeUv92eAFyUd75NtDO72EgM2wsGOYpUGMBmIKAmvggiyDOn5v4HpbfL1BwlTLYtEWocKB2HeOaX8i2/MBBLWv/uAPk9bDCxR2aLPNauQcaToIOs+CafUnhrpidyOoK1hHntB+4IplFYZ6MG3H/CIWuLlhdOlT42ayhsS4DRfgxucvRpLs3yPC0MfUnIHewz8ZzEPvaz/TdtnN0W66vYhjRwvZFhw3b/Vg8xHYEJ8Go6GDdzDecHSJvV5L499JD8VZ X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Sat, Jul 8, 2023 at 6:03=E2=80=AFAM Amit Pundir = wrote: > Hi Issac, I can't reproduce this crash if I have slub_debug enabled > https://bugs.linaro.org/attachment.cgi?id=3D1149. > > But I can still reproduce the crash, with the same build, if I just > remove the slub_debug bootarg > https://bugs.linaro.org/attachment.cgi?id=3D1150 > Hey Amit, Thanks for trying this out. John Stultz and I tried this out as well, and w= e couldn't reproduce the issue with slub_debug enabled either. However, we were able to reproduce the issue you reported along with KASAN enabled, which also helped us catch an out-of-bounds access in the regmap-irq code. Once we fixed it, the memory corruption you reported was also fixed. I've sent the patch [1] for review. Can you please test it out and see if it works for you too? [1]: https://lore.kernel.org/all/20230711193059.2480971-1-isaacmanjarres@go= ogle.com/ Thanks, Isaac