[ 24.857564][ T339] ================================================================== [ 24.857892][ T339] BUG: KASAN: global-out-of-bounds in snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 24.858162][ T339] Read of size 8 at addr ffffffff8cae3970 by task nstat/339 [ 24.858389][ T339] [ 24.858469][ T339] CPU: 3 UID: 0 PID: 339 Comm: nstat Not tainted 6.17.0-rc3-virtme #1 PREEMPT(full) [ 24.858474][ T339] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 24.858476][ T339] Call Trace: [ 24.858478][ T339] [ 24.858480][ T339] dump_stack_lvl+0x82/0xc0 [ 24.858486][ T339] print_address_description.constprop.0+0x2c/0x3a0 [ 24.858491][ T339] ? snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 24.858496][ T339] print_report+0xb4/0x270 [ 24.858499][ T339] ? snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 24.858502][ T339] ? kasan_addr_to_slab+0x21/0x70 [ 24.858505][ T339] ? snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 24.858508][ T339] kasan_report+0xca/0x100 [ 24.858512][ T339] ? snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 24.858518][ T339] snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 24.858523][ T339] ? sockstat6_seq_show+0x1d0/0x1d0 [ 24.858535][ T339] ? rcu_is_watching+0x12/0xb0 [ 24.858541][ T339] ? trace_kmalloc+0x26/0xd0 [ 24.858545][ T339] ? __kvmalloc_node_noprof+0x23f/0x570 [ 24.858550][ T339] snmp6_seq_show+0x68/0x190 [ 24.858554][ T339] seq_read_iter+0x3fa/0x1060 [ 24.858562][ T339] seq_read+0x2cc/0x4b0 [ 24.858565][ T339] ? seq_read_iter+0x1060/0x1060 [ 24.858569][ T339] ? __might_fault+0x117/0x170 [ 24.858573][ T339] ? rcu_read_unlock.cold+0x1/0x14 [ 24.858579][ T339] ? __might_fault+0x117/0x170 [ 24.858583][ T339] ? cp_new_stat+0x3c6/0x540 [ 24.858586][ T339] ? inode_set_bytes+0xa0/0xa0 [ 24.858591][ T339] proc_reg_read+0x1aa/0x270 [ 24.858596][ T339] vfs_read+0x17e/0xda0 [ 24.858600][ T339] ? vfs_getattr_nosec+0x2b5/0x3e0 [ 24.858603][ T339] ? kernel_read+0x1f0/0x1f0 [ 24.858606][ T339] ? vfs_fstat+0x3f/0x80 [ 24.858609][ T339] ? __do_sys_newfstat+0x7b/0xc0 [ 24.858612][ T339] ? __do_sys_fstat+0xc0/0xc0 [ 24.858618][ T339] ksys_read+0xf7/0x1d0 [ 24.858622][ T339] ? vfs_write+0x12c0/0x12c0 [ 24.858627][ T339] do_syscall_64+0xc1/0x370 [ 24.858633][ T339] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 24.858636][ T339] RIP: 0033:0x7f17265ac292 [ 24.858640][ T339] 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 [ 24.858643][ T339] RSP: 002b:00007ffc4d17fe88 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 [ 24.858647][ T339] RAX: ffffffffffffffda RBX: 00000000131ef910 RCX: 00007f17265ac292 [ 24.858649][ T339] RDX: 0000000000000400 RSI: 00000000131ef500 RDI: 0000000000000006 [ 24.858651][ T339] RBP: 00007f17266a45c0 R08: 0000000000000006 R09: 0000000000000000 [ 24.858652][ T339] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000131ef910 [ 24.858654][ T339] R13: 0000000000000d68 R14: 00007f17266a39c0 R15: 0000000000000d68 [ 24.858660][ T339] [ 24.858662][ T339] [ 24.866665][ T339] The buggy address belongs to the variable: [ 24.866855][ T339] snmp6_ipstats_list+0x210/0x3e0 [ 24.867010][ T339] [ 24.867088][ T339] The buggy address belongs to the physical page: [ 24.867276][ T339] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x3b4e3 [ 24.867556][ T339] flags: 0x80000000002000(reserved|node=0|zone=1) [ 24.867762][ T339] raw: 0080000000002000 ffffea0000ed38c8 ffffea0000ed38c8 0000000000000000 [ 24.868039][ T339] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 24.868313][ T339] page dumped because: kasan: bad access detected [ 24.868504][ T339] [ 24.868581][ T339] Memory state around the buggy address: [ 24.868732][ T339] ffffffff8cae3800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.868962][ T339] ffffffff8cae3880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.869186][ T339] >ffffffff8cae3900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f9 f9 [ 24.869410][ T339] ^ [ 24.869633][ T339] ffffffff8cae3980: f9 f9 f9 f9 00 00 00 00 00 01 f9 f9 f9 f9 f9 f9 [ 24.869858][ T339] ffffffff8cae3a00: 00 00 04 f9 f9 f9 f9 f9 00 00 00 01 f9 f9 f9 f9 [ 24.870080][ T339] ================================================================== [ 24.870529][ T339] Disabling lock debugging due to kernel taint