syzbot


KASAN: use-after-free Read in jfs_lazycommit

Status: upstream: reported C repro on 2022/10/01 13:43
Subsystems: jfs
[Documentation on labels]
Reported-by: syzbot+885a4f3281b8d99c48d8@syzkaller.appspotmail.com
First crash: 539d, last: 9d21h
Cause bisection: failed (error log, bisect log)
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] KASAN: use-after-free Read in jfs_lazycommit 0 (2) 2022/10/12 05:33
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 KASAN: use-after-free Read in jfs_lazycommit jfs C error 5 406d 522d 0/1 upstream: reported C repro on 2022/10/13 08:33
linux-6.1 KASAN: use-after-free Read in jfs_lazycommit origin:upstream C 8 12d 316d 0/3 upstream: reported C repro on 2023/05/07 23:35
linux-5.15 KASAN: use-after-free Read in jfs_lazycommit origin:upstream C error 20 73d 317d 0/3 upstream: reported C repro on 2023/05/06 12:04
linux-4.14 KASAN: use-after-free Read in jfs_lazycommit jfs C 6 382d 524d 0/1 upstream: reported C repro on 2022/10/11 20:09
Last patch testing requests (6)
Created Duration User Patch Repo Result
2024/01/08 22:50 35m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2024/01/08 22:50 25m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2024/01/08 21:54 32m retest repro upstream OK log
2024/01/08 21:54 19m retest repro upstream OK log
2023/10/01 14:38 14m retest repro upstream report log
2023/10/01 14:38 22m retest repro upstream report log
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2023/04/03 16:43 56m bisect fix upstream job log (0) log

Sample crash report:
==================================================================
BUG: KASAN: slab-use-after-free in jfs_lazycommit+0x644/0x988 fs/jfs/jfs_txnmgr.c:2735
Read of size 4 at addr ffff0000c1bb6494 by task jfsCommit/94

CPU: 0 PID: 94 Comm: jfsCommit Not tainted 6.6.0-rc7-syzkaller-g8de1e7afcc1c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
Call trace:
 dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233
 show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106
 print_address_description mm/kasan/report.c:364 [inline]
 print_report+0x174/0x514 mm/kasan/report.c:475
 kasan_report+0xd8/0x138 mm/kasan/report.c:588
 __asan_report_load4_noabort+0x20/0x2c mm/kasan/report_generic.c:380
 jfs_lazycommit+0x644/0x988 fs/jfs/jfs_txnmgr.c:2735
 kthread+0x288/0x310 kernel/kthread.c:388
 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:857

Allocated by task 6388:
 kasan_save_stack mm/kasan/common.c:45 [inline]
 kasan_set_track+0x4c/0x7c mm/kasan/common.c:52
 kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:511
 ____kasan_kmalloc mm/kasan/common.c:374 [inline]
 __kasan_kmalloc+0xac/0xc4 mm/kasan/common.c:383
 kasan_kmalloc include/linux/kasan.h:198 [inline]
 kmalloc_trace+0x70/0x88 mm/slab_common.c:1122
 kmalloc include/linux/slab.h:599 [inline]
 kzalloc include/linux/slab.h:720 [inline]
 jfs_fill_super+0x108/0x9f0 fs/jfs/super.c:495
 mount_bdev+0x1e8/0x2b4 fs/super.c:1629
 jfs_do_mount+0x44/0x58 fs/jfs/super.c:670
 legacy_get_tree+0xd4/0x16c fs/fs_context.c:662
 vfs_get_tree+0x90/0x288 fs/super.c:1750
 do_new_mount+0x25c/0x8c8 fs/namespace.c:3335
 path_mount+0x590/0xe04 fs/namespace.c:3662
 do_mount fs/namespace.c:3675 [inline]
 __do_sys_mount fs/namespace.c:3884 [inline]
 __se_sys_mount fs/namespace.c:3861 [inline]
 __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3861
 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51
 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136
 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155
 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678
 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696
 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595

