[ 14.332437][ T227] ================================================================== [ 14.332733][ T227] BUG: KASAN: global-out-of-bounds in snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 14.333049][ T227] Read of size 8 at addr ffffffffb30d4790 by task connect-deny_ip/227 [ 14.333310][ T227] [ 14.333405][ T227] CPU: 3 UID: 0 PID: 227 Comm: connect-deny_ip Not tainted 6.17.0-rc3-virtme #1 PREEMPT(full) [ 14.333409][ T227] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.333411][ T227] Call Trace: [ 14.333413][ T227] [ 14.333415][ T227] dump_stack_lvl+0x82/0xc0 [ 14.333422][ T227] print_address_description.constprop.0+0x2c/0x3a0 [ 14.333430][ T227] ? snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 14.333433][ T227] print_report+0xb4/0x270 [ 14.333437][ T227] ? snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 14.333440][ T227] ? kasan_addr_to_slab+0x21/0x70 [ 14.333443][ T227] ? snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 14.333446][ T227] kasan_report+0xca/0x100 [ 14.333450][ T227] ? snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 14.333455][ T227] snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 14.333460][ T227] ? sockstat6_seq_show+0x1d0/0x1d0 [ 14.333471][ T227] ? rcu_is_watching+0x12/0xb0 [ 14.333477][ T227] ? trace_kmalloc+0x26/0xd0 [ 14.333480][ T227] ? __kvmalloc_node_noprof+0x23f/0x570 [ 14.333486][ T227] snmp6_seq_show+0x68/0x190 [ 14.333489][ T227] seq_read_iter+0x3fa/0x1060 [ 14.333498][ T227] seq_read+0x2cc/0x4b0 [ 14.333502][ T227] ? seq_read_iter+0x1060/0x1060 [ 14.333505][ T227] ? __lock_acquire+0x449/0x7e0 [ 14.333512][ T227] ? __mutex_trylock_common+0xf9/0x260 [ 14.333517][ T227] ? rcu_is_watching+0x12/0xb0 [ 14.333521][ T227] proc_reg_read+0x1aa/0x270 [ 14.333527][ T227] vfs_read+0x17e/0xda0 [ 14.333532][ T227] ? fdget_pos+0x230/0x2f0 [ 14.333537][ T227] ? ww_mutex_lock+0x160/0x160 [ 14.333544][ T227] ? kernel_read+0x1f0/0x1f0 [ 14.333547][ T227] ? __lock_release+0x5d/0x170 [ 14.333551][ T227] ? __fget_files+0x199/0x300 [ 14.333555][ T227] ? __fget_files+0x1a3/0x300 [ 14.333561][ T227] ksys_read+0xf7/0x1d0 [ 14.333565][ T227] ? vfs_write+0x12c0/0x12c0 [ 14.333571][ T227] do_syscall_64+0xc1/0x370 [ 14.333576][ T227] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 14.333580][ T227] RIP: 0033:0x7fb70344a2cc [ 14.333583][ 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.333586][ T227] RSP: 002b:00007ffeda3beed0 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 [ 14.333590][ T227] RAX: ffffffffffffffda RBX: 000000002907b8a0 RCX: 00007fb70344a2cc [ 14.333592][ T227] RDX: 0000000000000400 RSI: 000000002907bcf0 RDI: 000000000000000b [ 14.333594][ T227] RBP: 00007fb7035425c0 R08: 0000000000000000 R09: 0000000000000000 [ 14.333596][ T227] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 14.333597][ T227] R13: 0000000000000d68 R14: 00007fb7035419c0 R15: 0000000000000d68 [ 14.333604][ T227] [ 14.333605][ T227] [ 14.342899][ T227] The buggy address belongs to the variable: [ 14.343111][ T227] snmp6_ipstats_list+0x210/0x3e0 [ 14.343287][ T227] [ 14.343378][ T227] The buggy address belongs to the physical page: [ 14.343600][ T227] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x256d4 [ 14.343925][ T227] flags: 0x80000000002000(reserved|node=0|zone=1) [ 14.344159][ T227] raw: 0080000000002000 ffffea000095b508 ffffea000095b508 0000000000000000 [ 14.344488][ T227] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 14.344805][ T227] page dumped because: kasan: bad access detected [ 14.345035][ T227] [ 14.345133][ T227] Memory state around the buggy address: [ 14.345309][ T227] ffffffffb30d4680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 14.345580][ T227] ffffffffb30d4700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 14.345842][ T227] >ffffffffb30d4780: 00 00 f9 f9 f9 f9 f9 f9 00 00 00 00 00 01 f9 f9 [ 14.346105][ T227] ^ [ 14.346286][ T227] ffffffffb30d4800: f9 f9 f9 f9 00 00 04 f9 f9 f9 f9 f9 00 00 00 01 [ 14.346549][ T227] ffffffffb30d4880: f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9 00 00 06 f9 [ 14.346806][ T227] ================================================================== [ 14.347243][ T227] Disabling lock debugging due to kernel taint [ 14.540469][ C0] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 15.558515][ C0] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 15.559527][ C0] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 16.582062][ C0] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 16.583530][ C0] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 17.606055][ C0] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 17.607519][ C0] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 18.630054][ C0] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 18.631496][ C0] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 19.654063][ C0] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 19.655522][ C0] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 20.678125][ C0] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK