syzbot


INFO: task hung in read_part_sector (2)

Status: upstream: reported on 2024/08/04 19:22
Subsystems: block
[Documentation on labels]
Reported-by: syzbot+82de77d3f217960f087d@syzkaller.appspotmail.com
First crash: 206d, last: 3d18h
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] Monthly block report (Oct 2024) 0 (1) 2024/10/16 15:35
[syzbot] [block?] INFO: task hung in read_part_sector (2) 0 (1) 2024/08/04 19:22
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: task hung in read_part_sector origin:upstream C error 110 12d 503d 0/3 upstream: reported C repro on 2023/07/29 13:11
linux-6.1 INFO: task hung in read_part_sector 1 311d 311d 0/3 auto-obsoleted due to no activity on 2024/05/17 07:34
upstream INFO: task hung in read_part_sector block 2 326d 393d 0/28 auto-obsoleted due to no activity on 2024/04/21 10:47
linux-6.1 INFO: task hung in read_part_sector (2) 1 188d 188d 0/3 auto-obsoleted due to no activity on 2024/09/16 08:59

Sample crash report:
INFO: task udevd:5843 blocked for more than 143 seconds.
      Not tainted 6.13.0-rc2-syzkaller-00018-g7cb1b4663150 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:udevd           state:D stack:23392 pid:5843  tgid:5843  ppid:5206   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5369 [inline]
 __schedule+0xe58/0x5ad0 kernel/sched/core.c:6756
 __schedule_loop kernel/sched/core.c:6833 [inline]
 schedule+0xe7/0x350 kernel/sched/core.c:6848
 io_schedule+0xbf/0x130 kernel/sched/core.c:7681
 folio_wait_bit_common+0x3d8/0x9b0 mm/filemap.c:1308
 folio_put_wait_locked mm/filemap.c:1472 [inline]
 do_read_cache_folio+0x342/0x5c0 mm/filemap.c:3808
 read_mapping_folio include/linux/pagemap.h:1011 [inline]
 read_part_sector+0xd4/0x310 block/partitions/core.c:722
 adfspart_check_POWERTEC+0xa0/0x6b0 block/partitions/acorn.c:454
 check_partition block/partitions/core.c:141 [inline]
 blk_add_partitions block/partitions/core.c:589 [inline]
 bdev_disk_changed+0x6c6/0x14e0 block/partitions/core.c:693
 blkdev_get_whole+0x187/0x290 block/bdev.c:707
 bdev_open+0x2c7/0xe20 block/bdev.c:916
 blkdev_open+0x329/0x400 block/fops.c:627
 do_dentry_open+0xf59/0x1ea0 fs/open.c:945
 vfs_open+0x82/0x3f0 fs/open.c:1075
 do_open fs/namei.c:3828 [inline]
 path_openat+0x1e6a/0x2d60 fs/namei.c:3987
 do_filp_open+0x20c/0x470 fs/namei.c:4014
 do_sys_openat2+0x17a/0x1e0 fs/open.c:1402
 do_sys_open fs/open.c:1417 [inline]
 __do_sys_openat fs/open.c:1433 [inline]
 __se_sys_openat fs/open.c:1428 [inline]
 __x64_sys_openat+0x175/0x210 fs/open.c:1428
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f6c037169a4
RSP: 002b:00007ffcd697c2d0 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 000055c15d951e80 RCX: 00007f6c037169a4
RDX: 00000000000a0800 RSI: 000055c15d943b60 RDI: 00000000ffffff9c
RBP: 000055c15d943b60 R08: 0000000000000001 R09: 00007f6c03cda000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000a0800
R13: 000055c15d952320 R14: 0000000000000001 R15: 000055c15d931910
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/30:
 #0: ffffffff8ddba940 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
 #0: ffffffff8ddba940 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
 #0: ffffffff8ddba940 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x7f/0x390 kernel/locking/lockdep.c:6744
2 locks held by getty/5593:
 #0: ffff8880311a60a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243
 #1: ffffc90002fde2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0xfba/0x1480 drivers/tty/n_tty.c:2211
1 lock held by udevd/5843:
 #0: ffff8880256e14c8 (&disk->open_mutex){+.+.}-{4:4}, at: bdev_open+0x41a/0xe20 block/bdev.c:904
1 lock held by syz.3.1600/13214:
3 locks held by syz.3.1617/13271:

=============================================

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.13.0-rc2-syzkaller-00018-g7cb1b4663150 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120
 nmi_cpu_backtrace+0x27b/0x390 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x29c/0x300 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:234 [inline]
 watchdog+0xf14/0x1240 kernel/hung_task.c:397
 kthread+0x2c1/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 13271 Comm: syz.3.1617 Not tainted 6.13.0-rc2-syzkaller-00018-g7cb1b4663150 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:lock_is_held include/linux/lockdep.h:249 [inline]
RIP: 0010:__might_resched+0x4b9/0x5e0 kernel/sched/core.c:8720
Code: 0f 85 d0 fb ff ff 48 c7 c2 c0 45 4c 8b be 10 22 00 00 48 c7 c7 80 3a 4c 8b c6 05 48 89 9d 0e 01 e8 8c e2 0d 00 e9 ac fb ff ff <be> ff ff ff ff 48 c7 c7 80 a8 db 8d e8 36 0c b2 09 85 c0 0f 84 a0
RSP: 0018:ffffc9000faa6ec0 EFLAGS: 00000202
RAX: 0000000000000001 RBX: 1ffff92001f54dda RCX: 0000000000000001
RDX: 0000000000000000 RSI: ffffffff8b4cd480 RDI: ffffffff8bb156e0
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000003 R12: ffffffff8b58f340
R13: 00000000000000e8 R14: ffff888029f9b488 R15: ffff888029f9b5f0
FS:  00007f25c52316c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5ba1b17178 CR3: 000000006b0b0000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 shmem_inode_acct_blocks+0xbd/0x450 mm/shmem.c:232
 shmem_alloc_and_add_folio+0x689/0xc00 mm/shmem.c:1863
 shmem_get_folio_gfp+0x689/0x1530 mm/shmem.c:2355
 shmem_get_folio mm/shmem.c:2461 [inline]
 shmem_write_begin+0x161/0x300 mm/shmem.c:3117
 generic_perform_write+0x2ba/0x920 mm/filemap.c:4055
 shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3293
 __kernel_write_iter+0x318/0xa80 fs/read_write.c:612
 dump_emit_page fs/coredump.c:884 [inline]
 dump_user_range+0x389/0x8c0 fs/coredump.c:945
 elf_core_dump+0x2787/0x3880 fs/binfmt_elf.c:2129
 do_coredump+0x2dd5/0x43e0 fs/coredump.c:758
 get_signal+0x23f3/0x2610 kernel/signal.c:3002
 arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:337
 exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218
 do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f25c437ff19
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f25c52310e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: ffffffffffffffda RBX: 00007f25c4545fa8 RCX: 00007f25c437ff19
RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 00007f25c4545fac
RBP: 00007f25c4545fa0 R08: 00007f25c5232000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f25c4545fac
R13: 0000000000000000 R14: 00007ffff730a080 R15: 00007ffff730a168
 </TASK>

Crashes (112):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/10 13:52 upstream 7cb1b4663150 cfc402b4 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto INFO: task hung in read_part_sector
2024/12/05 23:32 upstream 5076001689e4 6e50d07b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in read_part_sector
2024/10/24 02:54 upstream c2ee9f594da8 15fa2979 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in read_part_sector
2024/10/09 16:29 upstream 75b607fab38d 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in read_part_sector
2024/07/31 19:09 upstream e4fc196f5ba3 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in read_part_sector
2024/07/24 08:02 upstream 28bbe4ea686a 57b2edb1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in read_part_sector
2024/06/09 23:35 upstream 771ed66105de 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in read_part_sector
2024/10/24 13:57 net 9efc44fb2dba 15fa2979 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/23 13:25 net 34d35b4edbbe 15fa2979 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/23 10:05 net 8a7d12d674ac 15fa2979 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/23 03:18 net 8a7d12d674ac 15fa2979 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/22 11:08 net d95d9a31aceb a93682b3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/22 04:44 net d95d9a31aceb a93682b3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/22 00:26 net 374d4106cb75 a93682b3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/21 01:42 net 3b05b9c36ddd cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/19 01:01 net 07d6bf634bc8 cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/18 14:08 net 07d6bf634bc8 cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/18 11:01 net 07d6bf634bc8 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/18 02:51 net cb560795c8c2 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/17 17:23 net 4678adf94da4 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/17 08:35 net 11d06f0aaef8 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/17 01:58 net 11d06f0aaef8 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/16 23:42 net 11d06f0aaef8 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/16 19:59 net 11d06f0aaef8 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/16 08:49 net c186b7a7f238 bde2d81c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/16 04:31 net c186b7a7f238 bde2d81c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/15 23:34 net c186b7a7f238 bde2d81c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/15 16:57 net 25c12b459db8 14943bb8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/15 09:22 net 25c12b459db8 14943bb8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/14 08:37 net 174714f0e505 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/14 07:26 net 174714f0e505 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/13 22:57 net 174714f0e505 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/13 05:33 net 174714f0e505 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/12 16:13 net 174714f0e505 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/12 13:14 net 8a6be4bd6fb3 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/12 10:42 net 8a6be4bd6fb3 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/12 01:23 net 8a6be4bd6fb3 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/11 22:46 net 1d227fcc7222 cd942402 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/11 20:33 net 1d227fcc7222 cd942402 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/11 05:29 net 1d227fcc7222 8fbfc0c8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/10 21:11 net a354733c738d 8fbfc0c8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/10 13:41 net a354733c738d 8fbfc0c8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/09 22:46 net 983e35ce2e1e 0278d004 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/09 19:02 net 983e35ce2e1e 0278d004 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/09 15:12 net 08c8acc9d8f3 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/09 13:57 net 08c8acc9d8f3 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/09 12:06 net 08c8acc9d8f3 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/09 05:14 net 08c8acc9d8f3 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in read_part_sector
2024/10/20 11:54 net-next 6d858708d465 cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in read_part_sector
2024/07/08 14:31 linux-next 0b58e108042b cde64f7d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in read_part_sector
* Struck through repros no longer work on HEAD.