Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp531289pxv; Thu, 24 Jun 2021 13:32:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyD6Qqh/3gt52aaU9HTU91cJ9RS7Qa2gqSFwrx9RTwoChTGsbGdyMBzY+bH6or6utwMD1hU X-Received: by 2002:a05:6e02:1a69:: with SMTP id w9mr503388ilv.120.1624566774246; Thu, 24 Jun 2021 13:32:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624566774; cv=none; d=google.com; s=arc-20160816; b=G7WV25N4xGRJKcVgiK8TeMPlLspe3fga4dIP30Th4pqYXPsxCEDb+ykBFm/IYbz8k+ BAEMXk4ZYoGYMYJ6pVVt3lcL0wrj3ST4xYdGkdhOnVgKz7/L3UBFmHafi0CrEu6BWedl oMYqNBzRSayvjyZyo516X+XbeSodgnu/7q26bm7vr3Yi22zeL7MUf7zFoSk0TZaFKh4j LqubUKt9jKOrfnVcmEoPqt5ycOEp8tSHAax3jPLlXkJwln7L7ALjD5XXwFNKglNrTBlH +rwWoL16VskkdkiINhjyt6xDK7cLinIxbF/EHlGpl0Upblj1xi2OkKBsvu7rAOnEDvMK 4bKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=DQaVe3svyqtnMuTAQBTKyVNiLfF5PLoMKvvy1C7mW1A=; b=wYQczbGKcooAF+E4ABCegygRbbNcw2x6dRaE54ocmMXU9F3IwTwgquRuIsxoE7S+Wk Eb7EY8p24bT3L1EYGpiVuLOuV8n2qL0xzypLTCUsYNFCHOrMZzQRAOih1kjaw8jdvsV5 MGBggdFB3II7Meavh5oOvhLTIKoJKZr2Qds7bkOAED46jyMSWGEdoIbLV2rm6K2B5XxL rTss610xaWYoxIVCsf4oVsYEMio0FH52sP5apen2NP1a4G4Tu585MkEOlfDv2VvxowWS mKW2GKDpUTWcgioHp/DsxW6GzwmYANFR4EDTx44yBFMcrZJlUnWJ0+bikZnXO1ewdrGj hPmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=ijwSo6GU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w34si5314398jal.51.2021.06.24.13.32.41; Thu, 24 Jun 2021 13:32:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=ijwSo6GU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232553AbhFXUe1 (ORCPT + 99 others); Thu, 24 Jun 2021 16:34:27 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:54532 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232163AbhFXUe0 (ORCPT ); Thu, 24 Jun 2021 16:34:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:To:From:Date:From:Sender:Reply-To:Subject:Date: Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=DQaVe3svyqtnMuTAQBTKyVNiLfF5PLoMKvvy1C7mW1A=; b=ijwSo6GU38nyg5zIJU9iXy83Vs CZilmBC5pEFAycYay1pNJsMetUPMd+sr+MSak1aPo0Tu8CQ6c1BWPbLdkHwsIrlOC2VFw0tSlY56g 4fUwWHWH3j/HlY8APC+9zSBFkHQcvJIaeQP47LulKI9y6+PyAHv6jzi7mdPC/DJ4cVKk=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1lwW17-00B1gI-7R; Thu, 24 Jun 2021 22:32:05 +0200 Date: Thu, 24 Jun 2021 22:32:05 +0200 From: Andrew Lunn To: Wolfram Sang , Johan Hovold , linux-i2c@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, syzbot+9d7dadd15b8819d73f41@syzkaller.appspotmail.com, stable@vger.kernel.org Subject: Re: [PATCH] i2c: robotfuzz-osif: fix control-request directions Message-ID: References: <20210524090912.3989-1-johan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 24, 2021 at 10:10:17PM +0200, Wolfram Sang wrote: > On Wed, Jun 23, 2021 at 10:52:04AM +0200, Johan Hovold wrote: > > On Mon, May 24, 2021 at 11:09:12AM +0200, Johan Hovold wrote: > > > The direction of the pipe argument must match the request-type direction > > > bit or control requests may fail depending on the host-controller-driver > > > implementation. > > > > > > Control transfers without a data stage are treated as OUT requests by > > > the USB stack and should be using usb_sndctrlpipe(). Failing to do so > > > will now trigger a warning. > > > > > > Fix the OSIFI2C_SET_BIT_RATE and OSIFI2C_STOP requests which erroneously > > > used the osif_usb_read() helper and set the IN direction bit. > > > > > > Reported-by: syzbot+9d7dadd15b8819d73f41@syzkaller.appspotmail.com > > > Fixes: 83e53a8f120f ("i2c: Add bus driver for for OSIF USB i2c device.") > > > Cc: stable@vger.kernel.org # 3.14 > > > Cc: Andrew Lunn > > > Signed-off-by: Johan Hovold > > > --- > > > > Wolfram, can you pick this one up for 5.14? > > Sorry, I thought Andrew was the maintainer of this driver and was > waiting for his ack. Ah, sorry. I did take a quick look at the change, it seemed sensible. But i've not used this hardware in years, i have no way to test it, etc. Andrew