Message ID | 7ccba84e-7a41-3a89-ae01-fca62011081b@infradead.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-fsdevel-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 406AE60216 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Wed, 6 Sep 2017 20:45:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3289A22376 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Wed, 6 Sep 2017 20:45:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 26A6D223A6; Wed, 6 Sep 2017 20:45:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF82C223C6 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Wed, 6 Sep 2017 20:45:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752784AbdIFUow (ORCPT <rfc822;patchwork-linux-fsdevel@patchwork.kernel.org>); Wed, 6 Sep 2017 16:44:52 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:50542 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752348AbdIFUov (ORCPT <rfc822;linux-fsdevel@vger.kernel.org>); Wed, 6 Sep 2017 16:44:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:Cc:References:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=NI90S/cdyNbta1MQr0r42WoARtaTyFFpyB9eS9R57SY=; b=uVGh7uDP4vxRcIm4KBSneenOs pBR/8NZKdLFt9Wbok6+/8fQn+9ZJ73RCEsjknw7wI11+TjR7ro8R42CFAN8n0+I9EvBpkM/+Wd9tR SSgneUijjTmJuHFvQ/a7aqjBo8rictFxF+opM1xvXoFskauNex8Ux5/4t9WeF5n7hWDutu9FhSUd9 qikqRbznkrJ1fkpak1PE3TqSDO3g8gdepLVdSyNfFQk7DTde2n5BOS6xOzraYkymPX74p1xwgJtQ8 Daf2+QP4JtSdD5+5FWaBqmC2GzQtzP6Z3srY37x7JHrzRPBd9TFOW61SbZUwkrM6cBtTJSA7RBJDb ifthJenCw==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlap) by bombadil.infradead.org with esmtpsa (Exim 4.87 #1 (Red Hat Linux)) id 1dphBp-0008LG-GR; Wed, 06 Sep 2017 20:44:49 +0000 Subject: Re: UBSAN: Undefined error in log2.h To: Shankara Pailoor <sp3485@columbia.edu>, linux-kernel@vger.kernel.org References: <CAASgV=v8yk-d_MxTbOw8omrqgUK1SP88-dnng9EfzorzE+8hdg@mail.gmail.com> Cc: Linux FS Devel <linux-fsdevel@vger.kernel.org>, Al Viro <viro@zeniv.linux.org.uk>, Andrew Morton <akpm@linux-foundation.org> From: Randy Dunlap <rdunlap@infradead.org> Message-ID: <7ccba84e-7a41-3a89-ae01-fca62011081b@infradead.org> Date: Wed, 6 Sep 2017 13:44:48 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <CAASgV=v8yk-d_MxTbOw8omrqgUK1SP88-dnng9EfzorzE+8hdg@mail.gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-fsdevel.vger.kernel.org> X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
--- lnx-413.orig/fs/pipe.c +++ lnx-413/fs/pipe.c @@ -1038,6 +1038,8 @@ static long pipe_set_size(struct pipe_in unsigned long user_bufs; long ret = 0; + if (!arg) + arg = PAGE_SIZE; size = round_pipe_size(arg); nr_pages = size >> PAGE_SHIFT;