Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1681072rbb; Mon, 26 Feb 2024 19:06:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU4/C85pW2YvDPqRM7feuy78YCTA0nt5PoAVaTTbVRsC3DwAMCm1z7R+qx3MNabnSPuJx6UkzSd/KS/GjbiqDy7tPy8Bf+Ny8ICP0qQ8g== X-Google-Smtp-Source: AGHT+IHOo7m2btUiooUIkCneOh9IojQO6zts3rx4BDGzABf851tOmBG19UBy8dYd35rQJr7hrzRb X-Received: by 2002:a05:622a:199c:b0:42e:8b6e:4450 with SMTP id u28-20020a05622a199c00b0042e8b6e4450mr3848764qtc.7.1709003164597; Mon, 26 Feb 2024 19:06:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709003164; cv=pass; d=google.com; s=arc-20160816; b=iS9L1cL7MpYrXPFPfqxLk+WoVxoRS9MN7mRbIBLmDzVPTDN9OGg380Y87bViR56MJF kTL6pUVLtlsMYCFboOZCWaojuKAeuN/nXssF5PYYxIFtrHx6sWT4UmIdFB19xDYGkaLE WBYxOmBBzRtAI1jA9Uia95+rdSXS9YKwKgb4LRaHmetkfjDov87szdxNmW7jKIsIuSZb MYhn/FX4FbcYPTez3nLdasqdVebEtGBMPN3VvOYolRbJNHMH3marEQXCj0tzkCP+GL1V YZDrGfRiWU4WOmqkTepzVyoZCjBktiutK2ImV+lKBoXsTwxqoYhPJ2+zS5kzPtGVhGR4 4+dQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=VoiQyhKNA8JDdMRbRos+L+eLXbzTOZZDmOzzwrbiYJ0=; fh=08I8dGZyHAvNjvHvWNP7jP9GAYyzRCB5QOlyjpZTyXQ=; b=XaIGujp130Ej3Zx0RziF1ZT7cdtl0nUNidM+mVE0luRi43h+wNuxdVAA0cGR8Azbi+ 71w1vFvd10bPjGewofHLNYXd+O4hYKWwxsQXJenuwiO8ogoYE2eVRDPyG23aHvv6LOd9 thQkdyd0lywWT/56fvdHCB9imYu8o4qImBhoDPHBXu3EDwuxH1dTGp5dlF7Tgg2lCz3/ GMUPL7LWqsdc0JA9j43W+bwasjW3tM5eBk+znnCxP37tashIDMGTBKJOl4U9yvLzPMPk h9xIXp2s6RywnBMjNQTLuov0v7opNRtTNLwWC6pq42wH9Mn+EtaleGY6F9aZxt/UEIRh xOQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=netrider.rowland.org); spf=pass (google.com: domain of linux-kernel+bounces-82638-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82638-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d2-20020ac85ac2000000b0042c3325e600si7163220qtd.745.2024.02.26.19.06.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 19:06:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82638-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=netrider.rowland.org); spf=pass (google.com: domain of linux-kernel+bounces-82638-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82638-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 16D851C21F51 for ; Tue, 27 Feb 2024 03:05:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 942951BC4E; Tue, 27 Feb 2024 03:05:09 +0000 (UTC) Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by smtp.subspace.kernel.org (Postfix) with SMTP id 294FE17727 for ; Tue, 27 Feb 2024 03:05:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.131.102.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709003109; cv=none; b=CvqFfZgbOSkPitorkQcQg17ELucUtDXOZ8wxmg+k1scI0VaAY9YVROBULrXlP553abWqXaf4DclCdX9GaPnvyO4Uhp4+dOZ32eMJ2vY/i5g25xxXG69scWttsFkrD1jQqARyHwcvU+ceN4XOc335GzJbSE7aZJvac7AcfGar8zU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709003109; c=relaxed/simple; bh=flJpjWg4G590GoBdzqL83kC4185Wq8tCMo9iI0foqpo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=usRpvHHzwkbP4fRsceyYj0XMSUCL+VQ7hSb8vwosIqw2VcFe+AX9EmmwN7ECWRYoccSQSj7TEVP4q7XywjnTE+Dk+3Rv0Mz4zlFubkZt45Qts3a1+MMGgoh6ewpW9iWBOpVwkaldZY1Vx8fADDUVVHGEGPCvCsy+IMEUwrUzqSE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=rowland.harvard.edu; spf=pass smtp.mailfrom=netrider.rowland.org; arc=none smtp.client-ip=192.131.102.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=rowland.harvard.edu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netrider.rowland.org Received: (qmail 753798 invoked by uid 1000); 26 Feb 2024 22:05:06 -0500 Date: Mon, 26 Feb 2024 22:05:06 -0500 From: Alan Stern To: "Martin K. Petersen" Cc: Oliver Neukum , syzbot , bvanassche@acm.org, emilne@redhat.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, syzkaller-bugs@googlegroups.com, tasos@tasossah.com, usb-storage@lists.one-eyed-alien.net Subject: Re: [syzbot] [usb-storage?] divide error in isd200_ata_command Message-ID: <11ec2091-71c2-4dfb-be36-0cc21be32109@rowland.harvard.edu> References: <0000000000003eb868061245ba7f@google.com> <99b0fb1b-37b3-4da4-8129-e502ed8e479a@suse.com> <9bbc5b63-33e3-44de-8bce-4c59dcce5e92@rowland.harvard.edu> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Feb 26, 2024 at 09:46:39PM -0500, Martin K. Petersen wrote: > > Alan, > > >> in isd200_scsi_to_ata() because it must not be called before > >> isd200_get_inquiry_data() has completed. > > > > It can't be; isd200_get_inquiry_data is called by > > isd200_Initialization during probe before any SCSI commands are > > transmitted. > > How do we end up with bad inquiry data (or rather bad ATA ID data)? The data doesn't come from an actual ISD200 device. It's from a deliberately faulty (for the obvious reason) emulation in userspace, created by the syzbot test code. Alan Stern