Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp881300pxb; Wed, 27 Oct 2021 14:23:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMfxY0M818P9JA1WXLQYKBF20Zr/8bfCnk4SKvLrgNEkKMCIjJh7IEveTF6hg2q+BCYNle X-Received: by 2002:a17:907:2483:: with SMTP id zg3mr50905ejb.65.1635369780989; Wed, 27 Oct 2021 14:23:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635369780; cv=none; d=google.com; s=arc-20160816; b=WdCV3CQxSOW22kaHINnP7zd+LXtYLnvN33Va0m+I+nuzZrC5gbr2fk+9Y9p6OpiekP gGM74WwCh9u4HKCFCwDIoKQZoiOW+BsCX3Z4ZP8OGi2eM14ofYkJiFNeymCdAp9UeNDj EPk+AuPxquQjPd2F/LVV8SzdLA+5OXxl62STBsCXeEigYxQAa16SaPBQ2Z546pyTbwZp tBNY2WVT24HSwo8s0osYlK9Abc5Bs3WaKuS7/HoK8Pf14YjlZMn/0HGMRHLmXEIrVCoO 88i6Dqtax5jmQnmVYSfk9f9DiVsm4Lr0JyyHgsBq4J1sLJM0etsdonJ6QPVuw/nqzURc 8JhQ== 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=Nt0ovT/aF/pfHbmyRO6qwxpTGq2nM0FPv6PVv43Na6A=; b=vjQnsa5+71X+cW8tUR7ZR3ygaSXpI/lCQBvq4PtUyhi7mGo72sSdaJItP0YssHwg6e 2hybe9TE7+w20QZpCSMZ4r9p0HY20KT7M1DmitAK9QOk3HJ3htRT+kLjPhPjqcslz1op 30tuAAqsAVlZV2RebAGULnqpgKanVqpk7Bco6QFkIHgfJ8FHm+vQD0XlBlQ/Yev1XgLB odTCcPCFh0pVTqDXu4wDVSXC0aCSRa5OC0VgHucfrTflLCWcNKMmeyvSPI/IG0PC2fD+ rOxt9UlbXT47H/Lzu3x5yzmuYR6QVvIGX9bH7WW1FOh2cBRrKlMgX80H593co6eY02mw 547Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=Ef+UEmCz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gl1si1612742ejc.62.2021.10.27.14.22.37; Wed, 27 Oct 2021 14:23:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=Ef+UEmCz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239396AbhJ0KLx (ORCPT + 97 others); Wed, 27 Oct 2021 06:11:53 -0400 Received: from gandalf.ozlabs.org ([150.107.74.76]:56693 "EHLO gandalf.ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232630AbhJ0KLw (ORCPT ); Wed, 27 Oct 2021 06:11:52 -0400 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 ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4HfPYd6s4Mz4xbC; Wed, 27 Oct 2021 21:09:25 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1635329366; bh=Nt0ovT/aF/pfHbmyRO6qwxpTGq2nM0FPv6PVv43Na6A=; h=Date:From:To:Cc:Subject:From; b=Ef+UEmCzssS4E8D10fuHGyps8ZaxO7zK0uKLBmVvwcQ+HGtAV2AgsmdqCYO7hyUUF SYtg4H684QgJH5nQK7bOQeQrPtJnpzcCDBBAzUZzJkeHpqLnJTKq9DPPw4iBrNoIJu t/8Gy+M95olZmeQhpqzx10Z/YmVgTcmShV3EpD0hd8rkm1pkMO4BKDrcjAFgxyfZ7X pbIEczXyJYHMW1AdByf+LlvKGJ7PQm425molWNCaj8zC6weha2rM5/7dMHx7HBQH5s 7a71UdN5jn6FD45eOWDlVlY6kW8Q49SBGdAVY6qjkvfn4lkGLaJOgGnT78MmH+TTjO E1k1Ni+ZpZ7dA== Date: Wed, 27 Oct 2021 21:09:24 +1100 From: Stephen Rothwell To: David Sterba Cc: Linux Kernel Mailing List , Linux Next Mailing List , Kees Cook , Andrew Morton Subject: linux-next: build failure after merge of the btrfs tree Message-ID: <20211027210924.22ef5881@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/WBXj/Gqj3ng9sdQkmCFxe+v"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/WBXj/Gqj3ng9sdQkmCFxe+v Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, [I am not sure why this error only popped up after I merged Andrew's patch set ...] After merging the btrfs tree, today's linux-next build (x86_64 allmodconfig) failed like this: In file included from include/linux/string.h:253, from include/linux/bitmap.h:11, from include/linux/cpumask.h:12, from arch/x86/include/asm/cpumask.h:5, from arch/x86/include/asm/msr.h:11, from arch/x86/include/asm/processor.h:22, from arch/x86/include/asm/cpufeature.h:5, from arch/x86/include/asm/thread_info.h:53, from include/linux/thread_info.h:60, from arch/x86/include/asm/preempt.h:7, from include/linux/preempt.h:78, from include/linux/spinlock.h:55, from include/linux/wait.h:9, from include/linux/mempool.h:8, from include/linux/bio.h:8, from fs/btrfs/ioctl.c:7: In function 'memcpy', inlined from '_btrfs_ioctl_send' at fs/btrfs/ioctl.c:4846:3: include/linux/fortify-string.h:219:4: error: call to '__write_overflow' dec= lared with attribute error: detected write beyond size of object (1st param= eter) 219 | __write_overflow(); | ^~~~~~~~~~~~~~~~~~ Caused by commit c8d9cdfc766d ("btrfs: send: prepare for v2 protocol") This changes the "reserved" field of struct btrfs_ioctl_send_args from 4 u6= 4's to 3, but the above memcpy is copying the "reserved" filed from a struc= t btrfs_ioctl_send_args_32 (4 u64s) into it. All I could really do at this point was mark BTRFS_FS as BROKEN (TEST_KMOD selects BTRFS_FS): From: Stephen Rothwell Date: Wed, 27 Oct 2021 20:53:24 +1100 Subject: [PATCH] make btrfs as BROKEN due to an inconsistent API change Signed-off-by: Stephen Rothwell --- fs/btrfs/Kconfig | 1 + lib/Kconfig.debug | 1 + 2 files changed, 2 insertions(+) diff --git a/fs/btrfs/Kconfig b/fs/btrfs/Kconfig index 520a0f6a7d9e..f7dd994a88af 100644 --- a/fs/btrfs/Kconfig +++ b/fs/btrfs/Kconfig @@ -20,6 +20,7 @@ config BTRFS_FS select SRCU depends on !PPC_256K_PAGES # powerpc depends on !PAGE_SIZE_256KB # hexagon + depends on BROKEN =20 help Btrfs is a general purpose copy-on-write filesystem with extents, diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 0104cafd403f..44a6df361016 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -2491,6 +2491,7 @@ config TEST_KMOD depends on m depends on NETDEVICES && NET_CORE && INET # for TUN depends on BLOCK + depends on BROKEN select TEST_LKM select XFS_FS select TUN --=20 2.33.0 --=20 Cheers, Stephen Rothwell --Sig_/WBXj/Gqj3ng9sdQkmCFxe+v Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmF5JVQACgkQAVBC80lX 0GwtCAf+KbDue8qiMCaDQMC87Jw+o9kewaR/gAkB2q0OGXE7xlecog2r/97vfCt+ GJ4W8R+HmtYgCdR9Kz0uRTFVQyw9jMEZYyqy+XrL5jHYRLM8kRJ6VX/XNblgA+Xb EHG6oeqW7cUejrqM2aJzmRgpKbBMutvIzljQyamQpup8drSxMVdMl0YQ50Y3dDkk IPsRSNFQlLOk3eVKYuKzfQWi62pYFwcBkA3My3MZC35KQ4xHHbQ6bDJPm+uSNG/6 g/EV8EGYVS3H5++iCSiVEYQdtyDkCKdhqYwD6BdLndniop/DIBRlRWhgmJ4a31dP 990O0RgzEPp/sYh4T1fOpXmhE3Getg== =VzlW -----END PGP SIGNATURE----- --Sig_/WBXj/Gqj3ng9sdQkmCFxe+v--