syzbot


upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end

Status: auto-closed as invalid on 2021/12/11 00:51
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+488ddf8087564d6de6e2@syzkaller.appspotmail.com
First crash: 1180d, last: 1168d
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end 17 (18) 2021/10/02 05:10
[syzbot] upstream test error: KFENCE: use-after-free in kvm_fastop_exception 8 (9) 2021/09/28 10:16

Sample crash report:
==================================================================
BUG: KASAN: invalid-access in __entry_tramp_text_end+0xddc/0xd000
Read at addr fcff000002980020 by task kdevtmpfs/22
Pointer tag: [fc], memory tag: [fe]

CPU: 0 PID: 22 Comm: kdevtmpfs Not tainted 5.14.0-syzkaller-11152-g78e709522d2c #0
Hardware name: linux,dummy-virt (DT)
Call trace:
 dump_backtrace+0x0/0x1ac arch/arm64/kernel/stacktrace.c:76
 show_stack+0x18/0x24 arch/arm64/kernel/stacktrace.c:215
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x68/0x84 lib/dump_stack.c:106
 print_address_description+0x7c/0x2b4 mm/kasan/report.c:256
 __kasan_report mm/kasan/report.c:442 [inline]
 kasan_report+0x134/0x380 mm/kasan/report.c:459
 __do_kernel_fault+0x128/0x1bc arch/arm64/mm/fault.c:317
 do_bad_area arch/arm64/mm/fault.c:466 [inline]
 do_tag_check_fault+0x74/0x90 arch/arm64/mm/fault.c:737
 do_mem_abort+0x44/0xb4 arch/arm64/mm/fault.c:813
 el1_abort+0x40/0x60 arch/arm64/kernel/entry-common.c:357
 el1h_64_sync_handler+0xb0/0xd0 arch/arm64/kernel/entry-common.c:408
 el1h_64_sync+0x78/0x7c arch/arm64/kernel/entry.S:567
 __entry_tramp_text_end+0xddc/0xd000
 d_lookup+0x44/0x70 fs/dcache.c:2370
 lookup_dcache+0x24/0x84 fs/namei.c:1520
 __lookup_hash+0x24/0xd0 fs/namei.c:1543
 kern_path_locked+0x90/0x10c fs/namei.c:2567
 handle_remove+0x38/0x284 drivers/base/devtmpfs.c:312
 handle drivers/base/devtmpfs.c:382 [inline]
 devtmpfs_work_loop drivers/base/devtmpfs.c:395 [inline]
 devtmpfsd+0x8c/0xd0 drivers/base/devtmpfs.c:437
 kthread+0x150/0x15c kernel/kthread.c:319
 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:756

Allocated by task 22:
 kasan_save_stack+0x28/0x60 mm/kasan/common.c:38
 kasan_set_track mm/kasan/common.c:46 [inline]
 set_alloc_info mm/kasan/common.c:434 [inline]
 __kasan_slab_alloc+0xb0/0x110 mm/kasan/common.c:467
 kasan_slab_alloc include/linux/kasan.h:254 [inline]
 slab_post_alloc_hook mm/slab.h:519 [inline]
 slab_alloc_node mm/slub.c:3206 [inline]
 slab_alloc mm/slub.c:3214 [inline]
 kmem_cache_alloc+0x194/0x2f4 mm/slub.c:3219
 getname_kernel+0x30/0x150 fs/namei.c:226
 kern_path_locked+0x2c/0x10c fs/namei.c:2558
 handle_remove+0x38/0x284 drivers/base/devtmpfs.c:312
 handle drivers/base/devtmpfs.c:382 [inline]
 devtmpfs_work_loop drivers/base/devtmpfs.c:395 [inline]
 devtmpfsd+0x8c/0xd0 drivers/base/devtmpfs.c:437
 kthread+0x150/0x15c kernel/kthread.c:319
 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:756

Freed by task 22:
 kasan_save_stack+0x28/0x60 mm/kasan/common.c:38
 kasan_set_track+0x28/0x3c mm/kasan/common.c:46
 kasan_set_free_info+0x20/0x30 mm/kasan/tags.c:36
 ____kasan_slab_free.constprop.0+0x178/0x1e0 mm/kasan/common.c:366
 __kasan_slab_free+0x10/0x1c mm/kasan/common.c:374
 kasan_slab_free include/linux/kasan.h:230 [inline]
 slab_free_hook mm/slub.c:1700 [inline]
 slab_free_freelist_hook+0xc4/0x20c mm/slub.c:1725
 slab_free mm/slub.c:3483 [inline]
 kmem_cache_free+0x9c/0x3d4 mm/slub.c:3499
 putname.part.0+0x68/0x7c fs/namei.c:270
 putname include/linux/err.h:41 [inline]
 filename_parentat fs/namei.c:2547 [inline]
 kern_path_locked+0x64/0x10c fs/namei.c:2558
 handle_remove+0x38/0x284 drivers/base/devtmpfs.c:312
 handle drivers/base/devtmpfs.c:382 [inline]
 devtmpfs_work_loop drivers/base/devtmpfs.c:395 [inline]
 devtmpfsd+0x8c/0xd0 drivers/base/devtmpfs.c:437
 kthread+0x150/0x15c kernel/kthread.c:319
 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:756

