From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751223AbcAGFZY (ORCPT ); Thu, 7 Jan 2016 00:25:24 -0500 Received: from mx1.redhat.com ([209.132.183.28]:39952 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750745AbcAGFZU (ORCPT ); Thu, 7 Jan 2016 00:25:20 -0500 Date: Thu, 7 Jan 2016 13:25:07 +0800 From: Dave Young To: David Howells Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, kexec@lists.infradead.org, xlpang@redhat.com, vgoyal@redhat.com Subject: Kexec_file_load failed with "Missing required AuthAttr" Message-ID: <20160107052507.GA12900@dhcp-128-65.nay.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2015-06-09) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I saw the warning "Missing required AuthAttr" when testing kexec, known issue? Idea about how to fix it? The kernel is latest linus tree plus sevral patches from Toshi to cleanup io resource structure. in function pkcs7_sig_note_set_of_authattrs(): if (!test_bit(sinfo_has_content_type, &sinfo->aa_set) || !test_bit(sinfo_has_message_digest, &sinfo->aa_set) || (ctx->msg->data_type == OID_msIndirectData && !test_bit(sinfo_has_ms_opus_info, &sinfo->aa_set))) { pr_warn("Missing required AuthAttr\n"); return -EBADMSG; } The third condition below is true: (ctx->msg->data_type == OID_msIndirectData && !test_bit(sinfo_has_ms_opus_info, &sinfo->aa_set)) I signed the kernel with redhat test key like below: pesign -c 'Red Hat Test Certificate' -i arch/x86/boot/bzImage -o /boot/vmlinuz-4.4.0-rc8+ -s --force Thanks Dave