forked from rpms/kernel
		
	Linux v3.12-2839-gedae583
- Reenable debugging options.
This commit is contained in:
		
							parent
							
								
									a6bed447f4
								
							
						
					
					
						commit
						65855d3853
					
				| @ -150,4 +150,7 @@ CONFIG_SMC911X=m | ||||
| # CONFIG_SCSI_CXGB3_ISCSI is not set | ||||
| # CONFIG_SCSI_CXGB4_ISCSI is not set | ||||
| 
 | ||||
| # serial | ||||
| # CONFIG_SERIAL_SH_SCI is not set | ||||
| 
 | ||||
| CONFIG_CRASH=m | ||||
|  | ||||
| @ -1,6 +1,8 @@ | ||||
| CONFIG_64BIT=y | ||||
| CONFIG_ARM64=y | ||||
| 
 | ||||
| # CONFIG_CPU_BIG_ENDIAN is not set | ||||
| 
 | ||||
| # arm64 only SoCs | ||||
| CONFIG_ARCH_XGENE=y | ||||
| 
 | ||||
|  | ||||
| @ -332,6 +332,7 @@ CONFIG_SUNXI_WATCHDOG=m | ||||
| CONFIG_MDIO_SUN4I=m | ||||
| CONFIG_NET_VENDOR_ALLWINNER=y | ||||
| CONFIG_SUN4I_EMAC=m | ||||
| # CONFIG_EEPROM_SUNXI_SID is not set | ||||
| 
 | ||||
| # imx  | ||||
| CONFIG_MXC_IRQ_PRIOR=y | ||||
| @ -500,6 +501,7 @@ CONFIG_IIO_ST_SENSORS_CORE=m | ||||
| CONFIG_ARCH_TEGRA_2x_SOC=y | ||||
| CONFIG_ARCH_TEGRA_3x_SOC=y | ||||
| # CONFIG_ARCH_TEGRA_114_SOC is not set | ||||
| # CONFIG_ARCH_TEGRA_124_SOC is not set | ||||
| CONFIG_ARM_TEGRA_CPUFREQ=y | ||||
| CONFIG_TEGRA20_MC=y | ||||
| CONFIG_TEGRA30_MC=y | ||||
|  | ||||
| @ -1611,13 +1611,13 @@ CONFIG_B43_SDIO=y | ||||
| CONFIG_B43_BCMA=y | ||||
| # CONFIG_B43_BCMA_EXTRA is not set | ||||
| CONFIG_B43_BCMA_PIO=y | ||||
| # CONFIG_B43_DEBUG is not set | ||||
| CONFIG_B43_DEBUG=y | ||||
| CONFIG_B43_PHY_LP=y | ||||
| CONFIG_B43_PHY_N=y | ||||
| CONFIG_B43_PHY_HT=y | ||||
| # CONFIG_B43_FORCE_PIO is not set | ||||
| CONFIG_B43LEGACY=m | ||||
| # CONFIG_B43LEGACY_DEBUG is not set | ||||
| CONFIG_B43LEGACY_DEBUG=y | ||||
| CONFIG_B43LEGACY_DMA=y | ||||
| CONFIG_B43LEGACY_PIO=y | ||||
| CONFIG_B43LEGACY_DMA_AND_PIO_MODE=y | ||||
| @ -2498,8 +2498,12 @@ CONFIG_HID_SENSOR_ENUM_BASE_QUIRKS=y | ||||
| # CONFIG_MCP4725 is not set | ||||
| # CONFIG_ITG3200 is not set | ||||
| # CONFIG_APDS9300 is not set | ||||
| # CONFIG_CM36651 is not set | ||||
| # CONFIG_GP2AP020A00F is not set | ||||
| # CONFIG_TSL2583 is not set | ||||
| # CONFIG_TSL2x7x is not set | ||||
| # CONFIG_TCS3472 is not set | ||||
| # CONFIG_TSL4531 is not set | ||||
| # CONFIG_NAU7802 is not set | ||||
| # CONFIG_TI_ADC081C is not set | ||||
| # CONFIG_EXYNOS_ADC is not set | ||||
| @ -2512,6 +2516,7 @@ CONFIG_IIO_ST_ACCEL_3AXIS=m | ||||
| # CONFIG_SENSORS_TSL2563 is not set | ||||
| # CONFIG_VCNL4000 is not set | ||||
| # CONFIG_AK8975 is not set | ||||
| # CONFIG_MAG3110 is not set | ||||
| # CONFIG_TMP006 is not set | ||||
| # CONFIG_IIO_ST_PRESS is not set | ||||
| # CONFIG_KXSD9 is not set | ||||
| @ -2523,6 +2528,7 @@ CONFIG_IIO_ST_ACCEL_3AXIS=m | ||||
| # CONFIG_AD7887 is not set | ||||
| # CONFIG_AD7923 is not set | ||||
| # CONFIG_MCP320X is not set | ||||
| # CONFIG_MCP3422 is not set | ||||
| # CONFIG_AD8366 is not set | ||||
| # CONFIG_AD5360 is not set | ||||
| # CONFIG_AD5421 is not set | ||||
| @ -3415,7 +3421,7 @@ CONFIG_USB_STORAGE_REALTEK=m | ||||
| CONFIG_REALTEK_AUTOPM=y | ||||
| CONFIG_USB_STORAGE_ENE_UB6250=m | ||||
| # CONFIG_USB_LIBUSUAL is not set | ||||
| # CONFIG_USB_UAS is not set | ||||
| CONFIG_USB_UAS=m | ||||
| 
 | ||||
| 
 | ||||
| # | ||||
| @ -3730,6 +3736,9 @@ CONFIG_USB_APPLEDISPLAY=m | ||||
| # Physical Layer USB driver | ||||
| CONFIG_USB_PHY=y | ||||
| 
 | ||||
| # CONFIG_GENERIC_PHY is not set | ||||
| # CONFIG_PHY_EXYNOS_MIPI_VIDEO is not set | ||||
| # CONFIG_PHY_EXYNOS_DP_VIDEO is not set | ||||
| # CONFIG_OMAP_USB2 is not set | ||||
| # CONFIG_OMAP_USB3 is not set | ||||
| # CONFIG_OMAP_CONTROL_USB is not set | ||||
| @ -4004,6 +4013,7 @@ CONFIG_NFS_V4=y | ||||
| CONFIG_NFS_SWAP=y | ||||
| CONFIG_NFS_V4_1=y | ||||
| CONFIG_NFS_V4_1_IMPLEMENTATION_ID_DOMAIN="kernel.org" | ||||
| # CONFIG_NFS_V4_1_MIGRATION is not set | ||||
| CONFIG_NFS_V4_2=y | ||||
| CONFIG_NFSD=m | ||||
| CONFIG_NFSD_V3=y | ||||
| @ -4171,6 +4181,7 @@ CONFIG_OPROFILE_EVENT_MULTIPLEX=y | ||||
| CONFIG_DEBUG_KERNEL=y | ||||
| CONFIG_FRAME_WARN=1024 | ||||
| CONFIG_MAGIC_SYSRQ=y | ||||
| CONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE=0x0 | ||||
| CONFIG_DEBUG_INFO=y | ||||
| CONFIG_FRAME_POINTER=y | ||||
| # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | ||||
| @ -4463,7 +4474,7 @@ CONFIG_PM_STD_PARTITION="" | ||||
| CONFIG_PM_DEBUG=y | ||||
| CONFIG_PM_TRACE=y | ||||
| CONFIG_PM_TRACE_RTC=y | ||||
| # CONFIG_PM_TEST_SUSPEND is not set | ||||
| CONFIG_PM_TEST_SUSPEND=y | ||||
| CONFIG_PM_RUNTIME=y | ||||
| # CONFIG_PM_OPP is not set | ||||
| # CONFIG_PM_AUTOSLEEP is not set | ||||
|  | ||||
							
								
								
									
										114
									
								
								config-nodebug
									
									
									
									
									
								
							
							
						
						
									
										114
									
								
								config-nodebug
									
									
									
									
									
								
							| @ -2,100 +2,100 @@ CONFIG_SND_VERBOSE_PRINTK=y | ||||
| CONFIG_SND_DEBUG=y | ||||
| CONFIG_SND_PCM_XRUN_DEBUG=y | ||||
| 
 | ||||
| # CONFIG_DEBUG_ATOMIC_SLEEP is not set | ||||
| CONFIG_DEBUG_ATOMIC_SLEEP=y | ||||
| 
 | ||||
