Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2292640pxb; Mon, 11 Jan 2021 06:13:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJykSkRQpArre4I2bWDFY7EhOx3WrWDmuX/YhiTSSX0Zu+hibZc/yg2Ca64sYK52Vp5/TKpN X-Received: by 2002:a17:906:1c92:: with SMTP id g18mr11078316ejh.522.1610374402181; Mon, 11 Jan 2021 06:13:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610374402; cv=none; d=google.com; s=arc-20160816; b=ocmtWKVCAAhcSgzbY7OYsOAr/pek1Nt9V2cqXIgAHyOd25hNtrQaHp4RWb8gbOyTID /0o/1E6y0W2w02CD2jq3GiP7CU7DTd8q33uA33jH/B04tEUH+BRCRBEroKmCWrXaa/EF IfPZBUmxn2odZIcpNH6ssiv5AHsKmCZiU7yXlsvQCGkkrxLwuED69q5faCMAV8Bu+7j3 rcBFGXMwn5/og/+iu3ZU+mELer/XA+y27e81LyM4t/xsInsXtl5ycy5CnHPrZmd+KA4/ NxLf7oODXV0ZnDa5m/nzc3zq1/aGHA9Szdu0/KcF7mp/HEJKHM9N1PX4qlTm5yhJTmlM zpbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=HYXESPTZdBJrwhmRi0gKc7YlUjziHlLFXff8hBIU4PE=; b=RrSGbDnvot+rq/+oI1OQTOfwxUvxNCaR9fqwkg+uNsvmtvH1tgoV1aFfII2rCwNOLR /zlYmE9u2aw2leFsGI15Ghje99tfzL0qhHLa4ujkxW16/n7msFiYNTE4krBHl8SGln6r dXBniTcmXO+BntJZbyrxKBIV+ao1nL3IapWzmMwQajiRzv2IJKBlgvNLw8ziRQFh0ixD 8mOSXGDTdJotA4iqoluSMML7LXidMYaGdDaL4A/MXFx21jqEiUgWoOPE02U9Mv4c5zqF lz7c1JA2JgTqsmCl0W0URAISjuj7H8ttoeKND6kOodwj/UycHZ4ATgwj4kx1ydV2s/nd 4Yog== ARC-Authentication-Results: i=1; mx.google.com; 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 h17si7040860eds.404.2021.01.11.06.12.58; Mon, 11 Jan 2021 06:13:22 -0800 (PST) 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; 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 S2388785AbhAKOIw (ORCPT + 99 others); Mon, 11 Jan 2021 09:08:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729912AbhAKNDh (ORCPT ); Mon, 11 Jan 2021 08:03:37 -0500 Received: from michel.telenet-ops.be (michel.telenet-ops.be [IPv6:2a02:1800:110:4::f00:18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D5C8C061795 for ; Mon, 11 Jan 2021 05:02:56 -0800 (PST) Received: from ramsan.of.borg ([84.195.186.194]) by michel.telenet-ops.be with bizsmtp id FR2u2400W4C55Sk06R2uHm; Mon, 11 Jan 2021 14:02:55 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1kywqU-002pvQ-6D; Mon, 11 Jan 2021 14:02:54 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1kywqT-001W0n-PZ; Mon, 11 Jan 2021 14:02:53 +0100 From: Geert Uytterhoeven To: Clemens Ladisch , Takashi Sakamoto , Jaroslav Kysela , Takashi Iwai Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH/RFC 0/2] ALSA: firewire: Fix integer overflows on 32-bit Date: Mon, 11 Jan 2021 14:02:49 +0100 Message-Id: <20210111130251.361335-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, This patch series fixes two integer overflows on 32-bit platforms when in multiplications with the NSEC_PER_SEC constant, found by code inspection. They are marked "RFC", as I don't know the maximum transfer length of MIDI. Depending on this maximum length, a small tweak may be necessary. Thanks for your comments! Geert Uytterhoeven (2): ALSA: fireface: Fix integer overflow in transmit_midi_msg() ALSA: firewire-tascam: Fix integer overflow in midi_port_work() sound/firewire/fireface/ff-transaction.c | 2 +- sound/firewire/tascam/tascam-transaction.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.25.1 Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds