================================================================== BUG: KCSAN: data-race in console_unlock / console_unlock write to 0xffffffff8417d940 of 8 bytes by task 976 on cpu 0: console_unlock+0x570/0xb30 kernel/printk/printk.c:2632 vprintk_emit+0x125/0x3d0 kernel/printk/printk.c:2174 vprintk_default+0x22/0x30 kernel/printk/printk.c:2185 vprintk+0x15a/0x170 kernel/printk/printk_safe.c:392 printk+0x62/0x87 kernel/printk/printk.c:2216 buffer_io_error fs/buffer.c:129 [inline] end_buffer_async_read+0x2f1/0x330 fs/buffer.c:259 end_buffer_async_read_io+0x16/0x20 fs/buffer.c:335 end_bio_bh_io_sync+0x6f/0x90 fs/buffer.c:3001 bio_endio+0x2d4/0x300 block/bio.c:1413 req_bio_endio block/blk-core.c:262 [inline] blk_update_request+0x435/0xa40 block/blk-core.c:1437 blk_mq_end_request block/blk-mq.c:565 [inline] blk_mq_dispatch_rq_list+0x707/0x1040 block/blk-mq.c:1379 __blk_mq_do_dispatch_sched block/blk-mq-sched.c:201 [inline] blk_mq_do_dispatch_sched+0x3b5/0x640 block/blk-mq-sched.c:214 __blk_mq_sched_dispatch_requests+0x1eb/0x290 block/blk-mq-sched.c:329 blk_mq_sched_dispatch_requests+0x9f/0x110 block/blk-mq-sched.c:360 __blk_mq_run_hw_queue+0xbc/0x140 block/blk-mq.c:1480 blk_mq_run_work_fn+0x3d/0x50 block/blk-mq.c:1812 process_one_work+0x3e9/0x8f0 kernel/workqueue.c:2276 worker_thread+0x636/0xae0 kernel/workqueue.c:2422 kthread+0x262/0x280 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 read to 0xffffffff8417d940 of 8 bytes by task 32256 on cpu 1: console_unlock+0x9f5/0xb30 kernel/printk/printk.c:2667 vprintk_emit+0x125/0x3d0 kernel/printk/printk.c:2174 vprintk_default+0x22/0x30 kernel/printk/printk.c:2185 vprintk+0x15a/0x170 kernel/printk/printk_safe.c:392 printk+0x62/0x87 kernel/printk/printk.c:2216 blk_add_partition block/partitions/core.c:573 [inline] blk_add_partitions block/partitions/core.c:655 [inline] bdev_disk_changed+0x9d0/0xea0 block/partitions/core.c:697 loop_reread_partitions drivers/block/loop.c:693 [inline] loop_set_status+0x4dc/0x5a0 drivers/block/loop.c:1576 lo_ioctl+0x7af/0x1340 drivers/block/loop.c:1686 blkdev_ioctl+0x1d0/0x3c0 block/ioctl.c:585 block_ioctl+0x6d/0x80 fs/block_dev.c:1604 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:1069 [inline] __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:1055 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:1055 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x0000000000004abd -> 0x0000000000004abe Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 32256 Comm: syz-executor.2 Not tainted 5.14.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================