syzbot


KASAN: use-after-free Read in unaccount_page_cache_page

Status: auto-obsoleted due to no activity on 2024/05/01 01:14
Reported-by: syzbot+0bc8c4332feb8a7a1ff0@syzkaller.appspotmail.com
First crash: 747d, last: 272d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 KASAN: use-after-free Read in unaccount_page_cache_page 150 226d 754d 0/2 auto-obsoleted due to no activity on 2024/06/10 16:28
android-54 KASAN: slab-out-of-bounds Read in unaccount_page_cache_page 2 307d 388d 0/2 auto-obsoleted due to no activity on 2024/04/30 10:15
android-5-10 KASAN: use-after-free Read in unaccount_page_cache_page (2) 1 111d 111d 0/2 auto-obsoleted due to no activity on 2024/11/11 21:33
android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page (2) 3 8d12h 102d 0/2 premoderation: reported on 2024/08/23 02:36
android-54 KASAN: use-after-free Read in unaccount_page_cache_page 143 538d 752d 0/2 auto-obsoleted due to no activity on 2023/08/23 09:09

Sample crash report:
==================================================================
BUG: KASAN: use-after-free in cleancache_fs_enabled_mapping include/linux/cleancache.h:56 [inline]
BUG: KASAN: use-after-free in cleancache_invalidate_page include/linux/cleancache.h:110 [inline]
BUG: KASAN: use-after-free in unaccount_page_cache_page+0x6d8/0x750 mm/filemap.c:163
Read of size 4 at addr ffff888137a8e470 by task syz-executor.3/28881

CPU: 1 PID: 28881 Comm: syz-executor.3 Not tainted 5.15.148-syzkaller-00718-g993bed180178 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106
 print_address_description+0x87/0x3b0 mm/kasan/report.c:248
 __kasan_report mm/kasan/report.c:427 [inline]
 kasan_report+0x179/0x1c0 mm/kasan/report.c:444
 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308
 cleancache_fs_enabled_mapping include/linux/cleancache.h:56 [inline]
 cleancache_invalidate_page include/linux/cleancache.h:110 [inline]
 unaccount_page_cache_page+0x6d8/0x750 mm/filemap.c:163
 __delete_from_page_cache+0xc6/0x5b0 mm/filemap.c:231
 __remove_mapping+0x566/0x690 mm/vmscan.c:1201
 shrink_page_list+0x2723/0x5c50 mm/vmscan.c:1798
 shrink_inactive_list mm/vmscan.c:2305 [inline]
 shrink_list mm/vmscan.c:2550 [inline]
 shrink_lruvec+0x17ec/0x4580 mm/vmscan.c:5753
 shrink_node_memcgs mm/vmscan.c:5945 [inline]
 shrink_node+0x1077/0x24e0 mm/vmscan.c:5975
 shrink_zones mm/vmscan.c:6178 [inline]
 do_try_to_free_pages+0x5ca/0x1570 mm/vmscan.c:6236
 try_to_free_mem_cgroup_pages+0x36c/0x850 mm/vmscan.c:6550
 try_charge_memcg+0x48f/0x1550 mm/memcontrol.c:2686
 try_charge mm/memcontrol.c:2811 [inline]
 charge_memcg+0x6b/0x1a0 mm/memcontrol.c:6814
 __mem_cgroup_charge+0x37/0x130 mm/memcontrol.c:6850
 mem_cgroup_charge include/linux/memcontrol.h:715 [inline]
 __add_to_page_cache_locked+0x2d1/0xa20 mm/filemap.c:892
 add_to_page_cache_lru+0x11b/0x2c0 mm/filemap.c:984
 pagecache_get_page+0xbe1/0xeb0 mm/filemap.c:1951
 grab_cache_page_write_begin+0x5d/0xa0 mm/filemap.c:3797
 ext4_da_write_begin+0x5ae/0xc30 fs/ext4/inode.c:3003
 generic_perform_write+0x2bc/0x5a0 mm/filemap.c:3843
 ext4_buffered_write_iter+0x48a/0x610 fs/ext4/file.c:270
 ext4_file_write_iter+0x443/0x1c80
 __kernel_write+0x5ab/0xa60 fs/read_write.c:539
 __dump_emit+0x261/0x3a0 fs/coredump.c:875
 dump_emit+0x381/0x3f0 fs/coredump.c:912
 dump_user_range+0x86/0x1c0 fs/coredump.c:949
 elf_core_dump+0x3663/0x3e80 fs/binfmt_elf.c:2285
 do_coredump+0x1834/0x3050 fs/coredump.c:826
 get_signal+0x4c8/0x1630 kernel/signal.c:2882
 arch_do_signal_or_restart+0xbd/0x1680 arch/x86/kernel/signal.c:867
 handle_signal_work kernel/entry/common.c:148 [inline]
 exit_to_user_mode_loop+0xa0/0xe0 kernel/entry/common.c:172
 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:208
 irqentry_exit_to_user_mode+0x9/0x20 kernel/entry/common.c:314
 irqentry_exit+0x12/0x40 kernel/entry/common.c:405
 exc_page_fault+0x47a/0x830 arch/x86/mm/fault.c:1608
 asm_exc_page_fault+0x27/0x30 arch/x86/include/asm/idtentry.h:568
