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 BA894EB64DA for ; Sat, 8 Jul 2023 13:03:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 050B16B0071; Sat, 8 Jul 2023 09:03:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 001588D0002; Sat, 8 Jul 2023 09:03:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E0C748D0001; Sat, 8 Jul 2023 09:03:23 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id CF49A6B0071 for ; Sat, 8 Jul 2023 09:03:23 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id A4A2D401C4 for ; Sat, 8 Jul 2023 13:03:23 +0000 (UTC) X-FDA: 80988460686.06.D2D855E Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) by imf02.hostedemail.com (Postfix) with ESMTP id C4DC180019 for ; Sat, 8 Jul 2023 13:03:21 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=linaro.org header.s=google header.b=qs6ak97p; dmarc=pass (policy=none) header.from=linaro.org; spf=pass (imf02.hostedemail.com: domain of amit.pundir@linaro.org designates 209.85.222.177 as permitted sender) smtp.mailfrom=amit.pundir@linaro.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1688821401; 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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=hAhrhxNPcUoTNAjzT4vVa1FtzZBglh2uR41QGwm87tg=; b=tvwzRQJTuEV2Db+nu73KWlf3R+oS6GHw2qJ/4LSpbf6ZVQHMxvjq9gyvJAj/JK0OHoLCOT MurJAp5E1S0S/8e5iAJ5nqTVa2yovwty7n1aYW8YQrLeGxcYZpl0EC0NSkSbEGf4Be/BEO 7d3T1Hp2WcVw8ImRSyCh8MkRGbsKHGY= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=linaro.org header.s=google header.b=qs6ak97p; dmarc=pass (policy=none) header.from=linaro.org; spf=pass (imf02.hostedemail.com: domain of amit.pundir@linaro.org designates 209.85.222.177 as permitted sender) smtp.mailfrom=amit.pundir@linaro.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1688821401; a=rsa-sha256; cv=none; b=inQYGwxm/9H8oFF+RdFtTrr6+Pia2npWFFseF2iQVQw5NwhsssHhzYD0fzAAVLptqNkzPW XOA03OV+WuIVxR6G9eJWoB4lppkvfOkv8m3RPbapkCHUW6LwVzP7qz2N0ZGVxfuYgklui3 WNmiPmqQ2cKNEBbC50dgQ2Fk1tyQUC0= Received: by mail-qk1-f177.google.com with SMTP id af79cd13be357-76758b855edso189035285a.0 for ; Sat, 08 Jul 2023 06:03:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688821400; x=1691413400; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=hAhrhxNPcUoTNAjzT4vVa1FtzZBglh2uR41QGwm87tg=; b=qs6ak97pOIUHEATP2nxTd+USTX0WLtwBbm5H+O1CvNFL6OtP/jAqQXb0tKI5RfmLP1 3/H1zn8kaG7ZDSgZc9P1z+pvKY4MqMoZwdbDSuGt1Af+d1QQiz8+SbKhjdpaOnzXObjM 6fAukIorrYTfjYIGZRppndiu1o+EjoCuuWPgcjWVFwxtdHh9DWtIiBJLQSCkFxUBD3i1 1Z3lwcgIVGTfNL/iW5hiWX+vSl43whJyOJpYEPkeHV/yv13vjF112TQnLMU/leY79J0S 3+dsnCmu8iF9Zx2jhvh7CgXzGsaf062l/dJP8Gu3lxnZUdBiJsCpG6pNP7ETv//XMzXe 3jrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688821401; x=1691413401; h=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=hAhrhxNPcUoTNAjzT4vVa1FtzZBglh2uR41QGwm87tg=; b=Cio4Q3cvpzGnlggc5sdZjR62CKlliyc9ksNMe9kKgg03DPoyAJlcJOVzolUn5bLa7/ hu+DcMNzZjne9zHKipSu32EbteHGeTxTO+V9vSbPNjR6n7/9Fa5Ugv68EEzkrlatzdrM +2OnA4hspwr+OvMmHNW/tCvK2m7rlCFTtEDAAbwkwXKRiEd/EO0eNW2NeXXZcs3taxSy oUatODpiHTD5VG+Asl2tgPtkI/M97XmKFyZKtq/ytnLG5E9ZChtmOqyCOjnfA/un8Jed N+nwTaqzekVbc7at8CFCso9KNzGwejWaqz+LyMWWu8EQLzrOxKLOtmxsvaAczTT8G8dY q2OQ== X-Gm-Message-State: ABy/qLYcvDZ9DJRoB7HP/yOl4il8zPphle/y+jiohW9KCtEMf4b4KLQD F2GEOSprKzFSsxYMu/XwfW6rW2uuodypunZCtS/Jfg== X-Google-Smtp-Source: APBJJlGXHGy+tSy8IYH5JlnurOryMlyk/mDY1IbM86eZzhVZnwNBgrK2ln+/ENVOLnmMs4hNs+NhAui7pYv9xZwjorY= X-Received: by 2002:a0c:a9ca:0:b0:621:6804:b8c0 with SMTP id c10-20020a0ca9ca000000b006216804b8c0mr9462474qvb.8.1688821400717; Sat, 08 Jul 2023 06:03:20 -0700 (PDT) MIME-Version: 1.0 References: <20230612153201.554742-1-catalin.marinas@arm.com> In-Reply-To: From: Amit Pundir Date: Sat, 8 Jul 2023 18:32:44 +0530 Message-ID: Subject: Re: [PATCH v7 00/17] mm, dma, arm64: Reduce ARCH_KMALLOC_MINALIGN to 8 To: Isaac Manjarres 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 Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: C4DC180019 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: qii7wbjgmei99zwphx8k966px9rb49ae X-HE-Tag: 1688821401-260498 X-HE-Meta: U2FsdGVkX1/aoSMhxBzga8Frsjll1DS+ocMjs1HtG/i+KcUZE50WUjM+ThuqNcCI00Dzo/ixVV4rLsP1tPcnzbQHN8boHYY2Xt48vlrQnTrpNhreeNsXuZ/rf40yorIzsdMBOxplVObrUrKGkog9izJUIFcRZPNdQmhDsxoU6zzL9TrXDyAwSlRMczSm3vwA4esxC9mQWR7JVLLa/QSEHd/pGDwhsFIJnMHaAXvxAUZVLvntFQYxpDzuwOIjSWqLXQ8HdHKJC004eWsu8EV6BdEci+PGt5rk7IPUE3wh79Ta52Hak+5RYyz6tWI/VqLguyRIkuNQZYGM9gcQVU0Pk5yGnfiboUuLgB9QLs4rJpr47nwLvOYcoeF8FYD5saFc1em8FwKizp9hsue2GJC0v66jyNAxc0m1817AGO28D4rnobUg24ntOJjNBx3ddRFdr0vA0UZ1s4jrvgBCrCufPExW7SZ08GtVxAKCFWrKeLCL2BOeaxm+jSPudgZe8t4Lq1HLSlP6Lj0oDxphL1es/tugGlQKTwRGQPLHxgzdCnnQA83IdmkCeVe7hswxN2C3NlMjHnqINQdWYeNnaExv+YMhMt0BZBtRf5IPGkf6z+5iCE4BKU9moZMH/A5Ra3YURn3aPQDu1Yu4fkbNfs8541+BLw4jS8UfY7vxxQDNbgUgVLDlhb7tpW1txYgd9wyFg+iWRQ5aXKE60KH1SSqMqttp08hT6cr+RfbGe+SXVwCWCeSW1CO1D10AYs1cQpIbaYqZsQplRJEZdtVwHxpvMUQ59sYj5xeg7GVYRq1giOvtWMAAEaad6TJEd2LWEqGobVWrCI4OXcYTi2SzhNdc6X0IXuhTCWFIb2x9iojz7yaVNN+SH25aZ9GxOzeRY2J01jydh2+ebL+07OnqfiRJuDSgVwfnST/7pKLBIjq/eXcXwFnR4ya8ulwd/qVg8eF4O6BRnCkP66CEpxERkpu OijxhjCp t4AP0pF1RH6yEo9JgTAF7C40HMCkUa+0u1pC816oMm2GR4GFrqgfSCkdf8oWSOEsQRk8FupFX5HgfsEoudHbktVAO/dTXNbUynM6/gCE7i2ksQ0JfrZjmkP4y2JSuBx2YH8q86QYqfoCuDSrvfWfk4b5rdUykPVHu3R44HVBG0IRfWqHSdfcWF802WsAXyM6FDpIaWZowxweLw8PGcVpxk9iQQbL9MjSqClhAW+nj65xtdy7uBIJkR2Ijgh0mz8DkQKnotvOkXFze8DJYCp1dVFgf4rfQ3Ua3hb1Np9KCOSTHZUXPRK9ehTwB9wLuw2sKPWgzUa0UHpF+MyTdKQVvzE4vLsmVGlOj+XPy94eTQoJFVMgNYLLbYTg7ZbDA+XHjPAOeXV4i4oiHorkWfmNoVqpZLcbnnpijujBh 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 Fri, 7 Jul 2023 at 06:12, Isaac Manjarres wrote: > > On Wed, Jul 05, 2023 at 07:10:02PM +0530, Amit Pundir wrote: > > Hi Catalin, > > > > On Wed, 5 Jul 2023 at 18:17, Catalin Marinas wrote: > > > > > > Hi, > > > > > > That's v7 of the series reducing the kmalloc() minimum alignment on > > > arm64 to 8 (from 128). There's no new/different functionality, mostly > > > cosmetic changes and acks/tested-bys. > > > > > > Andrew, if there are no further comments or objections to this version, > > > are you ok to take the series through the mm tree? The arm64 changes are > > > fairly small. Alternatively, I can push it into linux-next now to give > > > it some wider exposure and decide whether to upstream it when the > > > merging window opens. Thanks. > > > > This patch series broke Dragonboard 845c (SDM845) running AOSP. > > With this series I run into random oops at __kmem_cache_alloc_node(). > > Here is one such boot log https://bugs.linaro.org/attachment.cgi?id=1146 > > Hey Amit, > > From the log that you linked, this looks like there's corruption within > the kmalloc slab caches. Can you please try enabling slub debug? That > might give us more information about who is causing the corruption > you're seeing here. > > To enable slub debug, you can add the following to your kernel config: > > CONFIG_SLUB_DEBUG=y > > and CONFIG_SLUB_DEBUG_ON=y or add slub_debug to the kernel command line. Hi Issac, I can't reproduce this crash if I have slub_debug enabled https://bugs.linaro.org/attachment.cgi?id=1149. 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=1150 Is there any specific (slub_debug=) option(s) you want me to try? May be I can reproduce this bug just with those options. Regards, Amit Pundir > > --Isaac