Skip to content
Snippets Groups Projects
Select Git revision
  • 6cd021a58c18a1731f7e47f83e172c0c302d65e5
  • linus-master default
  • kunit_is_love
  • kunit_drm
  • tonyk/futex_waitv
  • hidraw_rwlock
  • futex_waitv
  • futex2-dev
  • idle_sleep
  • futex2-proton
  • futex-tests
  • futex2
  • futex2-numa
  • fwm-5.11
  • cf-fix
  • tmpfs-ic
  • futex2-stable-5.11
  • futex2-stable
  • futex2-lpc
  • gaming
  • futex-fixes
21 results

udp.h

Blame
    • Willem de Bruijn's avatar
      6cd021a5
      udp: segment looped gso packets correctly · 6cd021a5
      Willem de Bruijn authored
      
      Multicast and broadcast packets can be looped from egress to ingress
      pre segmentation with dev_loopback_xmit. That function unconditionally
      sets ip_summed to CHECKSUM_UNNECESSARY.
      
      udp_rcv_segment segments gso packets in the udp rx path. Segmentation
      usually executes on egress, and does not expect packets of this type.
      __udp_gso_segment interprets !CHECKSUM_PARTIAL as CHECKSUM_NONE. But
      the offsets are not correct for gso_make_checksum.
      
      UDP GSO packets are of type CHECKSUM_PARTIAL, with their uh->check set
      to the correct pseudo header checksum. Reset ip_summed to this type.
      (CHECKSUM_PARTIAL is allowed on ingress, see comments in skbuff.h)
      
      Reported-by: default avatarsyzbot <syzkaller@googlegroups.com>
      Fixes: cf329aa4 ("udp: cope with UDP GRO packet misdirection")
      Signed-off-by: default avatarWillem de Bruijn <willemb@google.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6cd021a5
      History
      udp: segment looped gso packets correctly
      Willem de Bruijn authored
      
      Multicast and broadcast packets can be looped from egress to ingress
      pre segmentation with dev_loopback_xmit. That function unconditionally
      sets ip_summed to CHECKSUM_UNNECESSARY.
      
      udp_rcv_segment segments gso packets in the udp rx path. Segmentation
      usually executes on egress, and does not expect packets of this type.
      __udp_gso_segment interprets !CHECKSUM_PARTIAL as CHECKSUM_NONE. But
      the offsets are not correct for gso_make_checksum.
      
      UDP GSO packets are of type CHECKSUM_PARTIAL, with their uh->check set
      to the correct pseudo header checksum. Reset ip_summed to this type.
      (CHECKSUM_PARTIAL is allowed on ingress, see comments in skbuff.h)
      
      Reported-by: default avatarsyzbot <syzkaller@googlegroups.com>
      Fixes: cf329aa4 ("udp: cope with UDP GRO packet misdirection")
      Signed-off-by: default avatarWillem de Bruijn <willemb@google.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    patch_realtek.c 167.91 KiB
    /*
     * Universal Interface for Intel High Definition Audio Codec
     *
     * HD audio interface patch for Realtek ALC codecs
     *
     * Copyright (c) 2004 Kailang Yang <kailang@realtek.com.tw>
     *                    PeiSen Hou <pshou@realtek.com.tw>
     *                    Takashi Iwai <tiwai@suse.de>
     *                    Jonathan Woithe <jwoithe@physics.adelaide.edu.au>
     *
     *  This driver 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.
     *
     *  This driver is distributed in the hope that it will be useful,
     *  but WITHOUT ANY WARRANTY; without even the implied warranty of
     *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     *  GNU General Public License for more details.
     *
     *  You should have received a copy of the GNU General Public License
     *  along with this program; if not, write to the Free Software
     *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
     */
    
    #include <linux/init.h>
    #include <linux/delay.h>
    #include <linux/slab.h>
    #include <linux/pci.h>
    #include <linux/module.h>
    #include <sound/core.h>
    #include <sound/jack.h>
    #include "hda_codec.h"
    #include "hda_local.h"
    #include "hda_beep.h"
    #include "hda_jack.h"
    
    /* unsol event tags */
    #define ALC_FRONT_EVENT		0x01
    #define ALC_DCVOL_EVENT		0x02
    #define ALC_HP_EVENT		0x04
    #define ALC_MIC_EVENT		0x08
    
    /* for GPIO Poll */
    #define GPIO_MASK	0x03
    
    /* extra amp-initialization sequence types */
    enum {
    	ALC_INIT_NONE,
    	ALC_INIT_DEFAULT,
    	ALC_INIT_GPIO1,
    	ALC_INIT_GPIO2,
    	ALC_INIT_GPIO3,
    };
    
    struct alc_customize_define {
    	unsigned int  sku_cfg;
    	unsigned char port_connectivity;
    	unsigned char check_sum;
    	unsigned char customization;
    	unsigned char external_amp;
    	unsigned int  enable_pcbeep:1;
    	unsigned int  platform_type:1;
    	unsigned int  swap:1;
    	unsigned int  override:1;
    	unsigned int  fixup:1; /* Means that this sku is set by driver, not read from hw */
    };
    
    struct alc_fixup;