From patchwork Sat Dec 17 00:59:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 9478843 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C58176047D for ; Sat, 17 Dec 2016 01:16:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B56A92870F for ; Sat, 17 Dec 2016 01:16:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A8AAE28724; Sat, 17 Dec 2016 01:16:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BBF4C2870F for ; Sat, 17 Dec 2016 01:16:29 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id CC35E26764A; Sat, 17 Dec 2016 02:16:27 +0100 (CET) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 30DCF26763D; Sat, 17 Dec 2016 02:14:09 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id B3FAB267647; Sat, 17 Dec 2016 01:59:48 +0100 (CET) Received: from mail-pg0-f45.google.com (mail-pg0-f45.google.com [74.125.83.45]) by alsa0.perex.cz (Postfix) with ESMTP id D893426763F for ; Sat, 17 Dec 2016 01:59:46 +0100 (CET) Received: by mail-pg0-f45.google.com with SMTP id a1so14731837pgf.1 for ; Fri, 16 Dec 2016 16:59:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=j5JsrI97tPlBUAtZnff2q9XGH+s5erZKlnV20ClzKnE=; b=Vgx8Ii2IyHGv/nYXoG8kL3h1l2t49RCFalNTHnUgpKWl5gxUyjAe1BtznhBUBi/7wC KMpkpwocsXcsnGtK499f61UNysWDRz1ezL8VzB8U7bfQW2LX7ZGuxawbfVoFqdsidT1k ywjFre6myLctVztbvQiEVPP9u++HuTKfDM9U8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=j5JsrI97tPlBUAtZnff2q9XGH+s5erZKlnV20ClzKnE=; b=GIDkgPacbGMs5F3aNLqDHFn6I90HBR8i/m7zGp9wkgKHIgrDki2cRNY0zQ9oPVqLa4 sKRI3k7P3ah8srJZhCexwnLZ4g73JLB9j8So2ybfXxLnG1/3tqa/a2Hss4C3g3YH3FR+ rJwvoJxZe7+BZbSznCdGdzxeK/oN8VZzs5wnSXqrWlxHflLErvO6MLKFet3sGavh3xpH vBBZMtWno3J4AO5aKAydd6VWUG34yLYT3yxTN/PzmR4GqlYhJETiFT3WoiRuUH5TdfJp JyNEh7kU6cIfgS1QBP0/buuczvp7kmgmAb4S38smdaxkNYRDbsvBdp4Td3G7/DnZxFRV GiJA== X-Gm-Message-State: AKaTC03kbvOUzwwZjtFQU4GVWSVUXl6L8Q9YZdoqrMgLYb6YFzXjLCbkD5uDh8siqdpKXS0k X-Received: by 10.99.112.13 with SMTP id l13mr10602834pgc.7.1481936385478; Fri, 16 Dec 2016 16:59:45 -0800 (PST) Received: from www.outflux.net ([2002:ada4:7085:0:8454:20a8:3cd7:bcbf]) by smtp.gmail.com with ESMTPSA id s3sm14395572pfg.14.2016.12.16.16.59.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Dec 2016 16:59:44 -0800 (PST) Date: Fri, 16 Dec 2016 16:59:44 -0800 From: Kees Cook To: linux-kernel@vger.kernel.org Message-ID: <20161217005944.GA140281@beast> MIME-Version: 1.0 Content-Disposition: inline Cc: alsa-devel@alsa-project.org, Takashi Iwai Subject: [alsa-devel] [PATCH] ALSA: use designated initializers X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook Reviewed-by: Takashi Sakamoto --- sound/synth/emux/emux_seq.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sound/synth/emux/emux_seq.c b/sound/synth/emux/emux_seq.c index a0209204ae48..55579f6b8cb2 100644 --- a/sound/synth/emux/emux_seq.c +++ b/sound/synth/emux/emux_seq.c @@ -33,13 +33,13 @@ static int snd_emux_unuse(void *private_data, struct snd_seq_port_subscribe *inf * MIDI emulation operators */ static struct snd_midi_op emux_ops = { - snd_emux_note_on, - snd_emux_note_off, - snd_emux_key_press, - snd_emux_terminate_note, - snd_emux_control, - snd_emux_nrpn, - snd_emux_sysex, + .note_on = snd_emux_note_on, + .note_off = snd_emux_note_off, + .key_press = snd_emux_key_press, + .note_terminate = snd_emux_terminate_note, + .control = snd_emux_control, + .nrpn = snd_emux_nrpn, + .sysex = snd_emux_sysex, };