From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_PASS, URIBL_BLOCKED,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A3399C43387 for ; Thu, 17 Jan 2019 15:41:18 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 73B6C20851 for ; Thu, 17 Jan 2019 15:41:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="XgcuOg/q"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ngA7FnU4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 73B6C20851 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=o8s9sAhvyBKIig675pW333meLAqoT0kKvWW/XpkxQHA=; b=XgcuOg/qhU8mIL nuXwCPvq14jAbqtsNYcyWAB1+MKmzxU12byCBna75UAoCDJ0i3UD6Jqp9RjC+Ds1sPyMxvaaNnpBf XODsTWuaBSfjQ0ciIB5dH3RoPtB4Xq+1TzcHTyCf2W1yvTTsQJNfIfLAJLTvS/r0Zabno2jp6VZqI ewjM6m/bDvo7mUwTxApp4IVzsp7gdvC5BILUr4dH2Q97KGntrCvtobyoXIPW2TcVxND0yGr+ZsDxn PI3xv2ABxIayDpsJtXrzO1t5bdMJTHqPAY02Q8YyDUMQ03lwFHqP1vqff9tuyEMAH1fQrAJo6NfoE muXmpMSDBEdSII/MN3sQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gk9n8-0008Dq-BJ; Thu, 17 Jan 2019 15:41:14 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gk9n4-0008DQ-8s for linux-arm-kernel@lists.infradead.org; Thu, 17 Jan 2019 15:41:11 +0000 Received: by mail-wm1-x343.google.com with SMTP id y185so1354019wmd.1 for ; Thu, 17 Jan 2019 07:41:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=/ylGOrw1kiKqI28CSL2w2XLVGVsRLas1Nz8eLY7WQDA=; b=ngA7FnU4iftwG2EsosFJXjz1jXMi5w0jl8HCOf5EuCHXCe78k4lQ/8NiFxSveYV0uz vSZdly7fJHNDfbnSv3fY7F1FrQaMIDMYucDYumNWAFMqx2EyRFLBAfLGSwT3X67nI+Bg 3QmWxUIiPTmR9FhVsWx3ZnPlNw2vmFmrLHSh69Jfb3tatsOQfnLFHKuBC+/URLr79dQi UZBy3HAQm6hW7fk0vexFPdHHvdBAkrSl6X8+HfyheKh6ZcuiO6sTTje4KmAB+eRvuIGR U8uz/yuCoS4amGqAU2CHpkm4MuLjArHq8+Q7x7qXLBs1r7sifZJ7xFYyGvHqEt4KDC5Q 5y7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=/ylGOrw1kiKqI28CSL2w2XLVGVsRLas1Nz8eLY7WQDA=; b=rvw15Mv9kHgw60Hgm8jhTSBPGGHgLloMXU3Ny2y3p+Hys28RNmFZGWD3cQnKfIokaA 4nBel1pFna6S38uAK1UBYA5AhY+h8nh6pf2dXJAS6hda9Ku3lk836BrNQQDesexLHA5s u0TH+JexJBk4xK98A33z+2eWUCnEi7EfC0d+Kc7w2UOPopPptBCT8f82jr0TLy9O9UOE D3UiWud7q+s2p80Lx/iAb2QIEfdlK3f/33lAKBzKlwgxMLEXoYVobhUFpV9Jzd2C396F ke/Z0cr9xf8HkC7+3J0vUYurmKp7ZUM/3+B1zPNibDYPVLEHtWjalx5TN8Nh336u+O6W LTIw== X-Gm-Message-State: AJcUukfb+82SL73y6VPlP9HPbEAl5MMJ/l9cDitr41TYQNggGSJ9DuWG Hvfe1w11l4idTdrjhUhyRqA= X-Google-Smtp-Source: ALg8bN4Srk1oTF8EfYc79WdhHLhDH1qwN8Ewd4XD6omG1S5iZNQQAZUomC5yQkJWz9owyBmdA09Ubw== X-Received: by 2002:a1c:c58d:: with SMTP id v135mr12701156wmf.88.1547739667382; Thu, 17 Jan 2019 07:41:07 -0800 (PST) Received: from flashbox ([2a01:4f8:10b:24a5::2]) by smtp.gmail.com with ESMTPSA id r3sm69817303wrs.78.2019.01.17.07.41.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Jan 2019 07:41:06 -0800 (PST) Date: Thu, 17 Jan 2019 08:41:04 -0700 From: Nathan Chancellor To: Ming Lei Subject: Re: [BUG bisect] kernel BUG at block/bio.c:1833 and fail to mount disk Message-ID: <20190117154104.GA24272@flashbox> References: <20190117102657.GB20220@ming.t460p> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190117102657.GB20220@ming.t460p> User-Agent: Mutt/1.11.2 (2019-01-07) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190117_074110_318645_26C3EDEC X-CRM114-Status: GOOD ( 20.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jens Axboe , "linux-samsung-soc@vger.kernel.org" , linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Christoph Hellwig , linux-block@vger.kernel.org, "linux-next@vger.kernel.org" , Omar Sandoval , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Jan 17, 2019 at 06:26:58PM +0800, Ming Lei wrote: > On Wed, Jan 16, 2019 at 09:54:05AM +0100, Krzysztof Kozlowski wrote: > > On Wed, 16 Jan 2019 at 09:52, Krzysztof Kozlowski wrote: > > > > > > Hi, > > > > > > On today's next-20190116 I see a bug during boot: > > > [ 6.843308] kernel BUG at ../block/bio.c:1833! > > > [ 6.847723] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM > > > ... > > > [ 7.543824] [] (bio_split) from [<00000000>] ( (null)) > > > [ 7.549881] Code: 13833b01 11c630bc e1a00006 e8bd8070 (e7f001f2) > > > > > > (not much in the calltrace) > > > On all my boards. Also QEMU-arm fails. > > > > > > > I forgot the bisect commit: > > > > 258cfdfaf7bd729e759a0a91fd00ac9794796ad3 is the first bad commit > > commit 258cfdfaf7bd729e759a0a91fd00ac9794796ad3 > > Author: Ming Lei > > Date: Fri Jan 11 19:01:15 2019 +0800 > > > > block: use bio_for_each_bvec() to compute multi-page bvec count > > > > :040000 040000 d79b2e71d308650df4764ff644f29d3a24dbab96 > > 0a5d624843b805ee0c9fd9a7e2d5163f5b15b167 M block > > It should be one 32-bit arch specific issue, I guess. > > The following patch should fix this issue: > > diff --git a/block/blk-merge.c b/block/blk-merge.c > index dc4877eaf9f9..4dd7183de849 100644 > --- a/block/blk-merge.c > +++ b/block/blk-merge.c > @@ -166,6 +166,9 @@ static unsigned get_max_segment_size(struct request_queue *q, > { > unsigned long mask = queue_segment_boundary(q); > > + if (mask == BLK_SEG_BOUNDARY_MASK) > + return queue_max_segment_size(q); > + > return min_t(unsigned long, mask - (mask & offset) + 1, > queue_max_segment_size(q)); > } > > Thanks, > Ming Hi Ming, We saw this issue on our CI as well: https://travis-ci.com/ClangBuiltLinux/continuous-integration/jobs/170724607 I added your patch and tested locally, it boots fine now. Tested-by: Nathan Chancellor Thanks, Nathan _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel