android_kernel_samsung_a7y1.../include
Takashi Iwai 1584d12efc ALSA: rawmidi: Avoid bit fields for state flags
commit dfa9a5efe8b932a84b3b319250aa3ac60c20f876 upstream.

The rawmidi state flags (opened, append, active_sensing) are stored in
bit fields that can be potentially racy when concurrently accessed
without any locks.  Although the current code should be fine, there is
also no any real benefit by keeping the bitfields for this kind of
short number of members.

This patch changes those bit fields flags to the simple bool fields.
There should be no size increase of the snd_rawmidi_substream by this
change.

Reported-by: syzbot+576cc007eb9f2c968200@syzkaller.appspotmail.com
Link: https://lore.kernel.org/r/20200214111316.26939-4-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-07 14:03:58 +02:00
..
acpi
asm-generic rtc: cmos: ignore bogus century byte 2020-04-07 13:40:13 +02:00
clocksource
crypto
drm drm: mst: Fix query_payload ack reply struct 2020-04-07 13:20:02 +02:00
dt-bindings
keys
kvm
linux rcu: Use WRITE_ONCE() for assignments to ->pprev for hlist_nulls 2020-04-07 13:56:39 +02:00
math-emu math-emu/soft-fp.h: (_FP_ROUND_ZERO) cast 0 to void to fix warning 2020-04-07 12:44:41 +02:00
media media: davinci/vpbe: array underflow in vpbe_enum_outputs() 2020-04-07 13:41:48 +02:00
memory
misc
net cfg80211/mac80211: make ieee80211_send_layer2_update a public function 2020-04-07 13:36:16 +02:00
pcmcia
ras
rdma
rxrpc
scsc
scsi scsi: Revert "target: iscsi: Wait for all commands to finish before freeing a session" 2020-04-07 14:03:54 +02:00
sdp
soc
sound ALSA: rawmidi: Avoid bit fields for state flags 2020-04-07 14:03:58 +02:00
target
trace tracing: xen: Ordered comparison of function pointers 2020-04-07 13:45:00 +02:00
uapi netfilter: uapi: Avoid undefined left-shift in xt_sctp.h 2020-04-07 13:28:41 +02:00
video
xen
Kbuild