From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D9C3C433E6 for ; Fri, 12 Feb 2021 12:52:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 724FB64E6B for ; Fri, 12 Feb 2021 12:52:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231872AbhBLMv4 (ORCPT ); Fri, 12 Feb 2021 07:51:56 -0500 Received: from mx2.suse.de ([195.135.220.15]:37252 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231767AbhBLMuZ (ORCPT ); Fri, 12 Feb 2021 07:50:25 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id E83C9AC69; Fri, 12 Feb 2021 12:49:43 +0000 (UTC) Date: Fri, 12 Feb 2021 13:49:41 +0100 From: Petr Vorel To: Jens Axboe Cc: Pavel Begunkov , io-uring@vger.kernel.org, Nicolai Stange , Martin Doucha , Bjorn Andersson , ltp@lists.linux.it, Joseph Qi Subject: Re: CVE-2020-29373 reproducer fails on v5.11 Message-ID: Reply-To: Petr Vorel References: <270c474f-476a-65d2-1f5b-57d3330efb04@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <270c474f-476a-65d2-1f5b-57d3330efb04@kernel.dk> Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org Hi all, > On 2/10/21 12:32 PM, Pavel Begunkov wrote: > > On 10/02/2021 19:08, Petr Vorel wrote: > >> Hi all, > >> I found that the reproducer for CVE-2020-29373 from Nicolai Stange (source attached), > >> which was backported to LTP as io_uring02 by Martin Doucha [1] is failing since > >> 10cad2c40dcb ("io_uring: don't take fs for recvmsg/sendmsg") from v5.11-rc1. > > Thanks for letting us know, we need to revert it > I'll queue up a revert. Would also be nice to turn that into > a liburing regression test. Jens (or others), could you please have look that the other commit 907d1df30a51 ("io_uring: fix wqe->lock/completion_lock deadlock") from v5.11-rc6 didn't cause any regression? Changed behavior causing io_uring02 test [1] and the original reproducer [2] to fail is probably a test bug, but better double check that. Kind regards, Petr [1] https://github.com/linux-test-project/ltp/tree/master/testcases/kernel/syscalls/io_uring/io_uring02.c [2] https://lore.kernel.org/io-uring/YCQvL8%2FDMNVLLuuf@pevik/