syzbot


INFO: task hung in jbd2_journal_commit_transaction (4)

Status: auto-obsoleted due to no activity on 2023/10/25 18:13
Subsystems: ext4
[Documentation on labels]
First crash: 648d, last: 500d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in jbd2_journal_commit_transaction (2) ext4 1 1368d 1368d 0/28 auto-closed as invalid on 2021/06/09 10:13
android-44 INFO: task hung in jbd2_journal_commit_transaction C 6 2353d 2067d 0/2 public: reported C repro on 2019/04/13 00:00
android-49 INFO: task hung in jbd2_journal_commit_transaction 5 2261d 2406d 0/3 auto-closed as invalid on 2019/03/29 12:13
upstream INFO: task hung in jbd2_journal_commit_transaction (5) usb ext4 C error 1721 12h52m 208d 0/28 upstream: reported C repro on 2024/05/15 03:54
linux-6.1 INFO: task hung in jbd2_journal_commit_transaction 1 556d 556d 0/3 auto-obsoleted due to no activity on 2023/09/09 09:50
upstream INFO: task hung in jbd2_journal_commit_transaction (3) ext4 C error error 24 801d 1086d 0/28 auto-obsoleted due to no activity on 2023/01/27 09:20
upstream INFO: task hung in jbd2_journal_commit_transaction ext4 C 52 2248d 2267d 0/28 closed as dup on 2018/10/02 14:53
android-414 INFO: task hung in jbd2_journal_commit_transaction C 31 2253d 2069d 0/1 public: reported C repro on 2019/04/11 00:00

Sample crash report:
INFO: task jbd2/sda1-8:4408 blocked for more than 143 seconds.
      Not tainted 6.4.0-syzkaller-01406-ge8f75c0270d9 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:jbd2/sda1-8     state:D stack:25496 pid:4408  ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5343 [inline]
 __schedule+0xc9a/0x5880 kernel/sched/core.c:6669
 schedule+0xde/0x1a0 kernel/sched/core.c:6745
 io_schedule+0xbe/0x130 kernel/sched/core.c:8979
 bit_wait_io+0x16/0xe0 kernel/sched/wait_bit.c:209
 __wait_on_bit+0x64/0x180 kernel/sched/wait_bit.c:49
 out_of_line_wait_on_bit+0xd9/0x110 kernel/sched/wait_bit.c:64
 wait_on_bit_io include/linux/wait_bit.h:101 [inline]
 __wait_on_buffer+0x63/0x70 fs/buffer.c:122
 wait_on_buffer include/linux/buffer_head.h:394 [inline]
 journal_wait_on_commit_record fs/jbd2/commit.c:171 [inline]
 jbd2_journal_commit_transaction+0x49eb/0x63b0 fs/jbd2/commit.c:890
 kjournald2+0x1d4/0x890 fs/jbd2/journal.c:209
 kthread+0x344/0x440 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
 #0: ffffffff8c794c30 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:522
1 lock held by rcu_tasks_trace/13:
 #0: ffffffff8c794930 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:522
1 lock held by khungtaskd/27:
 #0: ffffffff8c795840 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x340 kernel/locking/lockdep.c:6559
1 lock held by khugepaged/33:
 #0: ffffffff8c894c28 (lock#3){+.+.}-{3:3}, at: __lru_add_drain_all+0x62/0x6a0 mm/swap.c:852
2 locks held by getty/4752:
 #0: ffff88802e2da098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:243
 #1: ffffc900020482f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xf02/0x13f0 drivers/tty/n_tty.c:2176
3 locks held by kworker/0:7/5094:
 #0: ffff88814a868d38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff88814a868d38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
 #0: ffff88814a868d38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1324 [inline]
 #0: ffff88814a868d38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:643 [inline]
 #0: ffff88814a868d38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:670 [inline]
 #0: ffff88814a868d38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x883/0x15e0 kernel/workqueue.c:2379
 #1: ffffc9000369fdb0 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_one_work+0x8b7/0x15e0 kernel/workqueue.c:2383
 #2: ffffffff8e1106a8 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_verify_work+0x12/0x30 net/ipv6/addrconf.c:4630
