From mboxrd@z Thu Jan 1 00:00:00 1970 From: syzbot Subject: Re: [syzbot] memory leak in blk_iolatency_init Date: Sat, 23 Oct 2021 11:58:27 -0700 Message-ID: <00000000000082261505cf09b69c@google.com> References: <0000000000004ee28405cbe8d287@google.com> Mime-Version: 1.0 Return-path: In-Reply-To: <0000000000004ee28405cbe8d287@google.com> List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: axboe@kernel.dk, cgroups@vger.kernel.org, gregkh@linuxfoundation.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, noreply@bizcloud-server.changyang.com.tw, sashal@kernel.org, stable@vger.kernel.org, syzkaller-bugs@googlegroups.com, tj@kernel.org, yanfei.xu@windriver.com syzbot has found a reproducer for the following issue on: HEAD commit: 9c0c4d24ac00 Merge tag 'block-5.15-2021-10-22' of git://gi.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1709f5c4b00000 kernel config: https://syzkaller.appspot.com/x/.config?x=d25eeb482b0f99b dashboard link: https://syzkaller.appspot.com/bug?extid=01321b15cc98e6bf96d6 compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=102280acb00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=144b96f8b00000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+01321b15cc98e6bf96d6@syzkaller.appspotmail.com BUG: memory leak unreferenced object 0xffff888104729800 (size 96): comm "kworker/u4:2", pid 156, jiffies 4294937755 (age 219.670s) hex dump (first 32 bytes): 00 49 c9 85 ff ff ff ff e0 b0 8b 03 81 88 ff ff .I.............. 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [] kmalloc include/linux/slab.h:591 [inline] [] kzalloc include/linux/slab.h:721 [inline] [] blk_iolatency_init+0x28/0x190 block/blk-iolatency.c:724 [] blkcg_init_queue+0xee/0x1c0 block/blk-cgroup.c:1193 [] blk_alloc_queue+0x22a/0x2e0 block/blk-core.c:584 [] blk_mq_init_queue_data block/blk-mq.c:3119 [inline] [] __blk_mq_alloc_disk+0x25/0xd0 block/blk-mq.c:3143 [] floppy_alloc_disk+0x2f/0x130 drivers/block/floppy.c:4495 [] do_floppy_init drivers/block/floppy.c:4566 [inline] [] floppy_async_init+0x10f/0x1329 drivers/block/floppy.c:4731 [] async_run_entry_fn+0x24/0xf0 kernel/async.c:127 [] process_one_work+0x2cf/0x620 kernel/workqueue.c:2297 [] worker_thread+0x59/0x5d0 kernel/workqueue.c:2444 [] kthread+0x188/0x1d0 kernel/kthread.c:319 [] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 BUG: memory leak unreferenced object 0xffff888104729400 (size 96): comm "kworker/u4:2", pid 156, jiffies 4294937755 (age 219.670s) hex dump (first 32 bytes): 00 49 c9 85 ff ff ff ff 90 a8 8b 03 81 88 ff ff .I.............. 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [] kmalloc include/linux/slab.h:591 [inline] [] kzalloc include/linux/slab.h:721 [inline] [] blk_iolatency_init+0x28/0x190 block/blk-iolatency.c:724 [] blkcg_init_queue+0xee/0x1c0 block/blk-cgroup.c:1193 [] blk_alloc_queue+0x22a/0x2e0 block/blk-core.c:584 [] blk_mq_init_queue_data block/blk-mq.c:3119 [inline] [] __blk_mq_alloc_disk+0x25/0xd0 block/blk-mq.c:3143 [] floppy_alloc_disk+0x2f/0x130 drivers/block/floppy.c:4495 [] do_floppy_init drivers/block/floppy.c:4566 [inline] [] floppy_async_init+0x10f/0x1329 drivers/block/floppy.c:4731 [] async_run_entry_fn+0x24/0xf0 kernel/async.c:127 [] process_one_work+0x2cf/0x620 kernel/workqueue.c:2297 [] worker_thread+0x59/0x5d0 kernel/workqueue.c:2444 [] kthread+0x188/0x1d0 kernel/kthread.c:319 [] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 BUG: memory leak unreferenced object 0xffff888104767e00 (size 96): comm "kworker/u4:2", pid 156, jiffies 4294937755 (age 219.670s) hex dump (first 32 bytes): 00 49 c9 85 ff ff ff ff 40 a0 8b 03 81 88 ff ff .I......@....... 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [] kmalloc include/linux/slab.h:591 [inline] [] kzalloc include/linux/slab.h:721 [inline] [] blk_iolatency_init+0x28/0x190 block/blk-iolatency.c:724 [] blkcg_init_queue+0xee/0x1c0 block/blk-cgroup.c:1193 [] blk_alloc_queue+0x22a/0x2e0 block/blk-core.c:584 [] blk_mq_init_queue_data block/blk-mq.c:3119 [inline] [] __blk_mq_alloc_disk+0x25/0xd0 block/blk-mq.c:3143 [] floppy_alloc_disk+0x2f/0x130 drivers/block/floppy.c:4495 [] do_floppy_init drivers/block/floppy.c:4566 [inline] [] floppy_async_init+0x10f/0x1329 drivers/block/floppy.c:4731 [] async_run_entry_fn+0x24/0xf0 kernel/async.c:127 [] process_one_work+0x2cf/0x620 kernel/workqueue.c:2297 [] worker_thread+0x59/0x5d0 kernel/workqueue.c:2444 [] kthread+0x188/0x1d0 kernel/kthread.c:319 [] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 BUG: memory leak unreferenced object 0xffff888104767500 (size 96): comm "kworker/u4:2", pid 156, jiffies 4294937755 (age 219.670s) hex dump (first 32 bytes): 00 49 c9 85 ff ff ff ff 60 31 88 03 81 88 ff ff .I......`1...... 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [] kmalloc include/linux/slab.h:591 [inline] [] kzalloc include/linux/slab.h:721 [inline] [] blk_iolatency_init+0x28/0x190 block/blk-iolatency.c:724 [] blkcg_init_queue+0xee/0x1c0 block/blk-cgroup.c:1193 [] blk_alloc_queue+0x22a/0x2e0 block/blk-core.c:584 [] blk_mq_init_queue_data block/blk-mq.c:3119 [inline] [] __blk_mq_alloc_disk+0x25/0xd0 block/blk-mq.c:3143 [] floppy_alloc_disk+0x2f/0x130 drivers/block/floppy.c:4495 [] do_floppy_init drivers/block/floppy.c:4566 [inline] [] floppy_async_init+0x10f/0x1329 drivers/block/floppy.c:4731 [] async_run_entry_fn+0x24/0xf0 kernel/async.c:127 [] process_one_work+0x2cf/0x620 kernel/workqueue.c:2297 [] worker_thread+0x59/0x5d0 kernel/workqueue.c:2444 [] kthread+0x188/0x1d0 kernel/kthread.c:319 [] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 write to /proc/sys/kernel/hung_task_check_interval_secs failed: No such file or directory write to /proc/sys/kernel/softlockup_all_cpu_backtrace failed: No such file or directory write to /proc/sys/kernel/hung_task_check_interval_secs failed: No such file or directory write to /proc/sys/kernel/softlockup_all_cpu_backtrace failed: No such file or directory