lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 03 Mar 2008 13:00:49 +0100
From:	Jiri Olsa <olsajiri@...il.com>
To:	Jiri Kosina <jkosina@...e.cz>
CC:	Andrew Morton <akpm@...ux-foundation.org>,
	linux-kernel@...r.kernel.org, Nadia Derbey <Nadia.Derbey@...l.net>,
	peifferp@...il.com
Subject: Re: [BUG] soft lockup detected with ipcs

Jiri Kosina wrote:
> On Sun, 2 Mar 2008, Jiri Kosina wrote:
> 
>> Could you please try what is the output with the attached patch below, so 
>> that we know which spinlock buggers?
> 
> Uhm, and hereby I attach the patch.
> 
> diff --git a/ipc/shm.c b/ipc/shm.c
> index c47e872..2abfb70 100644
> --- a/ipc/shm.c
> +++ b/ipc/shm.c
> @@ -615,6 +615,7 @@ static void shm_get_stat(struct ipc_namespace *ns, unsigned long *rss,
>  			*rss += (HPAGE_SIZE/PAGE_SIZE)*mapping->nrpages;
>  		} else {
>  			struct shmem_inode_info *info = SHMEM_I(inode);
> +			printk(KERN_DEBUG "info: %p\n", info);
>  			spin_lock(&info->lock);
>  			*rss += inode->i_mapping->nrpages;
>  			*swp += info->swapped;
> diff --git a/ipc/util.c b/ipc/util.c
> index fd1b50d..5a0d4d2 100644
> --- a/ipc/util.c
> +++ b/ipc/util.c
> @@ -662,6 +662,7 @@ struct kern_ipc_perm *ipc_lock(struct ipc_ids *ids, int id)
>  
>  	up_read(&ids->rw_mutex);
>  
> +	printk(KERN_DEBUG "out: %p\n", out);
>  	spin_lock(&out->lock);
>  	
>  	/* ipc_rmid() may have already freed the ID while ipc_lock

I'll try the patch, so far I attached the ipcs strace and adjacent kernel logs.

View attachment "ipcs.strace.out" of type "text/plain" (1838 bytes)

View attachment "ipcs.kernel.out.1" of type "text/plain" (2100 bytes)

View attachment "ipcs.kernel.out.2" of type "text/plain" (7075 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