From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752747AbbKALMN (ORCPT ); Sun, 1 Nov 2015 06:12:13 -0500 Received: from ozlabs.org ([103.22.144.67]:59533 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752382AbbKALMJ (ORCPT ); Sun, 1 Nov 2015 06:12:09 -0500 Date: Sun, 1 Nov 2015 22:12:06 +1100 From: Stephen Rothwell To: James Morris , "Theodore Ts'o" Cc: linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, David Howells Subject: linux-next: manual merge of the security tree with the ext4 tree Message-ID: <20151101221206.1e7c3503@canb.auug.org.au> X-Mailer: Claws Mail 3.13.0 (GTK+ 2.24.28; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi James, Today's linux-next merge of the security tree got a conflict in: fs/ext4/crypto_key.c between commit: 687c3c36e754 ("ext4 crypto: replace some BUG_ON()'s with error checks") from the ext4 tree and commit: 146aa8b1453b ("KEYS: Merge the type-specific data with the payload data") from the security tree. I fixed it up (see below) and can carry the fix as necessary (no action is required). -- Cheers, Stephen Rothwell sfr@canb.auug.org.au diff --cc fs/ext4/crypto_key.c index f9270ec2a132,5c52c79dea46..000000000000 --- a/fs/ext4/crypto_key.c +++ b/fs/ext4/crypto_key.c @@@ -207,13 -208,8 +207,13 @@@ retry goto out; } crypt_info->ci_keyring_key = keyring_key; - BUG_ON(keyring_key->type != &key_type_logon); + if (keyring_key->type != &key_type_logon) { + printk_once(KERN_WARNING + "ext4: key type must be logon\n"); + res = -ENOKEY; + goto out; + } - ukp = ((struct user_key_payload *)keyring_key->payload.data); + ukp = user_key_payload(keyring_key); if (ukp->datalen != sizeof(struct ext4_encryption_key)) { res = -EINVAL; goto out;