================================================================== BUG: KASAN: stack-out-of-bounds in csd_lock_record+0xcb/0xe0 kernel/smp.c:118 Read of size 8 at addr ffffc90001e27550 by task syz-executor.4/8476 CPU: 0 PID: 8476 Comm: syz-executor.4 Not tainted 5.8.0-rc3-next-20200703-syzkaller #0 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+0x18f/0x20d lib/dump_stack.c:118 print_address_description.constprop.0.cold+0x5/0x436 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:530 csd_lock_record+0xcb/0xe0 kernel/smp.c:118 flush_smp_call_function_queue+0x285/0x730 kernel/smp.c:391 __sysvec_call_function_single+0x98/0x490 arch/x86/kernel/smp.c:248 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:706 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline] sysvec_call_function_single+0xe0/0x120 arch/x86/kernel/smp.c:243 asm_sysvec_call_function_single+0x12/0x20 arch/x86/include/asm/idtentry.h:604 RIP: 0010:should_resched arch/x86/include/asm/preempt.h:102 [inline] RIP: 0010:__local_bh_enable_ip+0x189/0x250 kernel/softirq.c:196 Code: 89 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 0f 85 c4 00 00 00 48 83 3d 40 59 6e 08 00 74 7b fb 66 0f 1f 44 00 00 <65> 8b 05 a0 58 bb 7e 85 c0 74 6b 5b 5d 41 5c c3 80 3d c1 7c 63 09 RSP: 0018:ffffc90001f3f8c0 EFLAGS: 00000286 RAX: 1ffffffff1369fe2 RBX: 0000000000000201 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffffffff8146a5a9 RBP: ffffffff868b8d5d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff88804d18c5c0 R13: ffffc90004639000 R14: 0000000000000001 R15: 000000000000065b spin_unlock_bh include/linux/spinlock.h:399 [inline] htable_selective_cleanup+0x22d/0x310 net/netfilter/xt_hashlimit.c:374 htable_put.part.0+0x322/0x4c0 net/netfilter/xt_hashlimit.c:430 htable_put net/netfilter/xt_hashlimit.c:424 [inline] hashlimit_mt_destroy_v1+0x74/0x90 net/netfilter/xt_hashlimit.c:970 cleanup_match net/ipv6/netfilter/ip6_tables.c:478 [inline] find_check_entry.constprop.0+0x4d8/0x9e0 net/ipv6/netfilter/ip6_tables.c:582 translate_table+0xc46/0x16a0 net/ipv6/netfilter/ip6_tables.c:734 do_replace net/ipv6/netfilter/ip6_tables.c:1153 [inline] do_ip6t_set_ctl+0x2af/0x460 net/ipv6/netfilter/ip6_tables.c:1681 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x6f/0xc0 net/netfilter/nf_sockopt.c:115 ipv6_setsockopt+0x10c/0x170 net/ipv6/ipv6_sockglue.c:905 tcp_setsockopt+0x86/0xd0 net/ipv4/tcp.c:3331 __sys_setsockopt+0x24a/0x480 net/socket.c:2127 __do_sys_setsockopt net/socket.c:2143 [inline] __se_sys_setsockopt net/socket.c:2140 [inline] __x64_sys_setsockopt+0xba/0x150 net/socket.c:2140 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:367 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45cb29 Code: Bad RIP value. RSP: 002b:00007feb91620c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00000000005035e0 RCX: 000000000045cb29 RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000004 RBP: 000000000078bf00 R08: 0000000000000390 R09: 0000000000000000 R10: 0000000020000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000a7d R14: 00000000004d6ee8 R15: 00007feb916216d4 Memory state around the buggy address: ffffc90001e27400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90001e27480: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 >ffffc90001e27500: 04 f2 04 f2 00 00 00 f2 00 00 00 f2 f2 f2 00 00 ^ ffffc90001e27580: 00 00 00 00 00 00 00 f3 f3 f3 f3 f3 00 00 00 00 ffffc90001e27600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================