Received: by 10.223.176.5 with SMTP id f5csp757123wra; Tue, 6 Feb 2018 06:56:30 -0800 (PST) X-Google-Smtp-Source: AH8x226wd3qIcmqB4AIC3f98R4wHRWWSgs1YazN+cfn4/u6aakM02W3fjIri/DkuwuTU+JQOgUJp X-Received: by 10.99.99.198 with SMTP id x189mr2219626pgb.248.1517928990040; Tue, 06 Feb 2018 06:56:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517928990; cv=none; d=google.com; s=arc-20160816; b=a/qxE3P66ELlKpGdaM1v2SmwS0aidcVOFaW/AW5eZlow8UU6QAOAUcrvXMCdT+GmlC lOMqOeqQDz52GvJEfxDFBQOM+lHcrzv5lLPhI3Bqzbpfeo1x5h2hW2PTRrPI91XRuKW7 sRo2V/a0prbzN2WqMUzCbARFCG4h0InmYSyKiQTLWRov+JtJph6xRpJ7PSA3sYb+fbsl rIIKN9+FF3MWvF7XcYZOR7S9A/U161+9zg2kfIsVUilDtFr1zVjnjbC9OANkdSlv38/Q UJoBs/RCEzh1SRkLoUkmyhkOYPhJ/yRvjDETfSy8ceYRy1/VL8SQuZqElZjolqWAWZ4V pD8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature:arc-authentication-results; bh=hHCdyYTRkmnBiJwVQJDPZrSpwh3gRiFnf0T2BXYMWck=; b=GH7doQZ2CMGipkvx60nYPqCHw57aY2kDFcjWk2p9fX8GTxRqdRnSH74p+NSeLNumIu BHm+gsg78smaQZUZOksr7IbNovz/ZNKUgnbPclwKH171OaD0WTImQTxLfyKUMlCJJLbl WCI64dlfCqOi0PJtff+LG4Z1jCvkbZfj0Y4NIAao2y3nnASSys4G2kaLhIx7FTcbh325 UkFc1GjAOgUVZ+po4e7EGJKFsRf+5oPTUFGLT7ScoBpufT7Ed7K9/Y6jA32XViiqbG9s XJCfDW+GxjbVAZkE9Wnrw6p1XmfUw62tl99/1/dbcUgDneG/9g0omgu8OUr/d6dIdquW wmOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J28lTs7t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id k13si651040pgs.339.2018.02.06.06.56.08; Tue, 06 Feb 2018 06:56:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J28lTs7t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1752590AbeBFOzg (ORCPT + 99 others); Tue, 6 Feb 2018 09:55:36 -0500 Received: from mail-wr0-f169.google.com ([209.85.128.169]:46823 "EHLO mail-wr0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752581AbeBFOzY (ORCPT ); Tue, 6 Feb 2018 09:55:24 -0500 Received: by mail-wr0-f169.google.com with SMTP id 35so2229374wrb.13 for ; Tue, 06 Feb 2018 06:55:23 -0800 (PST) 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=hHCdyYTRkmnBiJwVQJDPZrSpwh3gRiFnf0T2BXYMWck=; b=J28lTs7tNcG5rS+HTNyJ2FZNsZnZIJS2hgBvFG6V3jX2pkLsWbyYoR8YhVSz0xkWmc ab2zjaQUYTALD5yzjji7LjvFxn5o3SKSEr63mgAcGWLklEckEonKPAPoPevZK2GGLnFJ k3nLKQ5f0/nbH06GVphebrVPYg88n23qLI0IM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=hHCdyYTRkmnBiJwVQJDPZrSpwh3gRiFnf0T2BXYMWck=; b=LO+0lDArgeQRsCh4FlDyX415aZf+BpzBnKw4Eww5X+FLDW7RNt9py1D8T5cjMQh67J h6vw4QiEM5mPb3ofsUSzIwu7qWUwQmkR3JlL0K5VUkgnLVizzb+Ncq/EFd6MaiAxixFv mrrVcv4Y/cPruK73LCW34RPfS/GcmI9VDPUroAxrGArkz4LOo6Z5cPvQYY8bKvs9xYOh C7prp+IfeL6qycv4wzra9U6ar3t+l01WOP6bhq6oxhOIbP6qMZoa4zK98dLQ8XSxomLo gIaIQALVaMOhM4Vot4dJJv7CheZoYuEJpwyDyrgwzTl2qkvwbujBWvSh/kihqVZfGdPd 6Wxg== X-Gm-Message-State: APf1xPCBJS78JgsrbjjC9TxvcPaBdFbW+J/Pzv1NM70P1uUhxfvSEeUs ObTAI3qeYkP8C11tucdpcSOBr7fX+pI= X-Received: by 10.223.139.14 with SMTP id n14mr2693905wra.23.1517928923222; Tue, 06 Feb 2018 06:55:23 -0800 (PST) Received: from [192.168.0.104] (146-241-18-147.dyn.eolo.it. [146.241.18.147]) by smtp.gmail.com with ESMTPSA id 4sm6403986wmz.31.2018.02.06.06.55.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Feb 2018 06:55:22 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: [PATCH BUGFIX 1/1] block, bfq: add requeue-request hook From: Paolo Valente In-Reply-To: Date: Tue, 6 Feb 2018 15:55:19 +0100 Cc: Mike Galbraith , Oleksandr Natalenko , Jens Axboe , linux-block , Linux Kernel Mailing List , Ulf Hansson , Mark Brown , Linus Walleij , 'Paolo Valente' via bfq-iosched , Alban Browaeys , ming.lei@redhat.com, ivan@ludios.org, 169364@studenti.unimore.it, Serena Ziviani Content-Transfer-Encoding: quoted-printable Message-Id: References: <20180205190510.5499-1-paolo.valente@linaro.org> <20180205190510.5499-2-paolo.valente@linaro.org> <1517903761.9843.12.camel@gmx.de> <899B68CC-5955-4418-8BFF-DC55A743A61B@linaro.org> <1517918234.25841.31.camel@gmx.de> <7770589c-32e0-6bdb-530a-34c642e46630@applied-asynchrony.com> To: =?utf-8?Q?Holger_Hoffst=C3=A4tte?= X-Mailer: Apple Mail (2.3445.5.20) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Il giorno 06 feb 2018, alle ore 14:40, Holger Hoffst=C3=A4tte = ha scritto: >=20 >=20 > The plot thickens! >=20 Yep, the culprit seems clearer, though ... > Just as I was about to post that I didn't have any problems - because > I didn't have any - I decided to do a second test, activated bfq on my > workstation, on a hunch typed "sync" and .. the machine locked up, = hard. >=20 > Rebooted, activated bfq, typed sync..sync hangs. Luckily this time > a second terminal was still alive, so I could capture a trace for > your enjoyment: >=20 > Feb 6 14:28:17 ragnarok kernel: io scheduler bfq registered > Feb 6 14:28:20 ragnarok kernel: BUG: unable to handle kernel NULL = pointer dereference at 0000000000000030 > Feb 6 14:28:20 ragnarok kernel: IP: bfq_put_queue+0x10b/0x130 [bfq] > Feb 6 14:28:20 ragnarok kernel: PGD 0 P4D 0=20 > Feb 6 14:28:20 ragnarok kernel: Oops: 0000 [#1] SMP PTI > Feb 6 14:28:20 ragnarok kernel: Modules linked in: bfq lz4 = lz4_compress lz4_decompress nfs lockd grace sunrpc autofs4 sch_fq_codel = it87 hwmon_vid x86_pkg_temp_thermal snd_hda_codec_realtek coretemp = radeon crc32_pclmul snd_hda_codec_generic crc32c_intel pcbc = snd_hda_codec_hdmi i2c_algo_bit aesni_intel drm_kms_helper aes_x86_64 = uvcvideo syscopyarea crypto_simd snd_hda_intel sysfillrect cryptd = snd_usb_audio sysimgblt videobuf2_vmalloc glue_helper fb_sys_fops = snd_hda_codec snd_hwdep videobuf2_memops ttm videobuf2_v4l2 = snd_usbmidi_lib videobuf2_core snd_rawmidi snd_hda_core drm = snd_seq_device videodev snd_pcm i2c_i801 usbhid snd_timer i2c_core snd = backlight soundcore r8169 parport_pc mii parport > Feb 6 14:28:20 ragnarok kernel: CPU: 0 PID: 4 Comm: kworker/0:0H Not = tainted 4.14.18 #1 > Feb 6 14:28:20 ragnarok kernel: Hardware name: Gigabyte Technology = Co., Ltd. P67-DS3-B3/P67-DS3-B3, BIOS F1 05/06/2011 > Feb 6 14:28:20 ragnarok kernel: Workqueue: kblockd = blk_mq_requeue_work > Feb 6 14:28:20 ragnarok kernel: task: ffff88060395a1c0 task.stack: = ffffc90000044000 > Feb 6 14:28:20 ragnarok kernel: RIP: 0010:bfq_put_queue+0x10b/0x130 = [bfq] > Feb 6 14:28:20 ragnarok kernel: RSP: 0018:ffffc90000047ca0 EFLAGS: = 00010286 > Feb 6 14:28:20 ragnarok kernel: RAX: 0000000000000008 RBX: = ffff8806023db690 RCX: 0000000000000000 > Feb 6 14:28:20 ragnarok kernel: RDX: 0000000000000000 RSI: = ffff880601bb39b0 RDI: ffff880601a56400 > Feb 6 14:28:20 ragnarok kernel: RBP: 0000000001bb3980 R08: = 0000000000000053 R09: ffff8806023db690 > Feb 6 14:28:20 ragnarok kernel: R10: 000000001dd0f11e R11: = 00000000080a011b R12: ffff880601a56400 > Feb 6 14:28:20 ragnarok kernel: R13: ffff8806023dbed0 R14: = 0000000000000053 R15: 0000000000000000 > Feb 6 14:28:20 ragnarok kernel: FS: 0000000000000000(0000) = GS:ffff88061f400000(0000) knlGS:0000000000000000 > Feb 6 14:28:20 ragnarok kernel: CS: 0010 DS: 0000 ES: 0000 CR0: = 0000000080050033 > Feb 6 14:28:20 ragnarok kernel: CR2: 0000000000000030 CR3: = 000000000200a002 CR4: 00000000000606f0 > Feb 6 14:28:20 ragnarok kernel: Call Trace: > Feb 6 14:28:20 ragnarok kernel: = bfq_finish_requeue_request+0x4b/0x370 [bfq] > Feb 6 14:28:20 ragnarok kernel: __blk_mq_requeue_request+0x57/0x130 > Feb 6 14:28:20 ragnarok kernel: blk_mq_dispatch_rq_list+0x1b3/0x510 > Feb 6 14:28:20 ragnarok kernel: ? = __bfq_bfqd_reset_in_service+0x20/0x70 [bfq] > Feb 6 14:28:20 ragnarok kernel: ? bfq_bfqq_expire+0x212/0x740 [bfq] > Feb 6 14:28:20 ragnarok kernel: = blk_mq_sched_dispatch_requests+0xf0/0x170 > Feb 6 14:28:20 ragnarok kernel: __blk_mq_run_hw_queue+0x4e/0x90 > Feb 6 14:28:20 ragnarok kernel: = __blk_mq_delay_run_hw_queue+0x73/0x80 > Feb 6 14:28:20 ragnarok kernel: blk_mq_run_hw_queue+0x53/0x150 > Feb 6 14:28:20 ragnarok kernel: blk_mq_run_hw_queues+0x3a/0x50 > Feb 6 14:28:20 ragnarok kernel: blk_mq_requeue_work+0x104/0x110 > Feb 6 14:28:20 ragnarok kernel: process_one_work+0x1d4/0x3d0 > Feb 6 14:28:20 ragnarok kernel: worker_thread+0x2b/0x3c0 > Feb 6 14:28:20 ragnarok kernel: ? process_one_work+0x3d0/0x3d0 > Feb 6 14:28:20 ragnarok kernel: kthread+0x117/0x130 > Feb 6 14:28:20 ragnarok kernel: ? kthread_create_on_node+0x40/0x40 > Feb 6 14:28:20 ragnarok kernel: ret_from_fork+0x1f/0x30 > Feb 6 14:28:20 ragnarok kernel: Code: c1 e8 06 83 e0 01 48 83 f8 01 = 45 19 f6 e8 ce 3a 00 00 41 83 e6 ee 48 89 c7 41 83 c6 53 e8 9e 3a 00 00 = 49 89 d9 45 89 f0 44 89 f9 <48> 8b 70 28 48 c7 c2 d8 00 25 a0 55 4c 89 = ef e8 11 ba ea e0 8b=20 > Feb 6 14:28:20 ragnarok kernel: RIP: bfq_put_queue+0x10b/0x130 [bfq] = RSP: ffffc90000047ca0 > Feb 6 14:28:20 ragnarok kernel: CR2: 0000000000000030 > Feb 6 14:28:20 ragnarok kernel: ---[ end trace 8b782ace30a4e7d8 ]--- >=20 Same request: please gdb /block/bfq-iosched.o list *(bfq_finish_requeue_request+0x4b) list *(bfq_put_queue+0x10b) Thanks, Paolo > Yes, this is 4.14.x but with most-of block/4.16, rock-solid otherwise = (in daily use). > Looks like there is something wrong with this patch after all.. >=20 > cheers > Holger >=20