Received: by 10.213.65.68 with SMTP id h4csp3284630imn; Mon, 9 Apr 2018 18:14:40 -0700 (PDT) X-Google-Smtp-Source: AIpwx491Hnj1tSzN6+GNKj4GTN5AwKqX/zUvWkP/01EjmnKFBaXS0K34rn3D2iM2xpyn7/wTtCNg X-Received: by 10.98.70.199 with SMTP id o68mr927468pfi.169.1523322880897; Mon, 09 Apr 2018 18:14:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523322880; cv=none; d=google.com; s=arc-20160816; b=IA8t+YpAd8YX9iW7sWYvh87WiJBlmRsTwEUb/6My2vZx00fzXbOnIy5OSOFO1JJKrU IzEhe2CDxYO7c1P3wF9iPEndeFxBI2WGFiPNqJWfnh2CKsValvuLl63d0sn1QRHP69WM LgYRRfs6t4sg0nLueKluz+qTWuagBRMaYztmyP3xL0tfIViGs+aLTe3CTdwzXawVJYZD tSsCGmNCSgNjDbX5yvj7gbyFmetCt6dGzUvcIyhLg5+ogG9Eto2fgiOZQu2l/PmWxv5d HmGm12X7cZg+YMBqmnBHVH4/3brpsNOrbaRny0up7NETVYfspwE50AwyKWVBnNNMqVf9 IsYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:message-id :in-reply-to:subject:cc:to:from:date:arc-authentication-results; bh=n1og+4GbUrk94hY36USlVEklQ42nV3tu8Fem2xUyl5M=; b=dAg2M/2G6Cmlnt2X21bXyiw6ROG/O9pSNiKw4mPJjXqL2uEbLBwblZMGM0lXDbUXEI nG6Kt/I+B2JaOBtSKYAAeh+y3TzUfeBFvBWWGaTv5dWD6FWXlHjfc7AJpIs26BPcVlOz bFC6JjCUk/cstUcqktFsGS0VAGMEk1vL9srLyh9iRcKXKQtMHynM6kBRExTG70E+dkdr IH8zWVJuPhaKjTbPQMzf7U2wEwN4jPZeX6S6B7d3yzXGXD+pzbFjzYoZQTBXGEV73Jcs IGRrxuoCJIM7DrYW4uU8zF/ulDoD5w+dERr+fGqPF2S8Jp5NeZeQAuA3MdVoKPDNJIvN e8uw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j91-v6si1401998pld.14.2018.04.09.18.14.03; Mon, 09 Apr 2018 18:14:40 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751940AbeDJBK0 (ORCPT + 99 others); Mon, 9 Apr 2018 21:10:26 -0400 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:41492 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751671AbeDJBKZ (ORCPT ); Mon, 9 Apr 2018 21:10:25 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by kvm5.telegraphics.com.au (Postfix) with ESMTP id 1CEB329572; Mon, 9 Apr 2018 21:10:12 -0400 (EDT) Date: Tue, 10 Apr 2018 11:10:10 +1000 (AEST) From: Finn Thain To: Geert Uytterhoeven cc: Laurent Vivier , Jens Axboe , linux-m68k , Linux Kernel Mailing List Subject: Re: [PATCH 06/12] block/swim: Fix array bounds check In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 9 Apr 2018, Geert Uytterhoeven wrote: > Looks like amiflop.c:find_floppy() needs a check, too? > AFAICS there is no array index bug in floppy_find() in amiflop.c. The 'unit' array's size is FD_MAX_UNITS which is defined as 4 in include/linux/amifd.h, and the array index is drive = *part & 3. --