RIP: 0033:0x7fb57dd0adb1
Code: c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f
RSP: 002b:0000000000000010 EFLAGS: 00010217
RAX: 0000000000000000 RBX: 00007fb57de38f80 RCX: 00007fb57dd0ada9
RDX: 0000000000000000 RSI: 0000000000000010 RDI: 0000000000000000
RBP: 00007fb57dd5747a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fb57de38f80 R15: 00007fff77576558
 </TASK>

The buggy address belongs to the page:
page:ffffea0004dea380 refcount:0 mapcount:-128 mapping:0000000000000000 index:0x0 pfn:0x137a8e
flags: 0x4000000000000000(zone=1)
raw: 4000000000000000 ffffea000569a488 ffffea0004345908 0000000000000000
raw: 0000000000000000 0000000000000001 00000000ffffff7f 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 28736, ts 1051438473249, free_ts 1051440120429
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1a3/0x1b0 mm/page_alloc.c:2604
 prep_new_page+0x1b/0x110 mm/page_alloc.c:2610
 get_page_from_freelist+0x3550/0x35d0 mm/page_alloc.c:4484
 __alloc_pages+0x27e/0x8f0 mm/page_alloc.c:5776
 __vmalloc_area_node mm/vmalloc.c:2955 [inline]
 __vmalloc_node_range+0x482/0x8d0 mm/vmalloc.c:3086
 alloc_thread_stack_node kernel/fork.c:254 [inline]
 dup_task_struct+0x416/0xc60 kernel/fork.c:944
 copy_process+0x5c4/0x3290 kernel/fork.c:2094
 kernel_clone+0x21e/0x9e0 kernel/fork.c:2662
 __do_sys_clone3 kernel/fork.c:2946 [inline]
 __se_sys_clone3 kernel/fork.c:2930 [inline]
 __x64_sys_clone3+0x376/0x3a0 kernel/fork.c:2930
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 free_pages_prepare mm/page_alloc.c:1471 [inline]
 free_pcp_prepare mm/page_alloc.c:1543 [inline]
 free_unref_page_prepare+0x7c8/0x7d0 mm/page_alloc.c:3533
 free_unref_page+0xe8/0x750 mm/page_alloc.c:3615
 free_the_page mm/page_alloc.c:804 [inline]
 __free_pages+0x61/0xf0 mm/page_alloc.c:5852
 __vunmap+0x7bc/0x8f0 mm/vmalloc.c:2652
 free_work+0x5b/0x80 mm/vmalloc.c:96
 process_one_work+0x6bb/0xc10 kernel/workqueue.c:2325
 worker_thread+0xad5/0x12a0 kernel/workqueue.c:2472
 kthread+0x421/0x510 kernel/kthread.c:337
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298

Memory state around the buggy address:
 ffff888137a8e300: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff888137a8e380: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff888137a8e400: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
                                                             ^
 ffff888137a8e480: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff888137a8e500: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
syz-executor.3 (28881) used greatest stack depth: 17120 bytes left

