Received: by 10.213.65.68 with SMTP id h4csp2811549imn; Mon, 9 Apr 2018 09:22:54 -0700 (PDT) X-Google-Smtp-Source: AIpwx49ibbWedtri96xtLtY6xplE/spcN/2MJRkiw1I5DLc83+j/td3vQri7yJMss/VkRDmazu2G X-Received: by 2002:a17:902:6b45:: with SMTP id g5-v6mr38592102plt.171.1523290974406; Mon, 09 Apr 2018 09:22:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523290974; cv=none; d=google.com; s=arc-20160816; b=m38jq+KVhR/SO5yiblwx+TYDFOyZL/KFA8z+JIuNdBXBahBOjMzyGDJlAfHIChft5d FLV/Rs534jokwDZMGymkEE9252n/MnoX4YTnvfdsf86khgNr9WxDgI9xbClwIk28bOLw OjncLej2ftcYZEf/RtJLRdTKnE5Dc9QwCWJPylAYQvXidgqgKMm++ZKb0n7x5x03tbLc ZTO38EkdNZVSK3N3QjKLl/tvmy0ynBKHHXA83TXmeoesQBWkSoqboNfUesIEigE37oyf bXQArx2xFdy7p9RcUaZF6qFE1KA57g3X9SMpL4WxJ6wByA06K4A3ev9Rppd+PtwoLmNP 6D9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:mime-version:organization :user-agent:references:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=mJqwiUHNazuh4fxSvSso1PY3lrz2mbwND8QwXDijWNI=; b=MqGMFX7msz7/8ImIpCQtM6nSvohf8RPb5wzNdXl5FQRLjbpbGYCuTbYH52Z1EmmWdo f0vD0PfBgNDyLWJ6tx2X9Q5N5+AxOp6LlFOYrysxdH+P6uUOLaA4xpC+x3n1zOKGBYfF sWTODd06NBlnZry2+4czzOoWzYlM1PWdVlB06A0yURhuJzbuZ1ArMOoDehoXHh7TpvEj 2yPnSdRGHuNv27CPWViV2nUFEsqctQb9suDgqiP7yGoWkLjMmc2d6DYtHTaZwvStUONG n4fTbL9PWNZcUfw88xZpTj1EAKIuBDtPjL8YtysyBwFvL9nLxKkIo0sQAKO9wjRe/ia6 rHjA== 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 s25si418525pge.722.2018.04.09.09.22.17; Mon, 09 Apr 2018 09:22:54 -0700 (PDT) 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 S1753437AbeDIQSl (ORCPT + 99 others); Mon, 9 Apr 2018 12:18:41 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:59202 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753393AbeDIQSZ (ORCPT ); Mon, 9 Apr 2018 12:18:25 -0400 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w39GFwbr120094 for ; Mon, 9 Apr 2018 12:18:23 -0400 Received: from e06smtp14.uk.ibm.com (e06smtp14.uk.ibm.com [195.75.94.110]) by mx0b-001b2d01.pphosted.com with ESMTP id 2h8a06w80q-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Mon, 09 Apr 2018 12:18:22 -0400 Received: from localhost by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 9 Apr 2018 17:18:21 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp14.uk.ibm.com (192.168.101.144) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 9 Apr 2018 17:18:18 +0100 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w39GIHk850921664; Mon, 9 Apr 2018 16:18:17 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 106B052045; Mon, 9 Apr 2018 16:09:18 +0100 (BST) Received: from icon-9-164-148-163.megacenter.de.ibm.com (unknown [9.164.148.163]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTPS id 92BE252043; Mon, 9 Apr 2018 16:09:17 +0100 (BST) Date: Mon, 9 Apr 2018 18:18:16 +0200 (CEST) From: Sebastian Ott X-X-Sender: sebott@schleppi To: Kees Cook cc: Sebastian Ott , Linus Torvalds , LKML , Heiko Carstens , Martin Uecker , Ingo Molnar , Miguel Ojeda Subject: Re: [bisected] 3c8ba0d61d04ced9f8d9ff93977995a9e4e96e91 oopses on s390 In-Reply-To: References: User-Agent: Alpine 2.21 (LFD 202 2017-01-01) Organization: =?ISO-8859-15?Q?=22IBM_Deutschland_Research_&_Development_GmbH?= =?ISO-8859-15?Q?_=2F_Vorsitzende_des_Aufsichtsrats=3A_Martina?= =?ISO-8859-15?Q?_Koederitz_Gesch=E4ftsf=FChrung=3A_Dirk_Wittkopp?= =?ISO-8859-15?Q?_Sitz_der_Gesellschaft=3A_B=F6blingen_=2F_Reg?= =?ISO-8859-15?Q?istergericht=3A_Amtsgericht_Stuttgart=2C_HRB_2432?= =?ISO-8859-15?Q?94=22?= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-TM-AS-GCONF: 00 x-cbid: 18040916-0044-0000-0000-000005452C4E X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18040916-0045-0000-0000-00002885588B Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-09_07:,, 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=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804090168 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 6 Apr 2018, Kees Cook wrote: > On Fri, Apr 6, 2018 at 2:47 AM, Sebastian Ott wrote: > > Today's kernel oopsed on s390. Bisect points to: > > 3c8ba0d61d04 ("kernel.h: Retain constant expression output for max()/min()") > > > > [ 1.898277] dasd-eckd 0.0.3304: DASD with 4 KB/block, 21636720 KB total size, 48 KB/track, compatible disk layout > > [ 1.898308] ------------[ cut here ]------------ > > [ 1.898310] kernel BUG at block/bio.c:1798! > > Well that's extremely bad. :( What happened is that the bio build by the partition detection code was attempted to be split by the block layer because the block queue had a max_sector setting of 0. blk_queue_max_hw_sectors uses min_not_zero. Both of the following return 0 on my machine: + pr_warn("%u\n", min_not_zero(100, 1000)); + pr_warn("%u\n", min_not_zero(1000, 100)); So, we now know what failed...the question is why? Sebastian