Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2724616rdh; Sun, 26 Nov 2023 17:29:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IEGbxHX91wetIzBljh/AqrMEp3ahF/XvHtiOY0gIomNhYZ4GVUw0AvyaVw0hPqcrFg5XzuF X-Received: by 2002:a05:6a20:2d0a:b0:188:1125:88bd with SMTP id g10-20020a056a202d0a00b00188112588bdmr16317946pzl.43.1701048569007; Sun, 26 Nov 2023 17:29:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701048568; cv=none; d=google.com; s=arc-20160816; b=I+CqkiS9XpPBS/3dJ5ChPhbKEUnBtuJnn81JzfGkcUDuvs+TFBN7B6s8qABtTNnlFj qA0ypS5iOpvEZh7nSarihHkqpQcZQkaXeOkUqdMc64jJBD+ppXWdz7zFsRJfxXF803g2 O2GKEDzgJCU2o60D1Xzik/2J3nTWYx4HzdEpHsWfrtQ31/5rIt+OOVy0VSzV0k1g47/S XWu/ZEOhD6YQkZCuc76G+Kh/SrtVH/6tiCEmSeGtMcaF/lqJ/o88KCFDKdyJziNx2DA3 3Xa7FIBSSaea+AIHpF0JgunW8286tanw5kKueTPcqni8g9Y7QU1Utqt0pMGliHQaTK/A jPKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=c8WraKH7izMTzidMiHYbs+LFOZrlhXTUuBrEz0967Ec=; fh=nL6MC+EJO41AKsaTGlExaJZuR/XUYf3qKCwABij+8ug=; b=Y+hRfpCgmJGkocBJF6cO0II1lHPFY2yITVX1nu/iqICDjno8MZMIWGwYNoCQ67xfJl T9p68/qdK7ufWrU5vgcGi5MA/luyHmG0DUiU8D3Ywc3do0KYpHrGUOnxqVagjVO4zlNi /kRbVV2y9KISvOtJlOErVNVH3gShuq12Z5MEtOS047n8JMm1FnO2QOIyzg55gwjOAt0m Sq8vcdEAXvU5qdWf5Dym76EB7h4xfEM4gBGu3LOJT4lerKlEdNH+T5i9na5JK4Eu4CdY 5jUpD3vBwJsKcClTMvehSP5gI9K/DeZFFenP3RxHcSFYS+6f8pyfob4I/re11tfPI56h /N5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=gJSY2rLP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id o18-20020a056a0015d200b006cb537d7b47si8978591pfu.309.2023.11.26.17.29.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 17:29:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=gJSY2rLP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 89BFF807F641; Sun, 26 Nov 2023 17:29:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231272AbjK0B3B (ORCPT + 99 others); Sun, 26 Nov 2023 20:29:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjK0B3A (ORCPT ); Sun, 26 Nov 2023 20:29:00 -0500 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0438E3; Sun, 26 Nov 2023 17:29:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1701048544; bh=c8WraKH7izMTzidMiHYbs+LFOZrlhXTUuBrEz0967Ec=; h=Date:From:To:Cc:Subject:From; b=gJSY2rLP/nKY6yZzr6xV5MaHq6oFnYlDzsoHwxbFZzDpoo2sZGhn56OfiClTv69SQ GgsJFOOj3vhZ+tD27+T6HXCFnmqVFwpY2lXcIntW8w9NDXhQsQ2XpT/+VBatQ4Rkap pdD7t7l/Or8xl7FM6gS8v+ro7tC3QZtr0tF/YlVzMBuqudSdSQmBtMOKgQxBq0XAAJ 6pERLj6f8GwMr+TXiW73Fjucn7/h/IslYYNG8362Pr3GdJT5ZQv/yoiCAARaqfGCFn XxRcXrQTewG9hLz8AAbVDT/br6kEa80lfXSHJEmf+VyVSemDT8kjJni0Ns9nwA4p8Q Fs9XzOWqunMmQ== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4Sdnzz5rnHz4wc1; Mon, 27 Nov 2023 12:29:03 +1100 (AEDT) Date: Mon, 27 Nov 2023 12:29:02 +1100 From: Stephen Rothwell To: Vlastimil Babka , Andrew Morton Cc: Andrey Konovalov , Andrey Konovalov , Linux Kernel Mailing List , Linux Next Mailing List Subject: linux-next: manual merge of the slab tree with the mm tree Message-ID: <20231127122902.566de6d1@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/9qvVD_TXCr7c=szVwJfkcnk"; protocol="application/pgp-signature"; micalg=pgp-sha256 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,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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]); Sun, 26 Nov 2023 17:29:26 -0800 (PST) --Sig_/9qvVD_TXCr7c=szVwJfkcnk Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, Today's linux-next merge of the slab tree got a conflict in: mm/kasan/quarantine.c between commit: f644ee35cf5b ("kasan: use stack_depot_put for Generic mode") from the mm tree and commit: 40a038d5fc11 ("KASAN: remove code paths guarded by CONFIG_SLAB") from the slab tree. I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts. --=20 Cheers, Stephen Rothwell diff --cc mm/kasan/quarantine.c index 265ca2bbe2dd,138c57b836f2..000000000000 --- a/mm/kasan/quarantine.c +++ b/mm/kasan/quarantine.c @@@ -143,22 -143,7 +143,21 @@@ static void *qlink_to_object(struct qli static void qlink_free(struct qlist_node *qlink, struct kmem_cache *cache) { void *object =3D qlink_to_object(qlink, cache); - struct kasan_free_meta *meta =3D kasan_get_free_meta(cache, object); + struct kasan_alloc_meta *alloc_meta =3D kasan_get_alloc_meta(cache, obje= ct); + struct kasan_free_meta *free_meta =3D kasan_get_free_meta(cache, object); - unsigned long flags; + + if (alloc_meta) { + stack_depot_put(alloc_meta->alloc_track.stack); + stack_depot_put(alloc_meta->aux_stack[0]); + stack_depot_put(alloc_meta->aux_stack[1]); + __memset(alloc_meta, 0, sizeof(*alloc_meta)); + } + + if (free_meta && + *(u8 *)kasan_mem_to_shadow(object) =3D=3D KASAN_SLAB_FREETRACK) { + stack_depot_put(free_meta->free_track.stack); + free_meta->free_track.stack =3D 0; + } =20 /* * If init_on_free is enabled and KASAN's free metadata is stored in --Sig_/9qvVD_TXCr7c=szVwJfkcnk Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmVj8N4ACgkQAVBC80lX 0GyebAgAoWkglSXrgn+ihSDD0b2x8HHiVEXkcAt3Wru2wnaw31Lya+Y6xuJ7t4X7 dzOFrxIL14sIwDhwTeL5Iangh/2oPsnfI0j0qOc5FGVdZ8NgwCYkVEW6HEMb/sj7 obo6X0mnydSd3F+1ChzbVU5BOPM7KdB0T13fy8lfq8XcljyBs8qHN+29gbTf1eaD Iq5nBLsAkADutX+KKvF0o7oaefOE6H0A1EFsULCLTh/ejpxsOOQ9gO/GNAYT1230 cwqjxw+4jigsGw4H1jjH3M4eyYVIZTZoIDdzDdhWOr+2W4PA/qUj1RK9IzyBwWW9 Ups9ksfnmvokPpOOuViolSYgBIr+1A== =UaKz -----END PGP SIGNATURE----- --Sig_/9qvVD_TXCr7c=szVwJfkcnk--