2 locks held by kworker/u4:65/7820:
2 locks held by kworker/1:0/12618:
3 locks held by kworker/0:3/13839:
 #0: ffff888012469d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff888012469d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
 #0: ffff888012469d38 ((wq_completion)events){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1324 [inline]
 #0: ffff888012469d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:643 [inline]
 #0: ffff888012469d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:670 [inline]
 #0: ffff888012469d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x883/0x15e0 kernel/workqueue.c:2379
 #1: ffffc90003d1fdb0 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x8b7/0x15e0 kernel/workqueue.c:2383
 #2: ffffffff8e1106a8 (rtnl_mutex){+.+.}-{3:3}, at: linkwatch_event+0xf/0x70 net/core/link_watch.c:277
2 locks held by kworker/1:23/16085:
2 locks held by kworker/1:24/16086:
3 locks held by syz-executor.2/18597:
2 locks held by syz-executor.4/18663:
 #0: ffff88814ba08460 (sb_writers#5){.+.+}-{0:0}, at: ksys_fallocate fs/open.c:347 [inline]
 #0: ffff88814ba08460 (sb_writers#5){.+.+}-{0:0}, at: __do_sys_fallocate fs/open.c:355 [inline]
 #0: ffff88814ba08460 (sb_writers#5){.+.+}-{0:0}, at: __se_sys_fallocate fs/open.c:353 [inline]
 #0: ffff88814ba08460 (sb_writers#5){.+.+}-{0:0}, at: __x64_sys_fallocate+0xd3/0x140 fs/open.c:353
 #1: ffff888071d52440 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: inode_lock include/linux/fs.h:771 [inline]
 #1: ffff888071d52440 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: ext4_zero_range fs/ext4/extents.c:4550 [inline]
 #1: ffff888071d52440 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: ext4_fallocate+0x115c/0x3cf0 fs/ext4/extents.c:4729
8 locks held by syz-executor.2/18702:
 #0: ffff88802a8d6460 (sb_writers#9){.+.+}-{0:0}, at: ksys_write+0x122/0x250 fs/read_write.c:637
 #1: ffff888029a45c88 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x285/0x600 fs/kernfs/file.c:325
 #2: ffff88814170f1d8 (kn->active#51){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x2a9/0x600 fs/kernfs/file.c:326
 #3: ffffffff8d7f4ec8 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xc9/0x4a0 drivers/net/netdevsim/bus.c:209
 #4: ffff88802b0090e8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:837 [inline]
 #4: ffff88802b0090e8 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1093 [inline]
 #4: ffff88802b0090e8 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0xa4/0x610 drivers/base/dd.c:1290
 #5: ffff888079b85250 (&devlink->lock_key#8){+.+.}-{3:3}, at: nsim_drv_remove+0x4a/0x1d0 drivers/net/netdevsim/dev.c:1675
 #6: ffffffff8e1106a8 (rtnl_mutex){+.+.}-{3:3}, at: nsim_destroy+0x39/0x190 drivers/net/netdevsim/netdev.c:374
 #7: ffffffff8c63d2b0 (cpu_hotplug_lock){++++}-{0:0}, at: flush_all_backlogs net/core/dev.c:5851 [inline]
 #7: ffffffff8c63d2b0 (cpu_hotplug_lock){++++}-{0:0}, at: unregister_netdevice_many_notify+0x4ef/0x18c0 net/core/dev.c:10866
1 lock held by syz-executor.2/18711:
 #0: ffffffff8e1106a8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:78 [inline]
 #0: ffffffff8e1106a8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x3e8/0xd50 net/core/rtnetlink.c:6414

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

NMI backtrace for cpu 0
CPU: 0 PID: 27 Comm: khungtaskd Not tainted 6.4.0-syzkaller-01406-ge8f75c0270d9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x29c/0x350 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x2a4/0x300 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
 watchdog+0xe16/0x1090 kernel/hung_task.c:379
 kthread+0x344/0x440 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 18597 Comm: syz-executor.2 Not tainted 6.4.0-syzkaller-01406-ge8f75c0270d9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
