Return-Path: Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux.ibm.com (client-ip=148.163.156.1; helo=mx0a-001b2d01.pphosted.com; envelope-from=anoo@linux.ibm.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48Gdv31ppCzDqKr for ; Tue, 11 Feb 2020 08:14:06 +1100 (AEDT) Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01AKnN0S088912; Mon, 10 Feb 2020 16:14:03 -0500 Received: from ppma02wdc.us.ibm.com (aa.5b.37a9.ip4.static.sl-reverse.com [169.55.91.170]) by mx0a-001b2d01.pphosted.com with ESMTP id 2y1u2e6rfk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 10 Feb 2020 16:14:03 -0500 Received: from pps.filterd (ppma02wdc.us.ibm.com [127.0.0.1]) by ppma02wdc.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id 01AKxwW1014500; Mon, 10 Feb 2020 21:14:02 GMT Received: from b01cxnp22033.gho.pok.ibm.com (b01cxnp22033.gho.pok.ibm.com [9.57.198.23]) by ppma02wdc.us.ibm.com with ESMTP id 2y1mm6g7y4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 10 Feb 2020 21:14:02 +0000 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp22033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 01ALE1ga28246330 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 10 Feb 2020 21:14:01 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A3293AC059; Mon, 10 Feb 2020 21:14:01 +0000 (GMT) Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 65554AC05F; Mon, 10 Feb 2020 21:14:01 +0000 (GMT) Received: from ltc.linux.ibm.com (unknown [9.16.170.189]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTP; Mon, 10 Feb 2020 21:14:01 +0000 (GMT) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 10 Feb 2020 15:14:20 -0600 From: Adriana Kobylak To: Patrick Williams Cc: openbmc@lists.ozlabs.org Subject: Re: BMC Secure Boot - dm-verity In-Reply-To: <20200207201052.GB38734@patrickw3-mbp.dhcp.thefacebook.com> References: <33245ec544dc3da5d7f988d5020b265c@linux.vnet.ibm.com> <20200207201052.GB38734@patrickw3-mbp.dhcp.thefacebook.com> Message-ID: X-Sender: anoo@linux.ibm.com User-Agent: Roundcube Webmail/1.0.1 X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572 definitions=2020-02-10_07:2020-02-10, 2020-02-10 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 malwarescore=0 adultscore=0 mlxlogscore=767 bulkscore=0 spamscore=0 impostorscore=0 lowpriorityscore=0 mlxscore=0 suspectscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002100149 X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Feb 2020 21:14:07 -0000 On 2020-02-07 14:10, Patrick Williams wrote: > On Fri, Feb 07, 2020 at 01:28:18PM -0600, Adriana Kobylak wrote: >> The verity root hash value is needed to do the verification, which in >> chromeos appears to be compiled into the kernel, they don't have an >> initramfs. >> For OpenBMC, we're thinking of creating a new binding for the kernel >> device >> tree so that an initramfs can read the hash value and do the >> verification. >> >> Any opinions or suggestions? > > u-boot has commands to manipulate a fdt. Does this weaken the > security? > I'll have to check if the u-boot verification of the fit image would fail. > Can we put it into the initramfs itself? I don't know what is easier, > rebuilding the kernel or the initramfs. That's an option. We could have the hash values in one place alongside the additional information that the initramfs needs to call 'dmsetup' and create the devices.