hfs: unable to parse mount options ================================================================== BUG: KASAN: use-after-free in rtnetlink_put_metrics+0x621/0x690 net/core/rtnetlink.c:754 Read of size 4 at addr ffff8801cceef600 by task syz-executor5/4368 CPU: 1 PID: 4368 Comm: syz-executor5 Not tainted 4.18.0-rc7-next-20180802+ #30 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1c9/0x2b4 lib/dump_stack.c:113 print_address_description+0x6c/0x20b mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.7+0x242/0x30d mm/kasan/report.c:412 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:432 rtnetlink_put_metrics+0x621/0x690 net/core/rtnetlink.c:754 rt6_fill_node+0x7d9/0x1540 net/ipv6/route.c:4753 inet6_rt_notify+0x161/0x2c0 net/ipv6/route.c:4985 fib6_del_route net/ipv6/ip6_fib.c:1788 [inline] fib6_del+0xf4d/0x1310 net/ipv6/ip6_fib.c:1815 fib6_clean_node+0x3ee/0x5e0 net/ipv6/ip6_fib.c:1976 fib6_walk_continue+0x4b1/0x8e0 net/ipv6/ip6_fib.c:1899 fib6_walk+0x95/0xf0 net/ipv6/ip6_fib.c:1947 fib6_clean_tree+0x1ea/0x360 net/ipv6/ip6_fib.c:2024 __fib6_clean_all+0x21c/0x420 net/ipv6/ip6_fib.c:2040 fib6_clean_all net/ipv6/ip6_fib.c:2051 [inline] fib6_run_gc+0x182/0x3d0 net/ipv6/ip6_fib.c:2107 fib6_gc_timer_cb+0x20/0x30 net/ipv6/ip6_fib.c:2124 call_timer_fn+0x242/0x970 kernel/time/timer.c:1326 expire_timers kernel/time/timer.c:1363 [inline] __run_timers+0x7a6/0xc70 kernel/time/timer.c:1666 run_timer_softirq+0x4c/0x70 kernel/time/timer.c:1692 __do_softirq+0x2e8/0xb17 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x1d4/0x210 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:527 [inline] smp_apic_timer_interrupt+0x186/0x730 arch/x86/kernel/apic/apic.c:1055 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:867 RIP: 0010:find_get_entry+0x275/0x1120 mm/filemap.c:1394 Code: 85 a1 0c 00 00 41 c6 84 24 33 fd ff ff 00 48 8b 85 90 fc ff ff 48 8d 78 18 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 08 0e 00 00 48 8b 85 90 fc ff ff 49 c7 84 24 38 RSP: 0018:ffff88019cbae088 EFLAGS: 00000a02 ORIG_RAX: ffffffffffffff13 RAX: dffffc0000000000 RBX: ffff8801d53bb4b8 RCX: 0000000000000000 RDX: 1ffff10033975c2a RSI: ffffffff819a850e RDI: ffff88019cbae150 RBP: ffff88019cbae440 R08: ffff88019cba0700 R09: ffffed0033975c1f R10: ffffed0033975c1f R11: 0000000000000003 R12: ffff88019cbae418 R13: dffffc0000000000 R14: 0000000000000001 R15: ffff8801c0a1c000 pagecache_get_page+0x11e/0xe40 mm/filemap.c:1503 find_get_page_flags include/linux/pagemap.h:278 [inline] ext4_mb_load_buddy_gfp+0x7d0/0x1e90 fs/ext4/mballoc.c:1189 ext4_mb_load_buddy fs/ext4/mballoc.c:1240 [inline] ext4_mb_regular_allocator+0x649/0x15f0 fs/ext4/mballoc.c:2188 ext4_mb_new_blocks+0x1c9b/0x4740 fs/ext4/mballoc.c:4537 ext4_ext_map_blocks+0x2dc0/0x62e0 fs/ext4/extents.c:4467 ext4_map_blocks+0x8f3/0x1b60 fs/ext4/inode.c:636 ext4_getblk+0x10e/0x630 fs/ext4/inode.c:966 ext4_bread+0x95/0x2b0 fs/ext4/inode.c:1016 ext4_append+0x14e/0x370 fs/ext4/namei.c:66 ext4_init_new_dir fs/ext4/namei.c:2588 [inline] ext4_mkdir+0x532/0xe60 fs/ext4/namei.c:2635 vfs_mkdir+0x42e/0x6b0 fs/namei.c:3817 do_mkdirat+0x27b/0x310 fs/namei.c:3840 __do_sys_mkdir fs/namei.c:3856 [inline] __se_sys_mkdir fs/namei.c:3854 [inline] __x64_sys_mkdir+0x5c/0x80 fs/namei.c:3854 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455e47 Code: 1f 40 00 b8 5a 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 ad c0 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 53 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 8d c0 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffe9ab591f8 EFLAGS: 00000202 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 0000000000056133 RCX: 0000000000455e47 RDX: 00007ffe9ab59215 RSI: 00000000000001ff RDI: 00007ffe9ab59210 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000005 R10: 0000000000000064 R11: 0000000000000202 R12: 0000000000000a3b R13: 000000000005612a R14: 00000000000002d6 R15: badc0ffeebadface Allocated by task 31641: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc4/0xe0 mm/kasan/kasan.c:553 kmem_cache_alloc_trace+0x152/0x780 mm/slab.c:3620 kmalloc include/linux/slab.h:513 [inline] kzalloc include/linux/slab.h:707 [inline] fib6_metric_set+0x163/0x2c0 net/ipv6/ip6_fib.c:645 fib6_add_rt2node+0xe36/0x27f0 net/ipv6/ip6_fib.c:1000 fib6_add+0xaae/0x14d0 net/ipv6/ip6_fib.c:1308 __ip6_ins_rt+0x54/0x80 net/ipv6/route.c:1163 ip6_route_add+0x6d/0xc0 net/ipv6/route.c:3171 addrconf_prefix_route.isra.48+0x51d/0x720 net/ipv6/addrconf.c:2345 inet6_addr_modify net/ipv6/addrconf.c:4625 [inline] inet6_rtm_newaddr+0x112e/0x1b50 net/ipv6/addrconf.c:4741 rtnetlink_rcv_msg+0x46e/0xc30 net/core/rtnetlink.c:4711 netlink_rcv_skb+0x172/0x440 net/netlink/af_netlink.c:2454 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:4729 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline] netlink_unicast+0x5a0/0x760 net/netlink/af_netlink.c:1343 netlink_sendmsg+0xa18/0xfc0 net/netlink/af_netlink.c:1908 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xd5/0x120 net/socket.c:632 ___sys_sendmsg+0x7fd/0x930 net/socket.c:2115 __sys_sendmsg+0x11d/0x290 net/socket.c:2153 __do_sys_sendmsg net/socket.c:2162 [inline] __se_sys_sendmsg net/socket.c:2160 [inline] __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2160 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 4368: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x11a/0x170 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3498 [inline] kfree+0xd9/0x260 mm/slab.c:3813 fib6_metrics_release+0x77/0x90 net/ipv6/ip6_fib.c:179 fib6_drop_pcpu_from net/ipv6/ip6_fib.c:899 [inline] fib6_purge_rt+0x5ec/0x7f0 net/ipv6/ip6_fib.c:934 fib6_del_route net/ipv6/ip6_fib.c:1784 [inline] fib6_del+0xc11/0x1310 net/ipv6/ip6_fib.c:1815 fib6_clean_node+0x3ee/0x5e0 net/ipv6/ip6_fib.c:1976 fib6_walk_continue+0x4b1/0x8e0 net/ipv6/ip6_fib.c:1899 fib6_walk+0x95/0xf0 net/ipv6/ip6_fib.c:1947 fib6_clean_tree+0x1ea/0x360 net/ipv6/ip6_fib.c:2024 __fib6_clean_all+0x21c/0x420 net/ipv6/ip6_fib.c:2040 fib6_clean_all net/ipv6/ip6_fib.c:2051 [inline] fib6_run_gc+0x182/0x3d0 net/ipv6/ip6_fib.c:2107 fib6_gc_timer_cb+0x20/0x30 net/ipv6/ip6_fib.c:2124 call_timer_fn+0x242/0x970 kernel/time/timer.c:1326 expire_timers kernel/time/timer.c:1363 [inline] __run_timers+0x7a6/0xc70 kernel/time/timer.c:1666 run_timer_softirq+0x4c/0x70 kernel/time/timer.c:1692 __do_softirq+0x2e8/0xb17 kernel/softirq.c:292 The buggy address belongs to the object at ffff8801cceef600 which belongs to the cache kmalloc-96 of size 96 The buggy address is located 0 bytes inside of 96-byte region [ffff8801cceef600, ffff8801cceef660) The buggy address belongs to the page: page:ffffea000733bbc0 count:1 mapcount:0 mapping:ffff8801dac004c0 index:0x0 flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffffea0007259c88 ffffea0006b83008 ffff8801dac004c0 raw: 0000000000000000 ffff8801cceef000 0000000100000020 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801cceef500: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff8801cceef580: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc >ffff8801cceef600: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ^ ffff8801cceef680: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc ffff8801cceef700: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc ==================================================================