INFO: task udevd:8765 blocked for more than 143 seconds. Not tainted 6.6.0-next-20231103-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:udevd state:D stack:25712 pid:8765 tgid:8765 ppid:4524 flags:0x00000002 Call Trace: context_switch kernel/sched/core.c:5376 [inline] __schedule+0xee5/0x59b0 kernel/sched/core.c:6688 __schedule_loop kernel/sched/core.c:6763 [inline] schedule+0xe5/0x270 kernel/sched/core.c:6778 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6835 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0x960/0x1330 kernel/locking/mutex.c:747 blkdev_get_by_dev.part.0+0x4de/0xb10 block/bdev.c:789 blkdev_get_by_dev block/bdev.c:854 [inline] bdev_open_by_dev+0x166/0x1c0 block/bdev.c:843 blkdev_open+0xe6/0x390 block/fops.c:600 do_dentry_open+0x8d4/0x18d0 fs/open.c:948 do_open fs/namei.c:3622 [inline] path_openat+0x1d49/0x2c40 fs/namei.c:3779 do_filp_open+0x1dc/0x430 fs/namei.c:3809 do_sys_openat2+0x176/0x1e0 fs/open.c:1440 do_sys_open fs/open.c:1455 [inline] __do_sys_openat fs/open.c:1471 [inline] __se_sys_openat fs/open.c:1466 [inline] __x64_sys_openat+0x175/0x210 fs/open.c:1466 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3f/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x62/0x6a RIP: 0033:0x7f6d1d7169a4 RSP: 002b:00007ffc4b6b0c80 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00005612c7152d00 RCX: 00007f6d1d7169a4 RDX: 00000000000a0800 RSI: 00005612c7290bf0 RDI: 00000000ffffff9c RBP: 00005612c7290bf0 R08: 00000000ffffffff R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000a0800 R13: 00005612c713ab00 R14: 0000000000000001 R15: 00005612c7131910 INFO: task syz-executor.0:20270 blocked for more than 143 seconds. Not tainted 6.6.0-next-20231103-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:24224 pid:20270 tgid:20266 ppid:5133 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5376 [inline] __schedule+0xee5/0x59b0 kernel/sched/core.c:6688 __schedule_loop kernel/sched/core.c:6763 [inline] schedule+0xe5/0x270 kernel/sched/core.c:6778 io_schedule+0xbb/0x130 kernel/sched/core.c:8998 bit_wait_io+0x15/0xe0 kernel/sched/wait_bit.c:209 __wait_on_bit+0x62/0x170 kernel/sched/wait_bit.c:49 out_of_line_wait_on_bit+0xda/0x110 kernel/sched/wait_bit.c:64 wait_on_bit_io include/linux/wait_bit.h:101 [inline] __wait_on_buffer+0x64/0x70 fs/buffer.c:123 wait_on_buffer include/linux/buffer_head.h:392 [inline] ext4_bread_batch+0x3c4/0x510 fs/ext4/inode.c:926 ext4_xattr_inode_read+0x3ba/0x460 fs/ext4/xattr.c:397 ext4_xattr_inode_cache_find fs/ext4/xattr.c:1548 [inline] ext4_xattr_inode_lookup_create fs/ext4/xattr.c:1577 [inline] ext4_xattr_set_entry+0x1d60/0x3cd0 fs/ext4/xattr.c:1719 ext4_xattr_block_set+0x678/0x3180 fs/ext4/xattr.c:1970 ext4_xattr_set_handle+0xd6d/0x1420 fs/ext4/xattr.c:2456 ext4_xattr_set+0x149/0x370 fs/ext4/xattr.c:2558 __vfs_setxattr+0x173/0x1d0 fs/xattr.c:201 __vfs_setxattr_noperm+0x127/0x5e0 fs/xattr.c:235 __vfs_setxattr_locked+0x17e/0x250 fs/xattr.c:296 vfs_setxattr+0x146/0x350 fs/xattr.c:322 do_setxattr+0x142/0x170 fs/xattr.c:630 setxattr+0x159/0x170 fs/xattr.c:653 __do_sys_fsetxattr fs/xattr.c:709 [inline] __se_sys_fsetxattr fs/xattr.c:698 [inline] __x64_sys_fsetxattr+0x25d/0x310 fs/xattr.c:698 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3f/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x62/0x6a RIP: 0033:0x7f72e3e7cae9 RSP: 002b:00007f72e4c910c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000be RAX: ffffffffffffffda RBX: 00007f72e3f9bf80 RCX: 00007f72e3e7cae9 RDX: 0000000020000080 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00007f72e3ec847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000001008 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f72e3f9bf80 R15: 00007ffd8dbc1588 INFO: task syz-executor.0:20294 blocked for more than 144 seconds. Not tainted 6.6.0-next-20231103-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:29376 pid:20294 tgid:20266 ppid:5133 flags:0x00000006 Call Trace: context_switch kernel/sched/core.c:5376 [inline] __schedule+0xee5/0x59b0 kernel/sched/core.c:6688 __schedule_loop kernel/sched/core.c:6763 [inline] schedule+0xe5/0x270 kernel/sched/core.c:6778 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6835 rwsem_down_write_slowpath+0x539/0x1290 kernel/locking/rwsem.c:1178 __down_write_common kernel/locking/rwsem.c:1306 [inline] __down_write kernel/locking/rwsem.c:1315 [inline] down_write+0x1d2/0x200 kernel/locking/rwsem.c:1580 inode_lock include/linux/fs.h:802 [inline] vfs_setxattr+0x123/0x350 fs/xattr.c:321 do_setxattr+0x142/0x170 fs/xattr.c:630 setxattr+0x159/0x170 fs/xattr.c:653 __do_sys_fsetxattr fs/xattr.c:709 [inline] __se_sys_fsetxattr fs/xattr.c:698 [inline] __x64_sys_fsetxattr+0x25d/0x310 fs/xattr.c:698 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3f/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x62/0x6a RIP: 0033:0x7f72e3e7cae9 RSP: 002b:00007f72e4c4f0c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000be RAX: ffffffffffffffda RBX: 00007f72e3f9c120 RCX: 00007f72e3e7cae9 RDX: 0000000020000080 RSI: 0000000020000000 RDI: 0000000000000005 RBP: 00007f72e3ec847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000001008 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f72e3f9c120 R15: 00007ffd8dbc1588 INFO: task syz-executor.3:20291 blocked for more than 144 seconds. Not tainted 6.6.0-next-20231103-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:27200 pid:20291 tgid:20289 ppid:9957 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5376 [inline] __schedule+0xee5/0x59b0 kernel/sched/core.c:6688 __schedule_loop kernel/sched/core.c:6763 [inline] schedule+0xe5/0x270 kernel/sched/core.c:6778 io_schedule+0xbb/0x130 kernel/sched/core.c:8998 bit_wait_io+0x15/0xe0 kernel/sched/wait_bit.c:209 __wait_on_bit_lock+0x112/0x1a0 kernel/sched/wait_bit.c:90 out_of_line_wait_on_bit_lock+0xda/0x110 kernel/sched/wait_bit.c:117 wait_on_bit_lock_io include/linux/wait_bit.h:208 [inline] __lock_buffer fs/buffer.c:71 [inline] lock_buffer include/linux/buffer_head.h:404 [inline] __block_write_full_folio+0x807/0xdb0 fs/buffer.c:1884 block_write_full_page+0x399/0x530 fs/buffer.c:2750 writepage_cb+0x64/0x180 mm/page-writeback.c:2537 write_cache_pages+0x4a4/0xd80 mm/page-writeback.c:2474 do_writepages+0x2f6/0x690 mm/page-writeback.c:2558 filemap_fdatawrite_wbc mm/filemap.c:387 [inline] filemap_fdatawrite_wbc+0x144/0x1b0 mm/filemap.c:377 __filemap_fdatawrite_range+0xba/0x100 mm/filemap.c:420 sync_bdevs+0x2cd/0x340 block/bdev.c:1075 ksys_sync+0xb3/0x150 fs/sync.c:105 __do_sys_sync+0xe/0x20 fs/sync.c:113 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3f/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x62/0x6a RIP: 0033:0x7f7aac07cae9 RSP: 002b:00007f7aacd1f0c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2 RAX: ffffffffffffffda RBX: 00007f7aac19bf80 RCX: 00007f7aac07cae9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007f7aac0c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f7aac19bf80 R15: 00007ffd320e7168 Showing all locks held in the system: 3 locks held by kworker/u4:0/11: #0: ffff88814325dd38 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x78a/0x15e0 kernel/workqueue.c:2605 #1: ffffc90000107d80 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7f4/0x15e0 kernel/workqueue.c:2606 #2: ffff88801524e0e0 (&type->s_umount_key#40){.+.+}-{3:3}, at: super_trylock_shared+0x1e/0xf0 fs/super.c:588 1 lock held by khungtaskd/29: #0: ffffffff8cfae060 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline] #0: ffffffff8cfae060 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline] #0: ffffffff8cfae060 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x75/0x340 kernel/locking/lockdep.c:6613 2 locks held by getty/4825: #0: ffff88814b9b90a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc90002f062f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfc4/0x1490 drivers/tty/n_tty.c:2201 1 lock held by udevd/8765: #0: ffff88814235c4c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x4de/0xb10 block/bdev.c:789 3 locks held by syz-executor.0/20270: #0: ffff888079cc4418 (sb_writers#4){.+.+}-{0:0}, at: __do_sys_fsetxattr fs/xattr.c:707 [inline] #0: ffff888079cc4418 (sb_writers#4){.+.+}-{0:0}, at: __se_sys_fsetxattr fs/xattr.c:698 [inline] #0: ffff888079cc4418 (sb_writers#4){.+.+}-{0:0}, at: __x64_sys_fsetxattr+0x179/0x310 fs/xattr.c:698 #1: ffff8880a1dc2200 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff8880a1dc2200 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: vfs_setxattr+0x123/0x350 fs/xattr.c:321 #2: ffff8880a1dc1ec8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_write_lock_xattr fs/ext4/xattr.h:155 [inline] #2: ffff8880a1dc1ec8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_xattr_set_handle+0x159/0x1420 fs/ext4/xattr.c:2371 2 locks held by syz-executor.0/20294: #0: ffff888079cc4418 (sb_writers#4){.+.+}-{0:0}, at: __do_sys_fsetxattr fs/xattr.c:707 [inline] #0: ffff888079cc4418 (sb_writers#4){.+.+}-{0:0}, at: __se_sys_fsetxattr fs/xattr.c:698 [inline] #0: ffff888079cc4418 (sb_writers#4){.+.+}-{0:0}, at: __x64_sys_fsetxattr+0x179/0x310 fs/xattr.c:698 #1: ffff8880a1dc2200 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff8880a1dc2200 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: vfs_setxattr+0x123/0x350 fs/xattr.c:321 1 lock held by syz-executor.3/20291: #0: ffff88814235c4c8 (&disk->open_mutex){+.+.}-{3:3}, at: sync_bdevs+0xed/0x340 block/bdev.c:1063 1 lock held by syz-executor.0/20382: #0: ffff88814235c4c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x4de/0xb10 block/bdev.c:789 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.6.0-next-20231103-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x277/0x380 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x299/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xf86/0x1210 kernel/hung_task.c:379 kthread+0x337/0x440 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 6091 Comm: kworker/u4:1 Not tainted 6.6.0-next-20231103-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 Workqueue: bat_events batadv_nc_worker RIP: 0010:__lock_acquire+0x10b/0x5dc0 kernel/locking/lockdep.c:5004 Code: 85 ff 0f 84 d9 0d 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 80 3c 02 00 0f 85 d5 40 00 00 49 81 3e a0 09 b6 90 <0f> 84 b1 0d 00 00 83 fd 01 0f 86 6d 0d 00 00 31 d2 89 ee 4c 89 f7 RSP: 0018:ffffc90015ff78c0 EFLAGS: 00000002 RAX: dffffc0000000000 RBX: 1ffff92002bfef48 RCX: 0000000000000000 RDX: 1ffff1101096c8d3 RSI: 0000000000000000 RDI: 0000000000000001 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: ffffffff8f1a0dd7 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: ffff888084b64698 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055eed92f8600 CR3: 000000000cd78000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire kernel/locking/lockdep.c:5753 [inline] lock_acquire+0x1b1/0x530 kernel/locking/lockdep.c:5718 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x33/0x40 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:356 [inline] batadv_nc_purge_paths+0xd3/0x3c0 net/batman-adv/network-coding.c:442 batadv_nc_worker+0x9b1/0x10e0 net/batman-adv/network-coding.c:722 process_one_work+0x8a2/0x15e0 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0x8b6/0x1280 kernel/workqueue.c:2784 kthread+0x337/0x440 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242