PI BUG with -rt13
Hi,
I was testing PI support in the -rt tree (-rt13) when I hit the BUG below. I am using the BULL/Montavista glibc patches. However I would think this can be reproduced using just plain FUTEX_WAKE/WAIT_ROBUST APIs as well, though I havent tried. I can send out the test code if anybody is interested. I have attached the .config below.
-Dinakar
testpi-2/1138[CPU#1]: BUG in FREE_WAITER at kernel/rt.c:1368
[<c011a180>] __WARN_ON+0x60/0x80 (8) [<c037c9be>] __down_mutex+0x4fe/0x7fd (48) [<c01330d9>] pi_setprio+0xa1/0x642 (104) [<c0122196>] lock_timer_base+0x19/0x33 (8) [<c037edbd>] _spin_lock_irqsave+0x1d/0x46 (12) [<c0122196>] lock_timer_base+0x19/0x33 (8) [<c0122196>] lock_timer_base+0x19/0x33 (16) [<c01221e8>] __mod_timer+0x38/0xdf (16) [<c013aa7b>] sub_preempt_count+0x1a/0x1e (12) [<c037e71d>] __down_interruptible+0x923/0xb2b (20) [<c013c1ed>] futex_wait_robust+0x151/0x25b (16) [<c037f3f4>] _raw_spin_unlock+0x12/0x2c (8) [<c01344d6>] process_timeout+0x0/0x9 (36) [<c013c1ed>] futex_wait_robust+0x151/0x25b (64) [<c013c1ed>] futex_wait_robust+0x151/0x25b (8) [<c013c1ed>] futex_wait_robust+0x151/0x25b (12) [<c0137baa>] down_futex+0x70/0x99 (12) [<c013c1ed>] futex_wait_robust+0x151/0x25b (12) [<c013c1ed>] futex_wait_robust+0x151/0x25b (20) [<c013a91e>] add_preempt_count_ti+0x1e/0xc6 (100) [<c037f3f4>] _raw_spin_unlock+0x12/0x2c (44) [<c013c98e>] do_futex+0x96/0xfc (24) [<c013caec>] sys_futex+0xf8/0x104 (40) [<c0102ce7>] sysenter_past_esp+0x54/0x75 (60) ---------------------------
| preempt count: 00000001 ]
| 1-level deep critical section nesting:
----------------------------------------
.. [<c013a9e0>] .... add_preempt_count+0x1a/0x1e
.....[<00000000>] .. ( <= stext+0x3feffd68/0x8)
------------------------------
| showing all locks held by: | (testpi-2/1138 [f6d6c7b0, 69]):
------------------------------
#001: [c3078fe0] {&base->t_base.lock}
... acquired at: lock_timer_base+0x19/0x33
testpi-2/1140[CPU#3]: BUG in FREE_WAITER at kernel/rt.c:1368
[<c011a180>] __WARN_ON+0x60/0x80 (8) [<c037c9be>] __down_mutex+0x4fe/0x7fd (48) [<c01330d9>] pi_setprio+0xa1/0x642 (104) [<c0122196>] lock_timer_base+0x19/0x33 (8) [<c037edbd>] _spin_lock_irqsave+0x1d/0x46 (12) [<c0122196>] lock_timer_base+0x19/0x33 (8) [<c0122196>] lock_timer_base+0x19/0x33 (16) [<c01221e8>] __mod_timer+0x38/0xdf (16) [<c013aa7b>] sub_preempt_count+0x1a/0x1e (12) [<c037e71d>] __down_interruptible+0x923/0xb2b (20) [<c013c1ed>] futex_wait_robust+0x151/0x25b (16) [<c037f3f4>] _raw_spin_unlock+0x12/0x2c (8) [<c01344d6>] process_timeout+0x0/0x9 (36) [<c013c1ed>] futex_wait_robust+0x151/0x25b (64) [<c013c1ed>] futex_wait_robust+0x151/0x25b (8) [<c013c1ed>] futex_wait_robust+0x151/0x25b (12) [<c0137baa>] down_futex+0x70/0x99 (12) [<c013c1ed>] futex_wait_robust+0x151/0x25b (12) [<c013c1ed>] futex_wait_robust+0x151/0x25b (20) [<c037f3f4>] _raw_spin_unlock+0x12/0x2c (76) [<c013c98e>] do_futex+0x96/0xfc (92) [<c013caec>] sys_futex+0xf8/0x104 (40) [<c0102ce7>] sysenter_past_esp+0x54/0x75 (60) ---------------------------
| preempt count: 00000001 ]
| 1-level deep critical section nesting:
----------------------------------------
.. [<c013a9e0>] .... add_preempt_count+0x1a/0x1e
.....[<00000000>] .. ( <= stext+0x3feffd68/0x8)
------------------------------
| showing all locks held by: | (testpi-2/1140 [f7d980a0, 0]):
------------------------------
#001: [c3098fe0] {&base->t_base.lock}
... acquired at: lock_timer_base+0x19/0x33
testpi-2/1139[CPU#0]: BUG in FREE_WAITER at kernel/rt.c:1368 NMI watchdog detected lockup on CPU#1 (5000/5000)
[<c011a180>] __WARN_ON+0x60/0x80 (8) [<c037c9be>] __down_mutex+0x4fe/0x7fd (48) [<c013a91e>] add_preempt_count_ti+0x1e/0xc6 (104) [<c0122196>] lock_timer_base+0x19/0x33 (8) [<c037edbd>] _spin_lock_irqsave+0x1d/0x46 (12) [<c0122196>] lock_timer_base+0x19/0x33 (8) [<c0122196>] lock_timer_base+0x19/0x33 (16) [<c01221e8>] __mod_timer+0x38/0xdf (16) [<c013aa7b>] sub_preempt_count+0x1a/0x1e (12) [<c037e71d>] __down_interruptible+0x923/0xb2b (20) [<c013c1ed>] futex_wait_robust+0x151/0x25b (16) [<c037f3f4>] _raw_spin_unlock+0x12/0x2c (8) [<c01344d6>] process_timeout+0x0/0x9 (36) [<c013c1ed>] futex_wait_robust+0x151/0x25b (64) [<c013c1ed>] futex_wait_robust+0x151/0x25b (8) [<c013c1ed>] futex_wait_robust+0x151/0x25b (12) [<c0137baa>] down_futex+0x70/0x99 (12) [<c013c1ed>] futex_wait_robust+0x151/0x25b (12) [<c013c1ed>] futex_wait_robust+0x151/0x25b (20) [<c037f3f4>] _raw_spin_unlock+0x12/0x2c (76) [<c037ec7d>] __lock_text_start+0x1d/0x41 (24) [<c013c98e>] do_futex+0x96/0xfc (68) [<c013caec>] sys_futex+0xf8/0x104 (40) [<c0102ce7>] sysenter_past_esp+0x54/0x75 (60) ---------------------------
| preempt count: 00000001 ]
| 1-level deep critical section nesting:
----------------------------------------
.. [<c013a9e0>] .... add_preempt_count+0x1a/0x1e
.....[<00000000>] .. ( <= stext+0x3feffd68/0x8)
------------------------------
| showing all locks held by: | (testpi-2/1139 [f6c347b0, 59]):
------------------------------
#00 [c3068fe01: ] {&base->t_base.lock}
..[. acquired at: lock_timer_base+0x19/0x33
testpi-2/1139[CPU#2]: BUG in FREE_WAITER at kernel/rt.c:1368
[<c011a180>] __WARN_ON+0x60/0x80 (8) [<c037c9be>] __down_mutex+0x4fe/0x7fd (48) [<c037f3f4>] _raw_spin_unlock+0x12/0x2c (100) [<c0122238>] __mod_timer+0x88/0xdf (12) [<c037ec7d>] __lock_text_start+0x1d/0x41 (12) [<c0122238>] __mod_timer+0x88/0xdf (8) [<c0122238>] __mod_timer+0x88/0xdf (16) [<c013aa7b>] sub_preempt_count+0x1a/0x1e (12) [<c037e71d>] __down_interruptible+0x923/0xb2b (20) [<c013c1ed>] futex_wait_robust+0x151/0x25b (16) [<c037f3f4>] _raw_spin_unlock+0x12/0x2c (8) [<c01344d6>] process_timeout+0x0/0x9 (36) [<c013c1ed>] futex_wait_robust+0x151/0x25b (64) [<c013c1ed>] futex_wait_robust+0x151/0x25b (8) [<c013c1ed>] futex_wait_robust+0x151/0x25b (12) [<c0137baa>] down_futex+0x70/0x99 (12) [<c013c1ed>] futex_wait_robust+0x151/0x25b (12) [<c013c1ed>] futex_wait_robust+0x151/0x25b (20) [<c037f3f4>] _raw_spin_unlock+0x12/0x2c (76) [<c037ec7d>] __lock_text_start+0x1d/0x41 (24) [<c013c98e>] do_futex+0x96/0xfc (68) [<c013caec>] sys_futex+0xf8/0x104 (40) [<c0102ce7>] sysenter_past_esp+0x54/0x75 (60) ---------------------------
| preempt count: 00000001 ]
| 1-level deep critical section nesting:
----------------------------------------
.. [<c013a9e0>] .... add_preempt_count+0x1a/0x1e
.....[<00000000>] .. ( <= stext+0x3feffd68/0x8)
------------------------------
| showing all locks held by: | (testpi-2/1139 [f6c347b0, 59]):
------------------------------
#001: [c3088fe0] {&base->t_base.lock}
... acquired at: __mod_timer+0x88/0xdf
Pid: 14, comm: softirq-timer/1
EIP: 0060:[<c037f3af>] CPU: 1
EIP is at _raw_spin_lock+0x19/0x25
EFLAGS: 00000086 Not tainted (2.6.14-ray-rt1)
EAX: f7f26830 EBX: c03e4e0c ECX: 00000001 EDX: f7f26830
ESI: c3078fe0 EDI: 00000002 EBP: f7f26830 DS: 007b ES: 007b
CR0: 8005003b CR2: b5fb8dcc CR3: 35d67000 CR4: 000006d0
[<c037c862>] __down_mutex+0x3a2/0x7fd (12) [<c037f3f4>] _raw_spin_unlock+0x12/0x2c (12) [<c0113828>] load_balance_newidle+0xf1/0x131 (8) [<c013aa7b>] sub_preempt_count+0x1a/0x1e (48) [<c01319a6>] ktimer_run_queues+0x27/0x131 (24) [<c0114551>] __wake_up+0x44/0x69 (8) [<c0122b8d>] run_timer_softirq+0x10b/0x3d6 (12) [<c037ecff>] _spin_lock_irq+0x1d/0x41 (12) [<c0122b8d>] run_timer_softirq+0x10b/0x3d6 (8) [<c0122b8d>] run_timer_softirq+0x10b/0x3d6 (16) [<c013a91e>] add_preempt_count_ti+0x1e/0xc6 (16) [<c011f0e4>] ksoftirqd+0xe7/0x183 (40) [<c011effd>] ksoftirqd+0x0/0x183 (32) [<c012d811>] kthread+0xa3/0xcd (4) [<c012d76e>] kthread+0x0/0xcd (28) [<c0100f75>] kernel_thread_helper+0x5/0xb (16) ---------------------------
| preempt count: 00000002 ]
| 2-level deep critical section nesting:
----------------------------------------
.. [<c013a9e0>] .... add_preempt_count+0x1a/0x1e
.....[<00000000>] .. ( <= stext+0x3feffd68/0x8)
.. [<c013a9e0>] .... add_preempt_count+0x1a/0x1e
.....[<00000000>] .. ( <= stext+0x3feffd68/0x8)
------------------------------
| showing all locks held by: | (softirq-timer/1/14 [f7f26830, 98]):
------------------------------
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.14-rt13
# Thu Nov 17 18:45:04 2005
#CONFIG_X86=yCONFIG_GENERIC_TIME=yCONFIG_SEMAPHORE_SLEEPERS=yCONFIG_MMU=yCONFIG_UID16=yCONFIG_GENERIC_ISA_DMA=yCONFIG_GENERIC_IOMAP=yCONFIG_ARCH_MAY_HAVE_PC_FDC=y
#
# Code maturity level options
#CONFIG_EXPERIMENTAL=yCONFIG_CLEAN_COMPILE=yCONFIG_LOCK_KERNEL=yCONFIG_INIT_ENV_ARG_LIMIT=32
#
# General setup
#CONFIG_LOCALVERSION=""CONFIG_LOCALVERSION_AUTO=yCONFIG_SWAP=yCONFIG_SYSVIPC=y
# CONFIG_POSIX_MQUEUE is not set
# CONFIG_BSD_PROCESS_ACCT is not setCONFIG_SYSCTL=y
# CONFIG_AUDIT is not set
# CONFIG_HOTPLUG is not set
# CONFIG_KOBJECT_UEVENT is not setCONFIG_IKCONFIG=y
# CONFIG_IKCONFIG_PROC is not setCONFIG_CPUSETS=yCONFIG_INITRAMFS_SOURCE=""
# CONFIG_EMBEDDED is not setCONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_ALL is not set
# CONFIG_KALLSYMS_EXTRA_PASS is not setCONFIG_PRINTK=yCONFIG_BUG=yCONFIG_BASE_FULL=yCONFIG_FUTEX=yCONFIG_EPOLL=yCONFIG_SHMEM=yCONFIG_CC_ALIGN_FUNCTIONS=0CONFIG_CC_ALIGN_LABELS=0CONFIG_CC_ALIGN_LOOPS=0CONFIG_CC_ALIGN_JUMPS=0
# CONFIG_TINY_SHMEM is not setCONFIG_BASE_SMALL=0
#
# Loadable module support
#CONFIG_MODULES=yCONFIG_MODULE_UNLOAD=y
# CONFIG_MODULE_FORCE_UNLOAD is not setCONFIG_OBSOLETE_MODPARM=y
# CONFIG_MODVERSIONS is not set
# CONFIG_MODULE_SRCVERSION_ALL is not setCONFIG_KMOD=yCONFIG_STOP_MACHINE=y
#
# Processor type and features
#CONFIG_X86_PC=y
# CONFIG_X86_ELAN is not set
# CONFIG_X86_VOYAGER is not set
# CONFIG_X86_NUMAQ is not set
# CONFIG_X86_SUMMIT is not set
# CONFIG_X86_BIGSMP is not set
# CONFIG_X86_VISWS is not set
# CONFIG_X86_GENERICARCH is not set
# CONFIG_X86_ES7000 is not set
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
# CONFIG_M686 is not set
# CONFIG_MPENTIUMII is not set
# CONFIG_MPENTIUMIII is not set
# CONFIG_MPENTIUMM is not setCONFIG_MPENTIUM4=y
# CONFIG_MK6 is not set
# CONFIG_MK7 is not set
# CONFIG_MK8 is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MEFFICEON is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MGEODEGX1 is not set
# CONFIG_MCYRIXIII is not set
# CONFIG_MVIAC3_2 is not set
# CONFIG_X86_GENERIC is not setCONFIG_X86_CMPXCHG=yCONFIG_X86_XADD=yCONFIG_X86_L1_CACHE_SHIFT=7CONFIG_GENERIC_CALIBRATE_DELAY=yCONFIG_X86_WP_WORKS_OK=yCONFIG_X86_INVLPG=yCONFIG_X86_BSWAP=yCONFIG_X86_POPAD_OK=yCONFIG_X86_GOOD_APIC=yCONFIG_X86_INTEL_USERCOPY=yCONFIG_X86_USE_PPRO_CHECKSUM=y
# CONFIG_HPET_TIMER is not set
# CONFIG_KTIME_SCALAR is not setCONFIG_HIGH_RES_TIMERS=yCONFIG_HIGH_RES_RESOLUTION=1000CONFIG_SMP=yCONFIG_NR_CPUS=32CONFIG_SCHED_SMT=y
# CONFIG_PREEMPT_NONE is not set
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT_DESKTOP is not setCONFIG_PREEMPT_RT=yCONFIG_PREEMPT=yCONFIG_PREEMPT_SOFTIRQS=yCONFIG_PREEMPT_HARDIRQS=yCONFIG_PREEMPT_BKL=yCONFIG_PREEMPT_RCU=yCONFIG_RCU_STATS=yCONFIG_RWSEM_GENERIC_SPINLOCK=yCONFIG_ASM_SEMAPHORES=yCONFIG_X86_LOCAL_APIC=yCONFIG_X86_IO_APIC=yCONFIG_X86_IOAPIC_FAST=yCONFIG_X86_TSC=yCONFIG_X86_MCE=y
# CONFIG_X86_MCE_NONFATAL is not set
# CONFIG_X86_MCE_P4THERMAL is not set
# CONFIG_TOSHIBA is not set
# CONFIG_I8K is not set
# CONFIG_X86_REBOOTFIXUPS is not set
# CONFIG_MICROCODE is not set
# CONFIG_X86_MSR is not set
# CONFIG_X86_CPUID is not set
#
# Firmware Drivers
#
# CONFIG_EDD is not set
# CONFIG_DELL_RBU is not setCONFIG_DCDBAS=m
# CONFIG_NOHIGHMEM is not setCONFIG_HIGHMEM4G=y
# CONFIG_HIGHMEM64G is not setCONFIG_HIGHMEM=yCONFIG_SELECT_MEMORY_MODEL=yCONFIG_FLATMEM_MANUAL=y
# CONFIG_DISCONTIGMEM_MANUAL is not set
# CONFIG_SPARSEMEM_MANUAL is not setCONFIG_FLATMEM=yCONFIG_FLAT_NODE_MEM_MAP=y
# CONFIG_SPARSEMEM_STATIC is not set
# CONFIG_HIGHPTE is not set
# CONFIG_MATH_EMULATION is not set
# CONFIG_MTRR is not set
# CONFIG_EFI is not setCONFIG_IRQBALANCE=y
# CONFIG_REGPARM is not setCONFIG_SECCOMP=y
# CONFIG_HZ_100 is not set
# CONFIG_HZ_250 is not setCONFIG_HZ_1000=yCONFIG_HZ=1000CONFIG_PHYSICAL_START=0x100000
# CONFIG_KEXEC is not set
#
# Power management options (ACPI, APM)
#CONFIG_PM=y
# CONFIG_PM_DEBUG is not set
#
# ACPI (Advanced Configuration and Power Interface) Support #CONFIG_ACPI=yCONFIG_ACPI_AC=m
# CONFIG_ACPI_BATTERY is not set
# CONFIG_ACPI_BUTTON is not set
# CONFIG_ACPI_VIDEO is not set
# CONFIG_ACPI_HOTKEY is not setCONFIG_ACPI_FAN=mCONFIG_ACPI_PROCESSOR=mCONFIG_ACPI_THERMAL=mCONFIG_ACPI_ASUS=mCONFIG_ACPI_IBM=mCONFIG_ACPI_TOSHIBA=mCONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not setCONFIG_ACPI_EC=yCONFIG_ACPI_POWER=yCONFIG_ACPI_SYSTEM=y
# CONFIG_X86_PM_TIMER is not set
# CONFIG_ACPI_CONTAINER is not set
#
# APM (Advanced Power Management) BIOS Support
#
# CONFIG_APM is not set
#
# CPU Frequency scaling
#
# CONFIG_CPU_FREQ is not set
#
# Bus options (PCI, PCMCIA, EISA, MCA, ISA)
#CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GOMMCONFIG is not set
# CONFIG_PCI_GODIRECT is not setCONFIG_PCI_GOANY=yCONFIG_PCI_BIOS=yCONFIG_PCI_DIRECT=yCONFIG_PCI_MMCONFIG=y
# CONFIG_PCIEPORTBUS is not set
# CONFIG_PCI_MSI is not set
# CONFIG_PCI_LEGACY_PROC is not set
# CONFIG_PCI_DEBUG is not setCONFIG_ISA_DMA_API=yCONFIG_ISA=y
# CONFIG_EISA is not set
# CONFIG_MCA is not set
# CONFIG_SCx200 is not set
#
# PCCARD (PCMCIA/CardBus) support
#
# CONFIG_PCCARD is not set
#
# PCI Hotplug Support
#
# CONFIG_HOTPLUG_PCI is not set
#
# Executable file formats
#CONFIG_BINFMT_ELF=y
# CONFIG_BINFMT_AOUT is not set
# CONFIG_BINFMT_MISC is not set
#
# Networking
#CONFIG_NET=y
#
# Networking options
#CONFIG_PACKET=yCONFIG_PACKET_MMAP=yCONFIG_UNIX=yCONFIG_XFRM=yCONFIG_XFRM_USER=yCONFIG_NET_KEY=yCONFIG_INET=yCONFIG_IP_MULTICAST=yCONFIG_IP_ADVANCED_ROUTER=yCONFIG_ASK_IP_FIB_HASH=y
# CONFIG_IP_FIB_TRIE is not setCONFIG_IP_FIB_HASH=yCONFIG_IP_MULTIPLE_TABLES=y
# CONFIG_IP_ROUTE_FWMARK is not setCONFIG_IP_ROUTE_MULTIPATH=y
# CONFIG_IP_ROUTE_MULTIPATH_CACHED is not setCONFIG_IP_ROUTE_VERBOSE=yCONFIG_IP_PNP=yCONFIG_IP_PNP_DHCP=yCONFIG_IP_PNP_BOOTP=yCONFIG_IP_PNP_RARP=yCONFIG_NET_IPIP=yCONFIG_NET_IPGRE=yCONFIG_NET_IPGRE_BROADCAST=yCONFIG_IP_MROUTE=yCONFIG_IP_PIMSM_V1=yCONFIG_IP_PIMSM_V2=yCONFIG_ARPD=yCONFIG_SYN_COOKIES=yCONFIG_INET_AH=yCONFIG_INET_ESP=y
# CONFIG_INET_IPCOMP is not setCONFIG_INET_TUNNEL=yCONFIG_INET_DIAG=yCONFIG_INET_TCP_DIAG=y
# CONFIG_TCP_CONG_ADVANCED is not setCONFIG_TCP_CONG_BIC=y
#
# IP: Virtual Server Configuration
#
# CONFIG_IP_VS is not set
# CONFIG_IPV6 is not setCONFIG_NETFILTER=yCONFIG_NETFILTER_DEBUG=y
# CONFIG_NETFILTER_NETLINK is not set
#
# IP: Netfilter Configuration
#CONFIG_IP_NF_CONNTRACK=y
# CONFIG_IP_NF_CT_ACCT is not set
# CONFIG_IP_NF_CONNTRACK_MARK is not set
# CONFIG_IP_NF_CONNTRACK_EVENTS is not set
# CONFIG_IP_NF_CT_PROTO_SCTP is not setCONFIG_IP_NF_FTP=yCONFIG_IP_NF_IRC=y
# CONFIG_IP_NF_NETBIOS_NS is not set
# CONFIG_IP_NF_TFTP is not set
# CONFIG_IP_NF_AMANDA is not set
# CONFIG_IP_NF_PPTP is not setCONFIG_IP_NF_QUEUE=yCONFIG_IP_NF_IPTABLES=yCONFIG_IP_NF_MATCH_LIMIT=y
# CONFIG_IP_NF_MATCH_IPRANGE is not setCONFIG_IP_NF_MATCH_MAC=yCONFIG_IP_NF_MATCH_PKTTYPE=yCONFIG_IP_NF_MATCH_MARK=yCONFIG_IP_NF_MATCH_MULTIPORT=yCONFIG_IP_NF_MATCH_TOS=y
# CONFIG_IP_NF_MATCH_RECENT is not setCONFIG_IP_NF_MATCH_ECN=yCONFIG_IP_NF_MATCH_DSCP=yCONFIG_IP_NF_MATCH_AH_ESP=yCONFIG_IP_NF_MATCH_LENGTH=yCONFIG_IP_NF_MATCH_TTL=yCONFIG_IP_NF_MATCH_TCPMSS=yCONFIG_IP_NF_MATCH_HELPER=yCONFIG_IP_NF_MATCH_STATE=yCONFIG_IP_NF_MATCH_CONNTRACK=yCONFIG_IP_NF_MATCH_OWNER=y
# CONFIG_IP_NF_MATCH_ADDRTYPE is not set
# CONFIG_IP_NF_MATCH_REALM is not set
# CONFIG_IP_NF_MATCH_SCTP is not set
# CONFIG_IP_NF_MATCH_DCCP is not set
# CONFIG_IP_NF_MATCH_COMMENT is not set
# CONFIG_IP_NF_MATCH_HASHLIMIT is not set
# CONFIG_IP_NF_MATCH_STRING is not setCONFIG_IP_NF_FILTER=yCONFIG_IP_NF_TARGET_REJECT=y
# CONFIG_IP_NF_TARGET_LOG is not set
# CONFIG_IP_NF_TARGET_ULOG is not set
# CONFIG_IP_NF_TARGET_TCPMSS is not set
# CONFIG_IP_NF_TARGET_NFQUEUE is not setCONFIG_IP_NF_NAT=yCONFIG_IP_NF_NAT_NEEDED=yCONFIG_IP_NF_TARGET_MASQUERADE=yCONFIG_IP_NF_TARGET_REDIRECT=y
# CONFIG_IP_NF_TARGET_NETMAP is not set
# CONFIG_IP_NF_TARGET_SAME is not setCONFIG_IP_NF_NAT_SNMP_BASIC=yCONFIG_IP_NF_NAT_IRC=yCONFIG_IP_NF_NAT_FTP=yCONFIG_IP_NF_MANGLE=yCONFIG_IP_NF_TARGET_TOS=y
# CONFIG_IP_NF_TARGET_ECN is not set
# CONFIG_IP_NF_TARGET_DSCP is not set
# CONFIG_IP_NF_TARGET_MARK is not set
# CONFIG_IP_NF_TARGET_CLASSIFY is not set
# CONFIG_IP_NF_TARGET_TTL is not set
# CONFIG_IP_NF_RAW is not set
# CONFIG_IP_NF_ARPTABLES is not set
#
# DCCP Configuration (EXPERIMENTAL)
#
# CONFIG_IP_DCCP is not set
#
# SCTP Configuration (EXPERIMENTAL)
#
# CONFIG_IP_SCTP is not set
# CONFIG_ATM is not set
# CONFIG_BRIDGE is not set
# CONFIG_VLAN_8021Q is not set
# CONFIG_DECNET is not set
# CONFIG_LLC2 is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_NET_DIVERT is not set
# CONFIG_ECONET is not set
# CONFIG_WAN_ROUTER is not setCONFIG_NET_SCHED=yCONFIG_NET_SCH_CLK_JIFFIES=y
# CONFIG_NET_SCH_CLK_GETTIMEOFDAY is not set
# CONFIG_NET_SCH_CLK_CPU is not set
# CONFIG_NET_SCH_CBQ is not set
# CONFIG_NET_SCH_HTB is not set
# CONFIG_NET_SCH_HFSC is not setCONFIG_NET_SCH_PRIO=y
# CONFIG_NET_SCH_RED is not set
# CONFIG_NET_SCH_SFQ is not set
# CONFIG_NET_SCH_TEQL is not set
# CONFIG_NET_SCH_TBF is not set
# CONFIG_NET_SCH_GRED is not set
# CONFIG_NET_SCH_DSMARK is not set
# CONFIG_NET_SCH_NETEM is not set
# CONFIG_NET_SCH_INGRESS is not set
# CONFIG_NET_QOS is not set
# CONFIG_NET_CLS is not set
# CONFIG_NET_CLS_ROUTE is not set
#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
# CONFIG_HAMRADIO is not set
# CONFIG_IRDA is not set
# CONFIG_BT is not set
# CONFIG_IEEE80211 is not set
#
# Device Drivers
#
#
# Generic Driver Options
#CONFIG_STANDALONE=yCONFIG_PREVENT_FIRMWARE_BUILD=y
# CONFIG_FW_LOADER is not set
# CONFIG_DEBUG_DRIVER is not set
#
# Connector - unified userspace <-> kernelspace linker #
# CONFIG_CONNECTOR is not set
#
# Memory Technology Devices (MTD)
#
# CONFIG_MTD is not set
#
# Parallel port support
#
# CONFIG_PARPORT is not set
#
# Plug and Play support
#
# CONFIG_PNP is not set
#
# Block devices
#CONFIG_BLK_DEV_FD=y
# CONFIG_BLK_DEV_XD is not set
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_UMEM is not set
# CONFIG_BLK_DEV_COW_COMMON is not setCONFIG_BLK_DEV_LOOP=y
# CONFIG_BLK_DEV_CRYPTOLOOP is not setCONFIG_BLK_DEV_NBD=y
# CONFIG_BLK_DEV_SX8 is not setCONFIG_BLK_DEV_RAM=yCONFIG_BLK_DEV_RAM_COUNT=16CONFIG_BLK_DEV_RAM_SIZE=4096CONFIG_BLK_DEV_INITRD=y
# CONFIG_LBD is not set
# CONFIG_CDROM_PKTCDVD is not set
#
# IO Schedulers
#CONFIG_IOSCHED_NOOP=yCONFIG_IOSCHED_AS=yCONFIG_IOSCHED_DEADLINE=yCONFIG_IOSCHED_CFQ=y
# CONFIG_ATA_OVER_ETH is not set
#
# ATA/ATAPI/MFM/RLL support
#CONFIG_IDE=yCONFIG_BLK_DEV_IDE=y
#
# Please see Documentation/ide.txt for help/info on IDE drives #
# CONFIG_BLK_DEV_IDE_SATA is not set
# CONFIG_BLK_DEV_HD_IDE is not set CONFIG_BLK_DEV_IDEDISK=y
# CONFIG_IDEDISK_MULTI_MODE is not set CONFIG_BLK_DEV_IDECD=y
# CONFIG_BLK_DEV_IDETAPE is not set CONFIG_BLK_DEV_IDEFLOPPY=y
# CONFIG_BLK_DEV_IDESCSI is not set
# CONFIG_IDE_TASK_IOCTL is not set
#
# IDE chipset support/bugfixes
#CONFIG_IDE_GENERIC=y
# CONFIG_BLK_DEV_CMD640 is not set
# CONFIG_BLK_DEV_IDEPCI is not set
# CONFIG_IDE_ARM is not set
# CONFIG_IDE_CHIPSETS is not set
# CONFIG_BLK_DEV_IDEDMA is not set
# CONFIG_IDEDMA_AUTO is not set
# CONFIG_BLK_DEV_HD is not set
#
# SCSI device support
#
# CONFIG_RAID_ATTRS is not setCONFIG_SCSI=yCONFIG_SCSI_PROC_FS=y
#
# SCSI support type (disk, tape, CD-ROM)
#CONFIG_BLK_DEV_SD=yCONFIG_CHR_DEV_ST=y
# CONFIG_CHR_DEV_OSST is not setCONFIG_BLK_DEV_SR=y
# CONFIG_BLK_DEV_SR_VENDOR is not set
# CONFIG_CHR_DEV_SG is not set
# CONFIG_CHR_DEV_SCH is not set
#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs #CONFIG_SCSI_MULTI_LUN=yCONFIG_SCSI_CONSTANTS=y
# CONFIG_SCSI_LOGGING is not set
#
# SCSI Transport Attributes
#CONFIG_SCSI_SPI_ATTRS=y
# CONFIG_SCSI_FC_ATTRS is not set
# CONFIG_SCSI_ISCSI_ATTRS is not set
# CONFIG_SCSI_SAS_ATTRS is not set
#
# SCSI low-level drivers
#
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_3W_9XXX is not set
# CONFIG_SCSI_7000FASST is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AHA152X is not set
# CONFIG_SCSI_AHA1542 is not set
# CONFIG_SCSI_AACRAID is not setCONFIG_SCSI_AIC7XXX=yCONFIG_AIC7XXX_CMDS_PER_DEVICE=32CONFIG_AIC7XXX_RESET_DELAY_MS=15000CONFIG_AIC7XXX_DEBUG_ENABLE=yCONFIG_AIC7XXX_DEBUG_MASK=0CONFIG_AIC7XXX_REG_PRETTY_PRINT=y
# CONFIG_SCSI_AIC7XXX_OLD is not set
# CONFIG_SCSI_AIC79XX is not set
# CONFIG_SCSI_DPT_I2O is not set
# CONFIG_SCSI_IN2000 is not set
# CONFIG_MEGARAID_NEWGEN is not set
# CONFIG_MEGARAID_LEGACY is not set
# CONFIG_MEGARAID_SAS is not set
# CONFIG_SCSI_SATA is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_DTC3280 is not set
# CONFIG_SCSI_EATA is not set
# CONFIG_SCSI_FUTURE_DOMAIN is not set
# CONFIG_SCSI_GDTH is not set
# CONFIG_SCSI_GENERIC_NCR5380 is not set
# CONFIG_SCSI_GENERIC_NCR5380_MMIO is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_NCR53C406A is not set
# CONFIG_SCSI_SYM53C8XX_2 is not set
# CONFIG_SCSI_IPR is not set
# CONFIG_SCSI_PAS16 is not set
# CONFIG_SCSI_PSI240I is not set
# CONFIG_SCSI_QLOGIC_FAS is not set
# CONFIG_SCSI_QLOGIC_FC is not set
# CONFIG_SCSI_QLOGIC_1280 is not setCONFIG_SCSI_QLA2XXX=y
# CONFIG_SCSI_QLA21XX is not set
# CONFIG_SCSI_QLA22XX is not set
# CONFIG_SCSI_QLA2300 is not set
# CONFIG_SCSI_QLA2322 is not set
# CONFIG_SCSI_QLA6312 is not set
# CONFIG_SCSI_QLA24XX is not set
# CONFIG_SCSI_LPFC is not set
# CONFIG_SCSI_SYM53C416 is not set
# CONFIG_SCSI_DC395x is not set
# CONFIG_SCSI_DC390T is not set
# CONFIG_SCSI_T128 is not set
# CONFIG_SCSI_U14_34F is not set
# CONFIG_SCSI_ULTRASTOR is not set
# CONFIG_SCSI_NSP32 is not set
# CONFIG_SCSI_DEBUG is not set
#
# Old CD-ROM drivers (not SCSI, not IDE)
#
# CONFIG_CD_NO_IDESCSI is not set
#
# Multi-device support (RAID and LVM)
#
# CONFIG_MD is not set
#
# Fusion MPT device support
#
# CONFIG_FUSION is not set
# CONFIG_FUSION_SPI is not set
# CONFIG_FUSION_FC is not set
# CONFIG_FUSION_SAS is not set
#
# IEEE 1394 (FireWire) support
#
# CONFIG_IEEE1394 is not set
#
# I2O device support
#
# CONFIG_I2O is not set
#
# Network device support
#CONFIG_NETDEVICES=yCONFIG_DUMMY=y
# CONFIG_BONDING is not set
# CONFIG_EQUALIZER is not set
# CONFIG_TUN is not set
#
# ARCnet devices
#
# CONFIG_ARCNET is not set
#
# PHY device support
#
#
# Ethernet (10 or 100Mbit)
#
# CONFIG_NET_ETHERNET is not set
#
# Ethernet (1000 Mbit)
#
# CONFIG_ACENIC is not set
# CONFIG_DL2K is not set
# CONFIG_E1000 is not set
# CONFIG_NS83820 is not set
# CONFIG_HAMACHI is not set
# CONFIG_YELLOWFIN is not set
# CONFIG_R8169 is not set
# CONFIG_SIS190 is not set
# CONFIG_SKGE is not set
# CONFIG_SK98LIN is not setCONFIG_TIGON3=y
# CONFIG_BNX2 is not set
#
# Ethernet (10000 Mbit)
#
# CONFIG_CHELSIO_T1 is not set
# CONFIG_IXGB is not set
# CONFIG_S2IO is not set
#
# Token Ring devices
#
# CONFIG_TR is not set
#
# Wireless LAN (non-hamradio)
#
# CONFIG_NET_RADIO is not set
#
# Wan interfaces
#
# CONFIG_WAN is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not set
# CONFIG_NET_FC is not set
# CONFIG_SHAPER is not set
# CONFIG_NETCONSOLE is not set
# CONFIG_NETPOLL is not set
# CONFIG_NET_POLL_CONTROLLER is not set
#
# ISDN subsystem
#
# CONFIG_ISDN is not set
#
# Telephony Support
#
# CONFIG_PHONE is not set
#
# Input device support
#CONFIG_INPUT=y
#
# Userland interfaces
#CONFIG_INPUT_MOUSEDEV=yCONFIG_INPUT_MOUSEDEV_PSAUX=yCONFIG_INPUT_MOUSEDEV_SCREEN_X=1024CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
# CONFIG_INPUT_JOYDEV is not set
# CONFIG_INPUT_TSDEV is not set
# CONFIG_INPUT_EVDEV is not set
# CONFIG_INPUT_EVBUG is not set
#
# Input Device Drivers
#CONFIG_INPUT_KEYBOARD=yCONFIG_KEYBOARD_ATKBD=y
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_LKKBD is not set
# CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_KEYBOARD_NEWTON is not setCONFIG_INPUT_MOUSE=yCONFIG_MOUSE_PS2=y
# CONFIG_MOUSE_SERIAL is not set
# CONFIG_MOUSE_INPORT is not setCONFIG_MOUSE_LOGIBM=y
# CONFIG_MOUSE_PC110PAD is not set
# CONFIG_MOUSE_VSXXXAA is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not set
#
# Hardware I/O ports
#CONFIG_SERIO=yCONFIG_SERIO_I8042=yCONFIG_SERIO_SERPORT=y
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_PCIPS2 is not setCONFIG_SERIO_LIBPS2=y
# CONFIG_SERIO_RAW is not set
# CONFIG_GAMEPORT is not set
#
# Character devices
#CONFIG_VT=yCONFIG_VT_CONSOLE=yCONFIG_HW_CONSOLE=y
# CONFIG_SERIAL_NONSTANDARD is not set
#
# Serial drivers
#CONFIG_SERIAL_8250=yCONFIG_SERIAL_8250_CONSOLE=y
# CONFIG_SERIAL_8250_ACPI is not setCONFIG_SERIAL_8250_NR_UARTS=4
# CONFIG_SERIAL_8250_EXTENDED is not set
#
# Non-8250 serial port support
#CONFIG_SERIAL_CORE=yCONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_SERIAL_JSM is not setCONFIG_UNIX98_PTYS=yCONFIG_LEGACY_PTYS=yCONFIG_LEGACY_PTY_COUNT=256
#
# IPMI
#
# CONFIG_IPMI_HANDLER is not set
#
# Watchdog Cards
#
# CONFIG_WATCHDOG is not set
# CONFIG_HW_RANDOM is not set
# CONFIG_NVRAM is not setCONFIG_RTC=y
# CONFIG_RTC_HISTOGRAM is not setCONFIG_BLOCKER=yCONFIG_LPPTEST=y
# CONFIG_DTLK is not set
# CONFIG_R3964 is not set
# CONFIG_APPLICOM is not set
# CONFIG_SONYPI is not set
#
# Ftape, the floppy tape device driver
#
# CONFIG_AGP is not set
# CONFIG_DRM is not set
# CONFIG_MWAVE is not setCONFIG_RAW_DRIVER=y
# CONFIG_HPET is not setCONFIG_MAX_RAW_DEVS=256
# CONFIG_HANGCHECK_TIMER is not set
#
# TPM devices
#
# CONFIG_TCG_TPM is not set
#
# I2C support
#
# CONFIG_I2C is not set
#
# Dallas's 1-wire bus
#
# CONFIG_W1 is not set
#
# Hardware Monitoring support
#CONFIG_HWMON=y
# CONFIG_HWMON_VID is not set
# CONFIG_SENSORS_HDAPS is not set
# CONFIG_HWMON_DEBUG_CHIP is not set
#
# Misc devices
#
# CONFIG_IBM_ASM is not set
#
# Multimedia Capabilities Port drivers
#
#
# Multimedia devices
#
# CONFIG_VIDEO_DEV is not set
#
# Digital Video Broadcasting Devices
#
# CONFIG_DVB is not set
#
# Graphics support
#
# CONFIG_FB is not set
# CONFIG_VIDEO_SELECT is not set
#
# Console display driver support
#CONFIG_VGA_CONSOLE=y
# CONFIG_MDA_CONSOLE is not setCONFIG_DUMMY_CONSOLE=y
#
# Sound
#
# CONFIG_SOUND is not set
#
# USB support
#CONFIG_USB_ARCH_HAS_HCD=yCONFIG_USB_ARCH_HAS_OHCI=y
# CONFIG_USB is not set
#
# USB Gadget Support
#
# CONFIG_USB_GADGET is not set
#
# MMC/SD Card support
#
# CONFIG_MMC is not set
#
# InfiniBand support
#
# CONFIG_INFINIBAND is not set
#
# SN Devices
#
#
# File systems
#CONFIG_EXT2_FS=yCONFIG_EXT2_FS_XATTR=y
# CONFIG_EXT2_FS_POSIX_ACL is not set
# CONFIG_EXT2_FS_SECURITY is not set
# CONFIG_EXT2_FS_XIP is not setCONFIG_EXT3_FS=yCONFIG_EXT3_FS_XATTR=y
# CONFIG_EXT3_FS_POSIX_ACL is not set
# CONFIG_EXT3_FS_SECURITY is not setCONFIG_JBD=y
# CONFIG_JBD_DEBUG is not setCONFIG_FS_MBCACHE=y
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
# CONFIG_FS_POSIX_ACL is not set
# CONFIG_XFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not setCONFIG_INOTIFY=y
# CONFIG_QUOTA is not setCONFIG_DNOTIFY=y
# CONFIG_AUTOFS_FS is not setCONFIG_AUTOFS4_FS=y
# CONFIG_FUSE_FS is not set
#
# CD-ROM/DVD Filesystems
#CONFIG_ISO9660_FS=yCONFIG_JOLIET=yCONFIG_ZISOFS=yCONFIG_ZISOFS_FS=yCONFIG_UDF_FS=yCONFIG_UDF_NLS=y
#
# DOS/FAT/NT Filesystems
#
# CONFIG_MSDOS_FS is not set
# CONFIG_VFAT_FS is not set
# CONFIG_NTFS_FS is not set
#
# Pseudo filesystems
#CONFIG_PROC_FS=yCONFIG_PROC_KCORE=yCONFIG_SYSFS=yCONFIG_TMPFS=yCONFIG_HUGETLBFS=yCONFIG_HUGETLB_PAGE=yCONFIG_RAMFS=y
# CONFIG_RELAYFS_FS is not set
#
# Miscellaneous filesystems
#
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_HFSPLUS_FS is not set
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set
# CONFIG_CRAMFS is not set
# CONFIG_VXFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set
#
# Network File Systems
#CONFIG_NFS_FS=y
# CONFIG_NFS_V3 is not set
# CONFIG_NFS_V4 is not set
# CONFIG_NFS_DIRECTIO is not setCONFIG_NFSD=y
# CONFIG_NFSD_V3 is not set
# CONFIG_NFSD_TCP is not set
# CONFIG_ROOT_NFS is not setCONFIG_LOCKD=yCONFIG_EXPORTFS=yCONFIG_NFS_COMMON=yCONFIG_SUNRPC=y
# CONFIG_RPCSEC_GSS_KRB5 is not set
# CONFIG_RPCSEC_GSS_SPKM3 is not set
# CONFIG_SMB_FS is not set
# CONFIG_CIFS is not set
# CONFIG_NCP_FS is not set
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set
# CONFIG_9P_FS is not set
#
# Partition Types
#
# CONFIG_PARTITION_ADVANCED is not setCONFIG_MSDOS_PARTITION=y
#
# Native Language Support
#CONFIG_NLS=yCONFIG_NLS_DEFAULT="iso8859-1"
# CONFIG_NLS_CODEPAGE_437 is not set
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not set
# CONFIG_NLS_CODEPAGE_850 is not set
# CONFIG_NLS_CODEPAGE_852 is not set
# CONFIG_NLS_CODEPAGE_855 is not set
# CONFIG_NLS_CODEPAGE_857 is not set
# CONFIG_NLS_CODEPAGE_860 is not set
# CONFIG_NLS_CODEPAGE_861 is not set
# CONFIG_NLS_CODEPAGE_862 is not set
# CONFIG_NLS_CODEPAGE_863 is not set
# CONFIG_NLS_CODEPAGE_864 is not set
# CONFIG_NLS_CODEPAGE_865 is not set
# CONFIG_NLS_CODEPAGE_866 is not set
# CONFIG_NLS_CODEPAGE_869 is not set
# CONFIG_NLS_CODEPAGE_936 is not set
# CONFIG_NLS_CODEPAGE_950 is not set
# CONFIG_NLS_CODEPAGE_932 is not set
# CONFIG_NLS_CODEPAGE_949 is not set
# CONFIG_NLS_CODEPAGE_874 is not set
# CONFIG_NLS_ISO8859_8 is not set
# CONFIG_NLS_CODEPAGE_1250 is not set
# CONFIG_NLS_CODEPAGE_1251 is not set
# CONFIG_NLS_ASCII is not set
# CONFIG_NLS_ISO8859_1 is not set
# CONFIG_NLS_ISO8859_2 is not set
# CONFIG_NLS_ISO8859_3 is not set
# CONFIG_NLS_ISO8859_4 is not set
# CONFIG_NLS_ISO8859_5 is not set
# CONFIG_NLS_ISO8859_6 is not set
# CONFIG_NLS_ISO8859_7 is not set
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_ISO8859_13 is not set
# CONFIG_NLS_ISO8859_14 is not set
# CONFIG_NLS_ISO8859_15 is not set
# CONFIG_NLS_KOI8_R is not set
# CONFIG_NLS_KOI8_U is not set
# CONFIG_NLS_UTF8 is not set
#
# Profiling support
#CONFIG_PROFILING=yCONFIG_OPROFILE=yCONFIG_PROFILE_NMI=y
#
# Kernel hacking
#
# CONFIG_PRINTK_TIME is not setCONFIG_PRINTK_IGNORE_LOGLEVEL=yCONFIG_DEBUG_KERNEL=yCONFIG_MAGIC_SYSRQ=yCONFIG_LOG_BUF_SHIFT=15CONFIG_DETECT_SOFTLOCKUP=y
# CONFIG_SCHEDSTATS is not set
# CONFIG_DEBUG_SLAB is not setCONFIG_DEBUG_PREEMPT=yCONFIG_DEBUG_IRQ_FLAGS=y
# CONFIG_WAKEUP_TIMING is not setCONFIG_PREEMPT_TRACE=y
# CONFIG_CRITICAL_PREEMPT_TIMING is not set
# CONFIG_CRITICAL_IRQSOFF_TIMING is not setCONFIG_DEBUG_DEADLOCKS=y
# CONFIG_DEBUG_RT_LOCKING_MODE is not set
# CONFIG_DEBUG_KOBJECT is not set
# CONFIG_DEBUG_HIGHMEM is not setCONFIG_DEBUG_BUGVERBOSE=y
# CONFIG_DEBUG_INFO is not set
# CONFIG_DEBUG_FS is not set
# CONFIG_DEBUG_VM is not set
# CONFIG_RCU_TORTURE_TEST is not set
# CONFIG_USE_FRAME_POINTER is not setCONFIG_EARLY_PRINTK=y
# CONFIG_DEBUG_STACKOVERFLOW is not set
# CONFIG_KPROBES is not set
# CONFIG_DEBUG_STACK_USAGE is not set
# CONFIG_DEBUG_PAGEALLOC is not set
# CONFIG_4KSTACKS is not setCONFIG_X86_FIND_SMP_CONFIG=yCONFIG_X86_MPPARSE=y
#
# Security options
#
# CONFIG_KEYS is not set
# CONFIG_SECURITY is not set
#
# Cryptographic options
#CONFIG_CRYPTO=yCONFIG_CRYPTO_HMAC=yCONFIG_CRYPTO_NULL=yCONFIG_CRYPTO_MD4=yCONFIG_CRYPTO_MD5=yCONFIG_CRYPTO_SHA1=yCONFIG_CRYPTO_SHA256=y
# CONFIG_CRYPTO_SHA512 is not set
# CONFIG_CRYPTO_WP512 is not set
# CONFIG_CRYPTO_TGR192 is not setCONFIG_CRYPTO_DES=yCONFIG_CRYPTO_BLOWFISH=yCONFIG_CRYPTO_TWOFISH=yCONFIG_CRYPTO_SERPENT=y
# CONFIG_CRYPTO_AES_586 is not set
# CONFIG_CRYPTO_CAST5 is not set
# CONFIG_CRYPTO_CAST6 is not set
# CONFIG_CRYPTO_TEA is not set
# CONFIG_CRYPTO_ARC4 is not set
# CONFIG_CRYPTO_KHAZAD is not set
# CONFIG_CRYPTO_ANUBIS is not set
# CONFIG_CRYPTO_DEFLATE is not set
# CONFIG_CRYPTO_MICHAEL_MIC is not set
# CONFIG_CRYPTO_CRC32C is not setCONFIG_CRYPTO_TEST=y
#
# Hardware crypto devices
#
# CONFIG_CRYPTO_DEV_PADLOCK is not set
#
# Library routines
#
# CONFIG_CRC_CCITT is not set
# CONFIG_CRC16 is not setCONFIG_CRC32=y
# CONFIG_LIBCRC32C is not setCONFIG_ZLIB_INFLATE=yCONFIG_GENERIC_HARDIRQS=yCONFIG_GENERIC_IRQ_PROBE=yCONFIG_GENERIC_PENDING_IRQ=yCONFIG_X86_SMP=yCONFIG_X86_HT=yCONFIG_X86_BIOS_REBOOT=yCONFIG_X86_TRAMPOLINE=yCONFIG_PC=y
Hi,
I also get this sometimes when running the same test
-Dinakar
BUG: Unable to handle kernel NULL pointer dereference at virtual address 00000286 printing eip: c012220c *pde = 00000000 Oops: 0002 [#1] PREEMPT SMP Modules linked in: CPU: 3 EIP: 0060:[<c012220c>] Not tainted VLI EFLAGS: 00010287 (2.6.14-rt13)
EIP is at run_timer_softirq+0x174/0x385
eax: 00000282 ebx: 00000282 ecx: f63bde54 edx: f7f33f70
esi: c3070fe8 edi: 00000000 ebp: c3070fe0 esp: f7f33f58
ds: 007b es: 007b ss: 0068 preempt: 00000001
Process softirq-timer/3 (pid: 31, threadinfo=f7f32000 task=f7f268d0 stack_left=7972 worst_left=-1)
Stack: c3070fe0 c3071840 0000000f f7f32000 c307100c f7f32000 f63bde54 f63c1e54
0000007b f7f32000 f7f32000 c04a3380 f7f32000 c011e70a c0450788 00000001
f7f33fa8 fffffffd c04a3380 00000002 00000001 f7f32000 f7f4bedc c3070f8c
Call Trace:
[<c011e70a>] ksoftirqd+0xea/0x160 (56)
[<c011e620>] ksoftirqd+0x0/0x160 (44)
[<c012cda1>] kthread+0xa3/0xcd (4)
[<c012ccfe>] kthread+0x0/0xcd (28)
[<c0100ebd>] kernel_thread_helper+0x5/0xb (16)
Code: 04 8b 44 24 18 8d 7c 24 18 89 79 04 89 4c 24 18 89 50 04 89 02 89 5b 04 89 5e 60 eb 7f 8b 59 14 8b 79 10 89 4d 28 8b 51
<0>Fatal exception: panic in 5 secondsQuoted 9 lines · Dinakar Guniguntala
Hi,
I was testing PI support in the -rt tree (-rt13) when I hit the BUG below. I am using the BULL/Montavista glibc patches. However I would think this can be reproduced using just plain FUTEX_WAKE/WAIT_ROBUST APIs as well, though I havent tried. I can send out the test code if anybody is interested. I have attached the .config below.
If I make the lock in the timer_base_s struct a raw spinlock this
BUG goes away.
Dave
Quoted 1,364 lines
-Dinakar
------------------------------------------------------------------------
testpi-2/1138[CPU#1]: BUG in
FREE_WAITERatkernel/rt.c:1368[<c011a180>] __WARN_ON+0x60/0x80 (8) [<c037c9be>] __down_mutex+0x4fe/0x7fd (48) [<c01330d9>] pi_setprio+0xa1/0x642 (104) [<c0122196>] lock_timer_base+0x19/0x33 (8) [<c037edbd>] _spin_lock_irqsave+0x1d/0x46 (12) [<c0122196>] lock_timer_base+0x19/0x33 (8) [<c0122196>] lock_timer_base+0x19/0x33 (16) [<c01221e8>] __mod_timer+0x38/0xdf (16) [<c013aa7b>] sub_preempt_count+0x1a/0x1e (12) [<c037e71d>] __down_interruptible+0x923/0xb2b (20) [<c013c1ed>] futex_wait_robust+0x151/0x25b (16) [<c037f3f4>] _raw_spin_unlock+0x12/0x2c (8) [<c01344d6>] process_timeout+0x0/0x9 (36) [<c013c1ed>] futex_wait_robust+0x151/0x25b (64) [<c013c1ed>] futex_wait_robust+0x151/0x25b (8) [<c013c1ed>] futex_wait_robust+0x151/0x25b (12) [<c0137baa>] down_futex+0x70/0x99 (12) [<c013c1ed>] futex_wait_robust+0x151/0x25b (12) [<c013c1ed>] futex_wait_robust+0x151/0x25b (20) [<c013a91e>] add_preempt_count_ti+0x1e/0xc6 (100) [<c037f3f4>] _raw_spin_unlock+0x12/0x2c (44) [<c013c98e>] do_futex+0x96/0xfc (24) [<c013caec>] sys_futex+0xf8/0x104 (40) [<c0102ce7>] sysenter_past_esp+0x54/0x75 (60) ---------------------------| preempt count: 00000001 ]
| 1-level deep critical section nesting:
----------------------------------------
.. [<c013a9e0>] ....add_preempt_count+0x1a/0x1e
.....[<00000000>] .. ( <=stext+0x3feffd68/0x8)------------------------------
| showing all locks held by: | (testpi-2/1138 [f6d6c7b0, 69]):
------------------------------#001: [
c3078fe0] {&base->t_base.lock}
... acquired at:lock_timer_base+0x19/0x33testpi-2/1140[CPU#3]: BUG in
FREE_WAITERatkernel/rt.c:1368[<c011a180>] __WARN_ON+0x60/0x80 (8) [<c037c9be>] __down_mutex+0x4fe/0x7fd (48) [<c01330d9>] pi_setprio+0xa1/0x642 (104) [<c0122196>] lock_timer_base+0x19/0x33 (8) [<c037edbd>] _spin_lock_irqsave+0x1d/0x46 (12) [<c0122196>] lock_timer_base+0x19/0x33 (8) [<c0122196>] lock_timer_base+0x19/0x33 (16) [<c01221e8>] __mod_timer+0x38/0xdf (16) [<c013aa7b>] sub_preempt_count+0x1a/0x1e (12) [<c037e71d>] __down_interruptible+0x923/0xb2b (20) [<c013c1ed>] futex_wait_robust+0x151/0x25b (16) [<c037f3f4>] _raw_spin_unlock+0x12/0x2c (8) [<c01344d6>] process_timeout+0x0/0x9 (36) [<c013c1ed>] futex_wait_robust+0x151/0x25b (64) [<c013c1ed>] futex_wait_robust+0x151/0x25b (8) [<c013c1ed>] futex_wait_robust+0x151/0x25b (12) [<c0137baa>] down_futex+0x70/0x99 (12) [<c013c1ed>] futex_wait_robust+0x151/0x25b (12) [<c013c1ed>] futex_wait_robust+0x151/0x25b (20) [<c037f3f4>] _raw_spin_unlock+0x12/0x2c (76) [<c013c98e>] do_futex+0x96/0xfc (92) [<c013caec>] sys_futex+0xf8/0x104 (40) [<c0102ce7>] sysenter_past_esp+0x54/0x75 (60) ---------------------------| preempt count: 00000001 ]
| 1-level deep critical section nesting:
----------------------------------------
.. [<c013a9e0>] ....add_preempt_count+0x1a/0x1e
.....[<00000000>] .. ( <=stext+0x3feffd68/0x8)------------------------------
| showing all locks held by: | (testpi-2/1140 [f7d980a0, 0]):
------------------------------#001: [
c3098fe0] {&base->t_base.lock}
... acquired at:lock_timer_base+0x19/0x33testpi-2/1139[CPU#0]: BUG in
FREE_WAITERatkernel/rt.c:1368NMI watchdog detected lockup on CPU#1 (5000/5000)[<c011a180>] __WARN_ON+0x60/0x80 (8) [<c037c9be>] __down_mutex+0x4fe/0x7fd (48) [<c013a91e>] add_preempt_count_ti+0x1e/0xc6 (104) [<c0122196>] lock_timer_base+0x19/0x33 (8) [<c037edbd>] _spin_lock_irqsave+0x1d/0x46 (12) [<c0122196>] lock_timer_base+0x19/0x33 (8) [<c0122196>] lock_timer_base+0x19/0x33 (16) [<c01221e8>] __mod_timer+0x38/0xdf (16) [<c013aa7b>] sub_preempt_count+0x1a/0x1e (12) [<c037e71d>] __down_interruptible+0x923/0xb2b (20) [<c013c1ed>] futex_wait_robust+0x151/0x25b (16) [<c037f3f4>] _raw_spin_unlock+0x12/0x2c (8) [<c01344d6>] process_timeout+0x0/0x9 (36) [<c013c1ed>] futex_wait_robust+0x151/0x25b (64) [<c013c1ed>] futex_wait_robust+0x151/0x25b (8) [<c013c1ed>] futex_wait_robust+0x151/0x25b (12) [<c0137baa>] down_futex+0x70/0x99 (12) [<c013c1ed>] futex_wait_robust+0x151/0x25b (12) [<c013c1ed>] futex_wait_robust+0x151/0x25b (20) [<c037f3f4>] _raw_spin_unlock+0x12/0x2c (76) [<c037ec7d>] __lock_text_start+0x1d/0x41 (24) [<c013c98e>] do_futex+0x96/0xfc (68) [<c013caec>] sys_futex+0xf8/0x104 (40) [<c0102ce7>] sysenter_past_esp+0x54/0x75 (60) ---------------------------| preempt count: 00000001 ]
| 1-level deep critical section nesting:
----------------------------------------
.. [<c013a9e0>] ....add_preempt_count+0x1a/0x1e
.....[<00000000>] .. ( <=stext+0x3feffd68/0x8)------------------------------
| showing all locks held by: | (testpi-2/1139 [f6c347b0, 59]):
------------------------------#00 [
c3068fe01: ] {&base->t_base.lock}
..[. acquired at:lock_timer_base+0x19/0x33testpi-2/1139[CPU#2]: BUG in
FREE_WAITERatkernel/rt.c:1368[<c011a180>] __WARN_ON+0x60/0x80 (8) [<c037c9be>] __down_mutex+0x4fe/0x7fd (48) [<c037f3f4>] _raw_spin_unlock+0x12/0x2c (100) [<c0122238>] __mod_timer+0x88/0xdf (12) [<c037ec7d>] __lock_text_start+0x1d/0x41 (12) [<c0122238>] __mod_timer+0x88/0xdf (8) [<c0122238>] __mod_timer+0x88/0xdf (16) [<c013aa7b>] sub_preempt_count+0x1a/0x1e (12) [<c037e71d>] __down_interruptible+0x923/0xb2b (20) [<c013c1ed>] futex_wait_robust+0x151/0x25b (16) [<c037f3f4>] _raw_spin_unlock+0x12/0x2c (8) [<c01344d6>] process_timeout+0x0/0x9 (36) [<c013c1ed>] futex_wait_robust+0x151/0x25b (64) [<c013c1ed>] futex_wait_robust+0x151/0x25b (8) [<c013c1ed>] futex_wait_robust+0x151/0x25b (12) [<c0137baa>] down_futex+0x70/0x99 (12) [<c013c1ed>] futex_wait_robust+0x151/0x25b (12) [<c013c1ed>] futex_wait_robust+0x151/0x25b (20) [<c037f3f4>] _raw_spin_unlock+0x12/0x2c (76) [<c037ec7d>] __lock_text_start+0x1d/0x41 (24) [<c013c98e>] do_futex+0x96/0xfc (68) [<c013caec>] sys_futex+0xf8/0x104 (40) [<c0102ce7>] sysenter_past_esp+0x54/0x75 (60) ---------------------------| preempt count: 00000001 ]
| 1-level deep critical section nesting:
----------------------------------------
.. [<c013a9e0>] ....add_preempt_count+0x1a/0x1e
.....[<00000000>] .. ( <=stext+0x3feffd68/0x8)------------------------------
| showing all locks held by: | (testpi-2/1139 [f6c347b0, 59]):
------------------------------#001: [
c3088fe0] {&base->t_base.lock}
... acquired at:__mod_timer+0x88/0xdfPid: 14, comm: softirq-timer/1
EIP: 0060:[<c037f3af>] CPU: 1
EIP is at_raw_spin_lock+0x19/0x25
EFLAGS: 00000086 Not tainted (2.6.14-ray-rt1)
EAX:f7f26830EBX:c03e4e0cECX: 00000001 EDX:f7f26830
ESI:c3078fe0EDI: 00000002 EBP:f7f26830DS: 007b ES: 007b
CR0:8005003bCR2:b5fb8dccCR3:35d67000CR4:000006d0[<c037c862>] __down_mutex+0x3a2/0x7fd (12) [<c037f3f4>] _raw_spin_unlock+0x12/0x2c (12) [<c0113828>] load_balance_newidle+0xf1/0x131 (8) [<c013aa7b>] sub_preempt_count+0x1a/0x1e (48) [<c01319a6>] ktimer_run_queues+0x27/0x131 (24) [<c0114551>] __wake_up+0x44/0x69 (8) [<c0122b8d>] run_timer_softirq+0x10b/0x3d6 (12) [<c037ecff>] _spin_lock_irq+0x1d/0x41 (12) [<c0122b8d>] run_timer_softirq+0x10b/0x3d6 (8) [<c0122b8d>] run_timer_softirq+0x10b/0x3d6 (16) [<c013a91e>] add_preempt_count_ti+0x1e/0xc6 (16) [<c011f0e4>] ksoftirqd+0xe7/0x183 (40) [<c011effd>] ksoftirqd+0x0/0x183 (32) [<c012d811>] kthread+0xa3/0xcd (4) [<c012d76e>] kthread+0x0/0xcd (28) [<c0100f75>] kernel_thread_helper+0x5/0xb (16) ---------------------------| preempt count: 00000002 ]
| 2-level deep critical section nesting:
----------------------------------------
.. [<c013a9e0>] ....add_preempt_count+0x1a/0x1e
.....[<00000000>] .. ( <=stext+0x3feffd68/0x8)
.. [<c013a9e0>] ....add_preempt_count+0x1a/0x1e
.....[<00000000>] .. ( <=stext+0x3feffd68/0x8)------------------------------
| showing all locks held by: | (softirq-timer/1/14 [f7f26830, 98]):
------------------------------------------------------------------------------------------------------
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.14-rt13
# Thu Nov 17 18:45:04 2005
#CONFIG_X86=yCONFIG_GENERIC_TIME=yCONFIG_SEMAPHORE_SLEEPERS=yCONFIG_MMU=yCONFIG_UID16=yCONFIG_GENERIC_ISA_DMA=yCONFIG_GENERIC_IOMAP=yCONFIG_ARCH_MAY_HAVE_PC_FDC=y#
# Code maturity level options
#CONFIG_EXPERIMENTAL=yCONFIG_CLEAN_COMPILE=yCONFIG_LOCK_KERNEL=yCONFIG_INIT_ENV_ARG_LIMIT=32#
# General setup
#CONFIG_LOCALVERSION=""CONFIG_LOCALVERSION_AUTO=yCONFIG_SWAP=yCONFIG_SYSVIPC=y
#CONFIG_POSIX_MQUEUEis not set
#CONFIG_BSD_PROCESS_ACCTis not setCONFIG_SYSCTL=y
#CONFIG_AUDITis not set
#CONFIG_HOTPLUGis not set
#CONFIG_KOBJECT_UEVENTis not setCONFIG_IKCONFIG=y
#CONFIG_IKCONFIG_PROCis not setCONFIG_CPUSETS=yCONFIG_INITRAMFS_SOURCE=""
#CONFIG_EMBEDDEDis not setCONFIG_KALLSYMS=y
#CONFIG_KALLSYMS_ALLis not set
#CONFIG_KALLSYMS_EXTRA_PASSis not setCONFIG_PRINTK=yCONFIG_BUG=yCONFIG_BASE_FULL=yCONFIG_FUTEX=yCONFIG_EPOLL=yCONFIG_SHMEM=yCONFIG_CC_ALIGN_FUNCTIONS=0CONFIG_CC_ALIGN_LABELS=0CONFIG_CC_ALIGN_LOOPS=0CONFIG_CC_ALIGN_JUMPS=0
#CONFIG_TINY_SHMEMis not setCONFIG_BASE_SMALL=0#
# Loadable module support
#CONFIG_MODULES=yCONFIG_MODULE_UNLOAD=y
#CONFIG_MODULE_FORCE_UNLOADis not setCONFIG_OBSOLETE_MODPARM=y
#CONFIG_MODVERSIONSis not set
#CONFIG_MODULE_SRCVERSION_ALLis not setCONFIG_KMOD=yCONFIG_STOP_MACHINE=y#
# Processor type and features
#CONFIG_X86_PC=y
#CONFIG_X86_ELANis not set
#CONFIG_X86_VOYAGERis not set
#CONFIG_X86_NUMAQis not set
#CONFIG_X86_SUMMITis not set
#CONFIG_X86_BIGSMPis not set
#CONFIG_X86_VISWSis not set
#CONFIG_X86_GENERICARCHis not set
#CONFIG_X86_ES7000is not set
#CONFIG_M386is not set
#CONFIG_M486is not set
#CONFIG_M586is not set
#CONFIG_M586TSCis not set
#CONFIG_M586MMXis not set
#CONFIG_M686is not set
#CONFIG_MPENTIUMIIis not set
#CONFIG_MPENTIUMIIIis not set
#CONFIG_MPENTIUMMis not setCONFIG_MPENTIUM4=y
#CONFIG_MK6is not set
#CONFIG_MK7is not set
#CONFIG_MK8is not set
#CONFIG_MCRUSOEis not set
#CONFIG_MEFFICEONis not set
#CONFIG_MWINCHIPC6is not set
#CONFIG_MWINCHIP2is not set
#CONFIG_MWINCHIP3Dis not set
#CONFIG_MGEODEGX1is not set
#CONFIG_MCYRIXIIIis not set
#CONFIG_MVIAC3_2is not set
#CONFIG_X86_GENERICis not setCONFIG_X86_CMPXCHG=yCONFIG_X86_XADD=yCONFIG_X86_L1_CACHE_SHIFT=7CONFIG_GENERIC_CALIBRATE_DELAY=yCONFIG_X86_WP_WORKS_OK=yCONFIG_X86_INVLPG=yCONFIG_X86_BSWAP=yCONFIG_X86_POPAD_OK=yCONFIG_X86_GOOD_APIC=yCONFIG_X86_INTEL_USERCOPY=yCONFIG_X86_USE_PPRO_CHECKSUM=y
#CONFIG_HPET_TIMERis not set
#CONFIG_KTIME_SCALARis not setCONFIG_HIGH_RES_TIMERS=yCONFIG_HIGH_RES_RESOLUTION=1000CONFIG_SMP=yCONFIG_NR_CPUS=32CONFIG_SCHED_SMT=y
#CONFIG_PREEMPT_NONEis not set
#CONFIG_PREEMPT_VOLUNTARYis not set
#CONFIG_PREEMPT_DESKTOPis not setCONFIG_PREEMPT_RT=yCONFIG_PREEMPT=yCONFIG_PREEMPT_SOFTIRQS=yCONFIG_PREEMPT_HARDIRQS=yCONFIG_PREEMPT_BKL=yCONFIG_PREEMPT_RCU=yCONFIG_RCU_STATS=yCONFIG_RWSEM_GENERIC_SPINLOCK=yCONFIG_ASM_SEMAPHORES=yCONFIG_X86_LOCAL_APIC=yCONFIG_X86_IO_APIC=yCONFIG_X86_IOAPIC_FAST=yCONFIG_X86_TSC=yCONFIG_X86_MCE=y
#CONFIG_X86_MCE_NONFATALis not set
#CONFIG_X86_MCE_P4THERMALis not set
#CONFIG_TOSHIBAis not set
#CONFIG_I8Kis not set
#CONFIG_X86_REBOOTFIXUPSis not set
#CONFIG_MICROCODEis not set
#CONFIG_X86_MSRis not set
#CONFIG_X86_CPUIDis not set#
# Firmware Drivers
#
#CONFIG_EDDis not set
#CONFIG_DELL_RBUis not setCONFIG_DCDBAS=m
#CONFIG_NOHIGHMEMis not setCONFIG_HIGHMEM4G=y
#CONFIG_HIGHMEM64Gis not setCONFIG_HIGHMEM=yCONFIG_SELECT_MEMORY_MODEL=yCONFIG_FLATMEM_MANUAL=y
#CONFIG_DISCONTIGMEM_MANUALis not set
#CONFIG_SPARSEMEM_MANUALis not setCONFIG_FLATMEM=yCONFIG_FLAT_NODE_MEM_MAP=y
#CONFIG_SPARSEMEM_STATICis not set
#CONFIG_HIGHPTEis not set
#CONFIG_MATH_EMULATIONis not set
#CONFIG_MTRRis not set
#CONFIG_EFIis not setCONFIG_IRQBALANCE=y
#CONFIG_REGPARMis not setCONFIG_SECCOMP=y
#CONFIG_HZ_100is not set
#CONFIG_HZ_250is not setCONFIG_HZ_1000=yCONFIG_HZ=1000CONFIG_PHYSICAL_START=0x100000
#CONFIG_KEXECis not set#
# Power management options (ACPI, APM)
#CONFIG_PM=y
#CONFIG_PM_DEBUGis not set#
# ACPI (Advanced Configuration and Power Interface) Support #CONFIG_ACPI=yCONFIG_ACPI_AC=m
#CONFIG_ACPI_BATTERYis not set
#CONFIG_ACPI_BUTTONis not set
#CONFIG_ACPI_VIDEOis not set
#CONFIG_ACPI_HOTKEYis not setCONFIG_ACPI_FAN=mCONFIG_ACPI_PROCESSOR=mCONFIG_ACPI_THERMAL=mCONFIG_ACPI_ASUS=mCONFIG_ACPI_IBM=mCONFIG_ACPI_TOSHIBA=mCONFIG_ACPI_BLACKLIST_YEAR=0
#CONFIG_ACPI_DEBUGis not setCONFIG_ACPI_EC=yCONFIG_ACPI_POWER=yCONFIG_ACPI_SYSTEM=y
#CONFIG_X86_PM_TIMERis not set
#CONFIG_ACPI_CONTAINERis not set#
# APM (Advanced Power Management) BIOS Support
#
#CONFIG_APMis not set#
# CPU Frequency scaling
#
#CONFIG_CPU_FREQis not set#
# Bus options (PCI, PCMCIA, EISA, MCA, ISA)
#CONFIG_PCI=y
#CONFIG_PCI_GOBIOSis not set
#CONFIG_PCI_GOMMCONFIGis not set
#CONFIG_PCI_GODIRECTis not setCONFIG_PCI_GOANY=yCONFIG_PCI_BIOS=yCONFIG_PCI_DIRECT=yCONFIG_PCI_MMCONFIG=y
#CONFIG_PCIEPORTBUSis not set
#CONFIG_PCI_MSIis not set
#CONFIG_PCI_LEGACY_PROCis not set
#CONFIG_PCI_DEBUGis not setCONFIG_ISA_DMA_API=yCONFIG_ISA=y
#CONFIG_EISAis not set
#CONFIG_MCAis not set
#CONFIG_SCx200is not set#
# PCCARD (PCMCIA/CardBus) support
#
#CONFIG_PCCARDis not set#
# PCI Hotplug Support
#
#CONFIG_HOTPLUG_PCIis not set#
# Executable file formats
#CONFIG_BINFMT_ELF=y
#CONFIG_BINFMT_AOUTis not set
#CONFIG_BINFMT_MISCis not set#
# Networking
#CONFIG_NET=y#
# Networking options
#CONFIG_PACKET=yCONFIG_PACKET_MMAP=yCONFIG_UNIX=yCONFIG_XFRM=yCONFIG_XFRM_USER=yCONFIG_NET_KEY=yCONFIG_INET=yCONFIG_IP_MULTICAST=yCONFIG_IP_ADVANCED_ROUTER=yCONFIG_ASK_IP_FIB_HASH=y
#CONFIG_IP_FIB_TRIEis not setCONFIG_IP_FIB_HASH=yCONFIG_IP_MULTIPLE_TABLES=y
#CONFIG_IP_ROUTE_FWMARKis not setCONFIG_IP_ROUTE_MULTIPATH=y
#CONFIG_IP_ROUTE_MULTIPATH_CACHEDis not setCONFIG_IP_ROUTE_VERBOSE=yCONFIG_IP_PNP=yCONFIG_IP_PNP_DHCP=yCONFIG_IP_PNP_BOOTP=yCONFIG_IP_PNP_RARP=yCONFIG_NET_IPIP=yCONFIG_NET_IPGRE=yCONFIG_NET_IPGRE_BROADCAST=yCONFIG_IP_MROUTE=yCONFIG_IP_PIMSM_V1=yCONFIG_IP_PIMSM_V2=yCONFIG_ARPD=yCONFIG_SYN_COOKIES=yCONFIG_INET_AH=yCONFIG_INET_ESP=y
#CONFIG_INET_IPCOMPis not setCONFIG_INET_TUNNEL=yCONFIG_INET_DIAG=yCONFIG_INET_TCP_DIAG=y
#CONFIG_TCP_CONG_ADVANCEDis not setCONFIG_TCP_CONG_BIC=y#
# IP: Virtual Server Configuration
#
#CONFIG_IP_VSis not set
#CONFIG_IPV6is not setCONFIG_NETFILTER=yCONFIG_NETFILTER_DEBUG=y
#CONFIG_NETFILTER_NETLINKis not set#
# IP: Netfilter Configuration
#CONFIG_IP_NF_CONNTRACK=y
#CONFIG_IP_NF_CT_ACCTis not set
#CONFIG_IP_NF_CONNTRACK_MARKis not set
#CONFIG_IP_NF_CONNTRACK_EVENTSis not set
#CONFIG_IP_NF_CT_PROTO_SCTPis not setCONFIG_IP_NF_FTP=yCONFIG_IP_NF_IRC=y
#CONFIG_IP_NF_NETBIOS_NSis not set
#CONFIG_IP_NF_TFTPis not set
#CONFIG_IP_NF_AMANDAis not set
#CONFIG_IP_NF_PPTPis not setCONFIG_IP_NF_QUEUE=yCONFIG_IP_NF_IPTABLES=yCONFIG_IP_NF_MATCH_LIMIT=y
#CONFIG_IP_NF_MATCH_IPRANGEis not setCONFIG_IP_NF_MATCH_MAC=yCONFIG_IP_NF_MATCH_PKTTYPE=yCONFIG_IP_NF_MATCH_MARK=yCONFIG_IP_NF_MATCH_MULTIPORT=yCONFIG_IP_NF_MATCH_TOS=y
#CONFIG_IP_NF_MATCH_RECENTis not setCONFIG_IP_NF_MATCH_ECN=yCONFIG_IP_NF_MATCH_DSCP=yCONFIG_IP_NF_MATCH_AH_ESP=yCONFIG_IP_NF_MATCH_LENGTH=yCONFIG_IP_NF_MATCH_TTL=yCONFIG_IP_NF_MATCH_TCPMSS=yCONFIG_IP_NF_MATCH_HELPER=yCONFIG_IP_NF_MATCH_STATE=yCONFIG_IP_NF_MATCH_CONNTRACK=yCONFIG_IP_NF_MATCH_OWNER=y
#CONFIG_IP_NF_MATCH_ADDRTYPEis not set
#CONFIG_IP_NF_MATCH_REALMis not set
#CONFIG_IP_NF_MATCH_SCTPis not set
#CONFIG_IP_NF_MATCH_DCCPis not set
#CONFIG_IP_NF_MATCH_COMMENTis not set
#CONFIG_IP_NF_MATCH_HASHLIMITis not set
#CONFIG_IP_NF_MATCH_STRINGis not setCONFIG_IP_NF_FILTER=yCONFIG_IP_NF_TARGET_REJECT=y
#CONFIG_IP_NF_TARGET_LOGis not set
#CONFIG_IP_NF_TARGET_ULOGis not set
#CONFIG_IP_NF_TARGET_TCPMSSis not set
#CONFIG_IP_NF_TARGET_NFQUEUEis not setCONFIG_IP_NF_NAT=yCONFIG_IP_NF_NAT_NEEDED=yCONFIG_IP_NF_TARGET_MASQUERADE=yCONFIG_IP_NF_TARGET_REDIRECT=y
#CONFIG_IP_NF_TARGET_NETMAPis not set
#CONFIG_IP_NF_TARGET_SAMEis not setCONFIG_IP_NF_NAT_SNMP_BASIC=yCONFIG_IP_NF_NAT_IRC=yCONFIG_IP_NF_NAT_FTP=yCONFIG_IP_NF_MANGLE=yCONFIG_IP_NF_TARGET_TOS=y
#CONFIG_IP_NF_TARGET_ECNis not set
#CONFIG_IP_NF_TARGET_DSCPis not set
#CONFIG_IP_NF_TARGET_MARKis not set
#CONFIG_IP_NF_TARGET_CLASSIFYis not set
#CONFIG_IP_NF_TARGET_TTLis not set
#CONFIG_IP_NF_RAWis not set
#CONFIG_IP_NF_ARPTABLESis not set#
# DCCP Configuration (EXPERIMENTAL)
#
#CONFIG_IP_DCCPis not set#
# SCTP Configuration (EXPERIMENTAL)
#
#CONFIG_IP_SCTPis not set
#CONFIG_ATMis not set
#CONFIG_BRIDGEis not set
#CONFIG_VLAN_8021Qis not set
#CONFIG_DECNETis not set
#CONFIG_LLC2is not set
#CONFIG_IPXis not set
#CONFIG_ATALKis not set
#CONFIG_X25is not set
#CONFIG_LAPBis not set
#CONFIG_NET_DIVERTis not set
#CONFIG_ECONETis not set
#CONFIG_WAN_ROUTERis not setCONFIG_NET_SCHED=yCONFIG_NET_SCH_CLK_JIFFIES=y
#CONFIG_NET_SCH_CLK_GETTIMEOFDAYis not set
#CONFIG_NET_SCH_CLK_CPUis not set
#CONFIG_NET_SCH_CBQis not set
#CONFIG_NET_SCH_HTBis not set
#CONFIG_NET_SCH_HFSCis not setCONFIG_NET_SCH_PRIO=y
#CONFIG_NET_SCH_REDis not set
#CONFIG_NET_SCH_SFQis not set
#CONFIG_NET_SCH_TEQLis not set
#CONFIG_NET_SCH_TBFis not set
#CONFIG_NET_SCH_GREDis not set
#CONFIG_NET_SCH_DSMARKis not set
#CONFIG_NET_SCH_NETEMis not set
#CONFIG_NET_SCH_INGRESSis not set
#CONFIG_NET_QOSis not set
#CONFIG_NET_CLSis not set
#CONFIG_NET_CLS_ROUTEis not set#
# Network testing
#
#CONFIG_NET_PKTGENis not set
#CONFIG_HAMRADIOis not set
#CONFIG_IRDAis not set
#CONFIG_BTis not set
#CONFIG_IEEE80211is not set#
# Device Drivers
##
# Generic Driver Options
#CONFIG_STANDALONE=yCONFIG_PREVENT_FIRMWARE_BUILD=y
#CONFIG_FW_LOADERis not set
#CONFIG_DEBUG_DRIVERis not set#
# Connector - unified userspace <-> kernelspace linker #
#CONFIG_CONNECTORis not set#
# Memory Technology Devices (MTD)
#
#CONFIG_MTDis not set#
# Parallel port support
#
#CONFIG_PARPORTis not set#
# Plug and Play support
#
#CONFIG_PNPis not set#
# Block devices
#CONFIG_BLK_DEV_FD=y
#CONFIG_BLK_DEV_XDis not set
#CONFIG_BLK_CPQ_DAis not set
#CONFIG_BLK_CPQ_CISS_DAis not set
#CONFIG_BLK_DEV_DAC960is not set
#CONFIG_BLK_DEV_UMEMis not set
#CONFIG_BLK_DEV_COW_COMMONis not setCONFIG_BLK_DEV_LOOP=y
#CONFIG_BLK_DEV_CRYPTOLOOPis not setCONFIG_BLK_DEV_NBD=y
#CONFIG_BLK_DEV_SX8is not setCONFIG_BLK_DEV_RAM=yCONFIG_BLK_DEV_RAM_COUNT=16CONFIG_BLK_DEV_RAM_SIZE=4096CONFIG_BLK_DEV_INITRD=y
#CONFIG_LBDis not set
#CONFIG_CDROM_PKTCDVDis not set#
# IO Schedulers
#CONFIG_IOSCHED_NOOP=yCONFIG_IOSCHED_AS=yCONFIG_IOSCHED_DEADLINE=yCONFIG_IOSCHED_CFQ=y
#CONFIG_ATA_OVER_ETHis not set#
# ATA/ATAPI/MFM/RLL support
#CONFIG_IDE=yCONFIG_BLK_DEV_IDE=y#
# Please seeDocumentation/ide.txtfor help/info on IDE drives #
#CONFIG_BLK_DEV_IDE_SATAis not set
#CONFIG_BLK_DEV_HD_IDEis not setCONFIG_BLK_DEV_IDEDISK=y
#CONFIG_IDEDISK_MULTI_MODEis not setCONFIG_BLK_DEV_IDECD=y
#CONFIG_BLK_DEV_IDETAPEis not setCONFIG_BLK_DEV_IDEFLOPPY=y
#CONFIG_BLK_DEV_IDESCSIis not set
#CONFIG_IDE_TASK_IOCTLis not set#
# IDE chipset support/bugfixes
#CONFIG_IDE_GENERIC=y
#CONFIG_BLK_DEV_CMD640is not set
#CONFIG_BLK_DEV_IDEPCIis not set
#CONFIG_IDE_ARMis not set
#CONFIG_IDE_CHIPSETSis not set
#CONFIG_BLK_DEV_IDEDMAis not set
#CONFIG_IDEDMA_AUTOis not set
#CONFIG_BLK_DEV_HDis not set#
# SCSI device support
#
#CONFIG_RAID_ATTRSis not setCONFIG_SCSI=yCONFIG_SCSI_PROC_FS=y#
# SCSI support type (disk, tape, CD-ROM)
#CONFIG_BLK_DEV_SD=yCONFIG_CHR_DEV_ST=y
#CONFIG_CHR_DEV_OSSTis not setCONFIG_BLK_DEV_SR=y
#CONFIG_BLK_DEV_SR_VENDORis not set
#CONFIG_CHR_DEV_SGis not set
#CONFIG_CHR_DEV_SCHis not set#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs #CONFIG_SCSI_MULTI_LUN=yCONFIG_SCSI_CONSTANTS=y
#CONFIG_SCSI_LOGGINGis not set#
# SCSI Transport Attributes
#CONFIG_SCSI_SPI_ATTRS=y
#CONFIG_SCSI_FC_ATTRSis not set
#CONFIG_SCSI_ISCSI_ATTRSis not set
#CONFIG_SCSI_SAS_ATTRSis not set#
# SCSI low-level drivers
#
#CONFIG_BLK_DEV_3W_XXXX_RAIDis not set
#CONFIG_SCSI_3W_9XXXis not set
#CONFIG_SCSI_7000FASSTis not set
#CONFIG_SCSI_ACARDis not set
#CONFIG_SCSI_AHA152Xis not set
#CONFIG_SCSI_AHA1542is not set
#CONFIG_SCSI_AACRAIDis not setCONFIG_SCSI_AIC7XXX=yCONFIG_AIC7XXX_CMDS_PER_DEVICE=32CONFIG_AIC7XXX_RESET_DELAY_MS=15000CONFIG_AIC7XXX_DEBUG_ENABLE=yCONFIG_AIC7XXX_DEBUG_MASK=0CONFIG_AIC7XXX_REG_PRETTY_PRINT=y
#CONFIG_SCSI_AIC7XXX_OLDis not set
#CONFIG_SCSI_AIC79XXis not set
#CONFIG_SCSI_DPT_I2Ois not set
#CONFIG_SCSI_IN2000is not set
#CONFIG_MEGARAID_NEWGENis not set
#CONFIG_MEGARAID_LEGACYis not set
#CONFIG_MEGARAID_SASis not set
#CONFIG_SCSI_SATAis not set
#CONFIG_SCSI_BUSLOGICis not set
#CONFIG_SCSI_DMX3191Dis not set
#CONFIG_SCSI_DTC3280is not set
#CONFIG_SCSI_EATAis not set
#CONFIG_SCSI_FUTURE_DOMAINis not set
#CONFIG_SCSI_GDTHis not set
#CONFIG_SCSI_GENERIC_NCR5380is not set
#CONFIG_SCSI_GENERIC_NCR5380_MMIOis not set
#CONFIG_SCSI_IPSis not set
#CONFIG_SCSI_INITIOis not set
#CONFIG_SCSI_INIA100is not set
#CONFIG_SCSI_NCR53C406Ais not set
#CONFIG_SCSI_SYM53C8XX_2is not set
#CONFIG_SCSI_IPRis not set
#CONFIG_SCSI_PAS16is not set
#CONFIG_SCSI_PSI240Iis not set
#CONFIG_SCSI_QLOGIC_FASis not set
#CONFIG_SCSI_QLOGIC_FCis not set
#CONFIG_SCSI_QLOGIC_1280is not setCONFIG_SCSI_QLA2XXX=y
#CONFIG_SCSI_QLA21XXis not set
#CONFIG_SCSI_QLA22XXis not set
#CONFIG_SCSI_QLA2300is not set
#CONFIG_SCSI_QLA2322is not set
#CONFIG_SCSI_QLA6312is not set
#CONFIG_SCSI_QLA24XXis not set
#CONFIG_SCSI_LPFCis not set
#CONFIG_SCSI_SYM53C416is not set
#CONFIG_SCSI_DC395xis not set
#CONFIG_SCSI_DC390Tis not set
#CONFIG_SCSI_T128is not set
#CONFIG_SCSI_U14_34Fis not set
#CONFIG_SCSI_ULTRASTORis not set
#CONFIG_SCSI_NSP32is not set
#CONFIG_SCSI_DEBUGis not set#
# Old CD-ROM drivers (not SCSI, not IDE)
#
#CONFIG_CD_NO_IDESCSIis not set#
# Multi-device support (RAID and LVM)
#
#CONFIG_MDis not set#
# Fusion MPT device support
#
#CONFIG_FUSIONis not set
#CONFIG_FUSION_SPIis not set
#CONFIG_FUSION_FCis not set
#CONFIG_FUSION_SASis not set#
# IEEE 1394 (FireWire) support
#
#CONFIG_IEEE1394is not set#
# I2O device support
#
#CONFIG_I2Ois not set#
# Network device support
#CONFIG_NETDEVICES=yCONFIG_DUMMY=y
#CONFIG_BONDINGis not set
#CONFIG_EQUALIZERis not set
#CONFIG_TUNis not set#
# ARCnet devices
#
#CONFIG_ARCNETis not set#
# PHY device support
##
# Ethernet (10 or 100Mbit)
#
#CONFIG_NET_ETHERNETis not set#
# Ethernet (1000 Mbit)
#
#CONFIG_ACENICis not set
#CONFIG_DL2Kis not set
#CONFIG_E1000is not set
#CONFIG_NS83820is not set
#CONFIG_HAMACHIis not set
#CONFIG_YELLOWFINis not set
#CONFIG_R8169is not set
#CONFIG_SIS190is not set
#CONFIG_SKGEis not set
#CONFIG_SK98LINis not setCONFIG_TIGON3=y
#CONFIG_BNX2is not set#
# Ethernet (10000 Mbit)
#
#CONFIG_CHELSIO_T1is not set
#CONFIG_IXGBis not set
#CONFIG_S2IOis not set#
# Token Ring devices
#
#CONFIG_TRis not set#
# Wireless LAN (non-hamradio)
#
#CONFIG_NET_RADIOis not set#
# Wan interfaces
#
#CONFIG_WANis not set
#CONFIG_FDDIis not set
#CONFIG_HIPPIis not set
#CONFIG_PPPis not set
#CONFIG_SLIPis not set
#CONFIG_NET_FCis not set
#CONFIG_SHAPERis not set
#CONFIG_NETCONSOLEis not set
#CONFIG_NETPOLLis not set
#CONFIG_NET_POLL_CONTROLLERis not set#
# ISDN subsystem
#
#CONFIG_ISDNis not set#
# Telephony Support
#
#CONFIG_PHONEis not set#
# Input device support
#CONFIG_INPUT=y#
# Userland interfaces
#CONFIG_INPUT_MOUSEDEV=yCONFIG_INPUT_MOUSEDEV_PSAUX=yCONFIG_INPUT_MOUSEDEV_SCREEN_X=1024CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
#CONFIG_INPUT_JOYDEVis not set
#CONFIG_INPUT_TSDEVis not set
#CONFIG_INPUT_EVDEVis not set
#CONFIG_INPUT_EVBUGis not set#
# Input Device Drivers
#CONFIG_INPUT_KEYBOARD=yCONFIG_KEYBOARD_ATKBD=y
#CONFIG_KEYBOARD_SUNKBDis not set
#CONFIG_KEYBOARD_LKKBDis not set
#CONFIG_KEYBOARD_XTKBDis not set
#CONFIG_KEYBOARD_NEWTONis not setCONFIG_INPUT_MOUSE=yCONFIG_MOUSE_PS2=y
#CONFIG_MOUSE_SERIALis not set
#CONFIG_MOUSE_INPORTis not setCONFIG_MOUSE_LOGIBM=y
#CONFIG_MOUSE_PC110PADis not set
#CONFIG_MOUSE_VSXXXAAis not set
#CONFIG_INPUT_JOYSTICKis not set
#CONFIG_INPUT_TOUCHSCREENis not set
#CONFIG_INPUT_MISCis not set#
# Hardware I/O ports
#CONFIG_SERIO=yCONFIG_SERIO_I8042=yCONFIG_SERIO_SERPORT=y
#CONFIG_SERIO_CT82C710is not set
#CONFIG_SERIO_PCIPS2is not setCONFIG_SERIO_LIBPS2=y
#CONFIG_SERIO_RAWis not set
#CONFIG_GAMEPORTis not set#
# Character devices
#CONFIG_VT=yCONFIG_VT_CONSOLE=yCONFIG_HW_CONSOLE=y
#CONFIG_SERIAL_NONSTANDARDis not set#
# Serial drivers
#CONFIG_SERIAL_8250=yCONFIG_SERIAL_8250_CONSOLE=y
#CONFIG_SERIAL_8250_ACPIis not setCONFIG_SERIAL_8250_NR_UARTS=4
#CONFIG_SERIAL_8250_EXTENDEDis not set#
# Non-8250 serial port support
#CONFIG_SERIAL_CORE=yCONFIG_SERIAL_CORE_CONSOLE=y
#CONFIG_SERIAL_JSMis not setCONFIG_UNIX98_PTYS=yCONFIG_LEGACY_PTYS=yCONFIG_LEGACY_PTY_COUNT=256#
# IPMI
#
#CONFIG_IPMI_HANDLERis not set#
# Watchdog Cards
#
#CONFIG_WATCHDOGis not set
#CONFIG_HW_RANDOMis not set
#CONFIG_NVRAMis not setCONFIG_RTC=y
#CONFIG_RTC_HISTOGRAMis not setCONFIG_BLOCKER=yCONFIG_LPPTEST=y
#CONFIG_DTLKis not set
#CONFIG_R3964is not set
#CONFIG_APPLICOMis not set
#CONFIG_SONYPIis not set#
# Ftape, the floppy tape device driver
#
#CONFIG_AGPis not set
#CONFIG_DRMis not set
#CONFIG_MWAVEis not setCONFIG_RAW_DRIVER=y
#CONFIG_HPETis not setCONFIG_MAX_RAW_DEVS=256
#CONFIG_HANGCHECK_TIMERis not set#
# TPM devices
#
#CONFIG_TCG_TPMis not set#
# I2C support
#
#CONFIG_I2Cis not set#
# Dallas's 1-wire bus
#
#CONFIG_W1is not set#
# Hardware Monitoring support
#CONFIG_HWMON=y
#CONFIG_HWMON_VIDis not set
#CONFIG_SENSORS_HDAPSis not set
#CONFIG_HWMON_DEBUG_CHIPis not set#
# Misc devices
#
#CONFIG_IBM_ASMis not set#
# Multimedia Capabilities Port drivers
##
# Multimedia devices
#
#CONFIG_VIDEO_DEVis not set#
# Digital Video Broadcasting Devices
#
#CONFIG_DVBis not set#
# Graphics support
#
#CONFIG_FBis not set
#CONFIG_VIDEO_SELECTis not set#
# Console display driver support
#CONFIG_VGA_CONSOLE=y
#CONFIG_MDA_CONSOLEis not setCONFIG_DUMMY_CONSOLE=y#
# Sound
#
#CONFIG_SOUNDis not set#
# USB support
#CONFIG_USB_ARCH_HAS_HCD=yCONFIG_USB_ARCH_HAS_OHCI=y
#CONFIG_USBis not set#
# USB Gadget Support
#
#CONFIG_USB_GADGETis not set#
# MMC/SD Card support
#
#CONFIG_MMCis not set#
# InfiniBand support
#
#CONFIG_INFINIBANDis not set#
# SN Devices
##
# File systems
#CONFIG_EXT2_FS=yCONFIG_EXT2_FS_XATTR=y
#CONFIG_EXT2_FS_POSIX_ACLis not set
#CONFIG_EXT2_FS_SECURITYis not set
#CONFIG_EXT2_FS_XIPis not setCONFIG_EXT3_FS=yCONFIG_EXT3_FS_XATTR=y
#CONFIG_EXT3_FS_POSIX_ACLis not set
#CONFIG_EXT3_FS_SECURITYis not setCONFIG_JBD=y
#CONFIG_JBD_DEBUGis not setCONFIG_FS_MBCACHE=y
#CONFIG_REISERFS_FSis not set
#CONFIG_JFS_FSis not set
#CONFIG_FS_POSIX_ACLis not set
#CONFIG_XFS_FSis not set
#CONFIG_MINIX_FSis not set
#CONFIG_ROMFS_FSis not setCONFIG_INOTIFY=y
#CONFIG_QUOTAis not setCONFIG_DNOTIFY=y
#CONFIG_AUTOFS_FSis not setCONFIG_AUTOFS4_FS=y
#CONFIG_FUSE_FSis not set#
# CD-ROM/DVD Filesystems
#CONFIG_ISO9660_FS=yCONFIG_JOLIET=yCONFIG_ZISOFS=yCONFIG_ZISOFS_FS=yCONFIG_UDF_FS=yCONFIG_UDF_NLS=y#
# DOS/FAT/NT Filesystems
#
#CONFIG_MSDOS_FSis not set
#CONFIG_VFAT_FSis not set
#CONFIG_NTFS_FSis not set#
# Pseudo filesystems
#CONFIG_PROC_FS=yCONFIG_PROC_KCORE=yCONFIG_SYSFS=yCONFIG_TMPFS=yCONFIG_HUGETLBFS=yCONFIG_HUGETLB_PAGE=yCONFIG_RAMFS=y
#CONFIG_RELAYFS_FSis not set#
# Miscellaneous filesystems
#
#CONFIG_ADFS_FSis not set
#CONFIG_AFFS_FSis not set
#CONFIG_HFS_FSis not set
#CONFIG_HFSPLUS_FSis not set
#CONFIG_BEFS_FSis not set
#CONFIG_BFS_FSis not set
#CONFIG_EFS_FSis not set
#CONFIG_CRAMFSis not set
#CONFIG_VXFS_FSis not set
#CONFIG_HPFS_FSis not set
#CONFIG_QNX4FS_FSis not set
#CONFIG_SYSV_FSis not set
#CONFIG_UFS_FSis not set#
# Network File Systems
#CONFIG_NFS_FS=y
#CONFIG_NFS_V3is not set
#CONFIG_NFS_V4is not set
#CONFIG_NFS_DIRECTIOis not setCONFIG_NFSD=y
#CONFIG_NFSD_V3is not set
#CONFIG_NFSD_TCPis not set
#CONFIG_ROOT_NFSis not setCONFIG_LOCKD=yCONFIG_EXPORTFS=yCONFIG_NFS_COMMON=yCONFIG_SUNRPC=y
#CONFIG_RPCSEC_GSS_KRB5is not set
#CONFIG_RPCSEC_GSS_SPKM3is not set
#CONFIG_SMB_FSis not set
#CONFIG_CIFSis not set
#CONFIG_NCP_FSis not set
#CONFIG_CODA_FSis not set
#CONFIG_AFS_FSis not set
#CONFIG_9P_FSis not set#
# Partition Types
#
#CONFIG_PARTITION_ADVANCEDis not setCONFIG_MSDOS_PARTITION=y#
# Native Language Support
#CONFIG_NLS=yCONFIG_NLS_DEFAULT="iso8859-1"
#CONFIG_NLS_CODEPAGE_437is not set
#CONFIG_NLS_CODEPAGE_737is not set
#CONFIG_NLS_CODEPAGE_775is not set
#CONFIG_NLS_CODEPAGE_850is not set
#CONFIG_NLS_CODEPAGE_852is not set
#CONFIG_NLS_CODEPAGE_855is not set
#CONFIG_NLS_CODEPAGE_857is not set
#CONFIG_NLS_CODEPAGE_860is not set
#CONFIG_NLS_CODEPAGE_861is not set
#CONFIG_NLS_CODEPAGE_862is not set
#CONFIG_NLS_CODEPAGE_863is not set
#CONFIG_NLS_CODEPAGE_864is not set
#CONFIG_NLS_CODEPAGE_865is not set
#CONFIG_NLS_CODEPAGE_866is not set
#CONFIG_NLS_CODEPAGE_869is not set
#CONFIG_NLS_CODEPAGE_936is not set
#CONFIG_NLS_CODEPAGE_950is not set
#CONFIG_NLS_CODEPAGE_932is not set
#CONFIG_NLS_CODEPAGE_949is not set
#CONFIG_NLS_CODEPAGE_874is not set
#CONFIG_NLS_ISO8859_8is not set
#CONFIG_NLS_CODEPAGE_1250is not set
#CONFIG_NLS_CODEPAGE_1251is not set
#CONFIG_NLS_ASCIIis not set
#CONFIG_NLS_ISO8859_1is not set
#CONFIG_NLS_ISO8859_2is not set
#CONFIG_NLS_ISO8859_3is not set
#CONFIG_NLS_ISO8859_4is not set
#CONFIG_NLS_ISO8859_5is not set
#CONFIG_NLS_ISO8859_6is not set
#CONFIG_NLS_ISO8859_7is not set
#CONFIG_NLS_ISO8859_9is not set
#CONFIG_NLS_ISO8859_13is not set
#CONFIG_NLS_ISO8859_14is not set
#CONFIG_NLS_ISO8859_15is not set
#CONFIG_NLS_KOI8_Ris not set
#CONFIG_NLS_KOI8_Uis not set
#CONFIG_NLS_UTF8is not set#
# Profiling support
#CONFIG_PROFILING=yCONFIG_OPROFILE=yCONFIG_PROFILE_NMI=y#
# Kernel hacking
#
#CONFIG_PRINTK_TIMEis not setCONFIG_PRINTK_IGNORE_LOGLEVEL=yCONFIG_DEBUG_KERNEL=yCONFIG_MAGIC_SYSRQ=yCONFIG_LOG_BUF_SHIFT=15CONFIG_DETECT_SOFTLOCKUP=y
#CONFIG_SCHEDSTATSis not set
#CONFIG_DEBUG_SLABis not setCONFIG_DEBUG_PREEMPT=yCONFIG_DEBUG_IRQ_FLAGS=y
#CONFIG_WAKEUP_TIMINGis not setCONFIG_PREEMPT_TRACE=y
#CONFIG_CRITICAL_PREEMPT_TIMINGis not set
#CONFIG_CRITICAL_IRQSOFF_TIMINGis not setCONFIG_DEBUG_DEADLOCKS=y
#CONFIG_DEBUG_RT_LOCKING_MODEis not set
#CONFIG_DEBUG_KOBJECTis not set
#CONFIG_DEBUG_HIGHMEMis not setCONFIG_DEBUG_BUGVERBOSE=y
#CONFIG_DEBUG_INFOis not set
#CONFIG_DEBUG_FSis not set
#CONFIG_DEBUG_VMis not set
#CONFIG_RCU_TORTURE_TESTis not set
#CONFIG_USE_FRAME_POINTERis not setCONFIG_EARLY_PRINTK=y
#CONFIG_DEBUG_STACKOVERFLOWis not set
#CONFIG_KPROBESis not set
#CONFIG_DEBUG_STACK_USAGEis not set
#CONFIG_DEBUG_PAGEALLOCis not set
#CONFIG_4KSTACKSis not setCONFIG_X86_FIND_SMP_CONFIG=yCONFIG_X86_MPPARSE=y#
# Security options
#
#CONFIG_KEYSis not set
#CONFIG_SECURITYis not set#
# Cryptographic options
#CONFIG_CRYPTO=yCONFIG_CRYPTO_HMAC=yCONFIG_CRYPTO_NULL=yCONFIG_CRYPTO_MD4=yCONFIG_CRYPTO_MD5=yCONFIG_CRYPTO_SHA1=yCONFIG_CRYPTO_SHA256=y
#CONFIG_CRYPTO_SHA512is not set
#CONFIG_CRYPTO_WP512is not set
#CONFIG_CRYPTO_TGR192is not setCONFIG_CRYPTO_DES=yCONFIG_CRYPTO_BLOWFISH=yCONFIG_CRYPTO_TWOFISH=yCONFIG_CRYPTO_SERPENT=y
#CONFIG_CRYPTO_AES_586is not set
#CONFIG_CRYPTO_CAST5is not set
#CONFIG_CRYPTO_CAST6is not set
#CONFIG_CRYPTO_TEAis not set
#CONFIG_CRYPTO_ARC4is not set
#CONFIG_CRYPTO_KHAZADis not set
#CONFIG_CRYPTO_ANUBISis not set
#CONFIG_CRYPTO_DEFLATEis not set
#CONFIG_CRYPTO_MICHAEL_MICis not set
#CONFIG_CRYPTO_CRC32Cis not setCONFIG_CRYPTO_TEST=y#
# Hardware crypto devices
#
#CONFIG_CRYPTO_DEV_PADLOCKis not set#
# Library routines
#
#CONFIG_CRC_CCITTis not set
#CONFIG_CRC16is not setCONFIG_CRC32=y
#CONFIG_LIBCRC32Cis not setCONFIG_ZLIB_INFLATE=yCONFIG_GENERIC_HARDIRQS=yCONFIG_GENERIC_IRQ_PROBE=yCONFIG_GENERIC_PENDING_IRQ=yCONFIG_X86_SMP=yCONFIG_X86_HT=yCONFIG_X86_BIOS_REBOOT=yCONFIG_X86_TRAMPOLINE=yCONFIG_PC=y
Quoted 10 lines · David Singleton
Quoted 7 lines
I was testing PI support in the -rt tree (-rt13) when I hit the BUG below. I am using the BULL/Montavista glibc patches. However I would think this can be reproduced using just plain FUTEX_WAKE/WAIT_ROBUST APIs as well, though I havent tried. I can send out the test code if anybody is interested. I have attached the .config below.
If I make the lock in the
timer_base_sstruct a raw spinlock this
BUG goes away.
that most likely just papers over the real bug. Given task-reference count bug i fixed in the robust/PI-futexes code (see the patch below) i suspect some more races and/or plain incorrect code.
[this patch below also converts the robust/PI-futex code to use RCU instead of the tasklist_lock - which should remove a major latency source from the futex code].
Ingo
kernel/rt.c +12 -4
@@ -2939,15 +2939,20 @@ EXPORT_SYMBOL(rt_mutex_owned_by);* and now own the lock, or negative values for failure, or positive * values for the amount of time we waited before getting the lock. */ -int fastcall down_futex(struct rt_mutex *lock, unsigned long time, pid_t owner_pid) +int fastcall +down_futex (struct rt_mutex *lock,unsigned long time,pid_t owner_pid) {struct task_struct *owner_task =NULL ;#ifdef CONFIG_DEBUG_DEADLOCKS unsigned long eip =CALLER_ADDR0 ;#endif -read_lock (&tasklist_lock); +int ret; + +rcu_read_lock (); owner_task =find_task_by_pid (owner_pid); -read_unlock (&tasklist_lock); +if (!get_task_struct_rcu (owner_task)) + owner_task =NULL ; +rcu_read_unlock ();if (!owner_task)return -EOWNERDEAD ;
@@ -2956,7 +2961,10 @@ int fastcall down_futex(struct rt_mutex __down_mutex(lock __EIP__);rt_mutex_set_owner (lock, owner_task->thread_info); } - return __down_interruptible(lock, time __EIP__); + ret = __down_interruptible(lock, time __EIP__); +put_task_struct (owner_task); + +return ret; }EXPORT_SYMBOL (down_futex);
Quoted 14 lines · Ingo Molnar
Quoted 10 lines · David Singleton
Quoted 7 lines
I was testing PI support in the -rt tree (-rt13) when I hit the BUG below. I am using the BULL/Montavista glibc patches. However I would think this can be reproduced using just plain FUTEX_WAKE/WAIT_ROBUST APIs as well, though I havent tried. I can send out the test code if anybody is interested. I have attached the .config below.
If I make the lock in the
timer_base_sstruct a raw spinlock this
BUG goes away.
Quoted 8 lines
that most likely just papers over the real bug. Given task-reference count bug i fixed in the robust/PI-futexes code (see the patch below) i suspect some more races and/or plain incorrect code.
[this patch below also converts the robust/PI-futex code to use RCU instead of the
tasklist_lock- which should remove a major latency source from the futex code].
[snip patch]
Ingo, Thanks for providing the fix. However I still hit the same bug even with your changes
-Dinakar
testpi-1/1153[CPU#1]: BUG in FREE_WAITER at kernel/rt.c:1368
[<c011a700>] __WARN_ON+0x60/0x80 (8) [<c037e97e>] __down_mutex+0x4fe/0x7fd (48) [<c01337a9>] pi_setprio+0xa1/0x642 (104) [<c0122796>] lock_timer_base+0x19/0x33 (8) [<c0380d7d>] _spin_lock_irqsave+0x1d/0x46 (12) [<c0122796>] lock_timer_base+0x19/0x33 (8) [<c0122796>] lock_timer_base+0x19/0x33 (16) [<c01227e8>] __mod_timer+0x38/0xdf (16) [<c013b15b>] sub_preempt_count+0x1a/0x1e (12) [<c03806dd>] __down_interruptible+0x923/0xb2b (20) [<c013c8cd>] futex_wait_robust+0x151/0x25b (16) [<c03813b4>] _raw_spin_unlock+0x12/0x2c (8) [<c0134ba6>] process_timeout+0x0/0x9 (36) [<c013c8cd>] futex_wait_robust+0x151/0x25b (64) [<c013c8cd>] futex_wait_robust+0x151/0x25b (24) [<c0138270>] down_futex+0x66/0xab (8) [<c013c8cd>] futex_wait_robust+0x151/0x25b (12) [<c013c8cd>] futex_wait_robust+0x151/0x25b (20) [<c013affe>] add_preempt_count_ti+0x1e/0xc6 (100) [<c03813b4>] _raw_spin_unlock+0x12/0x2c (44) [<c013d06e>] do_futex+0x96/0xfc (24) [<c013d1cc>] sys_futex+0xf8/0x104 (40) [<c0102ce7>] sysenter_past_esp+0x54/0x75 (60) ---------------------------
| preempt count: 00000001 ]
| 1-level deep critical section nesting:
----------------------------------------
.. [<c013b0c0>] .... add_preempt_count+0x1a/0x1e
.....[<00000000>] .. ( <= stext+0x3feffd68/0x8)
------------------------------
| showing all locks held by: | (testpi-1/1153 [f7bd2730, 69]):
------------------------------
#001: [c3878fe0] {&base->t_base.lock}
... acquired at: lock_timer_base+0x19/0x33
testpi-1/1153[CPU#2]: BUG in FREE_WAITER at kernel/rt.c:1368
[<c011a700>] __WARN_ON+0x60/0x80 (8) [<c037e97e>] __down_mutex+0x4fe/0x7fd (48) [<c03813b4>] _raw_spin_unlock+0x12/0x2c (100) [<c0122838>] __mod_timer+0x88/0xdf (12) [<c0380c3d>] __lock_text_start+0x1d/0x41 (12) [<c0122838>] __mod_timer+0x88/0xdf (8) [<c0122838>] __mod_timer+0x88/0xdf (16) [<c013b15b>] sub_preempt_count+0x1a/0x1e (12) [<c03806dd>] __down_interruptible+0x923/0xb2b (20) [<c013c8cd>] futex_wait_robust+0x151/0x25b (16) [<c03813b4>] _raw_spin_unlock+0x12/0x2c (8) [<c0134ba6>] process_timeout+0x0/0x9 (36) [<c013c8cd>] futex_wait_robust+0x151/0x25b (64) [<c013c8cd>] futex_wait_robust+0x151/0x25b (24) [<c0138270>] down_futex+0x66/0xab (8) [<c013c8cd>] futex_wait_robust+0x151/0x25b (12) [<c013c8cd>] futex_wait_robust+0x151/0x25b (20) [<c013affe>] add_preempt_count_ti+0x1e/0xc6 (100) [<c03813b4>] _raw_spin_unlock+0x12/0x2c (44) [<c013d06e>] do_futex+0x96/0xfc (24) [<c013d1cc>] sys_futex+0xf8/0x104 (40) [<c0102ce7>] sysenter_past_esp+0x54/0x75 (60) ---------------------------
| preempt count: 00000001 ]
| 1-level deep critical section nesting:
----------------------------------------
.. [<c013b0c0>] .... add_preempt_count+0x1a/0x1e
.....[<00000000>] .. ( <= stext+0x3feffd68/0x8)
------------------------------
| showing all locks held by: | (testpi-1/1153 [f7bd2730, 69]):
------------------------------
#001: [c3888fe0] {&base->t_base.lock}
... acquired at: __mod_timer+0x88/0xdf
testpi-1/1155[CPU#0]: BUG in FREE_WAITER at kernel/rt.c:1368
[<c011a700>] __WARN_ON+0x60/0x80 (8) [<c037e97e>] __down_mutex+0x4fe/0x7fd (48) [<c01337a9>] pi_setprio+0xa1/0x642 (104) [<c0122796>] lock_timer_base+0x19/0x33 (8) [<c0380d7d>] _spin_lock_irqsave+0x1d/0x46 (12) [<c0122796>] lock_timer_base+0x19/0x33 (8) [<c0122796>] lock_timer_base+0x19/0x33 (16) [<c01227e8>] __mod_timer+0x38/0xdf (16) [<c013b15b>] sub_preempt_count+0x1a/0x1e (12) [<c03806dd>] __down_interruptible+0x923/0xb2b (20) [<c013c8cd>] futex_wait_robust+0x151/0x25b (16) [<c0134ba6>] process_timeout+0x0/0x9 (44) [<c013c8cd>] futex_wait_robust+0x151/0x25b (64) [<c013c8cd>] futex_wait_robust+0x151/0x25b (24) [<c0138270>] down_futex+0x66/0xab (8) [<c013c8cd>] futex_wait_robust+0x151/0x25b (12) [<c013c8cd>] futex_wait_robust+0x151/0x25b (20) [<c03813b4>] _raw_spin_unlock+0x12/0x2c (76) [<c0380c3d>] __lock_text_start+0x1d/0x41 (24) [<c013d06e>] do_futex+0x96/0xfc (68) [<c013d1cc>] sys_futex+0xf8/0x104 (40) [<c0102ce7>] sysenter_past_esp+0x54/0x75 (60) ---------------------------
| preempt count: 00000001 ]
| 1-level deep critical section nesting:
----------------------------------------
.. [<c013b0c0>] .... add_preempt_count+0x1a/0x1e
.....[<00000000>] .. ( <= stext+0x3feffd68/0x8)
------------------------------
| showing all locks held by: | (testpi-1/1155 [f6fb8730, 0]):
------------------------------
#001: [c3868fe0] {&base->t_base.lock}
... acquired at: lock_timer_base+0x19/0x33
===================================================================
Different testcase, similar result
testpi-2/1159[CPU#1]: BUG in FREE_WAITER at kernel/rt.c:1368
[<c011a700>] __WARN_ON+0x60/0x80 (8) [<c037e97e>] __down_mutex+0x4fe/0x7fd (48) [<c01337a9>] pi_setprio+0xa1/0x642 (104) [<c0122796>] lock_timer_base+0x19/0x33 (8) [<c0380d7d>] _spin_lock_irqsave+0x1d/0x46 (12) [<c0122796>] lock_timer_base+0x19/0x33 (8) [<c0122796>] lock_timer_base+0x19/0x33 (16) [<c01227e8>] __mod_timer+0x38/0xdf (16) [<c013b15b>] sub_preempt_count+0x1a/0x1e (12) [<c03806dd>] __down_interruptible+0x923/0xb2b (20) [<c013c8cd>] futex_wait_robust+0x151/0x25b (16) [<c03813b4>] _raw_spin_unlock+0x12/0x2c (8) [<c0134ba6>] process_timeout+0x0/0x9 (36) [<c013c8cd>] futex_wait_robust+0x151/0x25b (64) [<c013c8cd>] futex_wait_robust+0x151/0x25b (24) [<c0138270>] down_futex+0x66/0xab (8) [<c013c8cd>] futex_wait_robust+0x151/0x25b (12) [<c013c8cd>] futex_wait_robust+0x151/0x25b (20) [<c013affe>] add_preempt_count_ti+0x1e/0xc6 (100) [<c03813b4>] _raw_spin_unlock+0x12/0x2c (44) [<c013d06e>] do_futex+0x96/0xfc (24) [<c013d1cc>] sys_futex+0xf8/0x104 (40) [<c0102ce7>] sysenter_past_esp+0x54/0x75 (60) ---------------------------
| preempt count: 00000001 ]
| 1-level deep critical section nesting:
----------------------------------------
.. [<c013b0c0>] .... add_preempt_count+0x1a/0x1e
.....[<00000000>] .. ( <= stext+0x3feffd68/0x8)
------------------------------
| showing all locks held by: | (testpi-2/1159 [f6650020, 69]):
------------------------------
#001: [c3878fe0] {&base->t_base.lock}
... acquired at: lock_timer_base+0x19/0x33
testpi-2/1160[CPU#1]: BUG in FREE_WAITER at kernel/rt.c:1368
[<c011a700>] __WARN_ON+0x60/0x80 (8) [<c037e97e>] __down_mutex+0x4fe/0x7fd (48) [<c01337a9>] pi_setprio+0xa1/0x642 (104) [<c0122796>] lock_timer_base+0x19/0x33 (8) [<c0380d7d>] _spin_lock_irqsave+0x1d/0x46 (12) [<c0122796>] lock_timer_base+0x19/0x33 (8) [<c0122796>] lock_timer_base+0x19/0x33 (16) [<c01227e8>] __mod_timer+0x38/0xdf (16) [<c013b15b>] sub_preempt_count+0x1a/0x1e (12) [<c03806dd>] __down_interruptible+0x923/0xb2b (20) [<c013c8cd>] futex_wait_robust+0x151/0x25b (16) [<c0134ba6>] process_timeout+0x0/0x9 (44) [<c013c8cd>] futex_wait_robust+0x151/0x25b (64) [<c013c8cd>] futex_wait_robust+0x151/0x25b (24) [<c0138270>] down_futex+0x66/0xab (8) [<c013c8cd>] futex_wait_robust+0x151/0x25b (12) [<c013c8cd>] futex_wait_robust+0x151/0x25b (20) [<c03813b4>] _raw_spin_unlock+0x12/0x2c (76) [<c013d06e>] do_futex+0x96/0xfc (92) [<c013d1cc>] sys_futex+0xf8/0x104 (40) [<c0102ce7>] sysenter_past_esp+0x54/0x75 (60) ---------------------------
| preempt count: 00000001 ]
| 1-level deep critical section nesting:
----------------------------------------
.. [<c013b0c0>] .... add_preempt_count+0x1a/0x1e
.....[<00000000>] .. ( <= stext+0x3feffd68/0x8)
------------------------------
| showing all locks held by: | (testpi-2/1160 [f6f58830, 59]):
------------------------------
#001: [c3878fe0] {&base->t_base.lock}
... acquired at: lock_timer_base+0x19/0x33
testpi-2/1161[CPU#2]: BUG in FREE_WAITER at kernel/rt.c:1368
[<c011a700>] __WARN_ON+0x60/0x80 (8) [<c037e97e>] __down_mutex+0x4fe/0x7fd (48) [<c01337a9>] pi_setprio+0xa1/0x642 (104) [<c0122796>] lock_timer_base+0x19/0x33 (8) [<c0380d7d>] _spin_lock_irqsave+0x1d/0x46 (12) [<c0122796>] lock_timer_base+0x19/0x33 (8) [<c0122796>] lock_timer_base+0x19/0x33 (16) [<c01227e8>] __mod_timer+0x38/0xdf (16) [<c013b15b>] sub_preempt_count+0x1a/0x1e (12) [<c03806dd>] __down_interruptible+0x923/0xb2b (20) [<c013c8cd>] futex_wait_robust+0x151/0x25b (16) [<c0134ba6>] process_timeout+0x0/0x9 (44) [<c013c8cd>] futex_wait_robust+0x151/0x25b (64) [<c013c8cd>] futex_wait_robust+0x151/0x25b (24) [<c0138270>] down_futex+0x66/0xab (8) [<c013c8cd>] futex_wait_robust+0x151/0x25b (12) [<c013c8cd>] futex_wait_robust+0x151/0x25b (20) [<c03813b4>] _raw_spin_unlock+0x12/0x2c (76) [<c0380c3d>] __lock_text_start+0x1d/0x41 (24) [<c013d06e>] do_futex+0x96/0xfc (68) [<c013d1cc>] sys_futex+0xf8/0x104 (40) [<c0102ce7>] sysenter_past_esp+0x54/0x75 (60) ---------------------------
| preempt count: 00000001 ]
| 1-level deep critical section nesting:
----------------------------------------
.. [<c013b0c0>] .... add_preempt_count+0x1a/0x1e
.....[<00000000>] .. ( <= stext+0x3feffd68/0x8)
------------------------------
| showing all locks held by: | (testpi-2/1161 [f6c08120, 0]):
------------------------------
#001: [c3888fe0] {&base->t_base.lock}
... acquired at: lock_timer_base+0x19/0x33
Quoted 2 lines · Dinakar Guniguntala
Ingo, Thanks for providing the fix. However I still hit the same bug even with your changes
even with my patch the robust-futex code is still quite broken. E.g. in down_futex(), it accesses rt-mutex internals without any locking (!):
if (rt_mutex_free(lock)) {
__down_mutex(lock __EIP__);
rt_mutex_set_owner(lock, owner_task->thread_info);
}both rt_mutex_free() and rt_mutex_set_owner() must be called with the proper locking. David?
Ingo
Quoted 9 lines · Ingo Molnar
Quoted 2 lines · Dinakar Guniguntala
Ingo, Thanks for providing the fix. However I still hit the same bug even with your changes
even with my patch the robust-futex code is still quite broken. E.g. in
down_futex(), it accesses rt-mutex internals without any locking (!):
Quoted 7 lines
if (rt_mutex_free(lock)) { __down_mutex(lock __EIP__); rt_mutex_set_owner(lock, owner_task->thread_info); }both
rt_mutex_free()andrt_mutex_set_owner()must be called with the proper locking. David?
Yes, the lock needs to be protected by the robust semaphore. The locking order is:
mmap_sem to protect the vma that holds the pthread_mutex
robust_sem to protect the futex_mutex chain.
futex_mutex - the rt_mutex associated with thepthread_mutex.
This section of code performs the locking of the first waiter on the pthread_mutex, which was locked by another thread in the fast path in userspace. The fast path locking does not enter
the
kernel.
The first waiter locks the futex_mutex and then changes the owner to the 'owning' thread. The waiter then callsdown_interruptible
to block on the futex_mutex.
I'll provide a patch to protect this piece of code.
David
Quoted 2 lines
Ingo
Quoted 6 lines · david singleton
Quoted 2 lines
both
rt_mutex_free()andrt_mutex_set_owner()must be called with the proper locking. David?Yes, the lock needs to be protected by the robust semaphore. The locking order is:
Quoted 6 lines
mmap_semto protect the vma that holds thepthread_mutex
robust_semto protect thefutex_mutexchain.
futex_mutex- thert_mutexassociated with thepthread_mutex.
well, also lock->wait_lock and lock->pi_lock. The act of making another thread the owner of this particular mutex must be performed carefully. Check out rt.c to see what locking dependencies there are. (We can also do a lockless cmpxchg for unlocked mutexes, under certain circumstances.)
Ingo
Quoted 13 lines · Ingo Molnar
Quoted 9 lines · david singleton
Quoted 4 lines
both
rt_mutex_free()andrt_mutex_set_owner()must be called with the proper locking. David?Yes, the lock needs to be protected by the robust semaphore. The locking order is:
mmap_semto protect the vma that holds thepthread_mutex
Quoted 10 lines
Quoted 6 lines
robust_semto protect thefutex_mutexchain.
futex_mutex- thert_mutexassociated with thepthread_mutex.well, also
lock->wait_lockandlock->pi_lock. The act of making another thread the owner of this particular mutex must be performed carefully. Check outrt.cto see what locking dependencies there are. (We can also do a lockless cmpxchg for unlocked mutexes, under certain
Ingo,
here is a patch that provides the correct locking for the rt_mutex
backing the robustpthread_mutex. The patch also unifies the locking for all the robust functions and
adds support for pthread_mutexes on the heap.
David
Quoted 5 lines
circumstances.)
Ingo
Description:
This patch unifies the locking for the robust futex functions, correctly protects the rt_mutex backing the pthread mutex and adds the support for pthread_mutexes allocated on the heap.
linux-2.6.14/kernel/futex.c +178 -256
@@ -145,7 +145,8 @@* * Should be called with ¤t->mm->mmap_sem but NOT any spinlocks. */ -static int get_futex_key (unsigned long uaddr,union futex_key *key) +static int get_futex_key (unsigned long uaddr,union futex_key *key, +struct list_head **list,struct semaphore **sem) {struct mm_struct *mm = current->mm;struct vm_area_struct *vma;
@@ -168,6 +169,18 @@if (unlikely (!vma))return -EFAULT ; +if (vma->vm_file ==NULL ) { +if (vma->robust_init) { + *list = &vma->robust_list; + *sem = &vma->robust_sem; + } + }else if (vma->vm_file->f_mapping ==NULL ) { +return -EINVAL ; + }else { + *list = &vma->vm_file->f_mapping->robust_list; + *sem = &vma->vm_file->f_mapping->robust_sem; + } +/* * Permissions. */
@@ -306,13 +319,18 @@struct futex_hash_bucket *bh;struct list_head *head;struct futex_q *this, *next; +struct semaphore *sem;int ret;down_read (¤t->mm->mmap_sem); - ret =get_futex_key (uaddr, &key); + ret =get_futex_key (uaddr, &key, &head, &sem);if (unlikely (ret !=0 )) goto out; +if (head ==NULL ) { + ret = -EINVAL ; + goto out; + } bh =hash_futex (&key);spin_lock (&bh->lock);
@@ -341,16 +359,17 @@union futex_key key1, key2;struct futex_hash_bucket *bh1, *bh2;struct list_head *head; +struct semaphore *sem;struct futex_q *this, *next;int ret, op_ret, attempt =0 ; retryfull:down_read (¤t->mm->mmap_sem); - ret =get_futex_key (uaddr1, &key1); + ret =get_futex_key (uaddr1, &key1, &head, &sem);if (unlikely (ret !=0 )) goto out; - ret =get_futex_key (uaddr2, &key2); + ret =get_futex_key (uaddr2, &key2, &head, &sem);if (unlikely (ret !=0 )) goto out;
@@ -454,16 +473,17 @@union futex_key key1, key2;struct futex_hash_bucket *bh1, *bh2;struct list_head *head1; +struct semaphore *sem;struct futex_q *this, *next;int ret, drop_count =0 ; retry:down_read (¤t->mm->mmap_sem); - ret =get_futex_key (uaddr1, &key1); + ret =get_futex_key (uaddr1, &key1, &head1, &sem);if (unlikely (ret !=0 )) goto out; - ret =get_futex_key (uaddr2, &key2); + ret =get_futex_key (uaddr2, &key2, &head1, &sem);if (unlikely (ret !=0 )) goto out;
@@ -628,11 +648,13 @@int ret, curval;struct futex_q q;struct futex_hash_bucket *bh; +struct list_head *head; +struct semaphore *sem; retry:down_read (¤t->mm->mmap_sem); - ret =get_futex_key (uaddr, &q.key); + ret =get_futex_key (uaddr, &q.key, &head, &sem);if (unlikely (ret !=0 )) goto out_release_sem;
@@ -775,6 +797,8 @@ {struct futex_q *q;struct file *filp; +struct list_head *head; +struct semaphore *sem;int ret, err; ret = -EINVAL ;
@@ -810,7 +834,7 @@ }down_read (¤t->mm->mmap_sem); - err =get_futex_key (uaddr, &q->key); + err =get_futex_key (uaddr, &q->key, &head, &sem);if (unlikely (err !=0 )) {up_read (¤t->mm->mmap_sem);
@@ -863,133 +887,6 @@ };/* -* Get parameters which are the keys for a robust futex. -* -* For shared mappings, it's (page->index, vma->vm_file->f_dentry->d_inode, -* offset_within_page). For private mappings, it's (uaddr, current->mm). -* We can usually work out the index without swapping in the page. -* -* Returns: 0, or negative error code. -* The key words are stored in *key on success. -* -* Should be called with ¤t->mm->mmap_sem but NOT any spinlocks. -*/ -static int get_robust_futex_key (unsigned long uaddr,union futex_key *key, -struct futex_robust **robust) -{ -struct mm_struct *mm = current->mm; -struct vm_area_struct *vma; -struct address_space *mapping; -struct page *page; -struct list_head *head; -struct futex_robust *this, *next; -int found =0 ; -int err =1 ; - -/* -* The futex address must be "naturally" aligned. -*/ - key->both.offset = uaddr %PAGE_SIZE ; -if (unlikely ((key->both.offset %sizeof (u32)) !=0 )) -return -EINVAL ; - uaddr -= key->both.offset; - -/* -* The futex is hashed differently depending on whether -* it's in a shared or private mapping. So check vma first. -*/ - vma =find_extend_vma (mm, uaddr); -if (unlikely (!vma)) -return -EFAULT ; - -if (vma->vm_file ==NULL ) -return -EINVAL ; -/* -* Permissions. -*/ -if (unlikely ((vma->vm_flags & (VM_IO |VM_READ )) !=VM_READ )) -return (vma->vm_flags &VM_IO ) ? -EPERM : -EACCES ; - -/* -* Private mappings are handled in a simple way. -* -* NOTE: When userspace waits on a MAP_SHARED mapping, even if -* it's a read-only handle, it's expected that futexes attach to -* the object not the particular process. Therefore we use -* VM_MAYSHARE here, not VM_SHARED which is restricted to shared -* mappings of _writable_ handles. -*/ -if (likely (!(vma->vm_flags &VM_MAYSHARE ))) { - key->private.mm = mm; - key->private.uaddr = uaddr; - err =0 ; - goto out; - } - -/* -* Linear file mappings are also simple. -*/ - key->shared.inode = vma->vm_file->f_dentry->d_inode; - key->both.offset++;/* Bit 0 of offset indicates inode-based key. */ -if (likely (!(vma->vm_flags &VM_NONLINEAR ))) { - key->shared.pgoff = (((uaddr - vma->vm_start) >>PAGE_SHIFT ) - + vma->vm_pgoff); - err =0 ; - goto out; - } - -/* -* We could walk the page table to read the non-linear -* pte, and get the page index without fetching the page -* from swap. But that's a lot of code to duplicate here -* for a rare case, so we simply fetch the page. -*/ - -/* -* Do a quick atomic lookup first - this is the fastpath. -*/ -spin_lock (¤t->mm->page_table_lock); - page =follow_page (mm, uaddr,0 ); -if (likely (page !=NULL )) { - key->shared.pgoff = - page->index << (PAGE_CACHE_SHIFT -PAGE_SHIFT ); -spin_unlock (¤t->mm->page_table_lock); - err =0 ; - goto out; - } -spin_unlock (¤t->mm->page_table_lock); - -/* -* Do it the general way. -*/ - err =get_user_pages (current, mm, uaddr,1 ,0 ,0 , &page,NULL ); -if (err >=0 ) { - key->shared.pgoff = - page->index << (PAGE_CACHE_SHIFT -PAGE_SHIFT ); -put_page (page); - err =0 ; - } -out: - mapping = vma->vm_file->f_mapping; -if (mapping) { -down (&mapping->robust_sem); - head = &mapping->robust_list; - -list_for_each_entry_safe (this, next, head, list) { -if (match_futex (&this->key, key)) { - found++; - *robust = this; -break ; - } - } -up (&mapping->robust_sem); - } -if (!found) - err = -EINVAL ; -return err; -} - -/* * there really isn't an atomic page fault, so we're going to * put the burden on the user. If either futex_get_user or futex_put_user * return -EFAULT, it really means it's avoiding a race condition
@@ -1027,29 +924,29 @@ {struct thread_info *ti =current_thread_info ();union futex_key key; -struct futex_hash_bucket *bh; -struct list_head *head; -struct futex_q *this, *next; +struct list_head *head =NULL ; +struct semaphore *sem =NULL ; +struct futex_robust *this, *next;int ret;int value;int found =0 ; -struct futex_robust *robust; retry:down_read (¤t->mm->mmap_sem); - ret =get_robust_futex_key (uaddr, &key, &robust); + ret =get_futex_key (uaddr, &key, &head, &sem);if (ret !=0 ) goto out; - - bh =hash_futex (&key); -spin_lock (&bh->lock); +if (head ==NULL ) { + ret = -EINVAL ; + goto out; + } +down (sem); ret =get_futex_value_locked (&value, (int __user *)uaddr);if (unlikely (ret)) { -spin_unlock (&bh->lock); - +up (sem);/* If we would have faulted, release mmap_sem, fault it in and * start all over again. */
@@ -1062,8 +959,6 @@return ret; } - head = &bh->chain; -/* * if the owner died, mark the futex as not recoverable * and wake up all waiting tasks.
@@ -1075,23 +970,21 @@ goto out_unlock; }list_for_each_entry_safe (this, next, head, list) { -if (match_futex (&this->key, &robust->key)) { -up_futex (&robust->futex_mutex); - ret++; +if (match_futex (&this->key, &key)) { +up_futex (&this->futex_mutex); } } goto out_unlock; } -/* find the first waiting task */ list_for_each_entry_safe (this, next, head, list) { -if (match_futex (&this->key, &robust->key)) { +if (match_futex (&this->key, &key)) { found++; -if ((rt_mutex_owner (&robust->futex_mutex)) != ti) { +if ((rt_mutex_owner (&this->futex_mutex)) != ti) { ret = -EINVAL ; - goto out; + goto out_unlock; } -if (!rt_mutex_has_waiters (&robust->futex_mutex)) { +if (!rt_mutex_has_waiters (&this->futex_mutex)) { value =0 ;break ; }else {
@@ -1110,11 +1003,11 @@ ret = -EFAULT ; goto out_unlock; } -up_futex (&robust->futex_mutex); +up_futex (&this->futex_mutex); ret =1 ; out_unlock: -spin_unlock (&bh->lock); +up (sem); out:up_read (¤t->mm->mmap_sem);return ret;
@@ -1132,24 +1025,29 @@static int futex_wait_robust (unsigned long uaddr,unsigned long time) {int ret, curval; -struct futex_q q; -struct futex_hash_bucket *bh; -struct futex_robust *robust; +struct futex_robust *this, *next; +struct list_head *head =NULL ; +struct semaphore *sem =NULL ; +union futex_key key;pid_t owner_pid; +int found =0 ; retry:down_read (¤t->mm->mmap_sem); - ret =get_robust_futex_key (uaddr, &q.key, &robust); + ret =get_futex_key (uaddr, &key, &head, &sem);if (ret !=0 ) - goto out_release_sem; - - bh =queue_lock (&q,-1 ,NULL ); + goto out; +if (head ==NULL ) { + ret = -EINVAL ; + goto out; + } +down (sem); ret =get_futex_value_locked (&curval, (int __user *)uaddr);if (unlikely (ret)) { -queue_unlock (&q, bh); +up (sem);/* If we would have faulted, release mmap_sem, fault it in and * start all over again.
@@ -1170,54 +1068,49 @@*/ if (curval ==0 ) { ret = -EAGAIN ; -queue_unlock (&q, bh); - goto out_release_sem; + goto out_unlock; + } +if ((curval &FUTEX_PID ) == current->pid) { + ret = -EAGAIN ; + goto out_unlock; }/* if owner has died, we don't want to wait */ if ((curval &FUTEX_OWNER_DIED )) { ret = -EOWNERDEAD ; -queue_unlock (&q, bh); - goto out_release_sem; + goto out_unlock; } -__queue_me (&q, bh); - -/* -* Now the futex is queued and we have checked the data, we -* don't want to hold mmap_sem while we sleep. -*/ -up_read (¤t->mm->mmap_sem); - -/* -* There might have been scheduling since the queue_me(), as we -* cannot hold a spinlock across the get_user() in case it -* faults, and we cannot just set TASK_INTERRUPTIBLE state when -* queueing ourselves into the futex hash. This code thus has to -* rely on the futex_wake() code removing us from hash when it -* wakes us up. -*/ +list_for_each_entry_safe (this, next, head, list) { +if (match_futex (&this->key, &key)) { + found++; +break ; + } + } +if (!found) { + ret = -EINVAL ; + goto out_unlock; + } +get_key_refs (&key); - ret =down_futex (&robust->futex_mutex, time, owner_pid); -unqueue_me (&q); -if (ret <0 ) { - goto out; - }else { + ret =down_futex (&this->futex_mutex, time, owner_pid, sem); +if (ret >=0 ) { curval =futex_get_user (uaddr); curval &= ~FUTEX_PID ; curval |= current->pid; -if (rt_mutex_has_waiters (&robust->futex_mutex)) +if (rt_mutex_has_waiters (&this->futex_mutex)) curval |=FUTEX_WAITERS ; ret =futex_put_user (curval, uaddr);if (curval &FUTEX_OWNER_DIED ) { ret = -EOWNERDEAD ; } - goto out; } +return ret; -out_release_sem: -up_read (¤t->mm->mmap_sem); +out_unlock: +up (sem); out: +up_read (¤t->mm->mmap_sem);return ret; }
@@ -1330,31 +1223,30 @@/** * find_owned_futex - find futexes owned by the current task * @vma: the vma to search for futexes +* @head: list head for list of robust futexes +* @sem: semaphore that protects the list * * Walk the list of registered robust futexes for this @vma, * setting the %FUTEX_OWNER_DIED flag on those futexes owned * by the current, exiting task. */ -static void find_owned_futex (struct vm_area_struct *vma) +static void find_owned_futex (struct vm_area_struct *vma,struct list_head *head, +struct semaphore *sem) {struct thread_info *ti =current_thread_info (); -struct address_space *mapping; -struct list_head *head;struct futex_robust *this, *next;unsigned long uaddr;int value; - mapping = vma->vm_file->f_mapping; -down (&mapping->robust_sem); +down (sem); - head = &mapping->robust_list;list_for_each_entry_safe (this, next, head, list) { uaddr =get_futex_uaddr (&this->key, vma);if (uaddr ==0 )continue ; -up (&mapping->robust_sem); +up (sem);up_read (¤t->mm->mmap_sem); value =futex_get_user (uaddr);if (this->futex_mutex.mutex_attr &FUTEX_ATTR_ROBUST )
@@ -1371,11 +1263,11 @@ value &= ~FUTEX_PID ;futex_put_user (value, uaddr); } -down (&mapping->robust_sem); +down (sem);down_read (¤t->mm->mmap_sem); } -up (&mapping->robust_sem); +up (sem); }/**
@@ -1390,6 +1282,7 @@struct mm_struct *mm;struct vm_area_struct *vma;struct list_head *list; +struct semaphore *sem;if (tsk==NULL )return ;
@@ -1401,22 +1294,36 @@down_read (&mm->mmap_sem);for (vma = mm->mmap; vma !=NULL ; vma = vma->vm_next) { -if (vma->vm_file ==NULL ) -continue ; +if (vma->vm_file ==NULL ) { +if (vma->robust_init) { + sem = &vma->robust_sem; + list = &vma->robust_list; + }else +continue ; -if (vma->vm_file->f_mapping ==NULL ) -continue ; + }else { +if (vma->vm_file->f_mapping ==NULL ) +continue ; - list = &vma->vm_file->f_mapping->robust_list; + list = &vma->vm_file->f_mapping->robust_list; + sem = &vma->vm_file->f_mapping->robust_sem; + }if (list_empty (list))continue ; -find_owned_futex (vma); +find_owned_futex (vma, list, sem); }up_read (&mm->mmap_sem); } +static void futex_init_anon (struct vm_area_struct *vma) +{ +INIT_LIST_HEAD (&vma->robust_list); +init_MUTEX (&vma->robust_sem); + vma->robust_init =1 ; +} +/** * futex_register - Record the existence of a robust futex in a vma. * @uaddr: user space address of the robust futex
@@ -1431,8 +1338,8 @@struct futex_robust *robust;struct mm_struct *mm = current->mm;struct vm_area_struct *vma; -struct file *file; -struct address_space *mapping; +struct list_head *head =NULL ; +struct semaphore *sem =NULL ; robust =kmalloc (sizeof (*robust),GFP_KERNEL );down_read (¤t->mm->mmap_sem);
@@ -1449,7 +1356,7 @@* priority queueing is default on robust mutexes. */ - ret =get_futex_key (uaddr, &robust->key); + ret =get_futex_key (uaddr, &robust->key, &head, &sem);if (unlikely (ret !=0 )) {kfree (robust); goto out;
@@ -1462,17 +1369,25 @@ goto out; } - file = vma->vm_file; -if (!file) { - ret = -EINVAL ; -kfree (robust); - goto out; +if (vma->vm_file ==NULL ) { +if (vma->robust_init ==0 ) +futex_init_anon (vma); + head = &vma->robust_list; + sem = &vma->robust_sem; + }else { +if (vma->vm_file->f_mapping) { + head = &vma->vm_file->f_mapping->robust_list; + sem = &vma->vm_file->f_mapping->robust_sem; + }else { + ret = -EINVAL ; +kfree (robust); + goto out; + } } - mapping = file->f_mapping; -down (&mapping->robust_sem); -list_add_tail (&robust->list, &mapping->robust_list); -up (&mapping->robust_sem); +down (sem); +list_add_tail (&robust->list, head); +up (sem); out:up_read (¤t->mm->mmap_sem);
@@ -1492,35 +1407,21 @@ {struct thread_info *ti =current_thread_info ();union futex_key key; -struct mm_struct *mm = current->mm; -struct vm_area_struct *vma; -struct file *file; -struct address_space *mapping; -struct list_head *head; -struct futex_robust *this, *next, *robust; +struct list_head *head =NULL ; +struct semaphore *sem =NULL ; +struct futex_robust *this, *next;int ret; -down_read (&mm->mmap_sem); +down_read (¤t->mm->mmap_sem); - ret =get_robust_futex_key (uaddr, &key, &robust); + ret =get_futex_key (uaddr, &key, &head, &sem);if (unlikely (ret !=0 )) goto out; - - vma =find_extend_vma (mm, uaddr); -if (unlikely (!vma)) { - ret = -EFAULT ; - goto out; - } - - file = vma->vm_file; -if (!file) { +if (head ==NULL ) { ret = -EINVAL ; goto out; } - - mapping = file->f_mapping; -down (&mapping->robust_sem); - head = &mapping->robust_list; +down (sem);list_for_each_entry_safe (this, next, head, list) {if (match_futex (&this->key, &key)) {
@@ -1540,9 +1441,9 @@ } } -up (&mapping->robust_sem); +up (sem); out: -up_read (&mm->mmap_sem); +up_read (¤t->mm->mmap_sem);return ret; }
@@ -1562,24 +1463,45 @@int ret =0 ;int value =0 ;union futex_key key; -struct futex_robust *robust; +struct futex_robust *this, *next; +struct list_head *head =NULL ; +struct semaphore *sem =NULL ;down_read (¤t->mm->mmap_sem); - ret =get_robust_futex_key (uaddr, &key, &robust); -up_read (¤t->mm->mmap_sem); + ret =get_futex_key (uaddr, &key, &head, &sem);if (ret !=0 ) -return ret; -/* -* can't recover a futex we don't own -*/ -if (!rt_mutex_owned_by (&robust->futex_mutex, ti)) { -return -EINVAL ; + goto out; +if (head ==NULL ) { + ret = -EINVAL ; + goto out; + } + +down (sem); +list_for_each_entry_safe (this, next, head, list) { +if (match_futex (&this->key, &key)) { +/* +* can't recover a futex we don't own +*/ +if (!rt_mutex_owned_by (&this->futex_mutex, ti)) { + ret = -EINVAL ; + goto out_unlock; + } +break ; + } + } + +if ((value =futex_get_user (uaddr)) == -EFAULT ) { + ret = -EFAULT ; + goto out_unlock; } -if ((value =futex_get_user (uaddr)) == -EFAULT ) -return ret; value &= ~FUTEX_OWNER_DIED ; -return (futex_put_user (value, uaddr)); + ret =futex_put_user (value, uaddr); +out_unlock: +up (sem); +out: +up_read (¤t->mm->mmap_sem); +return ret; } long do_futex(unsigned long uaddr, int op, int val, unsigned long timeout,
linux-2.6.14/kernel/rt.c +77 -9
107 lines not on this page · raw message
Only in wip/linux-2.6.14/kernel/: rt.c.rej Only in wip/linux-2.6.14/include/linux: autoconf.h
linux-2.6.14/include/linux/mm.h +5 -0
@@ -109,6 +109,11 @@#ifdef CONFIG_NUMA struct mempolicy *vm_policy;/* NUMA policy for the VMA */ #endif +#ifdef CONFIG_FUTEX +int robust_init;/* robust initialized? */ +struct list_head robust_list;/* list of robust futexes in this vma */ +struct semaphore robust_sem;/* semaphore to protect the list */ +#endif };/*
linux-2.6.14/include/linux/rt_lock.h +1 -1
@@ -383,7 +383,7 @@#endif /* CONFIG_PREEMPT_RT */ extern void FASTCALL (up_futex (struct rt_mutex *lock)); -extern int FASTCALL (down_futex (struct rt_mutex *lock,unsigned long time,pid_t owner_pid)); +extern int FASTCALL (down_futex (struct rt_mutex *lock,unsigned long time,pid_t owner_pid,struct semaphore *sem));extern int FASTCALL (rt_mutex_owned_by (struct rt_mutex *lock,struct thread_info *t));extern int FASTCALL (rt_mutex_has_waiters (struct rt_mutex *lock));extern struct thread_info *FASTCALL (rt_mutex_owner (struct rt_mutex *lock));
Only in wip/linux-2.6.14/include/linux: version.h
Quoted 5 lines · David Singleton
Ingo,
here is a patch that provides the correct locking for thert_mutex
backing the robustpthread_mutex. The patch also unifies the locking
for all the robust functions and adds support forpthread_mutexeson the heap.
thanks. Could you split up the patch into a fix and a 'heap' patch (at a minimum)?
it's this portion of the 'heap' patch that looks problematic:
linux-2.6.14/include/linux/mm.h line 117
Quoted 12 lines
linux-2.6.14/include/linux/mm.h +5
-0@@ -109,6 +109,11 @@#ifdef CONFIG_NUMA struct mempolicy *vm_policy;/* NUMA policy for the VMA */ #endif +#ifdef CONFIG_FUTEX +int robust_init;/* robust initialized? */ +struct list_head robust_list;/* list of robust futexes in this vma */ +struct semaphore robust_sem;/* semaphore to protect the list */ +#endif };
why is there per-vma info needed?
Also, what testing did this patch have - should it solve Dinakar's problem(s)?
Ingo
Quoted 10 lines · Ingo Molnar
Quoted 5 lines · David Singleton
Ingo,
here is a patch that provides the correct locking for thert_mutex
backing the robustpthread_mutex. The patch also unifies the locking
for all the robust functions and adds support forpthread_mutexeson the heap.thanks. Could yo
Sure. Attached is the locking fix patch. The heap support is a very
small patch to the fix patch. I'll do the heap patch next.
Quoted 14 lines
u split up the patch into a fix and a 'heap' patch (at a minimum)?
it's this portion of the 'heap' patch that looks problematic:
Quoted 9 lines
---
base/linux-2.6.14/include/linux/mm.h2005-11-18
20:36:53.000000000 -0800
+++wip/linux-2.6.14/include/linux/mm.h2005-11-21 10:51:19.000000000
-0800linux-2.6.14/include/linux/mm.h +1
-0@@ -109,6 +109,11 @@#ifdef CONFIG_NUMA struct mempolicy *vm_policy;/* NUMA policy for the VMA */ #endif +#ifdef CONFIG_FUTEX
Quoted 8 lines
linux-2.6.14/include/linux/mm.h line 117
Quoted 6 lines
linux-2.6.14/include/linux/mm.h +4
-0+int robust_init;/* robust initialized? */ +struct list_head robust_list;/* list of robust futexes in this vma */ +struct semaphore robust_sem;/* semaphore to protect the list */ +#endif };why is there per-vma info needed?
I've had numerous requests to add support for pthread_mutexes that have been 'malloc'd and end up in the heap.
The original robust futex patch only supported shared pthread mutexes, backed either by a file in which the pthread mutex was written on in anonymous memory allocated via mmap with the MAP_SHARE and MAP_ANONYMOUS flags.
Anonymous memory gets backed by an inode on which we lookup and hang the robust mutex structure (and which gets freed on the last reference to the inode.)
The choice seemed either to back heap with the anonymous memory/inode framework or just hang the struct on the vma itself.
Quoted 3 lines
Also, what testing did this patch have - should it solve Dinakar's problem(s)?
The patch I sent, (minus the extra parenthesis at the end of the down_try_futex line I mistyped while porting the patch to a tree with the rt13 patch:-(,) has undergone testing over the weekend with the fusyn posix tests, which have been changed to set the PRIO_INHERIT attribute via the pthread_set_protocol function.
I hope this patch solve's Dinakar's problem. unfortunately, I don't have Dinakar's test.
David
Quoted 5 lines
Ingo
Ingo Molnar
AppliedQuoted 1 line · david singleton
Sure. Attached is the locking fix patch. [...]
thanks, applied - it should show up in -rt15.
Ingo
Quoted 7 lines · Ingo Molnar
Quoted 1 line · david singleton
Sure. Attached is the locking fix patch. [...]
thanks, applied - it should show up in -rt15.
I just noticed with the above fix, Paul's testcase completely hangs up and when killed I hit the BUG mentioned below. Till -rt13, this testcase just ran to completion
check_monotonic_clock: monotonic inconsistency detected!
from 52d314a423 (355728663587) to 50a53da892 (346369665170). pthread_cond_ma/6345[CPU#2]: BUG in check_monotonic_clock at kernel/time/timeofday.c:156 [<c011a840>] __WARN_ON+0x60/0x80 (8) [<c0139972>] check_monotonic_clock+0xcc/0x109 (48) [<c0139dfe>] get_monotonic_clock+0x110/0x146 (68) [<c013100c>] ktimer_interrupt+0x54/0x2f6 (92) [<c010163c>] __switch_to+0x2a/0x248 (12) [<c037d82b>] __schedule+0x41b/0xab7 (40) [<c013b86e>] add_preempt_count_ti+0x1e/0xc6 (20) [<c013b86e>] add_preempt_count_ti+0x1e/0xc6 (8) [<c01393e4>] handle_nextevent_update+0xd/0x23 (20) [<c010caaa>] smp_apic_timer_interrupt+0x5c/0x65 (12) [<c01037a4>] apic_timer_interrupt+0x1c/0x24 (12) [<c037f39f>] __down_mutex+0x69f/0x7fd (44) [<c0122856>] lock_timer_base+0x19/0x33 (24) [<c0122856>] lock_timer_base+0x19/0x33 (76) [<c0122856>] lock_timer_base+0x19/0x33 (20) [<c03815fd>] _spin_lock_irqsave+0x1d/0x46 (12) [<c0122856>] lock_timer_base+0x19/0x33 (8) [<c0122856>] lock_timer_base+0x19/0x33 (16) [<c01228a8>] __mod_timer+0x38/0xdf (16) [<c037e86e>] schedule_timeout+0x4f/0xa2 (32) [<c0123773>] process_timeout+0x0/0x9 (32) [<c013c95d>] futex_wait+0x225/0x2b5 (24) [<c012e332>] add_wait_queue+0x12/0x30 (80) [<c013b9cb>] sub_preempt_count+0x1a/0x1e (20) [<c0381c34>] _raw_spin_unlock+0x12/0x2c (44) [<c037db39>] __schedule+0x729/0xab7 (8) [<c0114b4d>] default_wake_function+0x0/0x22 (12) [<c0114b4d>] default_wake_function+0x0/0x22 (32) [<c013d84f>] do_futex+0xf3/0xf8 (40) [<c013d949>] sys_futex+0xf5/0x101 (40) [<c013d951>] sys_futex+0xfd/0x101 (36) [<c0102ce7>] sysenter_past_esp+0x54/0x75 (24) ---------------------------
| preempt count: 00010001 ]
| 1-level deep critical section nesting:
----------------------------------------
.. [<c013b930>] .... add_preempt_count+0x1a/0x1e
.....[<00000000>] .. ( <= stext+0x3feffd68/0x8)
------------------------------
| showing all locks held by: | (pthread_cond_ma/6345 [f2a52120, 0]):
------------------------------
#001: [c3888fe0] {&base->t_base.lock}
... acquired at: lock_timer_base+0x19/0x33
I have attached the testcase below. Run it as
gcc -g -lpthread pthread_cond_many.c -o pthread_cond_many
sh ./pthread_cond_many.sh --realtime
-Dinakar
Quoted 4 lines · Dinakar Guniguntala
Quoted 3 lines · Ingo Molnar
* david singleton <[email protected]> wrote:
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Sure. Attached is the locking fix patch. [...]
thanks, applied - it should show up in -rt15.
I just noticed with the above fix, Paul's testcase completely hangs up and when killed I hit the BUG mentioned below. Till -rt13, this testcase just ran to completion
Forgot to mention that I notice the same failure with -rt15 as well
-Dinakar
Quoted 7 lines · Dinakar Guniguntala
Quoted 6 lines · Dinakar Guniguntala
Quoted 5 lines · Ingo Molnar
Quoted 1 line · david singleton
Sure. Attached is the locking fix patch. [...]
Quoted 9 lines
Quoted 6 lines
Quoted 2 lines
thanks, applied - it should show up in -rt15.
I just noticed with the above fix, Paul's testcase completely hangs up and when killed I hit the BUG mentioned below. Till -rt13, this testcase just ran to completion
Forgot to mention that I notice the same failure with -rt15 as well
I'll start looking at this right away.
thanks
David
Quoted 2 lines
-Dinakar
Quoted 7 lines · Dinakar Guniguntala
Quoted 6 lines · Dinakar Guniguntala
Quoted 5 lines · Ingo Molnar
Quoted 1 line · david singleton
Sure. Attached is the locking fix patch. [...]
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
thanks, applied - it should show up in -rt15.
I just noticed with the above fix, Paul's testcase completely hangs up and when killed I hit the BUG mentioned below. Till -rt13, this testcase just ran to completion
Forgot to mention that I notice the same failure with -rt15 as well
Good news and bad news.
Good news. This test doesn't exercise the robust futex code.
Pthread mutexes that want priority queuing, priority inheritance and/or robustness must have either the robust (PTHREAD_MUTEX_ROBUST_NP) attribute set and/or the PTHREAD_PRIO_INHERIT attribute set at mutex creation time.
e.g.pthread_mutexattr_setrobust_np (&mutex_attr, PTHREAD_MUTEX_ROBUST_NP);
pthread_mutexattr_setprotocol(&state->mutex_attr, PTHREAD_PRIO_INHERIT);
pthread_mutexes that don't have either of these attributes set on the pthread_mutex will exercise the original futex code.
Now a question before the bad news, Are you in the OOM path when you
think the system is hung? What does 'top' say about freemem and available and used swap space?
If you are not in the OOM path then the bad news is this looks like an SMP timer problem.
David
Quoted 3 lines
-Dinakar
Quoted 6 lines · david singleton
Quoted 4 lines · Dinakar Guniguntala
Quoted 3 lines
I just noticed with the above fix, Paul's testcase completely hangs up and when killed I hit the BUG mentioned below. Till -rt13, this testcase just ran to completion
Quoted 8 lines
Quoted 1 line
Forgot to mention that I notice the same failure with -rt15 as well
Good news and bad news.
Good news. This test doesn't exercise the robust futex code. Pthread mutexes that want priority queuing, priority inheritance and/or robustness must have either the robust (PTHREAD_MUTEX_ROBUST_NP) attribute set and/or thePTHREAD_PRIO_INHERITattribute set at mutex creation time.
Davi, Thank you for looking into this
Yes, this particular testcase does not exercise the robust futex code. However, the testcase only hangs when I apply your fix on top of
-rt13. A Vanilla -rt13 works fine
Quoted 3 lines
Now a question before the bad news, Are you in the OOM path when you
think the system is hung? What does 'top' say about freemem and available and used swap space?
Since one of the threads is a SCHED_FIFO, the system takes forever to respond to simple commands like ls/ps. I'll get back on this
Quoted 4 lines
If you are not in the OOM path then the bad news is this looks like an SMP timer problem.
-Dinakar
Quoted 16 lines · Dinakar Guniguntala
Quoted 6 lines · david singleton
Quoted 4 lines · Dinakar Guniguntala
Quoted 3 lines
I just noticed with the above fix, Paul's testcase completely hangs up and when killed I hit the BUG mentioned below. Till -rt13, this testcase just ran to completion
Quoted 8 lines
Quoted 1 line
Forgot to mention that I notice the same failure with -rt15 as well
Good news and bad news.
Good news. This test doesn't exercise the robust futex code. Pthread mutexes that want priority queuing, priority inheritance and/or robustness must have either the robust (PTHREAD_MUTEX_ROBUST_NP) attribute set and/or thePTHREAD_PRIO_INHERITattribute set at mutex creation time.
Quoted 5 lines
Davi, Thank you for looking into this
Yes, this particular testcase does not exercise the robust futex code. However, the testcase only hangs when I apply your fix on top of
-rt13. A Vanilla -rt13 works fine
Just to make myself clear, this is not the same testcase where I saw PI issues that I reported ealier in the thread. I guess since I reported both problems in the same thread, it is sort of confusing. Hope that clears up any confusion
-Dinakar
Quoted 3 lines · Dinakar Guniguntala
I just noticed with the above fix, Paul's testcase completely hangs up and when killed I hit the BUG mentioned below. Till -rt13, this testcase just ran to completion
does it still hang if you disable CONFIG_PARANOID_GENERIC_TIME in your .config?
Ingo
Quoted 9 lines · Ingo Molnar
Quoted 3 lines · Dinakar Guniguntala
I just noticed with the above fix, Paul's testcase completely hangs up and when killed I hit the BUG mentioned below. Till -rt13, this testcase just ran to completion
does it still hang if you disable
CONFIG_PARANOID_GENERIC_TIMEin your .config?
Disabling CONFIG_PARANOID_GENERIC_TIME does not help. I get the same hang. Just got my kgdb setup. Hopefully I should have more info
-Dinakar
Quoted 10 lines · david singleton
Quoted 1 line
why is there per-vma info needed?
I've had numerous requests to add support for
pthread_mutexesthat have been 'malloc'd and end up in the heap.The original robust futex patch only supported shared pthread mutexes, backed either by a file in which the pthread mutex was written on in anonymous memory allocated via mmap with the
MAP_SHAREandMAP_ANONYMOUSflags.
Quoted 6 lines
Anonymous memory gets backed by an inode on which we lookup and hang the robust mutex structure (and which gets freed on the last reference to the inode.)
The choice seemed either to back heap with the anonymous memory/inode framework or just hang the struct on the vma itself.
putting it into the vma is just about the worst solution. vma size is something we are very sensitive to. Your patch adds:
+ int robust_init; /* robust initialized? */ + struct list_head robust_list; /* list of robust futexes in this vma */ + struct semaphore robust_sem; /* semaphore to protect the list */
which is unacceptable. _And_ you were also talking about making it an rbtree... why do you want to make it a tree?
also, funky runtime flags like 'robust_init' are just sloppy.
add a separate pointer, and put the above fields into a separate SLAB. That way the overhead to the vma is a single pointer. (which might still be unacceptable to upstream!)
Ingo
Dave Carlson has tried the patch and although it works better, he's discovered another race in the exit path.
I'll start working on the exit path race fix now that I have the race in down_futex fixed.
Dave
Quoted 36 lines · Ingo Molnar
Quoted 5 lines · David Singleton
Ingo,
here is a patch that provides the correct locking for thert_mutex
backing the robustpthread_mutex. The patch also unifies the locking
for all the robust functions and adds support forpthread_mutexeson the heap.thanks. Could you split up the patch into a fix and a 'heap' patch (at a minimum)?
it's this portion of the 'heap' patch that looks problematic:
Quoted 5 lines
---
base/linux-2.6.14/include/linux/mm.h2005-11-18
20:36:53.000000000 -0800
+++wip/linux-2.6.14/include/linux/mm.h2005-11-21 10:51:19.000000000
-0800linux-2.6.14/include/linux/mm.h line 118
Quoted 10 lines
linux-2.6.14/include/linux/mm.h +5
-0@@ -109,6 +109,11 @@#ifdef CONFIG_NUMA struct mempolicy *vm_policy;/* NUMA policy for the VMA */ #endif +#ifdef CONFIG_FUTEX +int robust_init;/* robust initialized? */ +struct list_head robust_list;/* list of robust futexes in this vma */ +struct semaphore robust_sem;/* semaphore to protect the list */ +#endif };why is there per-vma info needed?
Also, what testing did this patch have - should it solve Dinakar's problem(s)?
Ingo
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 10 lines · david singleton
Dinakar,
can you try the attached patch? I believe it has the fix you require. It has the
correct locking fix I just sent, the patch-2.6.4-rt13-rf2, and has the correct
lock order in the exit path that was causing the circular deadlock in Dave Carlson's
application.
David,
This fixes the problem that I was noticing !!
Thank you and Ingo for fixing this
-Dinakar
Quoted 38 lines · Ingo Molnar
Quoted 36 lines · David Singleton
Quoted 6 lines
Ingo,
here is a patch that provides the correct locking for thert_mutex
backing the robustpthread_mutex. The patch also unifies the locking
for all the robust functions and adds support forpthread_mutexeson the heap.thanks. Could you split up the patch into a fix and a 'heap' patch (at a
minimum)?it's this portion of the 'heap' patch that looks problematic:
Quoted 14 lines
---
base/linux-2.6.14/include/linux/mm.h2005-11-18
20:36:53.000000000 -0800
+++wip/linux-2.6.14/include/linux/mm.h2005-11-21
10:51:19.000000000 -0800linux-2.6.14/include/linux/mm.h +3
-0@@ -109,6 +109,11 @@#ifdef CONFIG_NUMA struct mempolicy *vm_policy;/* NUeMA policy for the VMA */ #endif +#ifdef CONFIG_FUTEX +int robust_init;/* robust initialized? */ +struct list_head robust_list;/* list of robust futexes in this vma */
linux-2.6.14/include/linux/mm.h +2
-0+struct semaphore robust_sem;/* semaphore to protect the list */ +#endif Quoted 1 line
};
why is there per-vma info needed?
Also, what testing did this patch have - should it solve Dinakar's problem(s)?
Ingo