Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1313683pxb; Fri, 1 Oct 2021 08:06:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmzjFp9f9cGVqqCP5+cFThP30g2I+pWkRoBJ+f+wb/QaqN+xsTjKrrY2uk+Gy1J8HFvh4W X-Received: by 2002:a17:906:c18d:: with SMTP id g13mr6652506ejz.518.1633100767717; Fri, 01 Oct 2021 08:06:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633100767; cv=none; d=google.com; s=arc-20160816; b=Eom7Rwd+Y9j4q0ybIQbfXxF3JrzAQncXhfJtIq066ibGpXHv3slwgu3zGZCwezJFDq l4Pk1/7j3oWrhumRue0r16IBWKwCre1LKQ9H2mj2TCb1X0MQYtfyxN+HKZj8P6R+m8KA Ah4XkiAN+yIcXK0VREf2T9ucaUsKBIj7evqtCfmRwBFsHOmzrffPY9GP9boMZ6yIYa+5 OOrGWxgJBCOjxPoCrSXMjZU1U77hsvY8XiuPvi93YDJrVatz94uSGZip893PWYjhkmlp SOFh0ntyDTlSRn1269BD1pSNYWPaYpGSBi3B388FMidpfzMv9tv5HHdrFMXktzKZe+HY fnbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=NaTmLQHutOXSYvks1euo385cJGTEqbXqI4mBttmOtvg=; b=Q+B5bJ+1aEKugMgrZSokid/qrD+ThmsgMCbe6r09TZsVpyooBjRfy2dgZlw+aTetXE sa033nGVnRnC+PxzA7epDYF0rz0em4YQeicOW11bztQEYTFvrTrVlIMFNc7AuqSZmM6R qgKtOkVCuLTkv8GY4YQClb+lWbadJVPCqD3yoF5cz/XwG4YoKZhL5tsOnjKzipgnbXfI BnFKhYRZb6f8GEgB6yW/2x7L8egmXeVz0fER0+AsGf//aC5yfhttHbF/vrU4wvjjRyC/ RlpZMn2KKp0+wJl2wyx2QcQdU9zoRdRTFGMXlum9K9HpBeK52kNv/utZtmvqmN1Ww6Py 6u7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=Z8PQZy2f; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id di3si4667024ejc.728.2021.10.01.08.05.21; Fri, 01 Oct 2021 08:06:07 -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=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=Z8PQZy2f; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354699AbhJAPES (ORCPT + 99 others); Fri, 1 Oct 2021 11:04:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354696AbhJAPER (ORCPT ); Fri, 1 Oct 2021 11:04:17 -0400 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AB2EC061775 for ; Fri, 1 Oct 2021 08:02:30 -0700 (PDT) Received: by mail-io1-xd29.google.com with SMTP id b78so12018230iof.2 for ; Fri, 01 Oct 2021 08:02:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=NaTmLQHutOXSYvks1euo385cJGTEqbXqI4mBttmOtvg=; b=Z8PQZy2fPVLka1su7mx6sXp/mDWSSTWeuMeVVVq8o7U7s9m9/60dQoaYR5ZDmPh44S ejJIXTpVEdwZMH+92h/qg6nngVARrV/sGm5z1FUqkSq67I1X3dc1sOPq7r1dF52t0A2c 4bGmUNS81U5bL4WAXoaiQjKycdoWdq2ofev+loDjKCJ8fn23X6vWNhod3K7tA5hkEuM1 PRM4gT+oSQTdW4Lc3w5oH1swOEhtq/a6BL7d63DZ9jq+py70E6aX8otlSZoecjHVYF1Q xK5xtk0y/HTA2wnGxyZolvcTc0uCiq28F/G2AKXnYh+c+CClxMj5tLzsIRAUCtJzoj0d fjKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=NaTmLQHutOXSYvks1euo385cJGTEqbXqI4mBttmOtvg=; b=tZ/7haV+MR+dkTZUXkplVvE0FXxBvBKQBnHzYqawtjlapcW2seiJjHHu41g5puDYLT GhBGaaqjD/QfYnzOqmgeY5zThSTjUR6txK8HulOD1Ca8poKeaMtfOxP/B0DLHM+3gk00 9NyHsN+pGxHluoWPS98Ts+UK1/Tkz/FgaMK6KYG9+bX5Ow1TKgEkb2g4he/m+oATFm9H ZfP4+fa8xB6o7Zrl6MnBoU7CIOwV5AKiE6yarXl7Yjkmzcjx6sfV2wcncGexVi3iyW15 GSapbDE6EmApGdOj9ZWIscm46banpTbhbqKJLqf1fzWW7t71zA6Az0NChr/jxLgzbBmF m+Pg== X-Gm-Message-State: AOAM530Xh5NHzoFAPWdWFwQjtmn+j6i61h/5HUlZsGiVLvYZbXrRqFSN LqWfOzG03WAfklWSBzIe1OthVg== X-Received: by 2002:a6b:6302:: with SMTP id p2mr8524609iog.105.1633100549748; Fri, 01 Oct 2021 08:02:29 -0700 (PDT) Received: from [192.168.1.30] ([207.135.234.126]) by smtp.gmail.com with ESMTPSA id p11sm3937686ilh.38.2021.10.01.08.02.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Oct 2021 08:02:29 -0700 (PDT) Subject: Re: [BUG] kernel BUG at mm/slub.c - possible BFQ issue? To: torvic9@mailbox.org, "linux-kernel@vger.kernel.org" , "paolo.valente@linaro.org" , "linux-block@vger.kernel.org" References: <1624640454.149631.1632987871186@office.mailbox.org> <1889051823.161943.1633100469857@office.mailbox.org> From: Jens Axboe Message-ID: <2abec603-cad9-d87e-356c-9fe49dbbb3a3@kernel.dk> Date: Fri, 1 Oct 2021 09:02:28 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <1889051823.161943.1633100469857@office.mailbox.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/1/21 9:01 AM, torvic9@mailbox.org wrote: >> torvic9@mailbox.org hat am 30.09.2021 09:44 geschrieben: >> >> >> Hello, >> >> I encounter a hard freeze on both 5.14 and 5.15 when using BFQ. >> Unfortunately, I do not have a full error log, because the computer >> totally freezes and slightly corrupts the display, so it's >> impossible to read the entire message. >> >> However, what I could get is the following: >> >> kernel BUG at mm/slub.c:379 >> invalid opcode: 0000 [#1] >> RIP: 0010:__slab_free >> [...] >> Call Trace: >> bfq_set_next_ioprio_data >> [...] >> bfq_put_queue >> bfq_insert_requests >> [...] >> >> This issue appears more or less randomly and it sometimes takes a >> little while to reproduce it (running fio helps). >> The call trace always contains references to BFQ, but they are not >> always the exact same. Once, I could see on the corrupted display >> the message "general protection fault". >> I could reproduce this issue on two computers. >> >> Not quite sure but I *think* the issue first appeared somewhere around >> 5.14.5 or 5.14.6, during which time BFQ only got the following commit: >> >> (88013a0c5d99) block, bfq: honor already-setup queue merges > > I have now reverted the above commit and launched some heavy I/O like > e.g. git kernel, fio, xz compression, and so far, no freezes anymore! > Too early to say that this commit really is the cause though. > Would be great if someone could have a look at it. It's known buggy, and a revert has been queued up since earlier this week. It'll go to Linus for 5.15-rc4, and will hit 5.14 stable shortly thereafter. -- Jens Axboe