[ 14.022074][ T227] ================================================================== [ 14.022383][ T227] BUG: KASAN: global-out-of-bounds in snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 14.022690][ T227] Read of size 8 at addr ffffffffaf4d4790 by task connect-deny_ip/227 [ 14.022947][ T227] [ 14.023040][ T227] CPU: 0 UID: 0 PID: 227 Comm: connect-deny_ip Not tainted 6.17.0-rc3-virtme #1 PREEMPT(full) [ 14.023045][ T227] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.023047][ T227] Call Trace: [ 14.023049][ T227] [ 14.023051][ T227] dump_stack_lvl+0x82/0xc0 [ 14.023058][ T227] print_address_description.constprop.0+0x2c/0x3a0 [ 14.023065][ T227] ? snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 14.023069][ T227] print_report+0xb4/0x270 [ 14.023072][ T227] ? snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 14.023075][ T227] ? kasan_addr_to_slab+0x21/0x70 [ 14.023079][ T227] ? snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 14.023081][ T227] kasan_report+0xca/0x100 [ 14.023085][ T227] ? snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 14.023090][ T227] snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 14.023095][ T227] ? sockstat6_seq_show+0x1d0/0x1d0 [ 14.023107][ T227] ? rcu_is_watching+0x12/0xb0 [ 14.023112][ T227] ? trace_kmalloc+0x26/0xd0 [ 14.023115][ T227] ? __kvmalloc_node_noprof+0x23f/0x570 [ 14.023120][ T227] snmp6_seq_show+0x68/0x190 [ 14.023123][ T227] seq_read_iter+0x3fa/0x1060 [ 14.023132][ T227] seq_read+0x2cc/0x4b0 [ 14.023136][ T227] ? seq_read_iter+0x1060/0x1060 [ 14.023140][ T227] ? __lock_acquire+0x449/0x7e0 [ 14.023149][ T227] ? __mutex_trylock_common+0xf9/0x260 [ 14.023156][ T227] ? rcu_is_watching+0x12/0xb0 [ 14.023164][ T227] proc_reg_read+0x1aa/0x270 [ 14.023171][ T227] vfs_read+0x17e/0xda0 [ 14.023175][ T227] ? fdget_pos+0x230/0x2f0 [ 14.023181][ T227] ? ww_mutex_lock+0x160/0x160 [ 14.023187][ T227] ? kernel_read+0x1f0/0x1f0 [ 14.023190][ T227] ? __lock_release+0x5d/0x170 [ 14.023195][ T227] ? __fget_files+0x199/0x300 [ 14.023199][ T227] ? __fget_files+0x1a3/0x300 [ 14.023205][ T227] ksys_read+0xf7/0x1d0 [ 14.023209][ T227] ? vfs_write+0x12c0/0x12c0 [ 14.023215][ T227] do_syscall_64+0xc1/0x370 [ 14.023220][ T227] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 14.023223][ T227] RIP: 0033:0x7fedec8222cc [ 14.023227][ T227] Code: ec 28 48 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 29 8b f8 ff 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 31 c0 0f 05 <48> 3d 00 f0 ff ff 77 34 44 89 c7 48 89 44 24 08 e8 7f 8b f8 ff 48 [ 14.023230][ T227] RSP: 002b:00007ffe8bff1a90 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 [ 14.023234][ T227] RAX: ffffffffffffffda RBX: 0000000024ded8a0 RCX: 00007fedec8222cc [ 14.023236][ T227] RDX: 0000000000000400 RSI: 0000000024dedcf0 RDI: 000000000000000b [ 14.023238][ T227] RBP: 00007fedec91a5c0 R08: 0000000000000000 R09: 0000000000000000 [ 14.023239][ T227] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 14.023241][ T227] R13: 0000000000000d68 R14: 00007fedec9199c0 R15: 0000000000000d68 [ 14.023247][ T227] [ 14.023248][ T227] [ 14.032518][ T227] The buggy address belongs to the variable: [ 14.032733][ T227] snmp6_ipstats_list+0x210/0x3e0 [ 14.032911][ T227] [ 14.033001][ T227] The buggy address belongs to the physical page: [ 14.033221][ T227] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x16ed4 [ 14.033539][ T227] flags: 0x80000000002000(reserved|node=0|zone=1) [ 14.033768][ T227] raw: 0080000000002000 ffffea00005bb508 ffffea00005bb508 0000000000000000 [ 14.034088][ T227] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 14.034406][ T227] page dumped because: kasan: bad access detected [ 14.034622][ T227] [ 14.034710][ T227] Memory state around the buggy address: [ 14.034885][ T227] ffffffffaf4d4680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 14.035144][ T227] ffffffffaf4d4700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 14.035407][ T227] >ffffffffaf4d4780: 00 00 f9 f9 f9 f9 f9 f9 00 00 00 00 00 01 f9 f9 [ 14.035664][ T227] ^ [ 14.035835][ T227] ffffffffaf4d4800: f9 f9 f9 f9 00 00 04 f9 f9 f9 f9 f9 00 00 00 01 [ 14.036096][ T227] ffffffffaf4d4880: f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9 00 00 06 f9 [ 14.036362][ T227] ================================================================== [ 14.036635][ T227] Disabling lock debugging due to kernel taint [ 14.222451][ C3] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 15.272763][ C3] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 15.273707][ C3] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 16.296355][ C3] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 16.298435][ C3] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 17.320297][ C3] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 17.321578][ C3] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 18.344300][ C3] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 18.345576][ C3] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 19.368300][ C3] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 19.369557][ C3] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 20.392294][ C3] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK