Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp601941lqs; Tue, 5 Mar 2024 10:38:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVPkSvkRzvLZFkF9NTRkQD9yavlcjAF0EUQfbyw/Ce463FS1+yo2fIIK6VPMWMvBjLTH1gRc0VWMiLHZxmhL0rW8WnJL6Y6pKkVSVMhuA== X-Google-Smtp-Source: AGHT+IF10kNNzIvuZPC0uV2t9xIt8L6zABvT/pJOSfzyUbxOuDuLZ1FDhzYb4VoI+h3MMVmmWI91 X-Received: by 2002:a17:906:5585:b0:a45:231:9b4b with SMTP id y5-20020a170906558500b00a4502319b4bmr5717508ejp.20.1709663908028; Tue, 05 Mar 2024 10:38:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709663908; cv=pass; d=google.com; s=arc-20160816; b=zmfxDGmBra3OFsEwGDzvbasbnTegsjb/QRuYolrP+ibqBVCKlCMb5irw7Fj3YTe65P nDnEpNhi0gnE2O1c2ySrC+Z/OQstIHaY2X731dtT+wEgOfUfYx8v2wSUL6hiiHUrvZ44 XdS1Ar47mOdqyST44QGoO27IhZ1Zem0mvpthgRDcJl8H0ogmH7BsV1W0XroLK7oOlcXj C/OdizYel2ODyblN5x36qjkQQO3vI+/vMMflSYrcBJOfNy2QiIVzYFLKeS6bbXNMTkIF pG64nwBARcGOQEFIfkLAwYaOOvWVFXkT9Q0icv6k2q05VbvP04wkBVWSytXaCFoJ4D8X K9Xg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature:dkim-signature :dkim-signature; bh=Z/AQ6pirkN4uHRKwxtCgG5gCDyF8KgCXmMPpvZw4+pU=; fh=3qUQi+eYpEQb9NBMuV35OfHte1Isg97WoUNqW8CEDJ0=; b=o5D87EL3STaMKi1hV+dE+fWWLdPSHDP5DPJ0LuNkj3kAn7EzMzjVXTehAGDk6nzQ23 k7BuDWu3lBwOv5rNVQKCjOOIJCz1X1qrvgacSZMOfNcOne5GatErPhkoPTYv9qNBlcBG vax4ivHV3qArcValgPA5hdcHiWZdSRhq/OY+4ukyulxzFuqGKt/JCEMX4+qoJwtbpAyQ 6P7a/JBy5wOVcSVt2fWUZM+5FEqMZhtlP8mLQ32n344xCyBXE8Xvou8bdbIpkasWZZuo 3erQDU4+RZlVLXIqcVJ4zBty463719igq3NKBIFBR9aiqtHmlOxitksIT7lqYFSIA2bA HHcA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=XV+ArbRJ; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=XV+ArbRJ; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-92837-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92837-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t11-20020a170906178b00b00a3fc1f18be9si5344735eje.550.2024.03.05.10.38.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 10:38:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92837-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=XV+ArbRJ; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=XV+ArbRJ; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-92837-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92837-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 331091F285D0 for ; Tue, 5 Mar 2024 18:37:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EABF91BDC9; Tue, 5 Mar 2024 18:37:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="XV+ArbRJ"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="qrJhhHxr"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="XV+ArbRJ"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="qrJhhHxr" Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5DD951B970 for ; Tue, 5 Mar 2024 18:37:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709663848; cv=none; b=BQHB20nML7IYt3Aqun0HCWyNSCrCoEfUbAcZlJS+W7Nk+/4V1xU/EzCxteTh27feuXglxIeYjI+wq8MpYXOzm/kxZrx0757PVoi5ONPeqQTrl4gqP5DyzhxptdCvOwqbGO+w4r8adMuAvRtkWkRtf0R0qSeuLRBgdY4r+gGpBhU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709663848; c=relaxed/simple; bh=9OySdeXPCzc3gRHog0GdvR7NNwErq2G2bqBBT24iHOE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jAQPGmZZQ4xh8MOuLTUS5QzXPuOum1wM2qIn/q1flLmFIM3/qZwLbQ7hLXvhB1bztGoo7GFijboDfDzvSaM65on0NEl2XFk7OuenLuQJyx+svUby0kbIf+51Vf0kgpqxw6yGHPRvndbJW6c4H5zeQ2SMtBps8G+YabFolzlFc+c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=XV+ArbRJ; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=qrJhhHxr; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=XV+ArbRJ; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=qrJhhHxr; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [10.150.64.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 6D26234223; Tue, 5 Mar 2024 18:37:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1709663844; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Z/AQ6pirkN4uHRKwxtCgG5gCDyF8KgCXmMPpvZw4+pU=; b=XV+ArbRJXUOWtR6OfvB4u7DvQNaO8+7zDKrpyetpDLG4gdk33GX6rE6QSKw2h9t6X9mGpi zE/cky+VLfKTfBMsZCXUix2UgwqEASGIM4/8/Lrki6hAg9gp8zTNa28wU0oX56U/vmCx13 OXt8i9DOzixTQZ2ltUJvOEeEjUv7XP8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1709663844; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Z/AQ6pirkN4uHRKwxtCgG5gCDyF8KgCXmMPpvZw4+pU=; b=qrJhhHxrC/qmN+c+dhv29YRG3+bT9w+zX5p8issNop68XbZbStpkwKDPXptA/0yUB5U/UG DCpz1A4JH241bnDg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1709663844; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Z/AQ6pirkN4uHRKwxtCgG5gCDyF8KgCXmMPpvZw4+pU=; b=XV+ArbRJXUOWtR6OfvB4u7DvQNaO8+7zDKrpyetpDLG4gdk33GX6rE6QSKw2h9t6X9mGpi zE/cky+VLfKTfBMsZCXUix2UgwqEASGIM4/8/Lrki6hAg9gp8zTNa28wU0oX56U/vmCx13 OXt8i9DOzixTQZ2ltUJvOEeEjUv7XP8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1709663844; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Z/AQ6pirkN4uHRKwxtCgG5gCDyF8KgCXmMPpvZw4+pU=; b=qrJhhHxrC/qmN+c+dhv29YRG3+bT9w+zX5p8issNop68XbZbStpkwKDPXptA/0yUB5U/UG DCpz1A4JH241bnDg== Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id C255413A5D; Tue, 5 Mar 2024 18:37:23 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap2.dmz-prg2.suse.org with ESMTPSA id TPZbLGNm52VDAQAAn2gu4w (envelope-from ); Tue, 05 Mar 2024 18:37:23 +0000 Date: Tue, 5 Mar 2024 19:38:42 +0100 From: Oscar Salvador To: Marco Elver Cc: kernel test robot , oe-lkp@lists.linux.dev, lkp@intel.com, Linux Memory Management List , Andrew Morton , Vlastimil Babka , Andrey Konovalov , Alexander Potapenko , Michal Hocko , linux-kernel@vger.kernel.org Subject: Re: [linux-next:master] [mm,page_owner] 4bedfb314b: BUG:KASAN:null-ptr-deref_in_init_page_owner Message-ID: References: <202403051032.e2f865a-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Authentication-Results: smtp-out1.suse.de; none X-Spamd-Result: default: False [-1.88 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; RCPT_COUNT_SEVEN(0.00)[11]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_CC(0.00)[intel.com,lists.linux.dev,kvack.org,linux-foundation.org,suse.cz,gmail.com,google.com,suse.com,vger.kernel.org]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-1.78)[93.69%] X-Spam-Level: X-Spam-Flag: NO X-Spam-Score: -1.88 On Tue, Mar 05, 2024 at 07:32:02PM +0100, Oscar Salvador wrote: > On Tue, Mar 05, 2024 at 02:02:35PM +0100, Marco Elver wrote: > > On Tue, 5 Mar 2024 at 10:26, Oscar Salvador wrote: > > > Marco, could it be that stackdepot was too overloaded, that by the time > > > page_owner gets initialized, there are no more space for its stacks, and > > > hence return 0-handles?. > > > > That's possible. But it's unclear to me what exactly happens. Are you > > able to reproduce the issue? (I haven't been able to because the > > config enables CFI which seems to cause other issues for me, > > presumably toolchain related. :-/ ) > > I am out of luck here, I cannot reproduce the issue. > I set up the environment just as [1] says, building the kernel with > their config and launching bin/lkp just as [1] states, but it > boots fine here. But they point out to commit 4bedfb314bdd85c1662ecc46fa25b33b998f994d (HEAD, bisection) Author: Oscar Salvador Date: Thu Feb 15 22:59:03 2024 +0100 mm,page_owner: maintain own list of stack_records structs which the only thing it does is to retrieve the stack_record for {dummy,failure}.handle and increment their refcount and link them. I am pretty sure the problem comes from either dummy_handle or failure_handle being 0 and the stack_record we get is NULL. I will come up with a patch to guard this scenario, although I did not think this could happen at this early stage (stack_records returning NULL). -- Oscar Salvador SUSE Labs