Warning: Permanently added '10.128.1.24' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 1494.021992] ================================================================== [ 1494.029540] BUG: KASAN: use-after-free in hooks_validate+0x139/0x160 [ 1494.036046] Read of size 2 at addr ffff8880b0ce16c0 by task syz-executor644/8124 [ 1494.043580] [ 1494.045219] CPU: 1 PID: 8124 Comm: syz-executor644 Not tainted 4.19.211-syzkaller #0 [ 1494.053102] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 1494.062472] Call Trace: [ 1494.065072] dump_stack+0x1fc/0x2ef executing program executing program executing program [ 1494.068717] print_address_description.cold+0x54/0x219 [ 1494.074042] kasan_report_error.cold+0x8a/0x1b9 [ 1494.078721] ? hooks_validate+0x139/0x160 [ 1494.082885] __asan_report_load2_noabort+0x88/0x90 [ 1494.087831] ? hooks_validate+0x139/0x160 [ 1494.091992] hooks_validate+0x139/0x160 [ 1494.096030] __nf_register_net_hook+0x1b0/0x480 [ 1494.100733] nf_register_net_hooks+0x4c/0x190 [ 1494.105255] synproxy_tg6_check+0x3c1/0x610 [ 1494.109586] ? synproxy_recv_client_ack+0x11a0/0x11a0 [ 1494.114800] xt_check_target+0x26c/0x650 executing program executing program executing program [ 1494.118876] ? textify_hooks.constprop.0+0x1a0/0x1a0 [ 1494.124006] ? wait_for_completion_io+0x10/0x10 [ 1494.128684] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 1494.133712] ? pcpu_alloc+0xc9/0x1190 [ 1494.137543] ? xt_find_target+0x6e/0x280 [ 1494.141627] find_check_entry.constprop.0+0x7f1/0x9e0 [ 1494.146921] ? do_add_counters+0x580/0x580 [ 1494.151279] ? trace_hardirqs_off+0x64/0x200 [ 1494.155714] ? kvfree+0x59/0x60 [ 1494.159037] ? lockdep_hardirqs_on+0x3a8/0x5c0 [ 1494.163632] translate_table+0xc46/0x16a0 [ 1494.167800] ? cleanup_entry+0x340/0x340 executing program executing program executing program [ 1494.171893] ? __might_fault+0x192/0x1d0 [ 1494.175966] do_ip6t_set_ctl+0x29d/0x430 [ 1494.180032] ? compat_do_ip6t_set_ctl+0x150/0x150 [ 1494.184899] ? nf_sockopt_find.constprop.0+0x22d/0x2a0 [ 1494.190277] nf_setsockopt+0x6f/0xc0 [ 1494.194003] ipv6_setsockopt+0x103/0x160 [ 1494.198081] rawv6_setsockopt+0x55/0x140 [ 1494.202150] __sys_setsockopt+0x14d/0x240 [ 1494.206421] ? kernel_accept+0x310/0x310 [ 1494.210498] ? up_read+0x17/0x110 [ 1494.213978] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe executing program executing program [ 1494.219441] __x64_sys_setsockopt+0xba/0x150 [ 1494.223859] ? lockdep_hardirqs_on+0x3a8/0x5c0 [ 1494.228451] do_syscall_64+0xf9/0x620 [ 1494.232311] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 1494.237501] RIP: 0033:0x7f5364a2f599 [ 1494.241220] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 18 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 [ 1494.260139] RSP: 002b:00007f53649d8208 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 executing program executing program executing program [ 1494.267852] RAX: ffffffffffffffda RBX: 0000000000000020 RCX: 00007f5364a2f599 [ 1494.275134] RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000003 [ 1494.282495] RBP: 00007f5364ab14a0 R08: 0000000000000001 R09: 00007f5364ab14a8 [ 1494.289775] R10: 0000000020000000 R11: 0000000000000246 R12: 00007f5364ab14ac [ 1494.297050] R13: 00007ffe160d3b2f R14: 00007f53649d8300 R15: 0000000000022000 [ 1494.304335] [ 1494.305961] Allocated by task 8124: [ 1494.309596] __kmalloc_node+0x4c/0x70 [ 1494.313429] kvmalloc_node+0x61/0xf0 [ 1494.317156] nf_hook_entries_grow+0x140/0x780 executing program executing program executing program [ 1494.321700] __nf_register_net_hook+0x15a/0x480 [ 1494.326390] nf_register_net_hooks+0x4c/0x190 [ 1494.330911] synproxy_tg6_check+0x3c1/0x610 [ 1494.335333] xt_check_target+0x26c/0x650 [ 1494.339400] find_check_entry.constprop.0+0x7f1/0x9e0 [ 1494.344591] translate_table+0xc46/0x16a0 [ 1494.348747] do_ip6t_set_ctl+0x29d/0x430 [ 1494.352815] nf_setsockopt+0x6f/0xc0 [ 1494.356536] ipv6_setsockopt+0x103/0x160 [ 1494.360601] rawv6_setsockopt+0x55/0x140 [ 1494.364663] __sys_setsockopt+0x14d/0x240 [ 1494.368826] __x64_sys_setsockopt+0xba/0x150 executing program executing program executing program [ 1494.373240] do_syscall_64+0xf9/0x620 [ 1494.377048] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 1494.382234] [ 1494.383863] Freed by task 8118: [ 1494.387147] kfree+0xcc/0x210 [ 1494.390254] kvfree+0x59/0x60 [ 1494.393363] rcu_process_callbacks+0x8ff/0x18b0 [ 1494.398034] __do_softirq+0x265/0x980 [ 1494.401836] [ 1494.403473] The buggy address belongs to the object at ffff8880b0ce16c0 [ 1494.403473] which belongs to the cache kmalloc-1024 of size 1024 [ 1494.416313] The buggy address is located 0 bytes inside of executing program executing program executing program [ 1494.416313] 1024-byte region [ffff8880b0ce16c0, ffff8880b0ce1ac0) [ 1494.428117] The buggy address belongs to the page: [ 1494.433057] page:ffffea0002c33800 count:1 mapcount:0 mapping:ffff88813bff0ac0 index:0x0 compound_mapcount: 0 [ 1494.443033] flags: 0xfff00000008100(slab|head) [ 1494.447620] raw: 00fff00000008100 ffffea0002c5be88 ffffea0002c38b88 ffff88813bff0ac0 [ 1494.455520] raw: 0000000000000000 ffff8880b0ce0040 0000000100000007 0000000000000000 [ 1494.463505] page dumped because: kasan: bad access detected [ 1494.469217] executing program executing program executing program [ 1494.470843] Memory state around the buggy address: [ 1494.475783] ffff8880b0ce1580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 1494.483242] ffff8880b0ce1600: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 1494.490629] >ffff8880b0ce1680: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 1494.497985] ^ [ 1494.503447] ffff8880b0ce1700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 1494.510815] ffff8880b0ce1780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb executing program executing program executing program executing program [ 1494.518175] ================================================================== [ 1494.525529] Disabling lock debugging due to kernel taint [ 1494.536261] Kernel panic - not syncing: panic_on_warn set ... [ 1494.536261] [ 1494.543643] CPU: 1 PID: 8124 Comm: syz-executor644 Tainted: G B 4.19.211-syzkaller #0 [ 1494.552951] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 1494.562303] Call Trace: [ 1494.564985] dump_stack+0x1fc/0x2ef [ 1494.568656] panic+0x26a/0x50e executing program [ 1494.571857] ? __warn_printk+0xf3/0xf3 [ 1494.575753] ? preempt_schedule_common+0x45/0xc0 [ 1494.580518] ? ___preempt_schedule+0x16/0x18 [ 1494.584936] ? trace_hardirqs_on+0x55/0x210 [ 1494.589271] kasan_end_report+0x43/0x49 [ 1494.593250] kasan_report_error.cold+0xa7/0x1b9 [ 1494.597935] ? hooks_validate+0x139/0x160 [ 1494.602270] __asan_report_load2_noabort+0x88/0x90 [ 1494.607306] ? hooks_validate+0x139/0x160 [ 1494.611466] hooks_validate+0x139/0x160 [ 1494.615544] __nf_register_net_hook+0x1b0/0x480 [ 1494.620233] nf_register_net_hooks+0x4c/0x190 executing program executing program executing program executing program [ 1494.624732] synproxy_tg6_check+0x3c1/0x610 [ 1494.629056] ? synproxy_recv_client_ack+0x11a0/0x11a0 [ 1494.634266] xt_check_target+0x26c/0x650 [ 1494.638329] ? textify_hooks.constprop.0+0x1a0/0x1a0 [ 1494.643438] ? wait_for_completion_io+0x10/0x10 [ 1494.648114] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 1494.653229] ? pcpu_alloc+0xc9/0x1190 [ 1494.657045] ? xt_find_target+0x6e/0x280 [ 1494.661133] find_check_entry.constprop.0+0x7f1/0x9e0 [ 1494.666338] ? do_add_counters+0x580/0x580 [ 1494.670579] ? trace_hardirqs_off+0x64/0x200 executing program executing program executing program executing program [ 1494.675000] ? kvfree+0x59/0x60 [ 1494.678286] ? lockdep_hardirqs_on+0x3a8/0x5c0 [ 1494.682872] translate_table+0xc46/0x16a0 [ 1494.687225] ? cleanup_entry+0x340/0x340 [ 1494.691287] ? __might_fault+0x192/0x1d0 [ 1494.695369] do_ip6t_set_ctl+0x29d/0x430 [ 1494.699452] ? compat_do_ip6t_set_ctl+0x150/0x150 [ 1494.704327] ? nf_sockopt_find.constprop.0+0x22d/0x2a0 [ 1494.709624] nf_setsockopt+0x6f/0xc0 [ 1494.713364] ipv6_setsockopt+0x103/0x160 [ 1494.717453] rawv6_setsockopt+0x55/0x140 executing program executing program executing program [ 1494.721560] __sys_setsockopt+0x14d/0x240 [ 1494.725727] ? kernel_accept+0x310/0x310 [ 1494.729827] ? up_read+0x17/0x110 [ 1494.733303] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 1494.738706] __x64_sys_setsockopt+0xba/0x150 [ 1494.743132] ? lockdep_hardirqs_on+0x3a8/0x5c0 [ 1494.747715] do_syscall_64+0xf9/0x620 [ 1494.751522] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 1494.756724] RIP: 0033:0x7f5364a2f599 executing program executing program executing program executing program [ 1494.760438] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 18 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 [ 1494.779348] RSP: 002b:00007f53649d8208 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 1494.787069] RAX: ffffffffffffffda RBX: 0000000000000020 RCX: 00007f5364a2f599 [ 1494.794352] RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000003 [ 1494.801708] RBP: 00007f5364ab14a0 R08: 0000000000000001 R09: 00007f5364ab14a8 [ 1494.808991] R10: 0000000020000000 R11: 0000000000000246 R12: 00007f5364ab14ac [ 1494.816352] R13: 00007ffe160d3b2f R14: 00007f53649d8300 R15: 0000000000022000 [ 1494.823839] Kernel Offset: disabled [ 1494.827453] Rebooting in 86400 seconds..