Received: by 2002:a9a:4c47:0:b029:116:c383:538 with SMTP id u7csp919377lko; Tue, 13 Jul 2021 12:59:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMJ0yzbl1FmEdFb8jpQ5D7adniIVMZ5HD3y70Ghc4qAd7P8bu776rtgmcKHV7B8R6v3dCS X-Received: by 2002:a92:1e08:: with SMTP id e8mr4250015ile.10.1626206393394; Tue, 13 Jul 2021 12:59:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626206393; cv=none; d=google.com; s=arc-20160816; b=Z/NT4QwkvHuOjb5y5sGOhr1TeCB5gmx+DemKL1j+ho3lsb7uZ5NUh3KtTESg4tmxES O3t0yAJ/JBJPov7eAmzAH2k78FOHF9vdAhKsOoxZBSytsbvYtuSuYyQY+7/r+cgbDI4A 7mFWZFSu60PRx0p03uFjBJxyXG1svx6aQSaxt4EjO20C5arGjR/ij8JLryCqavG8y+hg JiraF3KFq6sRssu4Hir/YMcbVSNRGm8dB449PoXU3zZ+JXUBwj3PN+LxUNrCa7wmaBJL uQd2rqNCxQLQwcrssDXxizo6bG1FQ8XZecsQcu7XZOjC2kHO7vXnrKOX9rIo1Vq88+BX sTIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=TWXBE2VTCTk8wXZw3+DTQo1Bqc43JUhOeaoaUlFV+Nc=; b=mfO84PtI0/Ix5zHOFrekbWDTeT3IX3C3Xl0xJethi+Gu+XdZjXrIYFBlDYv+dNAXfD Nf8oHHQyl/sijKnUBUwvXPDmJ2Q56oRH29YYHe7WLCyR7qYDHUPdzDEhgIm3V5tGKtAC fhOBJHOjm+yiRUGV+kZrjH50u2moZ7CoNjDSysFCxz2CQkBhrChS3NH9E8HOwS599E1R WMYbnzw4stlecLJg8sI8GhFERViV26tVCsHrSk60fQcDJkeVE+6YSuEfffKqzROMHG7+ C45Oa+mzCgXWccJUOambDyqPG7/3W00ZGFFosELQ6NpCJK5ly+E8zesU6f7g+nL/RHTd rnqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CFLfq9mQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c7si21309056iot.72.2021.07.13.12.59.40; Tue, 13 Jul 2021 12:59:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CFLfq9mQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234394AbhGMUBb (ORCPT + 99 others); Tue, 13 Jul 2021 16:01:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231499AbhGMUBb (ORCPT ); Tue, 13 Jul 2021 16:01:31 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81F6DC0613DD for ; Tue, 13 Jul 2021 12:58:40 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id i5so22617656lfe.2 for ; Tue, 13 Jul 2021 12:58:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=TWXBE2VTCTk8wXZw3+DTQo1Bqc43JUhOeaoaUlFV+Nc=; b=CFLfq9mQRVkeFIKtgFF6xB2WiQ9NQrHUnQOWV71uF7wmQW5l56yFzqBI/QKSEB0fAO IBnW3YCqIH/MbEqpR808nvZ5Qt43jaa4L4ufGnklJMzM1B4hTIBoOSazC2IUH5uxrFRX aFaWThc9dEEHS0FmSKHSRoB2b/sZ966XYzfPNdLohMF+868XBsPix02KoYd6mpe5nA0k qn+3E3o4E3f0i/wu+A/0WsQgXVf/L59GLDtHzwXkBuEUh3JI1Befsy3YnMoSTRPWwkdf iITminZwtodHn6oAyMhg2KH6iB3WGsO0Vs3mbjrGq4k+RI+zKHcdXrCpbP7zPhZ7SvcW +Qjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=TWXBE2VTCTk8wXZw3+DTQo1Bqc43JUhOeaoaUlFV+Nc=; b=d9X3OBu9fMQA0zo6yC9xRQjcyf8xHgjWDrLJBy29mcisLkfMfv3gP7lWu9mILUBgLQ +Lvf+3BtZ4t0TD71I7BtRTBJxtKX2GXAESKkuP4bc8o2XkgkBa+IPjzehwRnCyxzBTQD urRGBdd3DvUpctVWe6zTIgEjTOOjAS2afUlXDlC6LM9hJtWhReNshuE9EncvG1iSWgcG aMewNI9q4Rki5LToQ/cxK1Um2fSNRCi5XwtGUZGEJ78DKU6aLSJASFkhxOZZwrQvj9Bz pl34ZOtQ5WTqxZWdrzW/8yuRDrjccSzHcOsYVJutADj8Jbhlf4lTdIBB/BcYQhJQfsaz 3H6w== X-Gm-Message-State: AOAM5302m/MFuvMxLmp8ifowbUSEUZsIYZYXYeHgqxRNzFUP/AucYL0v kDM+qTTQef1D8yy/RXuFizg= X-Received: by 2002:ac2:4e69:: with SMTP id y9mr4783834lfs.593.1626206318841; Tue, 13 Jul 2021 12:58:38 -0700 (PDT) Received: from pc638.lan (h5ef52e3d.seluork.dyn.perspektivbredband.net. [94.245.46.61]) by smtp.gmail.com with ESMTPSA id o18sm28073ljc.25.2021.07.13.12.58.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jul 2021 12:58:38 -0700 (PDT) From: Uladzislau Rezki X-Google-Original-From: Uladzislau Rezki Date: Tue, 13 Jul 2021 21:58:35 +0200 To: Linus Torvalds , Matthew Wilcox Cc: Linus Torvalds , kernel test robot , Uladzislau Rezki , Mel Gorman , Hillf Danton , Michal Hocko , Nicholas Piggin , Oleksiy Avramchenko , Steven Rostedt , Andrew Morton , LKML , lkp@lists.01.org, kernel test robot Subject: Re: [mm/vmalloc] 5c1f4e690e: BUG:sleeping_function_called_from_invalid_context_at_mm/page_alloc.c Message-ID: <20210713195835.GA21685@pc638.lan> References: <20210713142414.GA28943@xsang-OptiPlex-9020> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 13, 2021 at 07:26:53PM +0100, Matthew Wilcox wrote: > On Tue, Jul 13, 2021 at 11:19:29AM -0700, Linus Torvalds wrote: > > Does anybody see what the problem is there? > > > > There's an odd report _after_ the warning: > > > > [ 131.345319] raw_local_irq_restore() called with IRQs enabled > > [ 131.366561] RIP: 0010:warn_bogus_irq_restore+0x1d/0x20 > > [ 131.433334] __alloc_pages_bulk+0xbb8/0xf20 > > That's the key -- __alloc_pages_bulk has interrupts disabled and then > page_owner allocates memory for the stack dump. Mel has a fix; I think > we're just waiting for it to hit your tree. > I was thinking about how we came to the step when a sleeping check is fired somewhere deep in the "page-bulk" allocator. If vmalloc was invoked from non-sleepin context we would see it earlier, at least in alloc_vmap_area(). I think, the bulk allocator disables interrupts and does some sleeping things. Matthew, Could you please point to the fix? -- Vlad Rezki