Received: by 10.213.65.68 with SMTP id h4csp60876imn; Mon, 12 Mar 2018 17:46:04 -0700 (PDT) X-Google-Smtp-Source: AG47ELvurmcuaESfTgXepyPKag1FVOgiSOAPcyXic/JTuDAdntr6W8m08Lq70siuxYgRO7RIG29D X-Received: by 10.98.32.28 with SMTP id g28mr9848281pfg.182.1520901964803; Mon, 12 Mar 2018 17:46:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520901964; cv=none; d=google.com; s=arc-20160816; b=xyEajjhBKqr9wXwQgH2wwLHen6HK+O4mGdThq1Lol2mrRk2Zjk075/EWd57KT8YfNu UQy5+DY8j1TXXhnEsZsMlTgjpegYicGCEdW5B/R/an/w/ruRNDZPp2ukzmXIFBDNyDn3 8QbfwoKZMJOLG+1so5OnX+dFNO5x1TYJ2PuHUFbVMN3LUmmoSFBilT4+22ilHU8bJrgF 0QVqfdIbOsGiFoQxgZkKQWWbhFEelODypdYmPy47DleWIhdwy97X2Q/A6rQ6MQFr17lD EF3txTMxzsKVbIfwPr6VtpYrgSBudNgsccAckuOTasRYqQ4S6V8j/7nJBlgN+9QDCFqR ZTsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=NpZjLU0l/6jKv5NUlTlqmSzAcbNsiZsAnOtMYH0rnoo=; b=zffqN5yGezMparf3MvQlDfAtDTa+/w377d7zNLbVC/gAnRsCSn2NSQTm9ifLTJ2InQ YjFrzxKQTz5116KvrywEmw+j/DsHaX+2KBHF3KfsACybMYa95DEBduOyD/JtyvBzFCtm s8k3gPgfogOB156V8Re664E9g5RC5fS337CMtNFj0/tEto1L+JTSlJRmqR+oId63bU6k vsCWfktTwGOwAkbuoQV/3pZ7Ta6HQq5dg7urxVaWVnGes9jIEXHM5W6ZEX32kjOO7j4o o4F2KPE3s8nNB5XfuFulw0PJADrxGe+6um4uzaQJIHNpUCTUTyk57+/qdwcVlBfDLb37 HXmA== 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 g9-v6si2525655plp.265.2018.03.12.17.45.49; Mon, 12 Mar 2018 17:46:04 -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 S932302AbeCMAo6 (ORCPT + 99 others); Mon, 12 Mar 2018 20:44:58 -0400 Received: from ipmail06.adl6.internode.on.net ([150.101.137.145]:47774 "EHLO ipmail06.adl6.internode.on.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751386AbeCMAo5 (ORCPT ); Mon, 12 Mar 2018 20:44:57 -0400 Received: from 124-169-186-126.dyn.iinet.net.au (HELO localhost) ([124.169.186.126]) by ipmail06.adl6.internode.on.net with ESMTP; 13 Mar 2018 11:14:54 +1030 Received: from localhost ([127.0.0.1]) by localhost with esmtp (Exim 4.90_1) (envelope-from ) id 1evY3g-0007Rn-KM; Tue, 13 Mar 2018 11:14:52 +1030 Subject: Re: [PATCH] scsi: eata: drop VLA in reorder() To: Linus Torvalds , "Tobin C. Harding" Cc: Salvatore Mesoraca , Linux Kernel Mailing List , Kernel Hardening , Linux SCSI List , "James E.J. Bottomley" , "Martin K. Petersen" , Dario Ballabio , Kees Cook , kernelnewbies@kernelnewbies.org References: <1520802418-17284-1-git-send-email-s.mesoraca16@gmail.com> <20180312030834.GC8631@eros> From: Arthur Marsh Message-ID: <52aee09d-ba14-666b-8482-a4e7b6ef8889@internode.on.net> Date: Tue, 13 Mar 2018 11:14:52 +1030 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-AU Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linus Torvalds wrote on 13/03/18 05:15: > On Sun, Mar 11, 2018 at 8:08 PM, Tobin C. Harding wrote: >> >> I think we are going to see a recurring theme here. MAX_MAILBOXES==64 >> so this patch adds 1536 bytes to the stack on a 64 bit machine or 768 >> bytes on a 32 bit machine. > > Yeah, that's a bit excessive. It probably works, but one or two of > those allocations will make the kernel stack really tight, so in > general I really would suggest using kmalloc() instead, or figuring > out some way to simply shrink the data structures. > > That said, I wonder if the solution to this particular driver is > "delete it". Because the hardware is truly ancient and nobody sane > would use it any more. > > The last patch that seemed to come from an actual _user_ finding a > problem was in 2008 (commit 20c09df7eb9c: "[SCSI] eata: fix the data > buffer accessors conversion regression"). And even then it apparently > took a year for people to have noticed the breakage. > > But because the person who reported that problem is still around, I'll > just add him to the cc, just in case. > > Arthur Marsh, you have the dubious honor and distinction of being the > only person to have apparently used that driver in the last ten years. > Do you still have hardware using that? Because maybe it's really time > to retire that driver. > > Linus > Hi Linus and maintainers, thanks for the courtesy email and all the help with the driver. I am unable to make use of the driver any more due to failed hardware. The DPT2044W SCSI controller and the IBM disk from May 1998 last officially ran on 7 August 2017. I was had previously been able to get the data off it and disconnected the controller and disk following recurring problems with booting. Aug 7 16:40:24 localhost kernel: [ 105.098705] sd 0:0:6:0: [sda] Synchronizing SCSI cache Aug 7 16:40:24 localhost kernel: [ 105.233166] EATA0: IRQ 11 mapped to IO-APIC IRQ 18. Aug 7 16:40:24 localhost kernel: [ 105.233475] EATA/DMA 2.0x: Copyright (C) 1994-2003 Dario Ballabio. Aug 7 16:40:24 localhost kernel: [ 105.233485] EATA config options -> tm:1, lc:y, mq:16, rs:y, et:n, ip:n, ep:n, pp:y. Aug 7 16:40:24 localhost kernel: [ 105.233492] EATA0: 2.0C, PCI 0x9010, IRQ 18, BMST, SG 122, MB 64. Aug 7 16:40:24 localhost kernel: [ 105.233499] EATA0: wide SCSI support enabled, max_id 16, max_lun 8. Aug 7 16:40:24 localhost kernel: [ 105.233505] EATA0: SCSI channel 0 enabled, host target ID 7. Aug 7 16:40:24 localhost kernel: [ 105.233521] scsi host0: EATA/DMA 2.0x rev. 8.10.00 Arthur Marsh.