| # CONFIG_DEBUG_MUTEXES is not set | ||||
| # CONFIG_DEBUG_WW_MUTEX_SLOWPATH is not set | ||||
| # CONFIG_DEBUG_RT_MUTEXES is not set | ||||
| # CONFIG_DEBUG_LOCK_ALLOC is not set | ||||
| # CONFIG_PROVE_LOCKING is not set | ||||
| # CONFIG_DEBUG_SPINLOCK is not set | ||||
| # CONFIG_PROVE_RCU is not set | ||||
| CONFIG_DEBUG_MUTEXES=y | ||||
| CONFIG_DEBUG_WW_MUTEX_SLOWPATH=y | ||||
| CONFIG_DEBUG_RT_MUTEXES=y | ||||
| CONFIG_DEBUG_LOCK_ALLOC=y | ||||
| CONFIG_PROVE_LOCKING=y | ||||
| CONFIG_DEBUG_SPINLOCK=y | ||||
| CONFIG_PROVE_RCU=y | ||||
| # CONFIG_PROVE_RCU_REPEATEDLY is not set | ||||
| # CONFIG_DEBUG_PER_CPU_MAPS is not set | ||||
| CONFIG_DEBUG_PER_CPU_MAPS=y | ||||
| CONFIG_CPUMASK_OFFSTACK=y | ||||
| 
 | ||||
| # CONFIG_CPU_NOTIFIER_ERROR_INJECT is not set | ||||
| CONFIG_CPU_NOTIFIER_ERROR_INJECT=m | ||||
| 
 | ||||
| # CONFIG_FAULT_INJECTION is not set | ||||
| # CONFIG_FAILSLAB is not set | ||||
| # CONFIG_FAIL_PAGE_ALLOC is not set | ||||
| # CONFIG_FAIL_MAKE_REQUEST is not set | ||||
| # CONFIG_FAULT_INJECTION_DEBUG_FS is not set | ||||
| # CONFIG_FAULT_INJECTION_STACKTRACE_FILTER is not set | ||||
| # CONFIG_FAIL_IO_TIMEOUT is not set | ||||
| # CONFIG_FAIL_MMC_REQUEST is not set | ||||
| CONFIG_FAULT_INJECTION=y | ||||
| CONFIG_FAILSLAB=y | ||||
| CONFIG_FAIL_PAGE_ALLOC=y | ||||
| CONFIG_FAIL_MAKE_REQUEST=y | ||||
| CONFIG_FAULT_INJECTION_DEBUG_FS=y | ||||
| CONFIG_FAULT_INJECTION_STACKTRACE_FILTER=y | ||||
| CONFIG_FAIL_IO_TIMEOUT=y | ||||
| CONFIG_FAIL_MMC_REQUEST=y | ||||
| 
 | ||||
| # CONFIG_SLUB_DEBUG_ON is not set | ||||
| CONFIG_SLUB_DEBUG_ON=y | ||||
| 
 | ||||
| # CONFIG_LOCK_STAT is not set | ||||
| CONFIG_LOCK_STAT=y | ||||
| 
 | ||||
| # CONFIG_DEBUG_STACK_USAGE is not set | ||||
| CONFIG_DEBUG_STACK_USAGE=y | ||||
| 
 | ||||
| # CONFIG_ACPI_DEBUG is not set | ||||
| CONFIG_ACPI_DEBUG=y | ||||
| # CONFIG_ACPI_DEBUG_FUNC_TRACE is not set | ||||
| 
 | ||||
| # CONFIG_DEBUG_SG is not set | ||||
| CONFIG_DEBUG_SG=y | ||||
| 
 | ||||
| # CONFIG_DEBUG_PAGEALLOC is not set | ||||
| 
 | ||||
| # CONFIG_DEBUG_WRITECOUNT is not set | ||||
| # CONFIG_DEBUG_OBJECTS is not set | ||||
| CONFIG_DEBUG_WRITECOUNT=y | ||||
| CONFIG_DEBUG_OBJECTS=y | ||||
| # CONFIG_DEBUG_OBJECTS_SELFTEST is not set | ||||
| # CONFIG_DEBUG_OBJECTS_FREE is not set | ||||
| # CONFIG_DEBUG_OBJECTS_TIMERS is not set | ||||
| # CONFIG_DEBUG_OBJECTS_RCU_HEAD is not set | ||||
| CONFIG_DEBUG_OBJECTS_FREE=y | ||||
| CONFIG_DEBUG_OBJECTS_TIMERS=y | ||||
| CONFIG_DEBUG_OBJECTS_RCU_HEAD=y | ||||
| CONFIG_DEBUG_OBJECTS_ENABLE_DEFAULT=1 | ||||
| 
 | ||||
