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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7543C54EBC for ; Tue, 10 Jan 2023 14:09:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1B0678E0003; Tue, 10 Jan 2023 09:09:43 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 13AF98E0001; Tue, 10 Jan 2023 09:09:43 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F1C4D8E0003; Tue, 10 Jan 2023 09:09:42 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id DDA968E0001 for ; Tue, 10 Jan 2023 09:09:42 -0500 (EST) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 9A44C40C4B for ; Tue, 10 Jan 2023 14:09:42 +0000 (UTC) X-FDA: 80339072604.28.3C65208 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by imf04.hostedemail.com (Postfix) with ESMTP id 1533140028 for ; Tue, 10 Jan 2023 14:09:38 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=uEhyzeCj; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b="r1/u8PFl"; spf=pass (imf04.hostedemail.com: domain of vbabka@suse.cz designates 195.135.220.29 as permitted sender) smtp.mailfrom=vbabka@suse.cz; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1673359779; a=rsa-sha256; cv=none; b=hKmkT2KWav1h85Ej1jIHLJvwZDvVgWTw1fjYDoLcZeZl0CfHWpPgDMZW39uKejIn17bW6H cLIXTCifLo7axlX5mm1Mtbemo8IZMwjXPHjawjIT8l5PIEclVPqjDwOzbPBwE8e5EOtKeX PTFoMrse6gkHxOwI/5fHrZujbxfHW1Q= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=uEhyzeCj; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b="r1/u8PFl"; spf=pass (imf04.hostedemail.com: domain of vbabka@suse.cz designates 195.135.220.29 as permitted sender) smtp.mailfrom=vbabka@suse.cz; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1673359779; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=CFFRTCJnSEzh0nJjMr3PiPszbqYyiFaiPxqpet2DREU=; b=JUFM59tDallAYnkdS86lYX1ZaNBvvXF8BVKspFmPuvwQkfGs4n3yHpJfIPcspI2oqMRpfb lX8xtEaYbL4yr7UwrHWvv9hj7B2VIhaXwEu5ftnCiYCsDJJU374wfvUvBYxyJCSO+8xef5 YEAYvwVxRTnpDa7F9IAidCB1gsjxTkY= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 30D3576F86; Tue, 10 Jan 2023 14:09:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1673359777; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CFFRTCJnSEzh0nJjMr3PiPszbqYyiFaiPxqpet2DREU=; b=uEhyzeCj+TFutv5Uxvpn3vtgGl7XNwosQHzJNwJS/SlPOSxjlPmlimTDGqrJoX9Zjn8dhX QpD31T/4puilFvX88mIhV3NsBUfJbQ7JXUCRw5EkSBqI3YP88aHe57tyfd7BwXX0JDAxPz INLAHGkI7KO9VRLoeyh2EQtF3B5KhUk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1673359777; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CFFRTCJnSEzh0nJjMr3PiPszbqYyiFaiPxqpet2DREU=; b=r1/u8PFlBFrdhYY/sIP8NAxW/BdQMHpHIoiu2rpOE/e3hgnJUCelhGKnxp2kZJC1eAYyt1 s8mB42cPnXoFB+Dg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 0986E1358A; Tue, 10 Jan 2023 14:09:37 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id JKCvAaFxvWPhUwAAMHmgww (envelope-from ); Tue, 10 Jan 2023 14:09:37 +0000 Message-ID: Date: Tue, 10 Jan 2023 15:09:36 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [linus:master] [mm, slub] 0af8489b02: kernel_BUG_at_include/linux/mm.h Content-Language: en-US To: Oliver Sang Cc: Hyeonggon Yoo <42.hyeyoo@gmail.com>, oe-lkp@lists.linux.dev, lkp@intel.com, Mike Rapoport , Christoph Lameter , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Matthew Wilcox References: <202212312021.bc1efe86-oliver.sang@intel.com> <41276905-b8a5-76ae-8a17-a8ec6558e988@suse.cz> <3f7fa3b3-9623-5c4c-94b1-a41dea6eaaf2@suse.cz> From: Vlastimil Babka In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Rspam-User: X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 1533140028 X-Stat-Signature: 1ekb6kfsar9o87a8xq7kbhnxf6433mbz X-HE-Tag: 1673359778-900762 X-HE-Meta: U2FsdGVkX19OvhM+Y1VabkkGUYA7eL7PosqunRj8QDhCsxXVN/NrF8KrGwblcrhUIwCtv81G8CjZPmp0cDRflOlGgh2YXoBQrJaHEEQaProfgvrMQdYLyEGXd5Oo9TAz+rSe0NbIozMBtHV+sKmhrc3vtN7YdLBbjgedsM8yU3ifUdjs6BkLPlP38kZQkxFQE/lnYD7mfsICIIxpJsN8WnJBdDC0V/PWJRePmTcUsHBENSWCmVuoiALAUt9iuSc0H9e70WU606a+BO7mOyuA4xO+lIBU3OLq8fMkvW07Hsf8Ql6IANYDpH87JFvWhNT0D5o/pRme36asbc2+19aqgvA0faIKvA2MjatrbVVogqRXQ6uKKAu6LWlbSLb+5Btkh5CMOhrFSP6YJYRVPuEmp3b6oZKndPwmmePEnNRSjKJNDfKxjufC/q4+3dHsVi0Mu93wBGO/IuTT/Fu41FX2yU52ScjiMnmS4x6nOZv1dDkZc/yaJbFUL9PXm4u65IE6pIgadHWBEDKio8k+E/23Zj+UFuf2HrDrFqLkkCuyGqqW73k6dkpHNwwecAo+HfnYp6TpiQr6BOP5JVdaMxm8mvP99Rut7mLdfYqT0IF6r/fYFavwlRNv+yLZlXknOMatpGcwHMHhWmd3SPNe5MShTN/2fEPcWAoyM1e6rTOmMvrEackJnl5PQVb6RnHOaO6ABkHaYboHO8713NN0htNovnG2RfMqYR5R/FdqB9v4Gkfwr5v0zWVZsZUEXt3EGbnJZThspmyxzL5HLdZCMoTAWwScCkUKKkL2cn7iKVtJxpUe0pEZY0sg5XEzXHtd98opcP7xvx+DS8IARF4KBwAUenRJJaCyywsi9VV3DoU6Ktks60Wi4YQtVSOlXbNHUKBV7XLpjPO3JsqbrFei0Ww72S6NlT6tNHmqSWta6CULKdK+HwvGShvxCxZ94rwR72GGeBzMqHpcCa+6RLP0IxF bHYSqNQP qZsGyG8sX4rI5AVDGh9ObEWIAYM8ISH7MKIMz3twkT7vmg8WAlR1lt2vlew== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 1/10/23 14:53, Oliver Sang wrote: > hi all, > > On Mon, Jan 09, 2023 at 10:01:15PM +0800, Oliver Sang wrote: >> >> On Fri, Jan 06, 2023 at 11:13:15AM +0100, Vlastimil Babka wrote: >> >> > And if the rate at the parent (has it increased thanks to the >> > DEBUG_PAGEALLOC?) is sufficient to bisect to the truly first bad commit. Thanks! >> >> got it. Thanks for suggestion! >> >> since 0af8489b02 is based on v6.1-rc2, we will test (both rectorture and boot) >> with same config upon v6.1-rc2 to see if it's really clean there. >> if so we will use dmesg.invalid_opcode:#[##] to trigger new bisect. >> >> will keep you updated. Thanks > > by more tests, we cannot make sure the v6.1-rc2 is clean, so we also checked > v6.1-rc1 and v6.0. from results, we have low confidence that we can make a > successful bisection based on them [1][2]. could you suggest? So am I reading it right, that the probleam appears to be introduced between v6.0 (0 failures) and v6.1-rc1 (>0 failures)? But agree that with such low incidence, it's hard to bisect. > a further information not sure if it's helpful, [1][2] are both i386 based. > we also tried to run boot tests on x86_64 upon commit 0af8489b02, whatever > with or without CONFIG_DEBUG_PAGEALLOC/CONFIG_DEBUG_PAGEALLOC_ENABLE_DEFAULT, > we never obseve similar issues (also run 999 times). Yeah it looks very much like something that manifests only on i386 (perhaps only in QEMU as well?) and never x86_64. What might be interesting then is v6.1-rc1 with further modified config to enabled CONFIG_SLUB_DEBUG and CONFIG_SLUB_DEBUG_ON. Maybe it will catch the culprit sooner. Or maybe it will obscure the bug instead, unfortunately. Thanks for all your effort! > [1] > boot results: > ========================================================================================= > compiler/kconfig/rootfs/sleep/tbox_group/testcase: > gcc-11/i386-randconfig-a012-20221226+CONFIG_DEBUG_PAGEALLOC+CONFIG_DEBUG_PAGEALLOC_ENABLE_DEFAULT/debian-11.1-i386-20220923.cgz/1/vm-snb/boot > > v6.0 v6.1-rc1 v6.1-rc2 56d5a2b9ba85a390473e86b4fe4 0af8489b0216fa1dd83e264bef8 > ---------------- --------------------------- --------------------------- --------------------------- --------------------------- > fail:runs %reproduction fail:runs %reproduction fail:runs %reproduction fail:runs %reproduction fail:runs > | | | | | | | | | > :999 0% 2:999 0% 1:999 1% 11:999 21% 208:999 dmesg.invalid_opcode:#[##] > :999 0% :999 0% :999 0% 2:999 5% 51:999 dmesg.kernel_BUG_at_include/linux/mm.h > :999 0% 1:999 0% :999 0% 4:999 4% 40:999 dmesg.kernel_BUG_at_include/linux/page-flags.h > :999 0% 1:999 0% 1:999 0% 4:999 11% 111:999 dmesg.kernel_BUG_at_lib/list_debug.c > :999 0% :999 0% :999 0% :999 0% 2:999 dmesg.kernel_BUG_at_mm/page_alloc.c > :999 0% :999 0% :999 0% 1:999 0% 3:999 dmesg.kernel_BUG_at_mm/usercopy.c > > [2] > rcutorture results: > ========================================================================================= > compiler/kconfig/rootfs/runtime/tbox_group/test/testcase/torture_type: > gcc-11/i386-randconfig-a012-20221226+CONFIG_DEBUG_PAGEALLOC+CONFIG_DEBUG_PAGEALLOC_ENABLE_DEFAULT/debian-11.1-i386-20220923.cgz/300s/vm-snb/default/rcutorture/tasks-tracing > > v6.0 v6.1-rc1 v6.1-rc2 56d5a2b9ba85a390473e86b4fe4 0af8489b0216fa1dd83e264bef8 > ---------------- --------------------------- --------------------------- --------------------------- --------------------------- > fail:runs %reproduction fail:runs %reproduction fail:runs %reproduction fail:runs %reproduction fail:runs > | | | | | | | | | > :999 0% 3:999 0% :999 1% 8:998 20% 200:999 dmesg.invalid_opcode:#[##] > :999 0% :999 0% :999 0% :998 5% 51:999 dmesg.kernel_BUG_at_include/linux/mm.h > :999 0% :999 0% :999 0% 3:998 4% 42:999 dmesg.kernel_BUG_at_include/linux/page-flags.h > :999 0% 3:999 0% :999 0% 4:998 10% 102:999 dmesg.kernel_BUG_at_lib/list_debug.c > :999 0% :999 0% :999 0% :998 0% 2:999 dmesg.kernel_BUG_at_mm/page_alloc.c > :999 0% :999 0% :999 0% 1:998 0% 3:999 dmesg.kernel_BUG_at_mm/usercopy.c > >> >> > >> >