syzbot


kernel panic: corrupted stack end in ext4_file_read_iter

Status: closed as dup on 2022/04/19 14:37
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+6fcd79580644be9f4589@syzkaller.appspotmail.com
First crash: 1021d, last: 835d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
kernel panic: corrupted stack end in inet_rtm_newaddr net 23 674d 1011d

Sample crash report:
Kernel panic - not syncing: corrupted stack end detected inside scheduler
CPU: 0 PID: 2664 Comm: modprobe 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
[<ffffffff8025118e>] irq_work_queue kernel/irq_work.c:115 [inline]
[<ffffffff8025118e>] irq_work_queue+0xc4/0xc6 kernel/irq_work.c:106
[<ffffffff804786fa>] __kfence_alloc+0x178/0xe28 mm/kfence/core.c:886
[<ffffffff80470a88>] kfence_alloc include/linux/kfence.h:126 [inline]
[<ffffffff80470a88>] slab_alloc_node mm/slub.c:3148 [inline]
[<ffffffff80470a88>] slab_alloc mm/slub.c:3238 [inline]
[<ffffffff80470a88>] kmem_cache_alloc+0x3c4/0x3de mm/slub.c:3243
[<ffffffff807d9998>] kmem_cache_zalloc include/linux/slab.h:705 [inline]
[<ffffffff807d9998>] jbd2_alloc_handle include/linux/jbd2.h:1603 [inline]
[<ffffffff807d9998>] new_handle fs/jbd2/transaction.c:481 [inline]
[<ffffffff807d9998>] jbd2__journal_start+0x110/0x33a fs/jbd2/transaction.c:508
[<ffffffff806db1ce>] __ext4_journal_start_sb+0x1a8/0x40a fs/ext4/ext4_jbd2.c:105
[<ffffffff80733152>] __ext4_journal_start fs/ext4/ext4_jbd2.h:326 [inline]
[<ffffffff80733152>] ext4_dirty_inode+0x60/0xba fs/ext4/inode.c:5899
[<ffffffff8053ebec>] __mark_inode_dirty+0x40a/0xf04 fs/fs-writeback.c:2409
[<ffffffff8050f47c>] generic_update_time fs/inode.c:1856 [inline]
[<ffffffff8050f47c>] inode_update_time fs/inode.c:1869 [inline]
[<ffffffff8050f47c>] touch_atime+0x656/0x67a fs/inode.c:1941
[<ffffffff8033d34a>] file_accessed include/linux/fs.h:2421 [inline]
[<ffffffff8033d34a>] filemap_read+0x780/0x78a mm/filemap.c:2744
[<ffffffff8033d5de>] generic_file_read_iter+0x28a/0x338 mm/filemap.c:2822
[<ffffffff806fba88>] ext4_file_read_iter+0x126/0x338 fs/ext4/file.c:130
[<ffffffff804c4902>] call_read_iter include/linux/fs.h:2068 [inline]
[<ffffffff804c4902>] new_sync_read+0x290/0x3d8 fs/read_write.c:400
[<ffffffff804c83c0>] vfs_read+0x2ce/0x324 fs/read_write.c:481
[<ffffffff804c8854>] ksys_read+0x10a/0x224 fs/read_write.c:619
[<ffffffff804c8996>] __do_sys_read fs/read_write.c:629 [inline]
[<ffffffff804c8996>] sys_read+0x28/0x36 fs/read_write.c:627
[<ffffffff80005716>] ret_from_syscall+0x0/0x2
SMP: stopping secondary CPUs
Rebooting in 86400 seconds..

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/09/13 08:37 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d a08652b0 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in ext4_file_read_iter
2022/03/11 07:10 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes c80ee64a8020 9e8eaa75 .config console log report info ci-qemu2-riscv64 kernel panic: corrupted stack end in ext4_file_read_iter
* Struck through repros no longer work on HEAD.