| # CONFIG_X86_PTDUMP is not set | ||||
| CONFIG_X86_PTDUMP=y | ||||
| 
 | ||||
| # CONFIG_CAN_DEBUG_DEVICES is not set | ||||
| CONFIG_CAN_DEBUG_DEVICES=y | ||||
| 
 | ||||
| # CONFIG_MODULE_FORCE_UNLOAD is not set | ||||
| CONFIG_MODULE_FORCE_UNLOAD=y | ||||
| 
 | ||||
| # CONFIG_SYSCTL_SYSCALL_CHECK is not set | ||||
| CONFIG_SYSCTL_SYSCALL_CHECK=y | ||||
| 
 | ||||
| # CONFIG_DEBUG_NOTIFIERS is not set | ||||
| CONFIG_DEBUG_NOTIFIERS=y | ||||
| 
 | ||||
| # CONFIG_DMA_API_DEBUG is not set | ||||
| CONFIG_DMA_API_DEBUG=y | ||||
| 
 | ||||
| # CONFIG_MMIOTRACE is not set | ||||
| CONFIG_MMIOTRACE=y | ||||
| 
 | ||||
| # CONFIG_DEBUG_CREDENTIALS is not set | ||||
| CONFIG_DEBUG_CREDENTIALS=y | ||||
| 
 | ||||
| # off in both production debug and nodebug builds, | ||||
| #  on in rawhide nodebug builds | ||||
| # CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set | ||||
| CONFIG_DEBUG_FORCE_WEAK_PER_CPU=y | ||||
| 
 | ||||
| # CONFIG_EXT4_DEBUG is not set | ||||
| CONFIG_EXT4_DEBUG=y | ||||
| 
 | ||||
| # CONFIG_XFS_WARN is not set | ||||
| 
 | ||||
| # CONFIG_DEBUG_PERF_USE_VMALLOC is not set | ||||
| CONFIG_DEBUG_PERF_USE_VMALLOC=y | ||||
| 
 | ||||
| # CONFIG_JBD2_DEBUG is not set | ||||
| CONFIG_JBD2_DEBUG=y | ||||
| 
 | ||||
| # CONFIG_NFSD_FAULT_INJECTION is not set | ||||
| CONFIG_NFSD_FAULT_INJECTION=y | ||||
| 
 | ||||
| # CONFIG_DEBUG_BLK_CGROUP is not set | ||||
| CONFIG_DEBUG_BLK_CGROUP=y | ||||
| 
 | ||||
| # CONFIG_DRBD_FAULT_INJECTION is not set | ||||
| CONFIG_DRBD_FAULT_INJECTION=y | ||||
| 
 | ||||
| # CONFIG_ATH_DEBUG is not set | ||||
| # CONFIG_CARL9170_DEBUGFS is not set | ||||
| # CONFIG_IWLWIFI_DEVICE_TRACING is not set | ||||
| CONFIG_ATH_DEBUG=y | ||||
| CONFIG_CARL9170_DEBUGFS=y | ||||
| CONFIG_IWLWIFI_DEVICE_TRACING=y | ||||
| 
 | ||||
| # CONFIG_RTLWIFI_DEBUG is not set | ||||
| 
 | ||||
| # CONFIG_DEBUG_OBJECTS_WORK is not set | ||||
| CONFIG_DEBUG_OBJECTS_WORK=y | ||||
| 
 | ||||
| # CONFIG_DMADEVICES_DEBUG is not set | ||||
| # CONFIG_DMADEVICES_VDEBUG is not set | ||||
| CONFIG_DMADEVICES_DEBUG=y | ||||
| CONFIG_DMADEVICES_VDEBUG=y | ||||
| 
 | ||||
| CONFIG_PM_ADVANCED_DEBUG=y | ||||
| 
 | ||||
| # CONFIG_CEPH_LIB_PRETTYDEBUG is not set | ||||
| # CONFIG_QUOTA_DEBUG is not set | ||||
| CONFIG_CEPH_LIB_PRETTYDEBUG=y | ||||
| CONFIG_QUOTA_DEBUG=y | ||||
| 
 | ||||
| CONFIG_PCI_DEFAULT_USE_CRS=y | ||||
| 
 | ||||