RIP: 0010:__sanitizer_cov_trace_const_cmp1+0x0/0x20 kernel/kcov.c:289
Code: 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 48 8b 0c 24 48 89 f2 48 89 fe bf 06 00 00 00 e9 f8 fe ff ff 0f 1f 84 00 00 00 00 00 <f3> 0f 1e fa 48 8b 0c 24 40 0f b6 d6 40 0f b6 f7 bf 01 00 00 00 e9
RSP: 0018:ffffc900003e7b78 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffff8880790bec00 RCX: 0000000000000100
RDX: ffff888023bb6200 RSI: 0000000000000000 RDI: 0000000000000000
RBP: dffffc0000000000 R08: 0000000000000005 R09: 00000000fffffffd
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880790bec54
R13: ffffc900003e7e68 R14: 0000000000000000 R15: ffff8880790beca8
FS:  00007f8ea25c3700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8ea18e6847 CR3: 0000000077f13000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 __find_rr_leaf+0x18b/0xdc0 net/ipv6/route.c:828
 find_rr_leaf net/ipv6/route.c:849 [inline]
 rt6_select net/ipv6/route.c:893 [inline]
 fib6_table_lookup+0x62e/0xa20 net/ipv6/route.c:2181
 ip6_pol_route+0x1c9/0x1230 net/ipv6/route.c:2217
 pol_lookup_func include/net/ip6_fib.h:576 [inline]
 fib6_rule_lookup+0x115/0x6e0 net/ipv6/fib6_rules.c:116
 ip6_route_input_lookup net/ipv6/route.c:2286 [inline]
 ip6_route_input+0x5d8/0xbb0 net/ipv6/route.c:2582
 ip6_rcv_finish_core.constprop.0+0x1a4/0x5d0 net/ipv6/ip6_input.c:66
 ip6_rcv_finish+0x130/0x2c0 net/ipv6/ip6_input.c:77
 ip_sabotage_in+0x22a/0x2a0 net/bridge/br_netfilter_hooks.c:880
 nf_hook_entry_hookfn include/linux/netfilter.h:143 [inline]
 nf_hook_slow+0xc9/0x1f0 net/netfilter/core.c:626
 nf_hook.constprop.0+0x408/0x710 include/linux/netfilter.h:258
 NF_HOOK include/linux/netfilter.h:301 [inline]
 ipv6_rcv+0xa2/0x380 net/ipv6/ip6_input.c:309
 __netif_receive_skb_one_core+0x114/0x180 net/core/dev.c:5493
 __netif_receive_skb+0x1f/0x1c0 net/core/dev.c:5607
 netif_receive_skb_internal net/core/dev.c:5693 [inline]
 netif_receive_skb+0x133/0x7a0 net/core/dev.c:5752
 NF_HOOK include/linux/netfilter.h:303 [inline]
 NF_HOOK include/linux/netfilter.h:297 [inline]
 br_pass_frame_up+0x303/0x430 net/bridge/br_input.c:68
 br_handle_frame_finish+0xd1f/0x1de0 net/bridge/br_input.c:216
 br_nf_hook_thresh+0x2fb/0x3f0 net/bridge/br_netfilter_hooks.c:1048
 br_nf_pre_routing_finish_ipv6+0x695/0xf30 net/bridge/br_netfilter_ipv6.c:148
 NF_HOOK include/linux/netfilter.h:303 [inline]
 br_nf_pre_routing_ipv6+0x41b/0x830 net/bridge/br_netfilter_ipv6.c:178
 br_nf_pre_routing+0xda4/0x1520 net/bridge/br_netfilter_hooks.c:508
 nf_hook_entry_hookfn include/linux/netfilter.h:143 [inline]
 nf_hook_bridge_pre net/bridge/br_input.c:272 [inline]
 br_handle_frame+0x9cb/0x1320 net/bridge/br_input.c:416
 __netif_receive_skb_core+0xa10/0x3900 net/core/dev.c:5387
 __netif_receive_skb_one_core+0xae/0x180 net/core/dev.c:5491
 __netif_receive_skb+0x1f/0x1c0 net/core/dev.c:5607
 process_backlog+0x101/0x670 net/core/dev.c:5935
 __napi_poll+0xb7/0x6f0 net/core/dev.c:6498
 napi_poll net/core/dev.c:6565 [inline]
 net_rx_action+0x8a9/0xcb0 net/core/dev.c:6698
 __do_softirq+0x1d4/0x905 kernel/softirq.c:553
 do_softirq.part.0+0x87/0xc0 kernel/softirq.c:454
 </IRQ>
 <TASK>
 do_softirq kernel/softirq.c:446 [inline]
 __local_bh_enable_ip+0x106/0x130 kernel/softirq.c:381
 spin_unlock_bh include/linux/spinlock.h:395 [inline]
 tcp_metrics_flush_all+0x27c/0x390 net/ipv4/tcp_metrics.c:899
 ops_exit_list+0x125/0x170 net/core/net_namespace.c:175
 setup_net+0x7fb/0xc50 net/core/net_namespace.c:362
 copy_net_ns+0x4ee/0x8e0 net/core/net_namespace.c:491
 create_new_namespaces+0x3f6/0xb20 kernel/nsproxy.c:110
 unshare_nsproxy_namespaces+0xc1/0x1f0 kernel/nsproxy.c:228
 ksys_unshare+0x449/0x920 kernel/fork.c:3441
 __do_sys_unshare kernel/fork.c:3512 [inline]
 __se_sys_unshare kernel/fork.c:3510 [inline]
 __x64_sys_unshare+0x31/0x40 kernel/fork.c:3510
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f8ea188c389
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8ea25c3168 EFLAGS: 00000246 ORIG_RAX: 0000000000000110
RAX: ffffffffffffffda RBX: 00007f8ea19ac120 RCX: 00007f8ea188c389
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000060020000
RBP: 00007f8ea18d7493 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff75894b0f R14: 00007f8ea25c3300 R15: 0000000000022000
 </TASK>
