linux-kernel-test/drivers/misc
Robin Holt 046d6c563b x86: uv: XPC receive message reuse triggers invalid BUG_ON()
This was a difficult bug to trip.  XPC was in the middle of sending an
acknowledgement for a received message.

In xpc_received_payload_uv():
.
        ret = xpc_send_gru_msg(ch->sn.uv.cached_notify_gru_mq_desc, msg,
                               sizeof(struct xpc_notify_mq_msghdr_uv));
        if (ret != xpSuccess)
                XPC_DEACTIVATE_PARTITION(&xpc_partitions[ch->partid], ret);

        msg->hdr.msg_slot_number += ch->remote_nentries;

at the point in xpc_send_gru_msg() where the hardware has dispatched the
acknowledgement, the remote side is able to reuse the message structure
and send a message with a different slot number.  This problem is made
worse by interrupts.

The adjustment of msg_slot_number and the BUG_ON in
xpc_handle_notify_mq_msg_uv() which verifies the msg_slot_number is
consistent are only used for debug purposes.  Since a fix for this that
preserves the debug functionality would either have to infringe upon the
payload or allocate another structure just for debug, I decided to remove
it entirely.

Signed-off-by: Robin Holt <holt@sgi.com>
Cc: Jack Steiner <steiner@sgi.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-12-16 07:20:14 -08:00
..
c2port c2port: annotate bitfield for kmemcheck 2009-06-15 15:49:34 +02:00
cb710 cb710: use SG_MITER_TO_SG/SG_MITER_FROM_SG 2009-07-31 12:28:46 +02:00
eeprom i2c: Drop I2C_CLIENT_INSMOD_1 2009-12-14 21:17:26 +01:00
hdpuftrs hdpuftrs: fix build 2008-10-30 11:38:46 -07:00
ibmasm headers: remove sched.h from interrupt.h 2009-10-11 11:20:58 -07:00
iwmc3200top iwmc3200top: revamp fw name handling 2009-11-18 23:29:57 -08:00
sgi-gru X86: uv: implement a gru_read_gpa kernel function 2009-12-16 07:20:13 -08:00
sgi-xp x86: uv: XPC receive message reuse triggers invalid BUG_ON() 2009-12-16 07:20:14 -08:00
ad525x_dpot.c ad525x_dpot: new driver for AD525x digital potentiometers 2009-12-15 08:53:25 -08:00
atmel_pwm.c
atmel_tclib.c
atmel-ssc.c atmel-ssc: fix misuse of dev_dbg when requested ssc instance is not found 2009-02-05 12:56:48 -08:00
cs5535-mfgpt.c cs5535: add a generic MFGPT driver 2009-12-15 08:53:28 -08:00
ds1682.c i2c/chips: Move ds1682 to drivers/misc 2009-12-06 17:06:16 +01:00
enclosure.c driver model: constify attribute groups 2009-09-15 09:50:47 -07:00
ep93xx_pwm.c ARM: 5628/1: ep93xx: Introduce Pulse Width Modulator (PWM) driver 2009-07-30 17:45:43 +01:00
hpilo.c headers: remove sched.h from interrupt.h 2009-10-11 11:20:58 -07:00
hpilo.h hpilo: add locking comment 2009-12-11 11:24:51 -08:00
ics932s401.c i2c: Drop I2C_CLIENT_INSMOD_1 2009-12-14 21:17:26 +01:00
ioc4.c ioc3/ioc4: various section fixes 2009-12-15 08:53:27 -08:00
isl29003.c isl29003: fix resume functionality 2009-05-06 16:36:10 -07:00
Kconfig cs5535: drop the Geode-specific MFGPT/GPIO code 2009-12-15 08:53:28 -08:00
kgdbts.c kgdb: Replace strstr() by strchr() for single-character needles 2009-12-11 08:43:15 -06:00
lkdtm.c kprobes: use do_IRQ() in lkdtm 2009-09-23 07:39:27 -07:00
Makefile cs5535: add a generic MFGPT driver 2009-12-15 08:53:28 -08:00
phantom.c headers: remove sched.h from interrupt.h 2009-10-11 11:20:58 -07:00
ti_dac7512.c drivers/misc: add driver for Texas Instruments DAC7512 2009-12-15 08:53:25 -08:00
tifm_7xx1.c dma-mapping: replace all DMA_32BIT_MASK macro with DMA_BIT_MASK(32) 2009-04-07 08:31:11 -07:00
tifm_core.c tifm: struct device - replace bus_id with dev_name(), dev_set_name() 2009-01-06 10:44:35 -08:00