| @ -103,17 +103,17 @@ CONFIG_KGDB_KDB=y | ||||
| CONFIG_KDB_KEYBOARD=y | ||||
| CONFIG_KDB_CONTINUE_CATASTROPHIC=0 | ||||
| 
 | ||||
| # CONFIG_DEBUG_OBJECTS_PERCPU_COUNTER is not set | ||||
| # CONFIG_TEST_LIST_SORT is not set | ||||
| CONFIG_DEBUG_OBJECTS_PERCPU_COUNTER=y | ||||
| CONFIG_TEST_LIST_SORT=y | ||||
| # CONFIG_TEST_STRING_HELPERS is not set | ||||
| 
 | ||||
| # CONFIG_DETECT_HUNG_TASK is not set | ||||
| CONFIG_DETECT_HUNG_TASK=y | ||||
| CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=120 | ||||
| # CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set | ||||
| 
 | ||||
| # CONFIG_X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK is not set | ||||
| CONFIG_X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK=y | ||||
| 
 | ||||
| # CONFIG_DEBUG_KMEMLEAK is not set | ||||
| CONFIG_DEBUG_KMEMLEAK=y | ||||
| CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE=1024 | ||||
| # CONFIG_DEBUG_KMEMLEAK_TEST is not set | ||||
| CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF=y | ||||
| @ -124,7 +124,7 @@ CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF=y | ||||
| 
 | ||||
| # CONFIG_SPI_DEBUG is not set | ||||
| 
 | ||||
| # CONFIG_X86_DEBUG_STATIC_CPU_HAS is not set | ||||
| CONFIG_X86_DEBUG_STATIC_CPU_HAS=y | ||||
| 
 | ||||
| # CONFIG_SCHEDSTATS is not set | ||||
| # CONFIG_LATENCYTOP is not set | ||||
|  | ||||
| @ -325,7 +325,7 @@ CONFIG_SP5100_TCO=m | ||||
| 
 | ||||
| # CONFIG_MEMTEST is not set | ||||
| # CONFIG_DEBUG_TLBFLUSH is not set | ||||
| # CONFIG_MAXSMP is not set | ||||
| CONFIG_MAXSMP=y | ||||
| 
 | ||||
| 
 | ||||
| CONFIG_HP_ILO=m | ||||
|  | ||||
| @ -41,6 +41,9 @@ CONFIG_ACPI_HOTPLUG_MEMORY=y | ||||
| 
 | ||||
| # CONFIG_INTEL_SCU_IPC is not set | ||||
| 
 | ||||
| # CONFIG_INTEL_MIC_HOST is not set | ||||
| # CONFIG_INTEL_MIC_CARD is not set | ||||
| 
 | ||||
| # SHPC has half-arsed PCI probing, which makes it load on too many systems | ||||
| CONFIG_HOTPLUG_PCI_SHPC=m | ||||
| 
 | ||||
|  | ||||
							
								
								
									
										20
									
								
								kernel.spec
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								kernel.spec
									
									
									
									
									
								
							| @ -6,7 +6,7 @@ Summary: The Linux kernel | ||||
| # For a stable, released kernel, released_kernel should be 1. For rawhide | ||||
| # and/or a kernel built from an rc or git snapshot, released_kernel should | ||||
| # be 0. | ||||
| %global released_kernel 1 | ||||
| %global released_kernel 0 | ||||
| 
 | ||||
| # Sign modules on x86.  Make sure the config files match this setting if more | ||||
| # architectures are added. | ||||
| @ -62,7 +62,7 @@ Summary: The Linux kernel | ||||
| # For non-released -rc kernels, this will be appended after the rcX and | ||||
| # gitX tags, so a 3 here would become part of release "0.rcX.gitX.3" | ||||
| # | ||||
| %global baserelease 2 | ||||
| %global baserelease 3 | ||||
| %global fedora_build %{baserelease} | ||||
| 
 | ||||
