Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp12181878imu; Tue, 1 Jan 2019 16:51:04 -0800 (PST) X-Google-Smtp-Source: ALg8bN5kPLVBmGfD8S9VJv1Ie5rhJfGBqnDX73tEUePPysa1BCGsPBR3imdV0EVA3sob627VY8if X-Received: by 2002:a63:e445:: with SMTP id i5mr11875510pgk.307.1546390264278; Tue, 01 Jan 2019 16:51:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546390264; cv=none; d=google.com; s=arc-20160816; b=HHSBx0Z6B+PmnAu1dQw22ZI/CiRPaa+Zl5U1CD9s1fl0nn5MEbcIzMIaR0i9vAAqlg NMdYHwBLVEOsv3Uyj8zPMeQebngJdYcd+7r20jgNezIUsjk5ABUCvtAKf1v/hX+FE7pp lSlULBT0/iT2CVcfYKu72FOIeAy51KEKFXgfK1iJuil+VXHWlm8YupUFkJWjbwbvUpwU ZtyWUxDLA9xpczRrN7uVzbm2E/gDndNtoClwiofiD4cpKCHMci4PgqxOpLh4VYPcbz7R lUartPLn+L4dltCu12A++z5WgAj3Klfe6Kf159N8ZtVC28mnvLneVVgchKvg8OitMgqA OxvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=ITQNAv/7qiGtyGxepZegQU+fgCZKmvhMlXg4/PwfvEE=; b=XW+vKU5a054iZM5B9xPOlL6ro/AlTlYhhcd01dPA5AGW1dbDMmxEu9I9yqDsY+I4rd CLv1gerIFy/ou3YLCBJ+3t19X2+V4cr/FucGo+bDHp4qUrIOTfCISxmg++d3DD9niZZR 0qBBNkxHHFpdVa7yoRQzJc5pFaEXnYZaT4dnBdo+E2r6UiLKhNdLUAludUPIwa+LX1Qa m98gxdG8+NCEK48pn3eoN04e8SOEBF2G6YEXv1iFyaooSfbf8gn15mV8VO5meh3Dpm/f Ka34gyAjv1Hnc7UKeUgyoR0t5rM9hYPkJ9nCpi9h1YgkwhKuefmzRqSu2krnMCkWJKdR oIXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=KEMCKpa1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l30si2149989plg.113.2019.01.01.16.50.49; Tue, 01 Jan 2019 16:51:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=KEMCKpa1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727373AbfABA0W (ORCPT + 99 others); Tue, 1 Jan 2019 19:26:22 -0500 Received: from ozlabs.org ([203.11.71.1]:36697 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727189AbfABA0W (ORCPT ); Tue, 1 Jan 2019 19:26:22 -0500 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 (2048 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 43TsKk5m4Gz9s4s; Wed, 2 Jan 2019 11:26:18 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1546388779; bh=gk6JosYufo9mggqSHtiEZlXpwt8dJYGgvwHhlnJmcTE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=KEMCKpa1xzksKVBsaIWSmgLEmgFOzidoW1JV/YKg9r1pBTZSAHYlwHboaZDBOHOU1 dsYtFAaYNOVYQqlkfAmrA7NiiYI5L0UYL5FyN8N1v6K01xQvZyewXySVR7DSWylsbu bta6vSHk7hP+wzZUm/j1Ufu5daFc/fR+SE/Gu3ig55SPkWtBEtBmyfc22FxBDPh5JV ESQIav+ZKhR7AkSSuus/kxHLEgiMHBAePqK6GP/40xOYpADjHkZvxGlyQAiI2Vu+Yy D9ktI++1xTORfhqK5BujY2MQjj+tCRLaN3nfNXPYtRrIdFWS3+Em8FMWGRfm5+T/te hNYdl4sdJ508w== Date: Wed, 2 Jan 2019 11:26:10 +1100 From: Stephen Rothwell To: Theodore Ts'o Cc: Jaegeuk Kim , Linux Next Mailing List , Linux Kernel Mailing List , Chandan Rajendra Subject: Re: linux-next: manual merge of the f2fs tree with the fscrypt tree Message-ID: <20190102112610.3bc5fb97@canb.auug.org.au> In-Reply-To: <20181211101322.438946fe@canb.auug.org.au> References: <20181211101322.438946fe@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/oSPUQt/zVrd5X9qD0buRkfQ"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/oSPUQt/zVrd5X9qD0buRkfQ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, On Tue, 11 Dec 2018 10:13:22 +1100 Stephen Rothwell = wrote: > > Today's linux-next merge of the f2fs tree got a conflict in: >=20 > fs/f2fs/dir.c >=20 > between commit: >=20 > 848a010287e6 ("f2fs: use IS_ENCRYPTED() to check encryption status") >=20 > from the fscrypt tree and commit: >=20 > 4e240d1bab1e ("f2fs: check memory boundary by insane namelen") >=20 > from the f2fs tree. >=20 > 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 > --=20 > Cheers, > Stephen Rothwell >=20 > diff --cc fs/f2fs/dir.c > index cf9e2564388d,c0c845da12fa..000000000000 > --- a/fs/f2fs/dir.c > +++ b/fs/f2fs/dir.c > @@@ -808,7 -808,18 +808,18 @@@ int f2fs_fill_dentries(struct dir_conte > de_name.name =3D d->filename[bit_pos]; > de_name.len =3D le16_to_cpu(de->name_len); > =20 > + /* check memory boundary before moving forward */ > + bit_pos +=3D GET_DENTRY_SLOTS(le16_to_cpu(de->name_len)); > + if (unlikely(bit_pos > d->max)) { > + f2fs_msg(sbi->sb, KERN_WARNING, > + "%s: corrupted namelen=3D%d, run fsck to fix.", > + __func__, le16_to_cpu(de->name_len)); > + set_sbi_flag(sbi, SBI_NEED_FSCK); > + err =3D -EINVAL; > + goto out; > + } > +=20 > - if (f2fs_encrypted_inode(d->inode)) { > + if (IS_ENCRYPTED(d->inode)) { > int save_len =3D fstr->len; > =20 > err =3D fscrypt_fname_disk_to_usr(d->inode, This is now a conflict between the fscrypt tree and Linus' tree. --=20 Cheers, Stephen Rothwell --Sig_/oSPUQt/zVrd5X9qD0buRkfQ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAlwsBSIACgkQAVBC80lX 0GyzVwf+LbzKgJ/S30mYe9TrC/Jlp3kD3VDfsUFtXLaK1WOs1mDfkDuU7bQDmPr8 F/l6TFyuA9OKkSZpu/bYBuwwE/5Q+FdoFnT1yvTOUbh/XBL9RXKPyPrkab8jikna eP5VHiphKCgUsrbQFYAHv6HxGPc1S/P/g78neJ1zCBSN0qGPpNFdbzmygmL602t2 YRUdDvXRcZGIuZkzsHbO6uEW3QrPIw2FAV+4iAq8ZLksWBDEJPlHljE9hwgU/0vK 2juzugF5+P0n4YjmukNCFClH2H4h6TNEQDzAVm8aZ1UjoXTBcIzE1vQ3DDeafyHF rV+runCJJvBAn2jknx5T/NO/g/XLnw== =N6wc -----END PGP SIGNATURE----- --Sig_/oSPUQt/zVrd5X9qD0buRkfQ--