BUG: please report to dccp@vger.kernel.org => prev = 0, last = 0 at net/dccp/ccids/lib/packet_history.c:425/tfrc_rx_hist_sample_rtt() CPU: 1 PID: 13297 Comm: syz-executor2 Not tainted 4.16.0+ #13 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1a7/0x27d lib/dump_stack.c:53 tfrc_rx_hist_sample_rtt+0x407/0x4d0 net/dccp/ccids/lib/packet_history.c:422 ccid3_hc_rx_packet_recv+0x696/0xeb3 net/dccp/ccids/ccid3.c:765 ccid_hc_rx_packet_recv net/dccp/ccid.h:185 [inline] dccp_deliver_input_to_ccids+0xd9/0x250 net/dccp/input.c:180 dccp_rcv_established+0x88/0xb0 net/dccp/input.c:378 dccp_v4_do_rcv+0x135/0x160 net/dccp/ipv4.c:653 sk_backlog_rcv include/net/sock.h:908 [inline] __sk_receive_skb+0x2ec/0xc00 net/core/sock.c:513 dccp_v4_rcv+0xf6c/0x1cb0 net/dccp/ipv4.c:874 ip_local_deliver_finish+0x2ed/0xbf0 net/ipv4/ip_input.c:216 NF_HOOK include/linux/netfilter.h:288 [inline] ip_local_deliver+0x1ce/0x6e0 net/ipv4/ip_input.c:257 dst_input include/net/dst.h:449 [inline] ip_rcv_finish+0x719/0x2030 net/ipv4/ip_input.c:397 NF_HOOK include/linux/netfilter.h:288 [inline] ip_rcv+0xb7f/0x1820 net/ipv4/ip_input.c:493 __netif_receive_skb_core+0x1a52/0x3480 net/core/dev.c:4562 __netif_receive_skb+0x2c/0x1b0 net/core/dev.c:4627 process_backlog+0x203/0x740 net/core/dev.c:5307 napi_poll net/core/dev.c:5705 [inline] net_rx_action+0x788/0x1910 net/core/dev.c:5771 __do_softirq+0x2d7/0xb85 kernel/softirq.c:285 do_softirq_own_stack+0x2a/0x40 arch/x86/entry/entry_64.S:1045 do_softirq.part.19+0x14d/0x190 kernel/softirq.c:329 do_softirq kernel/softirq.c:177 [inline] __local_bh_enable_ip+0x1ee/0x230 kernel/softirq.c:182 local_bh_enable include/linux/bottom_half.h:32 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:728 [inline] ip_finish_output2+0x962/0x1550 net/ipv4/ip_output.c:231 ip_finish_output+0x864/0xd60 net/ipv4/ip_output.c:317 NF_HOOK_COND include/linux/netfilter.h:277 [inline] ip_output+0x1d2/0x860 net/ipv4/ip_output.c:405 dst_output include/net/dst.h:443 [inline] ip_local_out+0x95/0x160 net/ipv4/ip_output.c:124 ip_queue_xmit+0x8c0/0x1920 net/ipv4/ip_output.c:504 dccp_transmit_skb+0x9ac/0x10f0 net/dccp/output.c:142 dccp_xmit_packet+0x215/0x740 net/dccp/output.c:281 dccp_write_xmit+0x17d/0x1d0 net/dccp/output.c:363 dccp_sendmsg+0x9da/0xe60 net/dccp/proto.c:818 inet_sendmsg+0x11f/0x5e0 net/ipv4/af_inet.c:764 sock_sendmsg_nosec net/socket.c:630 [inline] sock_sendmsg+0xca/0x110 net/socket.c:640 ___sys_sendmsg+0x767/0x8b0 net/socket.c:2116 __sys_sendmsg+0x105/0x250 net/socket.c:2154 SYSC_sendmsg net/socket.c:2163 [inline] SyS_sendmsg+0x29/0x30 net/socket.c:2161 do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x4552d9 RSP: 002b:00007fd10794ec68 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fd10794f6d4 RCX: 00000000004552d9 RDX: 0000000000000040 RSI: 0000000020000200 RDI: 0000000000000015 RBP: 000000000072c010 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000004d4 R14: 00000000006fa480 R15: 0000000000000002 dccp_close: ABORT with 1 bytes unread hfs: type requires a 4 character value hfs: unable to parse mount options hfs: type requires a 4 character value hfs: unable to parse mount options dccp_close: ABORT with 1 bytes unread ================================================================== BUG: KASAN: slab-out-of-bounds in atomic_read include/asm-generic/atomic-instrumented.h:21 [inline] BUG: KASAN: slab-out-of-bounds in refcount_read include/linux/refcount.h:42 [inline] BUG: KASAN: slab-out-of-bounds in check_net include/net/net_namespace.h:228 [inline] BUG: KASAN: slab-out-of-bounds in rds_destroy_pending net/rds/rds.h:868 [inline] BUG: KASAN: slab-out-of-bounds in rds_cong_queue_updates+0x20a/0x520 net/rds/cong.c:226 Read of size 4 at addr ffff88018f04e104 by task syz-executor6/13351 CPU: 1 PID: 13351 Comm: syz-executor6 Not tainted 4.16.0+ #13 dccp_close: ABORT with 1 bytes unread Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1a7/0x27d lib/dump_stack.c:53 print_address_description+0x73/0x250 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report+0x23c/0x360 mm/kasan/report.c:412 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x137/0x190 mm/kasan/kasan.c:267 kasan_check_read+0x11/0x20 mm/kasan/kasan.c:272 atomic_read include/asm-generic/atomic-instrumented.h:21 [inline] refcount_read include/linux/refcount.h:42 [inline] check_net include/net/net_namespace.h:228 [inline] rds_destroy_pending net/rds/rds.h:868 [inline] rds_cong_queue_updates+0x20a/0x520 net/rds/cong.c:226 rds_recv_rcvbuf_delta.part.2+0x289/0x320 net/rds/recv.c:118 rds_recv_rcvbuf_delta net/rds/recv.c:377 [inline] rds_recv_incoming+0xec1/0x11e0 net/rds/recv.c:377 rds_loop_xmit+0x149/0x320 net/rds/loop.c:82 rds_send_xmit+0xbe5/0x26e0 net/rds/send.c:355 rds_sendmsg+0x1893/0x20a0 net/rds/send.c:1208 sock_sendmsg_nosec net/socket.c:630 [inline] sock_sendmsg+0xca/0x110 net/socket.c:640 __sys_sendto+0x365/0x5a0 net/socket.c:1788 SYSC_sendto net/socket.c:1800 [inline] SyS_sendto+0x40/0x60 net/socket.c:1796 do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x4552d9 RSP: 002b:00007fb2e80bec68 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007fb2e80bf6d4 RCX: 00000000004552d9 RDX: 0000000000000481 RSI: 0000000020f7db7f RDI: 0000000000000016 RBP: 000000000072bea0 R08: 000000002069affb R09: 0000000000000010 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000004f2 R14: 00000000006fa750 R15: 0000000000000000 Allocated by task 2687: save_stack+0x43/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:552 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:489 kmem_cache_alloc+0x12e/0x760 mm/slab.c:3542 getname_flags+0xcb/0x580 fs/namei.c:138 user_path_at_empty+0x2d/0x50 fs/namei.c:2569 user_path_at include/linux/namei.h:57 [inline] vfs_statx+0xe9/0x190 fs/stat.c:185 vfs_stat include/linux/fs.h:3075 [inline] SYSC_newstat+0x87/0xf0 fs/stat.c:337 SyS_newstat+0x1d/0x30 fs/stat.c:333 do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 2687: save_stack+0x43/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] __kasan_slab_free+0x11a/0x170 mm/kasan/kasan.c:520 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:527 __cache_free mm/slab.c:3486 [inline] kmem_cache_free+0x83/0x2a0 mm/slab.c:3744 putname+0xee/0x130 fs/namei.c:258 filename_lookup+0x315/0x500 fs/namei.c:2324 user_path_at_empty+0x40/0x50 fs/namei.c:2569 user_path_at include/linux/namei.h:57 [inline] vfs_statx+0xe9/0x190 fs/stat.c:185 vfs_stat include/linux/fs.h:3075 [inline] SYSC_newstat+0x87/0xf0 fs/stat.c:337 SyS_newstat+0x1d/0x30 fs/stat.c:333 do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x42/0xb7 The buggy address belongs to the object at ffff88018f04ed00 which belongs to the cache names_cache of size 4096 The buggy address is located 3068 bytes to the left of 4096-byte region [ffff88018f04ed00, ffff88018f04fd00) The buggy address belongs to the page: page:ffffea00063c1380 count:1 mapcount:0 mapping:ffff88018f04ed00 index:0x0 compound_mapcount: 0 flags: 0x2fffc0000008100(slab|head) raw: 02fffc0000008100 ffff88018f04ed00 0000000000000000 0000000100000001 raw: ffffea0006c633a0 ffffea0006ce71a0 ffff8801dad7e600 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88018f04e000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88018f04e080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88018f04e100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88018f04e180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88018f04e200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================