Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754715Ab3HaRu4 (ORCPT ); Sat, 31 Aug 2013 13:50:56 -0400 Received: from mail-ve0-f175.google.com ([209.85.128.175]:52242 "EHLO mail-ve0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753501Ab3HaRuy (ORCPT ); Sat, 31 Aug 2013 13:50:54 -0400 MIME-Version: 1.0 In-Reply-To: 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: Sat, 31 Aug 2013 10:50:53 -0700 X-Google-Sender-Auth: Lx2019XFm5-ELuiMuQAUt22bL-4 Message-ID: Subject: Re: ipc-msg broken again on 3.11-rc7? From: Linus Torvalds To: Davidlohr Bueso Cc: Vineet Gupta , Sedat Dilek , 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=047d7b6dcb7c04161604e541fb9e Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2038 Lines: 40 --047d7b6dcb7c04161604e541fb9e Content-Type: text/plain; charset=UTF-8 Vineet, actual patch for what Davidlohr suggests attached. Can you try it? Linus On Fri, Aug 30, 2013 at 9:31 AM, Davidlohr Bueso wrote: > > After a quick glance, I suspect that the problem might be because we > are calling security_msg_queue_msgsnd() without taking the lock. This > is similar to the issue Sedat reported in the original thread with > find_msg() concerning msgrcv. --047d7b6dcb7c04161604e541fb9e Content-Type: application/octet-stream; name="patch.diff" Content-Disposition: attachment; filename="patch.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hl14m9cy0 IGlwYy9tc2cuYyB8IDggKysrKy0tLS0KIDEgZmlsZSBjaGFuZ2VkLCA0IGluc2VydGlvbnMoKyks IDQgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvaXBjL21zZy5jIGIvaXBjL21zZy5jCmluZGV4 IDlmMjlkOWU4OWJhYy4uNTYwMGM4YjBkMTg0IDEwMDY0NAotLS0gYS9pcGMvbXNnLmMKKysrIGIv aXBjL21zZy5jCkBAIC02ODcsMTAgKzY4Nyw2IEBAIGxvbmcgZG9fbXNnc25kKGludCBtc3FpZCwg bG9uZyBtdHlwZSwgdm9pZCBfX3VzZXIgKm10ZXh0LAogCQlpZiAoaXBjcGVybXMobnMsICZtc3Et PnFfcGVybSwgU19JV1VHTykpCiAJCQlnb3RvIG91dF91bmxvY2sxOwogCi0JCWVyciA9IHNlY3Vy aXR5X21zZ19xdWV1ZV9tc2dzbmQobXNxLCBtc2csIG1zZ2ZsZyk7Ci0JCWlmIChlcnIpCi0JCQln b3RvIG91dF91bmxvY2sxOwotCiAJCWlmIChtc2dzeiArIG1zcS0+cV9jYnl0ZXMgPD0gbXNxLT5x X3FieXRlcyAmJgogCQkJCTEgKyBtc3EtPnFfcW51bSA8PSBtc3EtPnFfcWJ5dGVzKSB7CiAJCQli cmVhazsKQEAgLTcwMyw2ICs2OTksMTAgQEAgbG9uZyBkb19tc2dzbmQoaW50IG1zcWlkLCBsb25n IG10eXBlLCB2b2lkIF9fdXNlciAqbXRleHQsCiAJCX0KIAogCQlpcGNfbG9ja19vYmplY3QoJm1z cS0+cV9wZXJtKTsKKwkJZXJyID0gc2VjdXJpdHlfbXNnX3F1ZXVlX21zZ3NuZChtc3EsIG1zZywg bXNnZmxnKTsKKwkJaWYgKGVycikKKwkJCWdvdG8gb3V0X3VubG9jazA7CisKIAkJc3NfYWRkKG1z cSwgJnMpOwogCiAJCWlmICghaXBjX3JjdV9nZXRyZWYobXNxKSkgewo= --047d7b6dcb7c04161604e541fb9e-- -- 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/