net_ratelimit: 8321 callbacks suppressed
bridge0: received packet on veth0_to_bridge with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
bridge0: received packet on veth0_to_bridge with own address as source address (addr:56:e8:fd:75:8a:8b, vlan:0)
bridge0: received packet on bridge_slave_0 with own address as source address (addr:aa:aa:aa:aa:aa:1b, vlan:0)
bridge0: received packet on bridge_slave_0 with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
bridge0: received packet on veth0_to_bridge with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
bridge0: received packet on veth0_to_bridge with own address as source address (addr:56:e8:fd:75:8a:8b, vlan:0)
bridge0: received packet on bridge_slave_0 with own address as source address (addr:aa:aa:aa:aa:aa:1b, vlan:0)
bridge0: received packet on bridge_slave_0 with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
bridge0: received packet on veth0_to_bridge with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
bridge0: received packet on veth0_to_bridge with own address as source address (addr:56:e8:fd:75:8a:8b, vlan:0)

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/30 16:58 upstream e8f75c0270d9 01298212 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in jbd2_journal_commit_transaction
2023/03/06 07:36 upstream f915322fe014 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in jbd2_journal_commit_transaction
2023/03/01 17:13 upstream c0927a7a5391 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in jbd2_journal_commit_transaction
2023/06/15 01:17 linux-next b16049b21162 76decb82 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in jbd2_journal_commit_transaction
2023/05/26 23:07 linux-next 715abedee4cd cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in jbd2_journal_commit_transaction
2023/03/03 07:25 linux-next 1acf39ef8f14 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in jbd2_journal_commit_transaction
2023/07/27 18:06 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6eaae1980760 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in jbd2_journal_commit_transaction
* Struck through repros no longer work on HEAD.