[ 17.306990][ T259] ================================================================== [ 17.307306][ T259] BUG: KASAN: global-out-of-bounds in snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 17.307617][ T259] Read of size 8 at addr ffffffff866d4290 by task nstat/259 [ 17.307916][ T259] [ 17.308009][ T259] CPU: 2 UID: 0 PID: 259 Comm: nstat Not tainted 6.17.0-rc3-virtme #1 PREEMPT(full) [ 17.308014][ T259] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.308017][ T259] Call Trace: [ 17.308019][ T259] [ 17.308021][ T259] dump_stack_lvl+0x82/0xc0 [ 17.308031][ T259] print_address_description.constprop.0+0x2c/0x3a0 [ 17.308038][ T259] ? snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 17.308042][ T259] print_report+0xb4/0x270 [ 17.308045][ T259] ? snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 17.308048][ T259] ? kasan_addr_to_slab+0x21/0x70 [ 17.308052][ T259] ? snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 17.308055][ T259] kasan_report+0xca/0x100 [ 17.308059][ T259] ? snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 17.308064][ T259] snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 17.308070][ T259] ? sockstat6_seq_show+0x1d0/0x1d0 [ 17.308082][ T259] ? rcu_is_watching+0x12/0xb0 [ 17.308086][ T259] ? trace_kmalloc+0x26/0xd0 [ 17.308093][ T259] ? __kvmalloc_node_noprof+0x23f/0x570 [ 17.308098][ T259] snmp6_seq_show+0x68/0x190 [ 17.308101][ T259] seq_read_iter+0x3fa/0x1060 [ 17.308112][ T259] seq_read+0x2cc/0x4b0 [ 17.308115][ T259] ? seq_read_iter+0x1060/0x1060 [ 17.308119][ T259] ? __might_fault+0x117/0x170 [ 17.308124][ T259] ? efi_thunk_set_variable+0x41/0x270 [ 17.308130][ T259] ? __might_fault+0x117/0x170 [ 17.308135][ T259] ? cp_new_stat+0x3c6/0x540 [ 17.308139][ T259] ? inode_set_bytes+0xa0/0xa0 [ 17.308143][ T259] proc_reg_read+0x1aa/0x270 [ 17.308150][ T259] vfs_read+0x17e/0xda0 [ 17.308155][ T259] ? vfs_getattr_nosec+0x2b5/0x3e0 [ 17.308158][ T259] ? kernel_read+0x1f0/0x1f0 [ 17.308162][ T259] ? vfs_fstat+0x3f/0x80 [ 17.308165][ T259] ? __do_sys_newfstat+0x7b/0xc0 [ 17.308167][ T259] ? __do_sys_fstat+0xc0/0xc0 [ 17.308174][ T259] ksys_read+0xf7/0x1d0 [ 17.308177][ T259] ? vfs_write+0x12c0/0x12c0 [ 17.308183][ T259] do_syscall_64+0xc1/0x370 [ 17.308188][ T259] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.308192][ T259] RIP: 0033:0x7f7204ecb292 [ 17.308196][ T259] Code: c0 e9 b2 fe ff ff 50 48 8d 3d 6a 15 0c 00 e8 65 e1 01 00 0f 1f 44 00 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 0f 05 <48> 3d 00 f0 ff ff 77 56 c3 0f 1f 44 00 00 48 83 ec 28 48 89 54 24 [ 17.308200][ T259] RSP: 002b:00007ffd585b3438 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 [ 17.308204][ T259] RAX: ffffffffffffffda RBX: 00000000020c1910 RCX: 00007f7204ecb292 [ 17.308206][ T259] RDX: 0000000000000400 RSI: 00000000020c1500 RDI: 000000000000000a [ 17.308208][ T259] RBP: 00007f7204fc35c0 R08: 000000000000000a R09: 0000000000000000 [ 17.308210][ T259] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000020c1910 [ 17.308212][ T259] R13: 0000000000000d68 R14: 00007f7204fc29c0 R15: 0000000000000d68 [ 17.308218][ T259] [ 17.308220][ T259] [ 17.317130][ T259] The buggy address belongs to the variable: [ 17.317359][ T259] snmp6_ipstats_list+0x210/0x3e0 [ 17.317552][ T259] [ 17.317646][ T259] The buggy address belongs to the physical page: [ 17.317880][ T259] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xb2d4 [ 17.318216][ T259] flags: 0x80000000002000(reserved|node=0|zone=1) [ 17.318457][ T259] raw: 0080000000002000 ffffea00002cb508 ffffea00002cb508 0000000000000000 [ 17.318793][ T259] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 17.319126][ T259] page dumped because: kasan: bad access detected [ 17.319366][ T259] [ 17.319459][ T259] Memory state around the buggy address: [ 17.319639][ T259] ffffffff866d4180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.319917][ T259] ffffffff866d4200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.320191][ T259] >ffffffff866d4280: 00 00 f9 f9 f9 f9 f9 f9 00 00 00 00 00 01 f9 f9 [ 17.320478][ T259] ^ [ 17.320667][ T259] ffffffff866d4300: f9 f9 f9 f9 00 00 04 f9 f9 f9 f9 f9 00 00 00 01 [ 17.320943][ T259] ffffffff866d4380: f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9 00 00 06 f9 [ 17.321210][ T259] ================================================================== [ 17.321558][ T259] Disabling lock debugging due to kernel taint