ci starts bisection 2023-03-09 18:52:55.211283454 +0000 UTC m=+41715.333809993 bisecting fixing commit since 0b1dcc2cf55ae6523c6fbd0d741b3ac28c9f4536 building syzkaller on 74a66371788c1eb22bde25c9c422c7754596d7f5 ensuring issue is reproducible on original commit 0b1dcc2cf55ae6523c6fbd0d741b3ac28c9f4536 testing commit 0b1dcc2cf55ae6523c6fbd0d741b3ac28c9f4536 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 1200d5d32b461eee4dd302e76c911cfa247e11d0e33d49c4cdbea1e4a96b7b27 all runs: crashed: WARNING in tcp_retransmit_timer testing current HEAD 6a98c9cae232800c319ed69e1063480d31430887 testing commit 6a98c9cae232800c319ed69e1063480d31430887 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 620851d58229c4705438f85508313d6a4b7ccc55353a58e137c4fb9378ad2ed2 all runs: crashed: KASAN: invalid-free in skb_release_data revisions tested: 2, total time: 34m24.758866582s (build: 24m38.726283237s, test: 8m50.860001089s) the crash still happens on HEAD commit msg: Merge tag 'fs_for_v6.3-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs crash: KASAN: invalid-free in skb_release_data ================================================================== BUG: KASAN: invalid-free in skb_release_data+0x400/0x650 net/core/skbuff.c:901 Free of addr ffff88802c086800 by task syz-executor.0/6312 CPU: 0 PID: 6312 Comm: syz-executor.0 Not tainted 6.3.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x64/0xb0 lib/dump_stack.c:106 print_address_description.constprop.0+0x2c/0x3c0 mm/kasan/report.c:319 print_report mm/kasan/report.c:430 [inline] kasan_report_invalid_free+0xe8/0x100 mm/kasan/report.c:501 ____kasan_slab_free+0x180/0x1a0 mm/kasan/common.c:216 kasan_slab_free include/linux/kasan.h:162 [inline] __cache_free mm/slab.c:3390 [inline] __do_kmem_cache_free mm/slab.c:3577 [inline] kmem_cache_free mm/slab.c:3602 [inline] kmem_cache_free+0x108/0x3e0 mm/slab.c:3595 skb_release_data+0x400/0x650 net/core/skbuff.c:901 skb_release_all net/core/skbuff.c:966 [inline] napi_consume_skb net/core/skbuff.c:1271 [inline] napi_consume_skb+0xf7/0x1c0 net/core/skbuff.c:1249 skb_defer_free_flush net/core/dev.c:6629 [inline] net_rx_action+0x318/0xcb0 net/core/dev.c:6650 __do_softirq+0x2e3/0xae3 kernel/softirq.c:571 do_softirq.part.0+0xde/0x130 kernel/softirq.c:472 do_softirq kernel/softirq.c:464 [inline] __local_bh_enable_ip+0x106/0x130 kernel/softirq.c:396 local_bh_enable include/linux/bottom_half.h:33 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:843 [inline] ip_finish_output2+0x634/0x1c80 net/ipv4/ip_output.c:229 dst_output include/net/dst.h:444 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] __ip_queue_xmit+0x74c/0x1ea0 net/ipv4/ip_output.c:532 __tcp_transmit_skb+0x16d1/0x3900 net/ipv4/tcp_output.c:1399 tcp_transmit_skb net/ipv4/tcp_output.c:1417 [inline] tcp_write_xmit+0xd4e/0x6840 net/ipv4/tcp_output.c:2693 __tcp_push_pending_frames+0x91/0x320 net/ipv4/tcp_output.c:2877 tcp_push_pending_frames include/net/tcp.h:1946 [inline] tcp_data_snd_check net/ipv4/tcp_input.c:5510 [inline] tcp_rcv_established+0x7b1/0x2290 net/ipv4/tcp_input.c:6019 tcp_v4_do_rcv+0x53b/0x800 net/ipv4/tcp_ipv4.c:1721 sk_backlog_rcv include/net/sock.h:1113 [inline] __release_sock+0x117/0x360 net/core/sock.c:2921 release_sock+0x4e/0x170 net/core/sock.c:3488 sk_stream_wait_memory+0x5a5/0xda0 net/core/stream.c:145 tcp_sendmsg_locked+0x61a/0x2bc0 net/ipv4/tcp.c:1446 tcp_sendmsg+0x27/0x40 net/ipv4/tcp.c:1484 sock_sendmsg_nosec net/socket.c:722 [inline] sock_sendmsg+0xc0/0x150 net/socket.c:745 ____sys_sendmsg+0x5ff/0x8f0 net/socket.c:2504 ___sys_sendmsg+0xdb/0x160 net/socket.c:2558 __sys_sendmsg+0xc7/0x160 net/socket.c:2587 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fe5f9a8c0d9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe5fa792168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fe5f9babf80 RCX: 00007fe5f9a8c0d9 RDX: 0000000000000000 RSI: 00000000200015c0 RDI: 0000000000000003 RBP: 00007fe5f9ae7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff127ddf9f R14: 00007fe5fa792300 R15: 0000000000022000 Allocated by task 6313: kasan_save_stack+0x22/0x40 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] ____kasan_kmalloc mm/kasan/common.c:333 [inline] __kasan_kmalloc+0xa3/0xb0 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:196 [inline] __do_kmalloc_node mm/slab_common.c:967 [inline] __kmalloc_node_track_caller+0x5b/0xc0 mm/slab_common.c:987 kmalloc_reserve+0xbf/0x1d0 net/core/skbuff.c:539 pskb_expand_head+0x1d9/0xfe0 net/core/skbuff.c:1995 __skb_unclone_keeptruesize+0x80/0x1f0 net/core/skbuff.c:2094 skb_unclone_keeptruesize include/linux/skbuff.h:1910 [inline] tcp_trim_head+0x2f3/0x560 net/ipv4/tcp_output.c:1667 tcp_tso_acked net/ipv4/tcp_input.c:3204 [inline] tcp_clean_rtx_queue net/ipv4/tcp_input.c:3270 [inline] tcp_ack+0x2bca/0x52d0 net/ipv4/tcp_input.c:3884 tcp_rcv_established+0x54f/0x2290 net/ipv4/tcp_input.c:6006 tcp_v4_do_rcv+0x53b/0x800 net/ipv4/tcp_ipv4.c:1721 sk_backlog_rcv include/net/sock.h:1113 [inline] __release_sock+0x117/0x360 net/core/sock.c:2921 release_sock+0x4e/0x170 net/core/sock.c:3488 sk_wait_data+0x158/0x430 net/core/sock.c:2964 tcp_recvmsg_locked+0x779/0x2060 net/ipv4/tcp.c:2566 tcp_recvmsg+0xdf/0x490 net/ipv4/tcp.c:2681 inet_recvmsg+0xf4/0x4c0 net/ipv4/af_inet.c:859 sock_recvmsg_nosec net/socket.c:1015 [inline] sock_recvmsg+0xcd/0x160 net/socket.c:1036 ____sys_recvmsg+0x1b2/0x560 net/socket.c:2723 ___sys_recvmsg+0xc3/0x130 net/socket.c:2765 __sys_recvmsg+0xc4/0x160 net/socket.c:2795 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff88802c086800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 0 bytes inside of 1024-byte region [ffff88802c086800, ffff88802c086c00) The buggy address belongs to the physical page: page:ffffea0000b02180 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2c086 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffff888011440700 ffffea0000a539d0 ffffea0001d88550 raw: 0000000000000000 ffff88802c086000 0000000100000002 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x3c2020(__GFP_HIGH|__GFP_NOWARN|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_THISNODE), pid 5069, tgid 5069 (kworker/1:3), ts 71667065805, free_ts 27313402233 prep_new_page mm/page_alloc.c:2552 [inline] get_page_from_freelist+0x1190/0x2f80 mm/page_alloc.c:4325 __alloc_pages+0x1cb/0x5c0 mm/page_alloc.c:5591 __alloc_pages_node include/linux/gfp.h:237 [inline] kmem_getpages mm/slab.c:1360 [inline] cache_grow_begin+0x9b/0x3b0 mm/slab.c:2570 cache_alloc_refill+0x27f/0x380 mm/slab.c:2943 ____cache_alloc mm/slab.c:3019 [inline] ____cache_alloc mm/slab.c:3002 [inline] __do_cache_alloc mm/slab.c:3202 [inline] slab_alloc_node mm/slab.c:3250 [inline] __kmem_cache_alloc_node+0x360/0x3f0 mm/slab.c:3541 __do_kmalloc_node mm/slab_common.c:966 [inline] __kmalloc_node_track_caller+0x4b/0xc0 mm/slab_common.c:987 kmalloc_reserve+0xbf/0x1d0 net/core/skbuff.c:539 __alloc_skb+0xd8/0x280 net/core/skbuff.c:608 alloc_skb include/linux/skbuff.h:1277 [inline] nlmsg_new include/net/netlink.h:1003 [inline] inet6_rt_notify+0xd5/0x270 net/ipv6/route.c:6166 fib6_add_rt2node net/ipv6/ip6_fib.c:1251 [inline] fib6_add+0x1910/0x3610 net/ipv6/ip6_fib.c:1477 __ip6_ins_rt net/ipv6/route.c:1302 [inline] ip6_ins_rt+0xad/0x100 net/ipv6/route.c:1312 __ipv6_ifa_notify+0x708/0x930 net/ipv6/addrconf.c:6162 ipv6_ifa_notify net/ipv6/addrconf.c:6201 [inline] addrconf_dad_completed+0x110/0xce0 net/ipv6/addrconf.c:4214 addrconf_dad_work+0x5e7/0x1130 net/ipv6/addrconf.c:4162 process_one_work+0x8ba/0x15a0 kernel/workqueue.c:2390 worker_thread+0x59c/0xec0 kernel/workqueue.c:2537 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1453 [inline] free_pcp_prepare+0x65a/0xb40 mm/page_alloc.c:1503 free_unref_page_prepare mm/page_alloc.c:3387 [inline] free_unref_page+0x1d/0x490 mm/page_alloc.c:3482 slab_destroy mm/slab.c:1613 [inline] slabs_destroy+0x85/0xc0 mm/slab.c:1633 cache_flusharray mm/slab.c:3361 [inline] ___cache_free+0x2ae/0x3d0 mm/slab.c:3424 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x4f/0x1a0 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x192/0x220 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x63/0x90 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook mm/slab.h:769 [inline] slab_alloc_node mm/slab.c:3257 [inline] __kmem_cache_alloc_node+0x1fc/0x3f0 mm/slab.c:3541 kmalloc_trace+0x26/0x60 mm/slab_common.c:1061 kmalloc include/linux/slab.h:580 [inline] kzalloc include/linux/slab.h:720 [inline] tomoyo_print_bprm security/tomoyo/audit.c:26 [inline] tomoyo_init_log+0xb9b/0x1d40 security/tomoyo/audit.c:264 tomoyo_supervisor+0x2f4/0xc70 security/tomoyo/common.c:2088 tomoyo_audit_env_log security/tomoyo/environ.c:36 [inline] tomoyo_env_perm+0x15a/0x1c0 security/tomoyo/environ.c:63 tomoyo_environ security/tomoyo/domain.c:672 [inline] tomoyo_find_next_domain+0xbe5/0x1d00 security/tomoyo/domain.c:879 tomoyo_bprm_check_security security/tomoyo/tomoyo.c:101 [inline] tomoyo_bprm_check_security+0x10d/0x190 security/tomoyo/tomoyo.c:91 security_bprm_check+0x38/0x80 security/security.c:897 search_binary_handler fs/exec.c:1724 [inline] exec_binprm fs/exec.c:1778 [inline] bprm_execve fs/exec.c:1853 [inline] bprm_execve+0x5e8/0x1600 fs/exec.c:1809 Memory state around the buggy address: ffff88802c086700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88802c086780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88802c086800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88802c086880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88802c086900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================