The buggy address belongs to the object at ffff000002980000
 which belongs to the cache names_cache of size 4096
The buggy address is located 32 bytes inside of
 4096-byte region [ffff000002980000, ffff000002981000)
The buggy address belongs to the page:
page:00000000af1af42d refcount:1 mapcount:0 mapping:0000000000000000 index:0xfaff000002982080 pfn:0x42980
head:00000000af1af42d order:3 compound_mapcount:0 compound_pincount:0
flags: 0x1ffc00000010200(slab|head|node=0|zone=0|lastcpupid=0x7ff|kasantag=0x0)
raw: 01ffc00000010200 0000000000000000 dead000000000122 fcff000002837700
raw: faff000002982080 0000000080070005 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff00000297fe00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
 ffff00000297ff00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
>ffff000002980000: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
                         ^
 ffff000002980100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
 ffff000002980200: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
==================================================================

Crashes (151):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/09/12 00:50 upstream 78e709522d2c 3ce60af8 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/11 17:50 upstream c605c39677b9 3ce60af8 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/10 21:19 upstream 926de8c4326c 5ae8508a .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/10 20:10 upstream e99f23c5bf59 5ae8508a .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/10 20:09 upstream e99f23c5bf59 5ae8508a .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/10 09:23 upstream bf9f243f23e6 5ae8508a .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/09 23:31 upstream bf9f243f23e6 e2776ee4 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/09 21:44 upstream d6c338a74129 e2776ee4 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/09 20:11 upstream f154c806676a e2776ee4 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/09 19:11 upstream 70868a180501 e2776ee4 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/09 02:11 upstream a3fa7a101dcf e2776ee4 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/08 23:41 upstream 0f4b9289bad3 e2776ee4 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/08 20:54 upstream 2d338201d531 e2776ee4 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/08 09:28 upstream ac08b1c68d1b e2776ee4 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/08 02:38 upstream ac08b1c68d1b 064c9eb7 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/07 21:55 upstream 626bf91a292e 064c9eb7 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/07 21:06 upstream a2b28235335f 064c9eb7 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/07 19:35 upstream 0bcfe68b8767 6ca60148 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/06 20:02 upstream 4b93c544e90e 6ca60148 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/06 16:42 upstream 20fbb11fe4ea 6ca60148 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/06 09:40 upstream 27151f177827 6ca60148 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/06 09:40 upstream 27151f177827 6ca60148 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/05 19:17 upstream 27151f177827 d236a457 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/05 17:36 upstream 0319b848b155 d236a457 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/04 19:17 upstream 49624efa65ac d236a457 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/03 23:37 upstream f1583cb1be35 d236a457 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/03 18:57 upstream 7cca308cfdc0 d236a457 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/03 09:54 upstream a9c9a6f741cd d236a457 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/02 22:55 upstream a9c9a6f741cd f62a5829 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/02 22:55 upstream a9c9a6f741cd f62a5829 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/02 21:52 upstream 7ba88a2a09f4 f62a5829 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/02 20:13 upstream aa829778b16f d0f0970b .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/02 17:52 upstream 4a3bb4200a59 d0f0970b .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/02 09:50 upstream 4ac6d90867a4 d0f0970b .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/02 03:03 upstream 4ac6d90867a4 7eb7e152 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/01 23:33 upstream 7c636d4d20f8 7eb7e152 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/01 23:33 upstream 7c636d4d20f8 7eb7e152 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/01 19:43 upstream 477f70cd2a67 7eb7e152 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/01 19:43 upstream 477f70cd2a67 7eb7e152 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/01 19:43 upstream 477f70cd2a67 7eb7e152 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/01 18:32 upstream 835d31d319d9 7eb7e152 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/01 18:32 upstream 835d31d319d9 7eb7e152 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/01 18:32 upstream 835d31d319d9 7eb7e152 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/01 17:33 upstream ebf435d3b51b 7eb7e152 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/01 17:33 upstream ebf435d3b51b 7eb7e152 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/09/01 17:33 upstream ebf435d3b51b 7eb7e152 .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
2021/08/31 11:47 upstream b91db6a0b52e 8f58a0ef .config console log report ci-qemu2-arm64-mte upstream test error: KASAN: invalid-access Read in __entry_tramp_text_end
* Struck through repros no longer work on HEAD.