Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp177559pxb; Wed, 14 Apr 2021 12:20:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxG5gqmkU0Zq3PwW/aqkkLS0kEuCoAPH9KiRUbXJ+6hYXbrzJFL8vSYi88C/xxvRKIu/t6P X-Received: by 2002:a17:906:1b54:: with SMTP id p20mr383254ejg.477.1618428044347; Wed, 14 Apr 2021 12:20:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618428044; cv=none; d=google.com; s=arc-20160816; b=Zf3ePS+LbgMypVFiz3Xrow9zvTASqnIkqE+aGmaziXGfAl8NxTQHESAa3rtVGFzSPy p4MmRgX5OSGyUwAkvPZel4+KP0t4glcyJC1iNY9UTplv7VkxB8/WhgsVNNsRbVeyrGuo 4D69mfJbC2a2RaBzKGMXeQPndmpzJgnXyxDjD9SxhdJPL62MyYGD+06BCfoRxJzIeEiT SG6+9QM6socQEeLudYwdizGEv6bWHKZTAb7nM6F2QCmrqw5tk5L4NKTXRLFbXo8eQXUp 94uOhdKkmmZAAbLswAXJ88sEqWe0UZmIqDtVo7/zVH029DIwT1NvbhbjO19Xw9wuJf8y CFlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=fCT7a3DwEDpTvCAcXZFVCXe+sSIexbpwUL2TbgQsx0s=; b=O2d+DSgzc5rbFDrGOdXLQ/Ki+DXF32Rb2hm7f4zmbZeLodFbWI7eIu0PKtS9Lv+2Vt J5DSxDNxDAVE+oHTjgq24KOqLGG/mIBYBsLzOShnxW+qUy6/JlaXP4h8gF+IwCZS+kTD b1BLlQqgjG6o837m9ljj0P7U9OZIXm0n6ODoBof61fgEiwY1MjfD9MlQlB0+h6GnyFH7 7suxq5RwoaaAf1r8OVw8WmLn98INVwq0P3gBReGb5MucWPz6sZrhF/F/ypWa8WNhrVsp xcwGK6cYfgPlDbaVBTqdA4Wt2KzlsW6tVRR5Xhto2nhwNKt2NyLiYB/th/Js5ch+5Wqv JAAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=kGoeBbSa; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e9si217864ejq.308.2021.04.14.12.20.18; Wed, 14 Apr 2021 12:20:44 -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=@gmx.net header.s=badeba3b8450 header.b=kGoeBbSa; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347698AbhDNGQZ (ORCPT + 99 others); Wed, 14 Apr 2021 02:16:25 -0400 Received: from mout.gmx.net ([212.227.17.20]:48231 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229877AbhDNGQY (ORCPT ); Wed, 14 Apr 2021 02:16:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1618380954; bh=LutR6DvZ3BWEG3fagVRG7i7mzJ5l1vET1psDib4/VJA=; h=X-UI-Sender-Class:Subject:From:To:Cc:Date:In-Reply-To:References; b=kGoeBbSaTL4ITAtEsDpxtBbrpi/IppekwhvdnQv94nUMWzkloattfwY1VvehH3FlN bTr6KLC70IcDvBLLQmYf5uNhT8tz4DCoDwfFawa652Wqm9Y7LTo+MxWhVeTIjFnwiN GcEpeicowCfdVrcJQuPS7viyPehzBqmTIb669JwY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from homer.fritz.box ([185.191.216.50]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MQvD5-1l9HSv0MjP-00O1tK; Wed, 14 Apr 2021 08:15:54 +0200 Message-ID: Subject: Re: Question on KASAN calltrace record in RT From: Mike Galbraith To: Dmitry Vyukov Cc: "Zhang, Qiang" , Andrew Halaney , "andreyknvl@gmail.com" , "ryabinin.a.a@gmail.com" , "akpm@linux-foundation.org" , "linux-kernel@vger.kernel.org" , "kasan-dev@googlegroups.com" Date: Wed, 14 Apr 2021 08:15:53 +0200 In-Reply-To: References: <182eea30ee9648b2a618709e9fc894e49cb464ad.camel@gmx.de> Content-Type: text/plain; charset="ISO-8859-15" User-Agent: Evolution 3.34.4 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:i2oTji6pkK7Awnn4kp8awBkagqnDehpwQ19loaFFTEDOWWzpnJT 5ZWePAPbDr4rTHVpYVUUBYlMAKHS6+2sdX7n1tdPxczJZz8mzCKpkoxzCe7SWM/50iSywXK RH+YSrCdoOHBhEZ9MRZu3dJKn6zt9yAYMAWf3yTAZ4J5yi6w59Stoy+3HZ0PutFJUNeI8g+ PceWxcmskbS47vHR1NR0A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:d0fpSXM5V8w=:DBY15R1nVlW7LxOLFEPwLs UREHxo4fBskbInhck33ZUBkKQdD0vRU0gjuSKhx2B3cgiTI3SV6Er/3ZhFIgZlyTcvwIbUCOz lnHDE10fPuKpJyCsIoN5bd6Cs2IAoTJByLtufFeY+/YnMnA+YMPv8uxzuesxiuFqjSbSS8lyO B1uqZc0SF3s7xp3ixbFph8mCq1KxSGaStEeEwtgIx0J57bY85dMh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ger.kernel.org On Wed, 2021-04-14 at 07:26 +0200, Dmitry Vyukov wrote: > On Wed, Apr 14, 2021 at 6:00 AM Mike Galbraith wrote: > > > [ 0.692437] BUG: sleeping function called from invalid context at k= ernel/locking/rtmutex.c:943 > > [ 0.692439] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: = 1, name: swapper/0 > > [ 0.692442] Preemption disabled at: > > [ 0.692443] [] on_each_cpu_cond_mask+0x30/0xb0 > > [ 0.692451] CPU: 5 PID: 1 Comm: swapper/0 Not tainted 5.12.0.g2afef= ec-tip-rt #5 > > [ 0.692454] Hardware name: MEDION MS-7848/MS-7848, BIOS M7848W08.20= C 09/23/2013 > > [ 0.692456] Call Trace: > > [ 0.692458] ? on_each_cpu_cond_mask+0x30/0xb0 > > [ 0.692462] dump_stack+0x8a/0xb5 > > [ 0.692467] ___might_sleep.cold+0xfe/0x112 > > [ 0.692471] rt_spin_lock+0x1c/0x60 > > HI Mike, > > If freeing pages from smp_call_function is not OK, then perhaps we > need just to collect the objects to be freed to the task/CPU that > executes kasan_quarantine_remove_cache and it will free them (we know > it can free objects). Yeah, RT will have to shove freeing into preemptible context. > > > > [ 15.428008] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > [ 15.428011] BUG: KASAN: vmalloc-out-of-bounds in crash_setup_memmap= _entries+0x17e/0x3a0 > > This looks like a genuine kernel bug on first glance. I think it needs > to be fixed rather than ignored. I figured KASAN probably knew what it was talking about, I just wanted it to either go find something shiny or leave lockdep the heck alone. -Mike