Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp716150rdb; Sun, 1 Oct 2023 02:13:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE7FbQFOot3g3k6wRZty6sr9uuX3Djev0m686aSFwGvmCSgmf8KFNdZFJDsNE2mCQscGYK5 X-Received: by 2002:a05:6a20:3cac:b0:15d:9ee7:1816 with SMTP id b44-20020a056a203cac00b0015d9ee71816mr10289574pzj.10.1696151635397; Sun, 01 Oct 2023 02:13:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696151635; cv=none; d=google.com; s=arc-20160816; b=BkP6BNOhgKuqWivbGsx3I4Q3oK4Ckdf+Z00UfM555A12dSt7kncHydv9jeWOCxlqcR 745HGIc4HBmMvjydna9ecl9LLj3/+v4kb2vMxOXvR9hex87t7DwtSVbYd1307xdnKjey cfdVm/a4C73vuJfPAniaRVeg4Cng6kvBWOnDG85j3QpW29zgiZDzHiJYXArz+tu/3ReV CgrKxwvyu8O5gfUafYGJpI5qidYK8IxLLF0iHu2/NdHLcQM9YVCPy8CGYfnTCEeu/L5x 5tl5DuC9p8GS91IOG0DWjourAFDTJSleQsURxZlRrFh8WXnaXTd4glTQJlxRZjQd9eld CrZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=MrAp7LCAcddLccSTimBB1XRn1y7D20vfA2wvqsAEa8A=; fh=kN/kqH6bfxiw1zGoDUGpM6zikouWgDg5z5eaEW7jhAA=; b=t0OZD+BFqlBbcNL7g7TbNrSy4lspnyCTqHlkwYQt1ZENg0kuAFvqy1XdVdWuOur1oi 4N7L6fpvb1XtJyES9CtaBAyPpThw9Ahl8CTG+bbjrYFXPblxInHy9XDxuFJVoHMWwrxZ Yma8V3xTnVEzk9nUlxFwcrzEzMCsH5+CiiWWEEDjW9ulZDS3YuasfbGS1aLQEOUeAJwF 2g2p+OcKIrvPTG+vcT6o5VvDldAUgMFCG+eNLpUI+B7hXu/sIvwziPBRD2rCX3VM341m D260ad1UwDZZU1W3/SHQhAvypXL/vPYoqd3sxo5kehTHZCsZgf9ipx+NhArBNDuFpr6/ qRBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@embeddedor.com header.s=default header.b=EoHYcehP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id dc8-20020a056a0035c800b0068fcf6fe22csi23855848pfb.304.2023.10.01.02.13.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Oct 2023 02:13:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=fail header.i=@embeddedor.com header.s=default header.b=EoHYcehP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id E751381140E3; Sun, 1 Oct 2023 02:13:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234707AbjJAJNn (ORCPT + 99 others); Sun, 1 Oct 2023 05:13:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234689AbjJAJNk (ORCPT ); Sun, 1 Oct 2023 05:13:40 -0400 Received: from omta040.useast.a.cloudfilter.net (omta040.useast.a.cloudfilter.net [44.202.169.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 969E6C6; Sun, 1 Oct 2023 02:13:37 -0700 (PDT) Received: from eig-obgw-6001a.ext.cloudfilter.net ([10.0.30.140]) by cmsmtp with ESMTP id mekCql2REaLCxmsW8qyc9N; Sun, 01 Oct 2023 09:13:36 +0000 Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with ESMTPS id msW7qkTG0JhbSmsW8qDH16; Sun, 01 Oct 2023 09:13:36 +0000 X-Authority-Analysis: v=2.4 cv=YMiMdDKx c=1 sm=1 tr=0 ts=65193840 a=1YbLdUo/zbTtOZ3uB5T3HA==:117 a=P7XfKmiOJ4/qXqHZrN7ymg==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=IkcTkHD0fZMA:10 a=bhdUkHdE2iEA:10 a=wYkD_t78qR0A:10 a=VwQbUJbxAAAA:8 a=cm27Pg_UAAAA:8 a=2PcnruhlFBHVcXBBCtIA:9 a=QEXdDO2ut3YA:10 a=AjGcO6oz07-iQ99wixmX:22 a=xmb-EsYY8bH0VWELuYED:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=embeddedor.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID: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=MrAp7LCAcddLccSTimBB1XRn1y7D20vfA2wvqsAEa8A=; b=EoHYcehP85PCU9nMRzqsDqdbXN 8d+lvBreBD+QwOo/0MbsJb0PIHlAL1FdA0keHt/b/yi5FqLhQ/vBAjLFpEDqAkFbQL3h4gKXGD6oA xyHL0phXFGgLFPab5dzhFd/F0wXsSWSjRrHAZazfXjHnSujTWKYOvdnKVFTKRChBCD/XkF1chsWWn uK68qN7dUyW9rbOmiWCVdgeh8CKddEeUaiGf4gBD4AyEZMrkTUqyWaC59zRlLCw7tCgX9hnTgBVl0 /F5EaYbPiqaGTRjrbYQ1PpGM5fSnddYCfE+4wrA0oBqW/BOF2QC6Ry9jUqvIj/VN6vkU1vUo2PZFL CzDhd2PQ==; Received: from [94.239.20.48] (port=44878 helo=[192.168.1.98]) by gator4166.hostgator.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1qmqKb-001WQf-2I; Sun, 01 Oct 2023 01:53:33 -0500 Message-ID: Date: Sun, 1 Oct 2023 08:53:30 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH][next] ALSA: 6fire: Fix undefined behavior bug in struct midi_runtime Content-Language: en-US To: Kees Cook , "Gustavo A. R. Silva" Cc: Jaroslav Kysela , Takashi Iwai , Torsten Schenk , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org References: <202309291026.06071AC@keescook> From: "Gustavo A. R. Silva" In-Reply-To: <202309291026.06071AC@keescook> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 94.239.20.48 X-Source-L: No X-Exim-ID: 1qmqKb-001WQf-2I X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.1.98]) [94.239.20.48]:44878 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 0 X-Org: HG=hgshared;ORG=hostgator; X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfGETayY3YbenZ+YY9kgXKowbvky8bh6mPiXMZHTytdz7IZpAdt1yaaVfMkDp7qdQgYT5M+PNY2B+WOw5UI9k3T0gZRZBw7uQvkzQ4F2bcP7BUMPzDiOo 0VE+y4wHAljI7u4rekHXpjBTqxgq4P1MSfVDJ2WOG/4tVXwZQCDiqOGYUmgrjBGv9F3yO65rlNw7nk06Yr+19UZDao/943MsMsvfZOVEpIK0Q5yP02rZ2PzT xpwQ0hLtxrTyCsb0t5OpuLiDJOlhuFsjSU8bg7XtJiI= X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sun, 01 Oct 2023 02:13:54 -0700 (PDT) On 9/29/23 19:27, Kees Cook wrote: > On Fri, Sep 29, 2023 at 06:06:32PM +0200, Gustavo A. R. Silva wrote: >> `struct urb` is a flexible structure, which means that it contains a >> flexible-array member at the bottom. This could potentially lead to an >> overwrite of the objects following `out_urb` in `struct midi_runtime`, >> among them a function pointer. >> >> Fix this by placing the declaration of object `out_urb` at the end of >> `struct midi_runtime`. >> >> Fixes: c6d43ba816d1 ("ALSA: usb/6fire - Driver for TerraTec DMX 6Fire USB") >> Cc: stable@vger.kernel.org >> Signed-off-by: Gustavo A. R. Silva > > Another good find. :) There are more coming. :) > > Reviewed-by: Kees Cook > Thanks! -- Gustavo