summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/cx20442.h
blob: c7a7c79ef0cd4d242783ccf7050a0ebc65cafacc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * cx20442.h  --  audio driver for CX20442
 *
 * Copyright 2009 Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
 *
 *  This program is free software; you can redistribute  it and/or modify it
 *  under  the terms of  the GNU General  Public License as published by the
 *  Free Software Foundation;  either version 2 of the  License, or (at your
 *  option) any later version.
 *
 */

#ifndef _CX20442_CODEC_H
#define _CX20442_CODEC_H

extern struct tty_ldisc_ops v253_ops;

#endif
nux/net-next.git/tree/?id=04478197416e3a302e9ebc917ba1aa884ef9bfab'>90e2b0646c5f1ee108fd1a8aace0176cf19afdf6 /net/rxrpc/local_object.c parenta121103c922847ba5010819a3f250f1f7fc84ab8 (diff)
KVM: s390: do not expose random data via facility bitmap
kvm_s390_get_machine() populates the facility bitmap by copying bytes from the host results that are stored in a 256 byte array in the prefix page. The KVM code does use the size of the target buffer (2k), thus copying and exposing unrelated kernel memory (mostly machine check related logout data). Let's use the size of the source buffer instead. This is ok, as the target buffer will always be greater or equal than the source buffer as the KVM internal buffers (and thus S390_ARCH_FAC_LIST_SIZE_BYTE) cover the maximum possible size that is allowed by STFLE, which is 256 doublewords. All structures are zero allocated so we can leave bytes 256-2047 unchanged. Add a similar fix for kvm_arch_init_vm(). Reported-by: Heiko Carstens <heiko.carstens@de.ibm.com> [found with smatch] Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> CC: stable@vger.kernel.org Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'net/rxrpc/local_object.c')