Freed by task 6390:
 kasan_save_stack mm/kasan/common.c:45 [inline]
 kasan_set_track+0x4c/0x7c mm/kasan/common.c:52
 kasan_save_free_info+0x38/0x5c mm/kasan/generic.c:522
 ____kasan_slab_free+0x144/0x1c0 mm/kasan/common.c:236
 __kasan_slab_free+0x18/0x28 mm/kasan/common.c:244
 kasan_slab_free include/linux/kasan.h:164 [inline]
 slab_free_hook mm/slub.c:1800 [inline]
 slab_free_freelist_hook mm/slub.c:1826 [inline]
 slab_free mm/slub.c:3809 [inline]
 __kmem_cache_free+0x2ac/0x480 mm/slub.c:3822
 kfree+0xb8/0x19c mm/slab_common.c:1075
 jfs_put_super+0x144/0x188 fs/jfs/super.c:203
 generic_shutdown_super+0x130/0x2b8 fs/super.c:693
 kill_block_super+0x40/0x74 fs/super.c:1646
 deactivate_locked_super+0xac/0x12c fs/super.c:481
 deactivate_super+0xe0/0x100 fs/super.c:514
 cleanup_mnt+0x34c/0x3dc fs/namespace.c:1254
 __cleanup_mnt+0x20/0x30 fs/namespace.c:1261
 task_work_run+0x230/0x2e0 kernel/task_work.c:180
 exit_task_work include/linux/task_work.h:38 [inline]
 do_exit+0x63c/0x1f58 kernel/exit.c:874
 do_group_exit+0x194/0x22c kernel/exit.c:1024
 get_signal+0x1500/0x15ec kernel/signal.c:2892
 do_signal arch/arm64/kernel/signal.c:1249 [inline]
 do_notify_resume+0x328/0x393c arch/arm64/kernel/signal.c:1302
 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:137 [inline]
 exit_to_user_mode arch/arm64/kernel/entry-common.c:144 [inline]
 el0_da+0xac/0x168 arch/arm64/kernel/entry-common.c:547
 el0t_64_sync_handler+0xcc/0xfc arch/arm64/kernel/entry-common.c:699
 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595

The buggy address belongs to the object at ffff0000c1bb6400
 which belongs to the cache kmalloc-256 of size 256
The buggy address is located 148 bytes inside of
 freed 256-byte region [ffff0000c1bb6400, ffff0000c1bb6500)

The buggy address belongs to the physical page:
page:000000002e49d571 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101bb6
head:000000002e49d571 order:1 entire_mapcount:0 nr_pages_mapped:0 pincount:0
ksm flags: 0x5ffc00000000840(slab|head|node=0|zone=2|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 05ffc00000000840 ffff0000c0001b40 fffffc0003174780 dead000000000007
raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff0000c1bb6380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff0000c1bb6400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff0000c1bb6480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                         ^
 ffff0000c1bb6500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff0000c1bb6580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================

Crashes (63):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/10 23:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 45e9b83e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 KASAN: slab-use-after-free Read in jfs_lazycommit
2023/05/07 17:49 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 14f8db1c0f9a 90c93c40 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 KASAN: slab-use-after-free Read in jfs_lazycommit
2022/11/11 11:47 upstream 4bbf3422df78 f42ee5d8 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs KASAN: use-after-free Read in jfs_lazycommit
2022/10/12 05:32 upstream 493ffd6605b2 02b6492e .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-upstream-fs KASAN: use-after-free Read in jfs_lazycommit
2023/02/12 04:26 upstream d12aca5c0cee 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: use-after-free Read in jfs_lazycommit
2023/02/06 13:36 upstream d2d11f342b17 0a9c11b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: use-after-free Read in jfs_lazycommit
2023/01/20 23:08 upstream edc00350d205 7374c4e5 .config console log report info ci-qemu-upstream KASAN: use-after-free Read in jfs_lazycommit
2022/12/21 09:11 upstream 6feb57c2fd7c d3e76707 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: use-after-free Read in jfs_lazycommit
2022/12/14 10:21 upstream e2ca6ba6ba01 f6511626 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: use-after-free Read in jfs_lazycommit
2022/11/24 10:47 upstream 4312098baf37 ff68ff8f .config console log report info ci-qemu-upstream KASAN: use-after-free Read in jfs_lazycommit
2022/11/01 07:29 upstream b229b6ca5abb a1d8560a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: use-after-free Read in jfs_lazycommit
2022/10/14 11:09 upstream 493ffd6605b2 4954e4b2 .config console log report info [disk image] [vmlinux] ci2-upstream-fs KASAN: use-after-free Read in jfs_lazycommit
2022/10/11 05:58 upstream 493ffd6605b2 5bcf0c31 .config console log report info [disk image] [vmlinux] ci2-upstream-fs KASAN: use-after-free Read in jfs_lazycommit
2022/09/26 22:13 upstream 3800a713b607 10323ddf .config console log report info ci-qemu-upstream KASAN: use-after-free Read in jfs_lazycommit
2023/02/14 02:55 upstream b408817d4884 93ae7e0a .config console log report info ci-qemu-upstream-386 KASAN: use-after-free Read in jfs_lazycommit
2022/12/13 18:52 upstream 764822972d64 e660de91 .config console log report info ci-qemu-upstream-386 KASAN: use-after-free Read in jfs_lazycommit
2023/12/25 21:45 upstream 861deac3b092 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-use-after-free Read in jfs_lazycommit
2023/12/17 07:07 upstream 3b8a9b2e6809 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-use-after-free Read in jfs_lazycommit
2023/12/14 05:32 upstream 5bd7ef53ffe5 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-use-after-free Read in jfs_lazycommit
2023/11/23 12:39 upstream 9b6de136b5f0 03e12510 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in jfs_lazycommit
2023/11/15 04:58 upstream 9bacdd8996c7 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root KASAN: slab-use-after-free Read in jfs_lazycommit
2023/11/06 15:15 upstream d2f51b3516da 78fae24e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-use-after-free Read in jfs_lazycommit
2023/11/01 20:08 upstream 8bc9e6515183 69904c9f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-use-after-free Read in jfs_lazycommit
2023/10/24 14:53 upstream d88520ad73b7 af8d2e46 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-use-after-free Read in jfs_lazycommit
2023/10/13 18:03 upstream ce583d5fb9d3 6388bc36 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-use-after-free Read in jfs_lazycommit
2023/10/09 11:28 upstream 94f6f0550c62 5e837c76 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-use-after-free Read in jfs_lazycommit
2023/09/17 13:43 upstream f0b0d403eabb 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-use-after-free Read in jfs_lazycommit
2023/09/14 10:56 upstream aed8aee11130 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-use-after-free Read in jfs_lazycommit
2023/09/12 04:18 upstream 0bb80ecc33a8 59da8366 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-use-after-free Read in jfs_lazycommit
2023/09/04 14:56 upstream 708283abf896 db3306a6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-use-after-free Read in jfs_lazycommit
2023/09/03 12:54 upstream 92901222f83d 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-use-after-free Read in jfs_lazycommit
2023/08/31 07:30 upstream ef2a0b7cdbc5 84803932 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-use-after-free Read in jfs_lazycommit
2024/03/06 15:59 upstream 5847c9777c30 f39a7eed .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream KASAN: slab-use-after-free Read in jfs_lazycommit
2023/12/13 09:31 upstream 88035e5694a8 ebcad15c .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream KASAN: slab-use-after-free Read in jfs_lazycommit
2023/11/20 06:09 upstream eb3479bc23fa cb976f63 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream KASAN: slab-use-after-free Read in jfs_lazycommit
2023/10/06 21:08 upstream af95dc6fdc25 ea12a918 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream KASAN: slab-use-after-free Read in jfs_lazycommit
2023/10/04 08:48 upstream cbf3a2cb156a 65faba36 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream KASAN: slab-use-after-free Read in jfs_lazycommit
2023/09/17 13:49 upstream f0b0d403eabb 0b6a67ac .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 KASAN: slab-use-after-free Read in jfs_lazycommit
2023/08/26 18:10 upstream 382d4cd18475 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-use-after-free Read in jfs_lazycommit
2023/08/19 10:44 upstream d4ddefee5160 d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-use-after-free Read in jfs_lazycommit
2023/08/04 11:08 upstream c1a515d3c027 74621247 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-use-after-free Read in jfs_lazycommit
2023/07/16 21:36 upstream 20edcec23f92 35d9ecc5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-use-after-free Read in jfs_lazycommit
2023/07/05 23:24 upstream 6cd06ab12d1a ba5dba36 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-use-after-free Read in jfs_lazycommit
2023/07/04 05:35 upstream a901a3568fd2 6e553898 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-use-after-free Read in jfs_lazycommit
2023/06/20 06:13 upstream 692b7dc87ca6 d521bc56 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in jfs_lazycommit
2023/06/01 08:27 upstream 929ed21dfdb6 babc4389 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-use-after-free Read in jfs_lazycommit
2023/05/19 16:58 upstream 2d1bcbc6cd70 96689200 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in jfs_lazycommit
2023/04/21 21:15 upstream 2af3e53a4dc0 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-use-after-free Read in jfs_lazycommit
2023/04/06 20:13 upstream f2afccfefe7b 08707520 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-use-after-free Read in jfs_lazycommit
2023/03/04 16:42 upstream 0988a0ea7919 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-use-after-free Read in jfs_lazycommit
2023/02/26 19:09 upstream 2fcd07b7ccd5 630c6bc9 .config console log report info ci-qemu-upstream KASAN: slab-use-after-free Read in jfs_lazycommit
2023/02/26 10:50 upstream 2fcd07b7ccd5 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-use-after-free Read in jfs_lazycommit
2024/01/31 01:59 linux-next 596764183be8 7f400fcb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in jfs_lazycommit
2024/03/09 10:37 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 707081b61156 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-use-after-free Read in jfs_lazycommit
2024/01/11 07:59 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 0802e17d9aca 00f3cc59 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-use-after-free Read in jfs_lazycommit
2023/12/02 21:38 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2cc14f52aeb7 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in jfs_lazycommit
2023/11/29 13:23 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2cc14f52aeb7 6e78f9ce .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-use-after-free Read in jfs_lazycommit
2023/10/27 12:33 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c bf285f0c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-use-after-free Read in jfs_lazycommit
2023/08/14 02:31 linux-next 21ef7b1e17d0 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in jfs_lazycommit
2023/06/24 00:10 linux-next 8d2be868b42c 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in jfs_lazycommit
2023/08/26 18:28 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe4469582053 03d9c195 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-use-after-free Read in jfs_lazycommit
2023/05/13 19:56 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 14f8db1c0f9a 2b9ba477 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-use-after-free Read in jfs_lazycommit
2023/05/01 04:16 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 14f8db1c0f9a 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-use-after-free Read in jfs_lazycommit
* Struck through repros no longer work on HEAD.