syzbot


kernel panic: corrupted stack end in ext4_file_open

Status: auto-obsoleted due to no activity on 2023/05/06 09:26
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+131201d25cbb9b9ccbe0@syzkaller.appspotmail.com
First crash: 407d, last: 407d

Sample crash report:
Kernel panic - not syncing: corrupted stack end detected inside scheduler
CPU: 0 PID: 3136 Comm: syz-executor.1 Not tainted 5.17.0-rc1-syzkaller-00002-g0966d385830d #0
Hardware name: riscv-virtio,qemu (DT)
Call Trace:
[<ffffffff8000a228>] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:113
[<ffffffff831668cc>] show_stack+0x34/0x40 arch/riscv/kernel/stacktrace.c:119
[<ffffffff831756ba>] __dump_stack lib/dump_stack.c:88 [inline]
[<ffffffff831756ba>] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:106
[<ffffffff83175742>] dump_stack+0x1c/0x24 lib/dump_stack.c:113
[<ffffffff83166fa8>] panic+0x24a/0x634 kernel/panic.c:233
[<ffffffff831a688a>] schedule_debug kernel/sched/core.c:5541 [inline]
[<ffffffff831a688a>] schedule+0x0/0x14c kernel/sched/core.c:6187
[<ffffffff831a6b00>] preempt_schedule_common+0x4e/0xde kernel/sched/core.c:6462
[<ffffffff831a6bc4>] preempt_schedule+0x34/0x36 kernel/sched/core.c:6487
[<ffffffff831afc2c>] __raw_spin_unlock include/linux/spinlock_api_smp.h:143 [inline]
[<ffffffff831afc2c>] _raw_spin_unlock+0x60/0x6a kernel/locking/spinlock.c:186
[<ffffffff80745ba2>] spin_unlock include/linux/spinlock.h:389 [inline]
[<ffffffff80745ba2>] ext4_unlock_group fs/ext4/ext4.h:3531 [inline]
[<ffffffff80745ba2>] ext4_mb_discard_group_preallocations+0x4b2/0x822 fs/ext4/mballoc.c:4895
[<ffffffff80753c5a>] ext4_mb_discard_preallocations fs/ext4/mballoc.c:5452 [inline]
[<ffffffff80753c5a>] ext4_mb_discard_preallocations_should_retry fs/ext4/mballoc.c:5473 [inline]
[<ffffffff80753c5a>] ext4_mb_new_blocks+0x1ba4/0x3228 fs/ext4/mballoc.c:5609
[<ffffffff806d41b0>] ext4_new_meta_blocks+0x19c/0x216 fs/ext4/balloc.c:699
[<ffffffff806e3042>] ext4_ext_grow_indepth fs/ext4/extents.c:1321 [inline]
[<ffffffff806e3042>] ext4_ext_create_new_leaf fs/ext4/extents.c:1427 [inline]
[<ffffffff806e3042>] ext4_ext_insert_extent+0x8f0/0x27b2 fs/ext4/extents.c:2094
[<ffffffff806ea018>] ext4_ext_map_blocks+0x1004/0x3e86 fs/ext4/extents.c:4303
[<ffffffff8071fc44>] ext4_map_blocks+0x4fe/0xe64 fs/ext4/inode.c:638
[<ffffffff80721b94>] ext4_getblk+0xfe/0x4f6 fs/ext4/inode.c:849
[<ffffffff80721fb8>] ext4_bread+0x2c/0x132 fs/ext4/inode.c:902
[<ffffffff807ad716>] ext4_quota_write+0x172/0x4ae fs/ext4/super.c:6976
[<ffffffff8062d5d0>] write_blk+0x98/0x10c fs/quota/quota_tree.c:64
[<ffffffff8062d6f4>] get_free_dqblk+0xb0/0x1fe fs/quota/quota_tree.c:93
[<ffffffff8062f0f6>] do_insert_tree+0x61a/0xb5a fs/quota/quota_tree.c:300
[<ffffffff8062f514>] do_insert_tree+0xa38/0xb5a fs/quota/quota_tree.c:331
[<ffffffff8062f514>] do_insert_tree+0xa38/0xb5a fs/quota/quota_tree.c:331
[<ffffffff8062f514>] do_insert_tree+0xa38/0xb5a fs/quota/quota_tree.c:331
[<ffffffff8062f784>] dq_insert_tree fs/quota/quota_tree.c:357 [inline]
[<ffffffff8062f784>] qtree_write_dquot+0x14e/0x338 fs/quota/quota_tree.c:376
[<ffffffff8062bca8>] v2_write_dquot+0xa4/0x12c fs/quota/quota_v2.c:358
[<ffffffff80620f84>] dquot_acquire+0x174/0x298 fs/quota/dquot.c:441
[<ffffffff80795f46>] ext4_acquire_dquot+0x164/0x1be fs/ext4/super.c:6632
[<ffffffff80622894>] dqget+0x4d8/0x970 fs/quota/dquot.c:899
[<ffffffff806262d4>] __dquot_initialize+0x33a/0x788 fs/quota/dquot.c:1477
[<ffffffff806267d4>] dquot_initialize fs/quota/dquot.c:1535 [inline]
[<ffffffff806267d4>] dquot_file_open fs/quota/dquot.c:2159 [inline]
[<ffffffff806267d4>] dquot_file_open+0x8c/0x90 fs/quota/dquot.c:2153
[<ffffffff806fd138>] ext4_file_open fs/ext4/file.c:870 [inline]
[<ffffffff806fd138>] ext4_file_open+0x22e/0x6f4 fs/ext4/file.c:840
[<ffffffff804bed6c>] do_dentry_open+0x2a4/0x7d4 fs/open.c:824
[<ffffffff804c22ce>] vfs_open+0x52/0x5e fs/open.c:959
[<ffffffff804ecc4c>] do_open fs/namei.c:3476 [inline]
[<ffffffff804ecc4c>] path_openat+0x12b6/0x189e fs/namei.c:3609
[<ffffffff804efc60>] do_filp_open+0x10e/0x22a fs/namei.c:3636
[<ffffffff804c2a46>] do_sys_openat2+0x174/0x31e fs/open.c:1214
[<ffffffff804c3446>] do_sys_open fs/open.c:1230 [inline]
[<ffffffff804c3446>] __do_sys_openat fs/open.c:1246 [inline]
[<ffffffff804c3446>] sys_openat+0xdc/0x164 fs/open.c:1241
[<ffffffff80005716>] ret_from_syscall+0x0/0x2
SMP: stopping secondary CPUs
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/05 09:26 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d be607b78 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in ext4_file_open
* Struck through repros no longer work on HEAD.