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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34D1EC433F5 for ; Fri, 26 Nov 2021 05:36:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358221AbhKZFj0 (ORCPT ); Fri, 26 Nov 2021 00:39:26 -0500 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:19808 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344016AbhKZFhZ (ORCPT ); Fri, 26 Nov 2021 00:37:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1637904853; x=1669440853; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ezOHgYaF5ocrjdNaIhBrXDMQCvdxCutXFPf/Cjp9RgA=; b=QAhRdC+jIV9/qz3+7kVLYSVzEsJO9zbZ21bxHX0NGVx9kIEAvwAnTDcl ds9SPoBL3vyjyIB4D396j+e4o/t+82LISFPFAEfqkR09hFFDYUlIPffjt iM0VURwXC7l4oNewWksXH19CAdnS/k05H1pW6QGwzPl3QJ2cqJcOyz77W Q=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-02.qualcomm.com with ESMTP; 25 Nov 2021 21:34:12 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2021 21:34:12 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Thu, 25 Nov 2021 21:34:12 -0800 Received: from fixkernel.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Thu, 25 Nov 2021 21:34:08 -0800 Date: Fri, 26 Nov 2021 00:34:04 -0500 From: Qian Cai To: "Eric W. Biederman" CC: Alexey Gladkov , Yu Zhao , , Catalin Marinas , Will Deacon , Mark Rutland , Subject: Re: BUG: KASAN: use-after-free in dec_rlimit_ucounts Message-ID: References: <875ysptfgi.fsf@email.froward.int.ebiederm.org> <87k0h5rxle.fsf@email.froward.int.ebiederm.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 24, 2021 at 04:49:19PM -0500, Qian Cai wrote: > Hmm, I don't know if that or it is just this platfrom is lucky to trigger > the race condition quickly, but I can't reproduce it on x86 so far. I am > Cc'ing a few arm64 people to see if they have spot anything I might be > missing. The original bug report is here: > > https://lore.kernel.org/lkml/YZV7Z+yXbsx9p3JN@fixkernel.com/ Okay, I am finally able to reproduce this on x86_64 with the latest mainline as well by setting CONFIG_USER_NS and KASAN on the top of defconfig (I did not realize it did not select CONFIG_USER_NS in the first place). Anyway, it still took less than 5-minute by running: $ trinity -C 48 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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 75ABCC433EF for ; Fri, 26 Nov 2021 05:35:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:CC:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=xNZP7C7mc45z6xu/fbL7c0UZ+w77eplQTElAj2OWqHc=; b=M7VnpEAT/zqesh PzIOcNXT1XMvIXVOc/hMbJZ9m7e/Ez00sjK0A41P7Cb1HZ42+9yO8VNeHUwocQA9B/HYDlzTjAkC1 XdiGeutjExXQ1Vx5nIjmq3l6oPH+skj32kMB7kfQg5nejOLjHtHvdq+skHEMOloz+PwnNLAjhDMiy qSgc6Yhfa1DwM4AcLkoSKlTA/noBxi4rZX4+XsgmiXjGpEh09BivkNkQ/+iwovBBw+By6w1hA/i90 jMnYTUk73GLaZd0yN3f5jRIhK2qAHtejYcPd2FtSWyvoWH3unLYehRptpqHuLortw4efbuLRzoudW +zvzrwRYBsodORmIEjQQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqTsL-009EIS-Ab; Fri, 26 Nov 2021 05:34:21 +0000 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqTsH-009EHe-Q2 for linux-arm-kernel@lists.infradead.org; Fri, 26 Nov 2021 05:34:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1637904857; x=1669440857; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ezOHgYaF5ocrjdNaIhBrXDMQCvdxCutXFPf/Cjp9RgA=; b=CjkbrZ34IOVd3Q0CdcBFSIfrJiNFT2Omd9IhbZdQGkYiNLw6CRsDnraT 1T5MFcz394nkHCR/g8bS+StExCWE3RzsivcX6mExyhRdbVil78Bg3Rr1R kD/AMuA7bjbn9ppkj19j4j67KBsi+ksOJVwxiQv7J+7LBWJn/FuuzyKqb k=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-02.qualcomm.com with ESMTP; 25 Nov 2021 21:34:12 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2021 21:34:12 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Thu, 25 Nov 2021 21:34:12 -0800 Received: from fixkernel.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Thu, 25 Nov 2021 21:34:08 -0800 Date: Fri, 26 Nov 2021 00:34:04 -0500 From: Qian Cai To: "Eric W. Biederman" CC: Alexey Gladkov , Yu Zhao , , Catalin Marinas , Will Deacon , Mark Rutland , Subject: Re: BUG: KASAN: use-after-free in dec_rlimit_ucounts Message-ID: References: <875ysptfgi.fsf@email.froward.int.ebiederm.org> <87k0h5rxle.fsf@email.froward.int.ebiederm.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211125_213417_918528_B1884961 X-CRM114-Status: GOOD ( 13.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Nov 24, 2021 at 04:49:19PM -0500, Qian Cai wrote: > Hmm, I don't know if that or it is just this platfrom is lucky to trigger > the race condition quickly, but I can't reproduce it on x86 so far. I am > Cc'ing a few arm64 people to see if they have spot anything I might be > missing. The original bug report is here: > > https://lore.kernel.org/lkml/YZV7Z+yXbsx9p3JN@fixkernel.com/ Okay, I am finally able to reproduce this on x86_64 with the latest mainline as well by setting CONFIG_USER_NS and KASAN on the top of defconfig (I did not realize it did not select CONFIG_USER_NS in the first place). Anyway, it still took less than 5-minute by running: $ trinity -C 48 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel