================================================================== BUG: KASAN: invalid-access in hlist_move_list include/linux/list.h:967 [inline] BUG: KASAN: invalid-access in collect_expired_timers kernel/time/timer.c:1483 [inline] BUG: KASAN: invalid-access in __run_timers.part.0+0xc0/0x230 kernel/time/timer.c:1720 Write at addr f8ff0000278b2da0 by task modprobe/5314 Pointer tag: [f8], memory tag: [fe] CPU: 1 PID: 5314 Comm: modprobe Not tainted 5.11.0-syzkaller #0 Hardware name: linux,dummy-virt (DT) Call trace: dump_backtrace+0x0/0x1b0 arch/arm64/kernel/stacktrace.c:117 show_stack+0x18/0x70 arch/arm64/kernel/stacktrace.c:196 __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:230 __kasan_report mm/kasan/report.c:396 [inline] kasan_report+0x134/0x380 mm/kasan/report.c:413 report_tag_fault arch/arm64/mm/fault.c:311 [inline] do_tag_recovery arch/arm64/mm/fault.c:325 [inline] __do_kernel_fault+0x178/0x1bc arch/arm64/mm/fault.c:369 do_bad_area arch/arm64/mm/fault.c:462 [inline] do_tag_check_fault+0x74/0x90 arch/arm64/mm/fault.c:717 do_mem_abort+0x44/0xbc arch/arm64/mm/fault.c:793 el1_abort+0x40/0x6c arch/arm64/kernel/entry-common.c:118 el1_sync_handler+0xac/0xd0 arch/arm64/kernel/entry-common.c:209 el1_sync+0x70/0x100 arch/arm64/kernel/entry.S:656 hlist_move_list include/linux/list.h:967 [inline] collect_expired_timers kernel/time/timer.c:1483 [inline] __run_timers.part.0+0xc0/0x230 kernel/time/timer.c:1720 __run_timers kernel/time/timer.c:1712 [inline] run_timer_softirq+0x3c/0x7c kernel/time/timer.c:1744 _stext+0x124/0x2ac do_softirq_own_stack include/linux/interrupt.h:577 [inline] invoke_softirq kernel/softirq.c:226 [inline] __irq_exit_rcu kernel/softirq.c:420 [inline] irq_exit+0xdc/0xfc kernel/softirq.c:444 __handle_domain_irq+0x80/0xe0 kernel/irq/irqdesc.c:692 handle_domain_irq include/linux/irqdesc.h:176 [inline] gic_handle_irq+0x50/0xd0 drivers/irqchip/irq-gic.c:370 el1_irq+0xb4/0x180 arch/arm64/kernel/entry.S:669 __rcu_read_unlock+0x0/0x40 arch/arm64/include/asm/atomic_ll_sc.h:222 d_absolute_path+0x54/0xa0 fs/d_path.c:205 tomoyo_get_absolute_path security/tomoyo/realpath.c:101 [inline] tomoyo_realpath_from_path+0xec/0x1c0 security/tomoyo/realpath.c:276 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0xe8/0x1d0 security/tomoyo/file.c:822 tomoyo_inode_getattr+0x1c/0x30 security/tomoyo/tomoyo.c:123 security_inode_getattr+0x3c/0x60 security/security.c:1280 vfs_getattr fs/stat.c:121 [inline] vfs_fstat+0x38/0xb0 fs/stat.c:146 __do_sys_newfstat+0x2c/0x70 fs/stat.c:386 __se_sys_newfstat fs/stat.c:383 [inline] __arm64_sys_newfstat+0x20/0x30 fs/stat.c:383 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall arch/arm64/kernel/syscall.c:49 [inline] el0_svc_common.constprop.0+0x74/0x190 arch/arm64/kernel/syscall.c:159 do_el0_svc+0x74/0x90 arch/arm64/kernel/syscall.c:198 el0_svc+0x14/0x20 arch/arm64/kernel/entry-common.c:365 el0_sync_handler+0x1a4/0x1b0 arch/arm64/kernel/entry-common.c:381 el0_sync+0x190/0x1c0 arch/arm64/kernel/entry.S:699 Allocated by task 5061: 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:401 [inline] ____kasan_kmalloc+0xe8/0x160 mm/kasan/common.c:429 __kasan_slab_alloc+0x1c/0x30 mm/kasan/common.c:437 kasan_slab_alloc include/linux/kasan.h:209 [inline] slab_post_alloc_hook mm/slab.h:512 [inline] slab_alloc_node mm/slub.c:2892 [inline] slab_alloc mm/slub.c:2900 [inline] __kmalloc_track_caller+0x1a8/0x324 mm/slub.c:4479 kmemdup+0x44/0x80 mm/util.c:128 kmemdup include/linux/string.h:520 [inline] neigh_sysctl_register+0x44/0x1b0 net/core/neighbour.c:3630 addrconf_sysctl_register+0x54/0xc0 net/ipv6/addrconf.c:6974 ipv6_add_dev+0x28c/0x4e0 net/ipv6/addrconf.c:443 addrconf_notify+0x250/0x94c net/ipv6/addrconf.c:3489 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0x54/0x74 kernel/notifier.c:410 call_netdevice_notifiers_info+0x58/0xa4 net/core/dev.c:2040 call_netdevice_notifiers_extack net/core/dev.c:2052 [inline] call_netdevice_notifiers net/core/dev.c:2066 [inline] register_netdevice+0x450/0x59c net/core/dev.c:10089 veth_newlink+0x1c0/0x38c drivers/net/veth.c:1390 __rtnl_newlink+0x604/0x800 net/core/rtnetlink.c:3443 rtnl_newlink+0x70/0xa0 net/core/rtnetlink.c:3491 rtnetlink_rcv_msg+0x118/0x334 net/core/rtnetlink.c:5553 netlink_rcv_skb+0x5c/0x130 net/netlink/af_netlink.c:2494 rtnetlink_rcv+0x18/0x2c net/core/rtnetlink.c:5571 netlink_unicast_kernel net/netlink/af_netlink.c:1304 [inline] netlink_unicast+0x25c/0x320 net/netlink/af_netlink.c:1330 netlink_sendmsg+0x1d4/0x3e4 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0x54/0x60 net/socket.c:672 __sys_sendto+0x118/0x14c net/socket.c:1975 __do_sys_sendto net/socket.c:1987 [inline] __se_sys_sendto net/socket.c:1983 [inline] __arm64_sys_sendto+0x2c/0x40 net/socket.c:1983 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall arch/arm64/kernel/syscall.c:49 [inline] el0_svc_common.constprop.0+0x74/0x190 arch/arm64/kernel/syscall.c:159 do_el0_svc+0x74/0x90 arch/arm64/kernel/syscall.c:198 el0_svc+0x14/0x20 arch/arm64/kernel/entry-common.c:365 el0_sync_handler+0x1a4/0x1b0 arch/arm64/kernel/entry-common.c:381 el0_sync+0x190/0x1c0 arch/arm64/kernel/entry.S:699 Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff0000278b2000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1440 bytes to the right of 2048-byte region [ffff0000278b2000, ffff0000278b2800) The buggy address belongs to the page: page:0000000008fdaa03 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x678b0 head:0000000008fdaa03 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x1ffffc000010200(slab|head) raw: 01ffffc000010200 dead000000000100 dead000000000122 f4ff000004801a00 raw: 0000000000000000 0000000000080008 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000278b2b00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ffff0000278b2c00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe >ffff0000278b2d00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ^ ffff0000278b2e00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ffff0000278b2f00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ==================================================================