Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4681014pxb; Tue, 5 Oct 2021 08:10:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyu7ULKPi9ouMbqE2fu1xGM/cPcNwfgbztIGJZ8ZbUELTUqAlETvzGKNANhX2E35dqqiVOh X-Received: by 2002:a17:90a:9f91:: with SMTP id o17mr4441367pjp.225.1633446622920; Tue, 05 Oct 2021 08:10:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633446622; cv=none; d=google.com; s=arc-20160816; b=lnEMvG+7NG1UAyawkyhC1hQqBUrWV+oqcMF5bG7B4Sgmc99nDKMuWqJmMl76568ao8 MqPANYDOQf9so9sjKymllGqV8bbrXLCyouDZc61ufQIMkgrDs6WG8H08v0uXDM2NkkHi AqUNkkTYB6x0f1nI6mvG+Kob++279ior6OOTqcgV5a9N+7e8d6EBeNhynMwraa0rKrKP gnxCmHYXp8soGYzWnXlfnTtUHdcQAJBIiyJocPbV5O4jfSEaRFTyqAgGUY6ZXYL+OjwT dBs/43oajwueI4wi0R0kvavdrMhLbs65WqEHGrZchT1RC1TXe8xEULur+fMmgGPPKsF/ 1Czw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=B8uXCv2C6+GSSeMdgdBton+YbzKIB7LnM1rY0GCnX/g=; b=LaJy1DrMBbc8MFVBpNj6YidXGjAWMcdZswMOjk0qWcv4T4GZHtj3uJt5OipNFpLH73 FEWe7DBJ+MPNjk7nPxuZd9nBPeSs2QJOk59Dq/fDfety7hT0gDojGUtRgTiHj1iJmY05 65bD/1guWJWV5N91wUJpkdOsCjFk9eojnH3AdBPGHT+wTuHV25T7ztOayxMEDtOPXZjF pumsjbvUk16zmJ7kM/K4AnRIdzuFdGN90H66TDFHdznZKvnKUcfoDRCwSMQ5MGwRUDD/ zzp6pceEyK3EyIOBGcOxFA4y2gSql7Yo02s14WisCWqkgn7gjebdGb2s0PDSZeYr9w+3 YUvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZkU1b4eH; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k8si4493033pll.435.2021.10.05.08.09.59; Tue, 05 Oct 2021 08:10:22 -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=@linaro.org header.s=google header.b=ZkU1b4eH; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229936AbhJEPIg (ORCPT + 99 others); Tue, 5 Oct 2021 11:08:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbhJEPIf (ORCPT ); Tue, 5 Oct 2021 11:08:35 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA273C061749 for ; Tue, 5 Oct 2021 08:06:44 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id g10so108190edj.1 for ; Tue, 05 Oct 2021 08:06:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=B8uXCv2C6+GSSeMdgdBton+YbzKIB7LnM1rY0GCnX/g=; b=ZkU1b4eHiCIl1eIHdsqKrZr4cUqDLqtQV9NogsR4nI9wxXtjsiyLrpO61hKlWYbwYg yUGmtKB8J9QWxlC/syD0OljNCUC21vlGu9vdaKpheEN2AUmGnJh3C9gdk6hkbxSGgNQ4 WHI9TGxgUJG6dzTylLzaQf36iQjl2YHEKe32wQGwJqi9B94MMRXKN3csUq/ZiEzsKRm3 03i6DdtawHPhO7PvrTlvyAP1yAI3Du2Zxkr4GE5zd4vc3ZkWWW/6BIX1FqvABXiC8fzP 2hQ8fE+C+30/PDgXq5HwU7vFW6eWAjEekPrgeSxQuylO3hYIK2X+4zzcO9C7fXFA5cP8 uBtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=B8uXCv2C6+GSSeMdgdBton+YbzKIB7LnM1rY0GCnX/g=; b=vr4BhJvageMIjAbrvwwIz4jUnGN11GZ36/U86Qr0NzKR5pj896CH/6rVm7/1Aqjsg3 hTiyCsV7xkA5Yto0ImWze0gAebtPOTfV/v/Xupb+CS5AoTEgItqG3jjw6tazpQgUh3Cw BXX9JlXigCa9W0BgHTjdbconpc9rd4+w5XG8SpGifZLjXh0n65VAxfENu0+QXIzmBgzx 94Ib/u3dler771OIA/tHap8sCuqEAVNU4UEe51ooYbpHgVnu8982GLgQFUDiDknY9heA 9zFThZ+wPfke3PYSm46c9Kwby1GQg7U3Z96/emL45fPO83aRIviBoBGe9UhC3URHLY8C ZTQQ== X-Gm-Message-State: AOAM530bQXZkPY9U1jKiLdzDcG/KWhf9/qIyL9tmU9/wQw0lCD/cX0qL U+NGTPOvI7ndHI1pXSG7L/fq9tG6ONQ/oIJ/ X-Received: by 2002:a17:906:1806:: with SMTP id v6mr25810713eje.420.1633446402723; Tue, 05 Oct 2021 08:06:42 -0700 (PDT) Received: from [192.168.0.13] ([83.216.184.132]) by smtp.gmail.com with ESMTPSA id u16sm7776526ejy.14.2021.10.05.08.06.41 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Oct 2021 08:06:42 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: [BUG] kernel BUG at mm/slub.c - possible BFQ issue? From: Paolo Valente X-Priority: 3 In-Reply-To: <1889051823.161943.1633100469857@office.mailbox.org> Date: Tue, 5 Oct 2021 17:06:40 +0200 Cc: "linux-kernel@vger.kernel.org" , "axboe@kernel.dk" , "linux-block@vger.kernel.org" Content-Transfer-Encoding: 7bit Message-Id: References: <1624640454.149631.1632987871186@office.mailbox.org> <1889051823.161943.1633100469857@office.mailbox.org> To: torvic9@mailbox.org X-Mailer: Apple Mail (2.3445.104.11) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Il giorno 1 ott 2021, alle ore 17:01, torvic9@mailbox.org ha scritto: > >> 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. > Hi, sorry for the delay and that you very much for reporting this crash. I have prepared a dev version of BFQ, to try to solve this problem. It's based on a 5.12.0, and should hopefully provide more information upon failure. Could you please give it a try? You can find it here: https://github.com/Algodev-github/bfq-mq/tree/dev-bfq-on-5.12 Thanks for your help, Paolo >> >> 5.13 doesn't seem to be affected AFAICS. >> >> Does anyone have an idea what is going on? >> I will now revert the above commit and see if that helps... >> >> Thanks, >> Tor