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 4F4C9C2BD09 for ; Mon, 1 Jul 2024 15:56:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Transfer-Encoding:Content-Type:References:In-Reply-To:Date:Cc:To:From :Subject:Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=W4+noVRuQ4Zz5x/VWf17AgRVm1oVqUE4lHUB6O2YQwc=; b=l5j3nttpXj7v6E/SdJJA04VBx9 oqF3rwVg3Swp13cTJTYrP1f9vN6/wYyW5t94qBV8mxMo5u9WX+Cy8C6HOuIkxXfz+UBXsYajCNaWe UfelrHPeRIXU+yxEUi36y1fC3Ma/V2tVYjjMcm6VHqiPgoE+eXwlgID8oQ0OCHqdrbE4pCF2vDKZY TMRBivCLmbmblJVi6a8s3q0+I2xVCX47TYxkOoh8ZAZEfkV4StwwGKEVUL/XHQ0X1au7W7R+XZC8A NYFZIsja7xTuUUAyN4JvOHdDv6QzsXKYRWEdntOGjjEwxCvSI7eFGLXA4A6DPBypYYUvYYs4z7b++ fTJlS1hQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOJOE-000000041Rx-1pmw; Mon, 01 Jul 2024 15:56:26 +0000 Received: from s3.sipsolutions.net ([2a01:4f8:242:246e::2] helo=sipsolutions.net) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOJOC-000000041RT-0JiI for linux-um@lists.infradead.org; Mon, 01 Jul 2024 15:56:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=W4+noVRuQ4Zz5x/VWf17AgRVm1oVqUE4lHUB6O2YQwc=; t=1719849383; x=1721058983; b=rPLRkOWiMPnPgv2W2CL8IpFNIi1Mri1MZoM/DUEm3UgeFmO lrUDVpnnYFd2nMTkNrwEe/4CxCDcQbUl0p4fuvtADGBUQsFoPdAjEF3+7RrhMu74BP4rl1t4IBQF5 X9cArhJCxeFMra3wlCkkaueTPkmYDyUDuGrpmhGPlfUym/kqC9fEKFABSkCi/yJdNTmFTrsmZbc7K zDGymw97E1g35rrLldPNpTv1RgdnRUdyq7yOqhHJMW6QR8ih9hu0WEKJbJy0MaeMBahW4x9zdWG8n JqMjqz4j98XpmaNqFE93TOgLUiZsJJgvFNUL5mBV1UA+yJ1C993hGBxYdgzB7IXQ==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1sOJO9-00000002fKQ-3tO9; Mon, 01 Jul 2024 17:56:22 +0200 Message-ID: <4137d6ba7d380fed13f8edc1147211b4511e8bfb.camel@sipsolutions.net> Subject: Re: [PATCH v9] um: Enable preemption in UML From: Johannes Berg To: anton.ivanov@cambridgegreys.com, linux-um@lists.infradead.org Cc: richard@nod.at Date: Mon, 01 Jul 2024 17:56:21 +0200 In-Reply-To: <6969757a8347ad5171a651fb668a28613b08176d.camel@sipsolutions.net> References: <20240403062754.124752-1-anton.ivanov@cambridgegreys.com> <6969757a8347ad5171a651fb668a28613b08176d.camel@sipsolutions.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.2 (3.52.2-1.fc40) MIME-Version: 1.0 X-malware-bazaar: not-scanned X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240701_085624_138839_574FEAC9 X-CRM114-Status: UNSURE ( 3.77 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-um@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-um" Errors-To: linux-um-bounces+linux-um=archiver.kernel.org@lists.infradead.org Hmm. I also see a ton of this: BUG: sleeping function called from invalid context at kernel/locking/rwsem.= c:1525 in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 538, name: chan-swit= ch.sh preempt_count: 2, expected: 0 RCU nest depth: 0, expected: 0 no locks held by chan-switch.sh/538. irq event stamp: 0 hardirqs last enabled at (0): [<0000000000000000>] 0x0 hardirqs last disabled at (0): [<000000006004b961>] copy_process+0xbb7/0x27= 90 softirqs last enabled at (0): [<000000006004b961>] copy_process+0xbb7/0x27= 90 softirqs last disabled at (0): [<0000000000000000>] 0x0 Preemption disabled at: [<0000000060084b04>] preempt_count_add+0x11f/0x126 CPU: 0 PID: 538 Comm: chan-switch.sh Tainted: G W O 6.10.0-rc= 2 #11 Stack: 714c7e40 605f2a9d 00000000 00000000 ffffff00 607d2edc 00000000 60db7a48 714c7e70 60620823 0000022c 606161d1 Call Trace: [<606161d1>] ? _printk+0x0/0x94 [<6002fa2f>] show_stack+0xfe/0x159 [<605f2a9d>] ? dump_stack_print_info+0xe1/0xf0 [<60620823>] dump_stack_lvl+0x77/0xbe [<606161d1>] ? _printk+0x0/0x94 [<60084b04>] ? preempt_count_add+0x11f/0x126 [<60620884>] dump_stack+0x1a/0x1c [<60085b82>] __might_resched+0x3b0/0x3d2 [<60085ca0>] __might_sleep+0xfc/0x107 [<60627212>] down_read+0x34/0x224 [<60032256>] force_flush_all+0x71/0x10d [<6002e95d>] fork_handler+0x14/0x94 johannes