| # base_sublevel is the kernel version we're starting with and patching | ||||
| @ -95,7 +95,7 @@ Summary: The Linux kernel | ||||
| # The rc snapshot level | ||||
| %define rcrev 0 | ||||
| # The git snapshot level | ||||
| %define gitrev 0 | ||||
| %define gitrev 1 | ||||
| # Set rpm version accordingly | ||||
| %define rpmversion 3.%{upstream_sublevel}.0 | ||||
| %endif | ||||
| @ -158,7 +158,7 @@ Summary: The Linux kernel | ||||
| # Set debugbuildsenabled to 1 for production (build separate debug kernels) | ||||
| #  and 0 for rawhide (all kernels are debug kernels). | ||||
| # See also 'make debug' and 'make release'. | ||||
| %define debugbuildsenabled 1 | ||||
| %define debugbuildsenabled 0 | ||||
| 
 | ||||
| # Want to build a vanilla kernel build without any non-upstream patches? | ||||
| %define with_vanilla %{?_with_vanilla: 1} %{?!_with_vanilla: 0} | ||||
| @ -171,7 +171,7 @@ Summary: The Linux kernel | ||||
| %define doc_build_fail true | ||||
| %endif | ||||
| 
 | ||||
| %define rawhide_skip_docs 0 | ||||
| %define rawhide_skip_docs 1 | ||||
| %if 0%{?rawhide_skip_docs} | ||||
| %define with_doc 0 | ||||
| %define doc_build_fail true | ||||
| @ -735,9 +735,6 @@ Patch25131: btrfs-relocate-csums-properly-with-prealloc-ext.patch | ||||
| #rhbz 984696 | ||||
| Patch25132: rt2800usb-slow-down-TX-status-polling.patch | ||||
| 
 | ||||
| #CVE-2013-4348 rhbz 1007939 1025647 | ||||
| Patch25139: net-flow_dissector-fail-on-evil-iph-ihl.patch | ||||
| 
 | ||||
| Patch25140: drm-qxl-backport-fixes-for-Fedora.patch | ||||
| 
 | ||||
| Patch25141: Input-evdev-fall-back-to-vmalloc-for-client-event-buffer.patch | ||||
| @ -1445,9 +1442,6 @@ ApplyPatch btrfs-relocate-csums-properly-with-prealloc-ext.patch | ||||
| #rhbz 984696 | ||||
| ApplyPatch rt2800usb-slow-down-TX-status-polling.patch | ||||
| 
 | ||||
| #CVE-2013-4348 rhbz 1007939 1025647 | ||||
| ApplyPatch net-flow_dissector-fail-on-evil-iph-ihl.patch | ||||
| 
 | ||||
| ApplyPatch drm-qxl-backport-fixes-for-Fedora.patch | ||||
| 
 | ||||
| ApplyPatch Input-evdev-fall-back-to-vmalloc-for-client-event-buffer.patch | ||||
| @ -2255,6 +2249,10 @@ fi | ||||
| #                                    ||----w | | ||||
| #                                    ||     || | ||||
| %changelog | ||||
| * Mon Nov 11 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.13.0-0.rc0.git1.3 | ||||
| - Linux v3.12-2839-gedae583 | ||||
| - Reenable debugging options. | ||||
| 
 | ||||
| * Sat Nov 09 2013 Josh Boyer <jwboyer@fedoraproject.org> - 3.12.0-2 | ||||
| - Add patch from Daniel Stone to avoid high order allocations in evdev | ||||
| - Add qxl backport fixes from Dave Airlie | ||||
|  | ||||
| @ -1,82 +0,0 @@ | ||||
| Path: news.gmane.org!not-for-mail | ||||
| From: Jason Wang <jasowang@redhat.com> | ||||
| Newsgroups: gmane.linux.kernel,gmane.linux.network | ||||
| Subject: [PATCH net] net: flow_dissector: fail on evil iph->ihl | ||||
| Date: Fri,  1 Nov 2013 15:01:10 +0800 | ||||
| Lines: 34 | ||||
| Approved: news@gmane.org | ||||
| Message-ID: <1383289270-18952-1-git-send-email-jasowang@redhat.com> | ||||
| NNTP-Posting-Host: plane.gmane.org | ||||
| X-Trace: ger.gmane.org 1383289296 18578 80.91.229.3 (1 Nov 2013 07:01:36 GMT) | ||||
| X-Complaints-To: usenet@ger.gmane.org | ||||
| NNTP-Posting-Date: Fri, 1 Nov 2013 07:01:36 +0000 (UTC) | ||||
| Cc: Jason Wang <jasowang@redhat.com>, | ||||
| 	Petr Matousek <pmatouse@redhat.com>, | ||||
| 	"Michael S. Tsirkin" <mst@redhat.com>, | ||||
| 	Daniel Borkmann <dborkman@redhat.com> | ||||
| To: davem@davemloft.net, edumazet@google.com, netdev@vger.kernel.org, | ||||
| 	linux-kernel@vger.kernel.org | ||||
| Original-X-From: linux-kernel-owner@vger.kernel.org Fri Nov 01 08:01:39 2013 | ||||
| Return-path: <linux-kernel-owner@vger.kernel.org> | ||||
| Envelope-to: glk-linux-kernel-3@plane.gmane.org | ||||
| Original-Received: from vger.kernel.org ([209.132.180.67]) | ||||
| 	by plane.gmane.org with esmtp (Exim 4.69) | ||||
| 	(envelope-from <linux-kernel-owner@vger.kernel.org>) | ||||
| 	id 1Vc8jh-00034h-9Y | ||||
| 	for glk-linux-kernel-3@plane.gmane.org; Fri, 01 Nov 2013 08:01:37 +0100 | ||||
| Original-Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand | ||||
| 	id S1753899Ab3KAHB3 (ORCPT <rfc822;glk-linux-kernel-3@m.gmane.org>); | ||||
| 	Fri, 1 Nov 2013 03:01:29 -0400 | ||||
| Original-Received: from mx1.redhat.com ([209.132.183.28]:8081 "EHLO mx1.redhat.com" | ||||
| 	rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP | ||||
| 	id S1752399Ab3KAHB1 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); | ||||
| 	Fri, 1 Nov 2013 03:01:27 -0400 | ||||
| Original-Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) | ||||
| 	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rA171QgE005079 | ||||
| 	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); | ||||
| 	Fri, 1 Nov 2013 03:01:26 -0400 | ||||
| Original-Received: from jason-ThinkPad-T430s.nay.redhat.com (dhcp-66-71-71.eng.nay.redhat.com [10.66.71.71] (may be forged)) | ||||
| 	by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id rA171Jpr015790; | ||||
| 	Fri, 1 Nov 2013 03:01:20 -0400 | ||||
| X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 | ||||
| Original-Sender: linux-kernel-owner@vger.kernel.org | ||||
| Precedence: bulk | ||||
| List-ID: <linux-kernel.vger.kernel.org> | ||||
| X-Mailing-List: linux-kernel@vger.kernel.org | ||||
| Xref: news.gmane.org gmane.linux.kernel:1588387 gmane.linux.network:289242 | ||||
| Archived-At: <http://permalink.gmane.org/gmane.linux.kernel/1588387> | ||||
| 
 | ||||
| We don't validate iph->ihl which may lead a dead loop if we meet a IPIP | ||||
| skb whose iph->ihl is zero. Fix this by failing immediately when iph->ihl | ||||
| is evil (less than 5). | ||||
| 
 | ||||
| This issue were introduced by commit ec5efe7946280d1e84603389a1030ccec0a767ae | ||||
| (rps: support IPIP encapsulation). | ||||
| 
 | ||||
| Cc: Eric Dumazet <edumazet@google.com> | ||||
| Cc: Petr Matousek <pmatouse@redhat.com> | ||||
| Cc: Michael S. Tsirkin <mst@redhat.com> | ||||
| Cc: Daniel Borkmann <dborkman@redhat.com> | ||||
| Signed-off-by: Jason Wang <jasowang@redhat.com> | ||||
| ---
 | ||||
| This patch is needed for stable. | ||||
| ---
 | ||||
|  net/core/flow_dissector.c | 2 +- | ||||
|  1 file changed, 1 insertion(+), 1 deletion(-) | ||||
| 
 | ||||
| diff --git a/net/core/flow_dissector.c b/net/core/flow_dissector.c
 | ||||
| index 8d7d0dd..143b6fd 100644
 | ||||
| --- a/net/core/flow_dissector.c
 | ||||
| +++ b/net/core/flow_dissector.c
 | ||||
| @@ -40,7 +40,7 @@ again:
 | ||||
|  		struct iphdr _iph; | ||||
|  ip: | ||||
|  		iph = skb_header_pointer(skb, nhoff, sizeof(_iph), &_iph); | ||||
| -		if (!iph)
 | ||||
| +		if (!iph || iph->ihl < 5)
 | ||||
|  			return false; | ||||
|   | ||||
|  		if (ip_is_fragment(iph)) | ||||
| -- 
 | ||||
| 1.8.1.2 | ||||
| 
 | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user