Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935068Ab3E2G4b (ORCPT ); Wed, 29 May 2013 02:56:31 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:58926 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933908Ab3E2G43 (ORCPT ); Wed, 29 May 2013 02:56:29 -0400 Date: Tue, 28 May 2013 23:56:28 -0700 (PDT) Message-Id: <20130528.235628.1501314742626907861.davem@davemloft.net> To: mingo@kernel.org Cc: luto@amacapital.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, trinity@vger.kernel.org Subject: Re: [PATCH/FIX] net: Block MSG_CMSG_COMPAT in send(m)msg and recv(m)msg From: David Miller In-Reply-To: <20130528085600.GD30172@gmail.com> References: <20130528085600.GD30172@gmail.com> X-Mailer: Mew version 6.5 on Emacs 24.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 728 Lines: 19 From: Ingo Molnar Date: Tue, 28 May 2013 10:56:00 +0200 > MSG_CMSG_COMPAT is (AFAIK) not intended to be part of the API -- > it's a hack that steals a bit to indicate to other networking code > that a compat entry was used. So don't allow it from a non-compat > syscall. > > This prevents an oops when running this code: ... > Cc: David S. Miller > Signed-off-by: Andy Lutomirski Applied and queued up for -stable. -- 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/