Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753667Ab3H3I1s (ORCPT ); Fri, 30 Aug 2013 04:27:48 -0400 Received: from mail-wg0-f42.google.com ([74.125.82.42]:62986 "EHLO mail-wg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752529Ab3H3I1p (ORCPT ); Fri, 30 Aug 2013 04:27:45 -0400 MIME-Version: 1.0 Reply-To: sedat.dilek@gmail.com In-Reply-To: <52205597.3090609@synopsys.com> References: <1372192414.1888.8.camel@buesod1.americas.hpqcorp.net> <1372202983.1888.22.camel@buesod1.americas.hpqcorp.net> <521DE5D7.4040305@synopsys.com> <52205597.3090609@synopsys.com> Date: Fri, 30 Aug 2013 10:27:43 +0200 Message-ID: Subject: Re: ipc-msg broken again on 3.11-rc7? (was Re: linux-next: Tree for Jun 21 [ BROKEN ipc/ipc-msg ]) From: Sedat Dilek To: Vineet Gupta Cc: linus Torvalds , Davidlohr Bueso , linux-next , LKML , Stephen Rothwell , Andrew Morton , linux-mm , Andi Kleen , Rik van Riel , Manfred Spraul , Jonathan Gonzalez Content-Type: multipart/mixed; boundary=047d7b624e7e25cfdf04e525ff1f Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 10618 Lines: 209 --047d7b624e7e25cfdf04e525ff1f Content-Type: text/plain; charset=UTF-8 On Fri, Aug 30, 2013 at 10:19 AM, Vineet Gupta wrote: > Ping ? > > It seems 3.11 is pretty close to releasing but we stil have LTP msgctl08 causing a > hang (atleast on ARC) for both linux-next 20130829 as well as Linus tree. > > So far, I haven't seemed to have drawn attention of people involved. > Hi Vineet, I remember fakeroot was an another good test-case for me to test this IPC breakage. Attached is my build-script for Linux-next (tested with Debian/Ubuntu). ( Cannot say if you can play with it in your environment. ) Regards, - Sedat - > -Vineet > > On 08/29/2013 01:22 PM, Sedat Dilek wrote: >> On Thu, Aug 29, 2013 at 9:21 AM, Vineet Gupta >> wrote: >>> On 08/29/2013 08:34 AM, Sedat Dilek wrote: >>>> On Wed, Aug 28, 2013 at 1:58 PM, Vineet Gupta >>>> wrote: >>>>> Hi David, >>>>> > > [....] > >>>>> LTP msgctl08 hangs on 3.11-rc7 (ARC port) with some of my local changes. I >>>>> bisected it, sigh... didn't look at this thread earlier :-( and landed into this. >>>>> >>>>> ------------->8------------------------------------ >>>>> 3dd1f784ed6603d7ab1043e51e6371235edf2313 is the first bad commit >>>>> commit 3dd1f784ed6603d7ab1043e51e6371235edf2313 >>>>> Author: Davidlohr Bueso >>>>> Date: Mon Jul 8 16:01:17 2013 -0700 >>>>> >>>>> ipc,msg: shorten critical region in msgsnd >>>>> >>>>> do_msgsnd() is another function that does too many things with the ipc >>>>> object lock acquired. Take it only when needed when actually updating >>>>> msq. >>>>> ------------->8------------------------------------ >>>>> >>>>> If I revert 3dd1f784ed66 and 9ad66ae "ipc: remove unused functions" - the test >>>>> passes. I can confirm that linux-next also has the issue (didn't try the revert >>>>> there though). >>>>> >>>>> 1. arc 3.11-rc7 config attached (UP + PREEMPT) >>>>> 2. dmesg prints "msgmni has been set to 479" >>>>> 3. LTP output (this is slightly dated source, so prints might vary) >>>>> >>>>> ------------->8------------------------------------ >>>>> <<>> >>>>> tag=msgctl08 stime=1377689180 >>>>> cmdline="msgctl08" >>>>> contacts="" >>>>> analysis=exit >>>>> initiation_status="ok" >>>>> <<>> >>>>> ------------->8-------- hung here ------------------ >>>>> >>>>> >>>>> Let me know if you need more data/test help. >>>>> >>>> Cannot say much to your constellation as I had the issue on x86-64 and >>>> Linux-next. >>>> But I have just seen a post-v3.11-rc7 IPC-fix in [1]. >>>> >>>> I have here a v3.11-rc7 kernel with drm-intel-nightly on top... did not run LTP. >>> >>> Not sure what you mean - I'd posted that Im seeing the issue on ARC Linux (an FPGA >>> board) 3.11-rc7 as well as linux-next of yesterday. >>> >> >> I am not saying there is no issue, but I have no possibility to test >> for ARC arch. >> >>>> Which LTP release do you use? >>> >>> The LTP build I generally use is from a 2007 based sources (lazy me). However I >>> knew this would come up so before posting, I'd built the latest from buildroot and >>> ran the msgctl08 from there standalone and it did the same thing. >>> >> >> Try always latest LTP-stable (03-May-2013 is what I tried). AFAICS a >> new release is planned soon. >> >>>> Might be good to attach your kernel-config for followers? >>> >>> It was already there in my orig msg - you probably missed it. >>> >> >> I have got that response from you only :-). >> >>>> [1] http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=368ae537e056acd3f751fa276f48423f06803922 >>> >>> I tried linux-next of today, same deal - msgctl08 still hangs. >>> >> >> That above fix [1] in Linus-tree is also in next-20130828. >> >> Hope Davidlohr and fellows can help you. >> >> - Sedat - >> > --047d7b624e7e25cfdf04e525ff1f Content-Type: application/x-sh; name="build_linux-next.sh" Content-Disposition: attachment; filename="build_linux-next.sh" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hkz51iqx0 IyEvYmluL3NoCgojIyMgSEVMUAojIDEuIG1ha2UgZGViLXBrZyAob3B0aW9ucyk6ICA8ZmlsZTog c2NyaXB0cy9wYWNrYWdlL2J1aWxkZGViPgojIDIuIGxvY2FsdmVyc2lvbiBoYW5kbGluZzogICA8 ZmlsZTogc2NyaXB0cy9zZXRsb2NhbHZlcnNpb24+CiMgMy4gS0JVSUxEX1VTRVJfKiB2YXJpYWJs ZXM6IDxmaWxlOiBzY3JpcHRzL21rY29tcGlsZV9oPgojIDQuIFByZXJlcXMvUHJlcGFyYXRpb246 ICAgICA8aHR0cDovL2tlcm5lbC1oYW5kYm9vay5hbGlvdGguZGViaWFuLm9yZy9jaC1jb21tb24t dGFza3MuaHRtbCNzNC4yLjE+CgojIyMgUFJFUkVRUzogSW5zdGFsbCBidWlsZC1lc3NlbnRpYWws IGZha2Vyb290IGFuZCBkcGtnLWRldiBwYWNrYWdlcyAob3B0aW9uYWw6IGdpdCkhCiNhcHQtZ2V0 IHVwZGF0ZQojYXB0LWdldCBpbnN0YWxsIGJ1aWxkLWVzc2VudGlhbCBmYW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kcm0gLWYgbG9jYWx2ZXJz aW9uKgoKIyMjIFN0YXJ0IGJ1aWxkCmVjaG8gIiMjIyMjIFN0YXJ0aW5nIExpbnV4LWtlcm5lbCBi dWlsZCAuLi4iCmZha2Vyb290ICR7TUFLRX0gJHtNQUtFX09QVFN9IGRlYi1wa2cgJHtERUJfUEtH X09QVFN9IDI+JjEgfCB0ZWUgLi4vJHtCVUlMRF9MT0dfRklMRX0KZWNobyAiIyMjIyMgRmluaXNo ZWQhIgo= --047d7b624e7e25cfdf04e525ff1f-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/