[ 13.281158][ T227] ================================================================== [ 13.281447][ T227] BUG: KASAN: global-out-of-bounds in snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 13.281766][ T227] Read of size 8 at addr ffffffff8bad4790 by task connect-deny_ip/227 [ 13.282026][ T227] [ 13.282120][ T227] CPU: 1 UID: 0 PID: 227 Comm: connect-deny_ip Not tainted 6.17.0-rc3-virtme #1 PREEMPT(full) [ 13.282125][ T227] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.282127][ T227] Call Trace: [ 13.282129][ T227] [ 13.282131][ T227] dump_stack_lvl+0x82/0xc0 [ 13.282138][ T227] print_address_description.constprop.0+0x2c/0x3a0 [ 13.282147][ T227] ? snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 13.282153][ T227] print_report+0xb4/0x270 [ 13.282159][ T227] ? snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 13.282163][ T227] ? kasan_addr_to_slab+0x21/0x70 [ 13.282166][ T227] ? snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 13.282169][ T227] kasan_report+0xca/0x100 [ 13.282173][ T227] ? snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 13.282178][ T227] snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 13.282183][ T227] ? sockstat6_seq_show+0x1d0/0x1d0 [ 13.282194][ T227] ? rcu_is_watching+0x12/0xb0 [ 13.282199][ T227] ? trace_kmalloc+0x26/0xd0 [ 13.282203][ T227] ? __kvmalloc_node_noprof+0x23f/0x570 [ 13.282208][ T227] snmp6_seq_show+0x68/0x190 [ 13.282211][ T227] seq_read_iter+0x3fa/0x1060 [ 13.282220][ T227] seq_read+0x2cc/0x4b0 [ 13.282224][ T227] ? seq_read_iter+0x1060/0x1060 [ 13.282227][ T227] ? __lock_acquire+0x449/0x7e0 [ 13.282234][ T227] ? __mutex_trylock_common+0xf9/0x260 [ 13.282238][ T227] ? rcu_is_watching+0x12/0xb0 [ 13.282243][ T227] proc_reg_read+0x1aa/0x270 [ 13.282249][ T227] vfs_read+0x17e/0xda0 [ 13.282253][ T227] ? fdget_pos+0x230/0x2f0 [ 13.282258][ T227] ? ww_mutex_lock+0x160/0x160 [ 13.282264][ T227] ? kernel_read+0x1f0/0x1f0 [ 13.282267][ T227] ? __lock_release+0x5d/0x170 [ 13.282271][ T227] ? __fget_files+0x199/0x300 [ 13.282275][ T227] ? __fget_files+0x1a3/0x300 [ 13.282281][ T227] ksys_read+0xf7/0x1d0 [ 13.282285][ T227] ? vfs_write+0x12c0/0x12c0 [ 13.282291][ T227] do_syscall_64+0xc1/0x370 [ 13.282295][ T227] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 13.282299][ T227] RIP: 0033:0x7fd8b59412cc [ 13.282303][ 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 [ 13.282306][ T227] RSP: 002b:00007ffcdb8b5a10 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 [ 13.282311][ T227] RAX: ffffffffffffffda RBX: 000000000c1788a0 RCX: 00007fd8b59412cc [ 13.282315][ T227] RDX: 0000000000000400 RSI: 000000000c178cf0 RDI: 000000000000000b [ 13.282318][ T227] RBP: 00007fd8b5a395c0 R08: 0000000000000000 R09: 0000000000000000 [ 13.282320][ T227] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 13.282323][ T227] R13: 0000000000000d68 R14: 00007fd8b5a389c0 R15: 0000000000000d68 [ 13.282333][ T227] [ 13.282335][ T227] [ 13.291705][ T227] The buggy address belongs to the variable: [ 13.291935][ T227] snmp6_ipstats_list+0x210/0x3e0 [ 13.292119][ T227] [ 13.292215][ T227] The buggy address belongs to the physical page: [ 13.292440][ T227] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xa2d4 [ 13.292768][ T227] flags: 0x80000000002000(reserved|node=0|zone=1) [ 13.293018][ T227] raw: 0080000000002000 ffffea000028b508 ffffea000028b508 0000000000000000 [ 13.293356][ T227] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 13.293710][ T227] page dumped because: kasan: bad access detected [ 13.293946][ T227] [ 13.294025][ T227] Memory state around the buggy address: [ 13.294187][ T227] ffffffff8bad4680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.294449][ T227] ffffffff8bad4700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.294725][ T227] >ffffffff8bad4780: 00 00 f9 f9 f9 f9 f9 f9 00 00 00 00 00 01 f9 f9 [ 13.295002][ T227] ^ [ 13.295188][ T227] ffffffff8bad4800: f9 f9 f9 f9 00 00 04 f9 f9 f9 f9 f9 00 00 00 01 [ 13.295447][ T227] ffffffff8bad4880: f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9 00 00 06 f9 [ 13.295709][ T227] ================================================================== [ 13.296239][ T227] Disabling lock debugging due to kernel taint [ 13.470720][ C1] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 14.517098][ C1] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 14.518553][ C1] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 15.540397][ C1] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 15.542000][ C1] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 16.563393][ C1] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 16.565546][ C1] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 17.587348][ C1] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 17.588613][ C1] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 18.611401][ C1] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 18.613492][ C1] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 19.635334][ C1] TCP: TCP-AO: the keyid 100 from SYN packet is not present - not sending SYNACK [ 20.390026][ T227] connect-deny_ip (227) used greatest stack depth: 24864 bytes left