Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3091958imu; Mon, 17 Dec 2018 13:10:40 -0800 (PST) X-Google-Smtp-Source: AFSGD/ViFi/paXAiVcmuX5NzAL+jstaRJScjlDLLJ7bRqZehyoGSPCXuww3KiEMtghrznDyVG6Bn X-Received: by 2002:a65:65c9:: with SMTP id y9mr13787540pgv.438.1545081040554; Mon, 17 Dec 2018 13:10:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545081040; cv=none; d=google.com; s=arc-20160816; b=DI4OUEOK5NZf/BNAfZgI3w46mbfJtt9bf8I2mAc0zm/JlKOgSPu8YF9E6hc27KFMvi I2NdQsIded1EvxI4TzP8Hgmp+jQpCy7U+jl+cvxuNwLNXJFqoC2PPwQyTVStxYjmRkcB DLD4oj8zzd8KRqTPSsDrefzKl54rHfnf9uxhGjMWmfj4eeKej4wLIxVN/p4Wffj7xwIV lk2ZwQr/ium3Dze7QFLAFDXUh83SRR/FNT0lWa82mz3OKxUyQbm75Qe/nQpaT1hcMWYJ 7ffN30vZ0CcQIptnhx5Qt/9pz6EfIBTflzdozcWMeNBDaWD2UODEyhhR6QNkCpIeNhOG X8Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:cc:to:from:subject; bh=edln7docdLwzW58vXNDR58nDo6NB+NB7KfzpTl8cmgg=; b=b6EUVTEwAiL08wDiYbrIlC4MAkYdGSQShV2A3pi2icblExMwggmJ9VY6bpjqeepX+u ue6LtjiUjLOaVTCx5mODWnIJKSku+5GpOpuakI/NBKcvj9YktTor88rCmnaw5VY0zTgD cDdZZJ7W1HDVSG+nO4Itq4Jojy04Ip2Mgk0GXzBEELFH7sjsgS5kkVsOBsXTRSbEWszD xEIKuipGUyjXyIlcjB+6OBzHTcEzBJ1TNROq9OcD1Op6B3HhdtXHy6eNqosLLiZaDcbR UihrnDFG2QpTj6r7L3moUqVUZA+9DduaWdJlCqR3ejGHkQV/N4+2qa964XZcIpcr25bd 0PrA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6si11039027plr.186.2018.12.17.13.10.25; Mon, 17 Dec 2018 13:10:40 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389550AbeLQU3n (ORCPT + 99 others); Mon, 17 Dec 2018 15:29:43 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:60538 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389447AbeLQU3n (ORCPT ); Mon, 17 Dec 2018 15:29:43 -0500 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wBHKTZIE073065 for ; Mon, 17 Dec 2018 15:29:41 -0500 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0b-001b2d01.pphosted.com with ESMTP id 2peg2nq1mn-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 17 Dec 2018 15:29:38 -0500 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 17 Dec 2018 20:29:25 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 17 Dec 2018 20:29:21 -0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wBHKTKPX8257804 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 17 Dec 2018 20:29:20 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 580A152050; Mon, 17 Dec 2018 20:29:20 +0000 (GMT) Received: from dhcp-9-31-102-82.watson.ibm.com (unknown [9.31.102.82]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 3A1B652052; Mon, 17 Dec 2018 20:29:19 +0000 (GMT) Subject: Re: [PATCH RESEND] KEYS: fix parsing invalid pkey info string From: Mimi Zohar To: Linus Torvalds , James Bottomley Cc: ebiggers@kernel.org, James Morris James Morris , Mimi Zohar , Jarkko Sakkinen , Peter Huewe , David Howells , keyrings@vger.kernel.org, Linux List Kernel Mailing , syzkaller-bugs@googlegroups.com Date: Mon, 17 Dec 2018 15:29:18 -0500 In-Reply-To: References: <20181128232019.GC131170@gmail.com> <20181217181244.220052-1-ebiggers@kernel.org> <1545076260.2878.15.camel@HansenPartnership.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 18121720-0020-0000-0000-000002F85AB8 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18121720-0021-0000-0000-00002148A0A0 Message-Id: <1545078558.10804.19.camel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-12-17_08:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=3 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=918 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812170180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-12-17 at 12:02 -0800, Linus Torvalds wrote: > Talking about the conflicting ones: Opt_hash checks that > Opt_policydigest isn't set. But Opt_policydigest doesn't check that > Opt_hash isn't set, so you can mix the two if you just do it in the > right order. > > But that's a separate bug, and doesn't seem to be a huge deal. > > But it *is* an example of how bogus all of this stuff is. Clearly > people weren't really paying attention when writing any of this code. A file signature is more restrictive than just a file hash. I'll clean up this and the other ugliness. Mimi