Title | Replies (including bot) | Last reply |
---|---|---|
[syzbot] [reiserfs?] KASAN: slab-out-of-bounds Read in reiserfs_xattr_get (2) | 0 (1) | 2024/02/01 20:14 |
syzbot |
sign-in | mailing list | source | docs |
Title | Replies (including bot) | Last reply |
---|---|---|
[syzbot] [reiserfs?] KASAN: slab-out-of-bounds Read in reiserfs_xattr_get (2) | 0 (1) | 2024/02/01 20:14 |
================================================================== BUG: KASAN: slab-out-of-bounds in reiserfs_xattr_get+0xd0/0x96c fs/reiserfs/xattr.c:676 Read of size 8 at addr ffff00012166eb98 by task syz-executor.4/12688 CPU: 1 PID: 12688 Comm: syz-executor.4 Not tainted 6.7.0-rc8-syzkaller-g0802e17d9aca #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:291 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:298 __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_load8_noabort+0x20/0x2c mm/kasan/report_generic.c:381 reiserfs_xattr_get+0xd0/0x96c fs/reiserfs/xattr.c:676 reiserfs_get_acl+0x94/0x624 fs/reiserfs/xattr_acl.c:215 __get_acl+0x26c/0x474 fs/posix_acl.c:160 get_inode_acl+0x34/0x44 fs/posix_acl.c:185 check_acl+0x40/0x184 fs/namei.c:310 acl_permission_check fs/namei.c:355 [inline] generic_permission+0x2f8/0x498 fs/namei.c:408 reiserfs_permission+0x74/0xa8 fs/reiserfs/xattr.c:958 do_inode_permission fs/namei.c:462 [inline] inode_permission+0x1d0/0x3b4 fs/namei.c:529 may_open+0x290/0x3bc fs/namei.c:3249 do_open fs/namei.c:3620 [inline] path_openat+0x1e44/0x2888 fs/namei.c:3779 do_filp_open+0x1bc/0x3cc fs/namei.c:3809 do_sys_openat2+0x124/0x1b8 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1463 __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 Allocated by task 12732: 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] __do_kmalloc_node mm/slab_common.c:1007 [inline] __kmalloc+0xcc/0x1b8 mm/slab_common.c:1020 kmalloc_array include/linux/slab.h:637 [inline] bitmap_alloc+0x34/0x44 lib/bitmap.c:712 ptp_open+0xf0/0x3a8 drivers/ptp/ptp_chardev.c:116 posix_clock_open+0x170/0x1f4 kernel/time/posix-clock.c:134 chrdev_open+0x3c8/0x4dc fs/char_dev.c:414 do_dentry_open+0x778/0x12b4 fs/open.c:948 vfs_open+0x7c/0x90 fs/open.c:1082 do_open fs/namei.c:3622 [inline] path_openat+0x1f6c/0x2888 fs/namei.c:3779 do_filp_open+0x1bc/0x3cc fs/namei.c:3809 do_sys_openat2+0x124/0x1b8 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1463 __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 Last potentially related work creation: kasan_save_stack+0x40/0x6c mm/kasan/common.c:45 __kasan_record_aux_stack+0xcc/0xe8 mm/kasan/generic.c:492 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:502 kvfree_call_rcu+0xac/0x674 kernel/rcu/tree.c:3400 drop_sysctl_table+0x2c8/0x410 fs/proc/proc_sysctl.c:1508 drop_sysctl_table+0x2d8/0x410 fs/proc/proc_sysctl.c:1511 unregister_sysctl_table+0x48/0x68 fs/proc/proc_sysctl.c:1529 unregister_net_sysctl_table+0x20/0x30 net/sysctl_net.c:185 rds_tcp_exit_net+0x53c/0x5cc net/rds/tcp.c:640 ops_exit_list net/core/net_namespace.c:170 [inline] cleanup_net+0x564/0x8d0 net/core/net_namespace.c:614 process_one_work+0x694/0x1204 kernel/workqueue.c:2627 process_scheduled_works kernel/workqueue.c:2700 [inline] worker_thread+0x938/0xef4 kernel/workqueue.c:2781 kthread+0x288/0x310 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:857 The buggy address belongs to the object at ffff00012166ea00 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 152 bytes to the right of allocated 256-byte region [ffff00012166ea00, ffff00012166eb00) The buggy address belongs to the physical page: page:00000000727b44d9 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x16166e head:00000000727b44d9 order:1 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x5ffc00000000840(slab|head|node=0|zone=2|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 05ffc00000000840 ffff0000c0001b40 fffffc000345d600 dead000000000004 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff00012166ea80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff00012166eb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff00012166eb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff00012166ec00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff00012166ec80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================
Time | Kernel | Commit | Syzkaller | Config | Log | Report | Syz repro | C repro | VM info | Assets (help?) | Manager | Title |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2024/01/28 19:35 | git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci | 0802e17d9aca | cc4a4020 | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci-upstream-gce-arm64 | KASAN: slab-out-of-bounds Read in reiserfs_xattr_get |