Re: [BUG] soft lockup detected with ipcs

From: Jiri Kosina
Date: Sun Mar 02 2008 - 16:23:36 EST


On Sun, 2 Mar 2008, Jiri Olsa wrote:

> I got more logs via netconsole, first I ran ipcs it segfaulted next run
> the system freezed.

Did you run ipcs without any arguments? If so, it should only call
shmctl(SHM_INFO) and shmctl(SHM_STAT), so the only two spinlocks involved
should be either shmem_inode_info->lock in shm_get_stat() or
kern_ipc_perm->out_lock in ipc_lock().

Could you please try what is the output with the attached patch below, so
that we know which spinlock buggers?

Also, could you please provide strace of the first (segfaulting)
invocation of ipcs?

On Sun, 2 Mar 2008, Andrew Morton wrote:

> > [ 144.699366] BUG: unable to handle kernel paging request at virtual address 6b6b6c2b
[ ... ]
> Looks like you got a use-after free when lockdep was playing with a
> spinlock which is taken in sys_shmctl() or one of its inlined callees.

BTW any idea where does the '2b' come from? (it's single-bit flip).

--
Jiri Kosina
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/