Crashes (118):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/03/05 23:04 android13-5.15-lts 993bed180178 f39a7eed .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2024/03/03 20:59 android13-5.15-lts 993bed180178 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2024/02/26 06:06 android13-5.15-lts 993bed180178 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2024/02/20 14:49 android13-5.15-lts 993bed180178 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2024/02/20 03:22 android13-5.15-lts 993bed180178 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2024/02/16 17:57 android13-5.15-lts 993bed180178 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2024/02/07 23:05 android13-5.15-lts 3802b45594e1 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2024/01/28 16:22 android13-5.15-lts 1c3a1f32bcbd cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2024/01/24 07:36 android13-5.15-lts 1c3a1f32bcbd 1e153dc8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2024/01/14 07:58 android13-5.15-lts ea2937bdd12f 551587c1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2024/01/02 16:11 android13-5.15-lts 28e3f5851a99 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2023/12/27 11:41 android13-5.15-lts 28e3f5851a99 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2023/12/23 22:28 android13-5.15-lts 28e3f5851a99 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2023/12/03 03:26 android13-5.15-lts eb99a642b7e6 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2023/11/20 00:51 android13-5.15-lts 61cfd264993d cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2023/11/13 04:54 android13-5.15-lts 61cfd264993d 6d6dbf8a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2023/10/30 06:51 android13-5.15-lts 61cfd264993d 3c418d72 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2023/10/20 02:17 android13-5.15-lts 754f8cc9b7de a42250d2 .config console log report info ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2023/10/15 19:08 android13-5.15-lts 754f8cc9b7de f757a323 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2023/10/14 05:04 android13-5.15-lts 754f8cc9b7de f757a323 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2023/09/07 06:15 android13-5.15-lts 1317bd27a72f 72324844 .config console log report info ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2023/09/03 05:18 android13-5.15-lts ac05872b1c1e 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2023/09/01 16:39 android13-5.15-lts ee6126f60d89 696ea0d2 .config console log report info ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2023/07/18 10:25 android13-5.15-lts 879959450ec7 20f8b3c2 .config console log report info ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2023/06/13 02:55 android13-5.15-lts 19c0ed55a470 749afb64 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2023/06/13 00:27 android13-5.15-lts 19c0ed55a470 aaed0183 .config console log report info ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2023/06/12 18:23 android13-5.15-lts 19c0ed55a470 aaed0183 .config console log report info ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2023/06/10 14:06 android13-5.15-lts 19c0ed55a470 49519f06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2023/05/30 16:21 android13-5.15-lts 19c0ed55a470 df37c7f1 .config console log report info ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2023/05/25 16:28 android13-5.15-lts 19c0ed55a470 0513b3e6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2023/05/20 16:45 android13-5.15-lts 19c0ed55a470 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2023/05/20 15:25 android13-5.15-lts 19c0ed55a470 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2023/05/18 02:08 android13-5.15-lts 19c0ed55a470 3bb7af1d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2023/05/17 23:30 android13-5.15-lts 19c0ed55a470 3bb7af1d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2023/05/17 22:12 android13-5.15-lts 19c0ed55a470 3bb7af1d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2023/05/17 09:26 android13-5.15-lts 19c0ed55a470 eaac4681 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2023/05/16 20:53 android13-5.15-lts 19c0ed55a470 11c89444 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2023/05/13 08:48 android13-5.15-lts 19c0ed55a470 2b9ba477 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2022/11/16 22:00 android13-5.15-lts 4ec71a9ec769 3a127a31 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in unaccount_page_cache_page
2024/02/21 05:33 android13-5.15-lts 993bed180178 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: slab-out-of-bounds Read in unaccount_page_cache_page
2024/02/19 10:28 android13-5.15-lts 993bed180178 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: slab-out-of-bounds Read in unaccount_page_cache_page
2023/12/30 01:24 android13-5.15-lts 28e3f5851a99 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: slab-out-of-bounds Read in unaccount_page_cache_page
2023/12/01 21:09 android13-5.15-lts eb99a642b7e6 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: slab-out-of-bounds Read in unaccount_page_cache_page
2023/09/22 06:03 android13-5.15-lts ea586874d2f9 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: slab-out-of-bounds Read in unaccount_page_cache_page
2023/09/12 13:07 android13-5.15-lts ea586874d2f9 59da8366 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: slab-out-of-bounds Read in unaccount_page_cache_page
2023/06/15 14:38 android13-5.15-lts 19c0ed55a470 90d4044e .config console log report info ci2-android-5-15 KASAN: slab-out-of-bounds Read in unaccount_page_cache_page
2023/06/10 17:18 android13-5.15-lts 19c0ed55a470 49519f06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: slab-out-of-bounds Read in unaccount_page_cache_page
2023/06/07 18:58 android13-5.15-lts 19c0ed55a470 058b3a5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: slab-out-of-bounds Read in unaccount_page_cache_page
2023/06/07 13:03 android13-5.15-lts 19c0ed55a470 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: slab-out-of-bounds Read in unaccount_page_cache_page
2023/05/31 06:35 android13-5.15-lts 19c0ed55a470 09898419 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: slab-out-of-bounds Read in unaccount_page_cache_page
2023/05/15 16:10 android13-5.15-lts 19c0ed55a470 c4d362e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: slab-out-of-bounds Read in unaccount_page_cache_page
2023/05/10 07:33 android13-5.15-lts 19c0ed55a470 1964022b .config console log report info ci2-android-5-15 KASAN: slab-out-of-bounds Read in unaccount_page_cache_page
* Struck through repros no longer work on HEAD.