================================================================== BUG: KASAN: invalid-access in __lse__cmpxchg_case_acq_32 arch/arm64/include/asm/atomic_lse.h:370 [inline] BUG: KASAN: invalid-access in __cmpxchg_case_acq_32 arch/arm64/include/asm/cmpxchg.h:121 [inline] BUG: KASAN: invalid-access in __cmpxchg_case_acq_32 arch/arm64/include/asm/cmpxchg.h:121 [inline] BUG: KASAN: invalid-access in __cmpxchg_acq arch/arm64/include/asm/cmpxchg.h:173 [inline] BUG: KASAN: invalid-access in arch_atomic_try_cmpxchg_acquire include/linux/atomic-arch-fallback.h:1003 [inline] BUG: KASAN: invalid-access in atomic_try_cmpxchg_acquire include/asm-generic/atomic-instrumented.h:707 [inline] BUG: KASAN: invalid-access in queued_spin_lock include/asm-generic/qspinlock.h:82 [inline] BUG: KASAN: invalid-access in do_raw_spin_lock_flags include/linux/spinlock.h:195 [inline] BUG: KASAN: invalid-access in __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:119 [inline] BUG: KASAN: invalid-access in _raw_spin_lock_irqsave+0x48/0xb0 kernel/locking/spinlock.c:159 Write at addr fcff000028b3e750 by task ksoftirqd/0/12 Pointer tag: [fc], memory tag: [fe] CPU: 0 PID: 12 Comm: ksoftirqd/0 Not tainted 5.12.0-rc1-syzkaller-00062-gcee407c5cc42 #0 Hardware name: linux,dummy-virt (DT) Call trace: dump_backtrace+0x0/0x1b0 arch/arm64/kernel/stacktrace.c:112 show_stack+0x18/0x70 arch/arm64/kernel/stacktrace.c:191 __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0xd0/0x12c lib/dump_stack.c:120 print_address_description+0x70/0x29c mm/kasan/report.c:232 __kasan_report mm/kasan/report.c:399 [inline] kasan_report+0x134/0x380 mm/kasan/report.c:416 report_tag_fault arch/arm64/mm/fault.c:324 [inline] do_tag_recovery arch/arm64/mm/fault.c:336 [inline] __do_kernel_fault+0x18c/0x1c0 arch/arm64/mm/fault.c:378 do_bad_area arch/arm64/mm/fault.c:474 [inline] do_tag_check_fault+0x74/0x90 arch/arm64/mm/fault.c:729 do_mem_abort+0x44/0xbc arch/arm64/mm/fault.c:805 el1_abort+0x40/0x6c arch/arm64/kernel/entry-common.c:167 el1_sync_handler+0xac/0xd0 arch/arm64/kernel/entry-common.c:259 el1_sync+0x70/0x100 arch/arm64/kernel/entry.S:656 __lse__cmpxchg_case_acq_32 arch/arm64/include/asm/atomic_lse.h:370 [inline] __cmpxchg_case_acq_32 arch/arm64/include/asm/cmpxchg.h:121 [inline] __cmpxchg_case_acq_32 arch/arm64/include/asm/cmpxchg.h:121 [inline] __cmpxchg_acq arch/arm64/include/asm/cmpxchg.h:173 [inline] arch_atomic_try_cmpxchg_acquire include/linux/atomic-arch-fallback.h:1003 [inline] atomic_try_cmpxchg_acquire include/asm-generic/atomic-instrumented.h:707 [inline] queued_spin_lock include/asm-generic/qspinlock.h:82 [inline] do_raw_spin_lock_flags include/linux/spinlock.h:195 [inline] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:119 [inline] _raw_spin_lock_irqsave+0x48/0xb0 kernel/locking/spinlock.c:159 __wake_up_common_lock+0x5c/0xcc kernel/sched/wait.c:137 __wake_up+0x18/0x24 kernel/sched/wait.c:157 lbmIODone+0x13c/0x414 fs/jfs/jfs_logmgr.c:2294 bio_endio+0x154/0x170 block/bio.c:1436 req_bio_endio block/blk-core.c:265 [inline] blk_update_request+0x22c/0x450 block/blk-core.c:1456 blk_mq_end_request+0x28/0x150 block/blk-mq.c:564 lo_complete_rq+0x84/0xd0 drivers/block/loop.c:497 blk_complete_reqs+0x58/0x70 block/blk-mq.c:576 blk_done_softirq+0x20/0x30 block/blk-mq.c:581 _stext+0x124/0x2ac run_ksoftirqd+0x4c/0x60 kernel/softirq.c:652 smpboot_thread_fn+0x254/0x280 kernel/smpboot.c:165 kthread+0x174/0x180 kernel/kthread.c:292 ret_from_fork+0x10/0x34 arch/arm64/kernel/entry.S:958 Allocated by task 28197: stack_trace_save+0x50/0x80 kernel/stacktrace.c:121 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:427 [inline] ____kasan_kmalloc mm/kasan/common.c:506 [inline] __kasan_kmalloc+0xa0/0xc0 mm/kasan/common.c:515 kasan_kmalloc include/linux/kasan.h:233 [inline] __kmalloc+0x218/0x3a0 mm/slub.c:4055 kmalloc include/linux/slab.h:559 [inline] kzalloc include/linux/slab.h:684 [inline] tomoyo_encode2.part.0+0x7c/0x140 security/tomoyo/realpath.c:45 tomoyo_encode2 security/tomoyo/realpath.c:31 [inline] tomoyo_encode+0x2c/0x44 security/tomoyo/realpath.c:80 tomoyo_realpath_from_path+0x84/0x1c0 security/tomoyo/realpath.c:288 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_number_perm+0xb4/0x20c security/tomoyo/file.c:723 tomoyo_file_ioctl+0x1c/0x30 security/tomoyo/tomoyo.c:329 security_file_ioctl+0x48/0x80 security/security.c:1495 __do_sys_ioctl fs/ioctl.c:747 [inline] __se_sys_ioctl fs/ioctl.c:739 [inline] __arm64_sys_ioctl+0x48/0xec fs/ioctl.c:739 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall arch/arm64/kernel/syscall.c:49 [inline] el0_svc_common.constprop.0+0x60/0x120 arch/arm64/kernel/syscall.c:129 do_el0_svc+0x74/0x90 arch/arm64/kernel/syscall.c:168 el0_svc+0x2c/0x54 arch/arm64/kernel/entry-common.c:416 el0_sync_handler+0x1a4/0x1b0 arch/arm64/kernel/entry-common.c:432 el0_sync+0x18c/0x1c0 arch/arm64/kernel/entry.S:699 Freed by task 28197: stack_trace_save+0x50/0x80 kernel/stacktrace.c:121 kasan_save_stack+0x28/0x60 mm/kasan/common.c:38 kasan_set_track+0x28/0x40 mm/kasan/common.c:46 kasan_set_free_info+0x20/0x30 mm/kasan/hw_tags.c:174 ____kasan_slab_free.constprop.0+0x184/0x1c0 mm/kasan/common.c:360 __kasan_slab_free+0x10/0x1c mm/kasan/common.c:367 kasan_slab_free include/linux/kasan.h:199 [inline] slab_free_hook mm/slub.c:1562 [inline] slab_free_freelist_hook+0x98/0x18c mm/slub.c:1600 slab_free mm/slub.c:3161 [inline] kfree+0x328/0x4b0 mm/slub.c:4213 tomoyo_path_number_perm+0x1dc/0x20c security/tomoyo/file.c:736 tomoyo_file_ioctl+0x1c/0x30 security/tomoyo/tomoyo.c:329 security_file_ioctl+0x48/0x80 security/security.c:1495 __do_sys_ioctl fs/ioctl.c:747 [inline] __se_sys_ioctl fs/ioctl.c:739 [inline] __arm64_sys_ioctl+0x48/0xec fs/ioctl.c:739 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall arch/arm64/kernel/syscall.c:49 [inline] el0_svc_common.constprop.0+0x60/0x120 arch/arm64/kernel/syscall.c:129 do_el0_svc+0x74/0x90 arch/arm64/kernel/syscall.c:168 el0_svc+0x2c/0x54 arch/arm64/kernel/entry-common.c:416 el0_sync_handler+0x1a4/0x1b0 arch/arm64/kernel/entry-common.c:432 el0_sync+0x18c/0x1c0 arch/arm64/kernel/entry.S:699 The buggy address belongs to the object at ffff000028b3e700 which belongs to the cache kmalloc-128 of size 128 The buggy address is located 80 bytes inside of 128-byte region [ffff000028b3e700, ffff000028b3e780) The buggy address belongs to the page: page:00000000e4ba3bc9 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x68b3e memcg:fcff0000297fe801 flags: 0x1ffffc000000200(slab) raw: 01ffffc000000200 fffffc0000c8e480 0000000800000005 f5ff000004001200 raw: 0000000000000000 0000000080100010 00000001ffffffff fcff0000297fe801 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff000028b3e500: f5 f5 f5 f5 fe fe fe fe fe fe fe fe fe fe fe fe ffff000028b3e600: fd fd fd fd fd fd fd fd fe fe fe fe fe fe fe fe >ffff000028b3e700: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ^ ffff000028b3e800: f6 f6 f6 f6 f6 f6 f6 f6 fe fe fe fe fe fe fe fe ffff000028b3e900: f5 f5 f5 f5 f5 fe fe fe fe fe fe fe fe fe fe fe ==================================================================