[ 1725.802478][ T7840] ================================================================== [ 1725.802786][ T7840] BUG: KASAN: global-out-of-bounds in snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 1725.803098][ T7840] Read of size 8 at addr ffffffffb66db9f0 by task cat/7840 [ 1725.803338][ T7840] [ 1725.803433][ T7840] CPU: 0 UID: 0 PID: 7840 Comm: cat Not tainted 6.17.0-rc3-virtme #1 PREEMPT(full) [ 1725.803441][ T7840] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 1725.803447][ T7840] Call Trace: [ 1725.803450][ T7840] [ 1725.803453][ T7840] dump_stack_lvl+0x82/0xc0 [ 1725.803464][ T7840] print_address_description.constprop.0+0x2c/0x3a0 [ 1725.803484][ T7840] ? snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 1725.803488][ T7840] print_report+0xb4/0x270 [ 1725.803492][ T7840] ? snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 1725.803495][ T7840] ? kasan_addr_to_slab+0x21/0x70 [ 1725.803499][ T7840] ? snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 1725.803502][ T7840] kasan_report+0xca/0x100 [ 1725.803507][ T7840] ? snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 1725.803513][ T7840] snmp6_seq_show_item64.constprop.0+0x341/0x500 [ 1725.803518][ T7840] ? sockstat6_seq_show+0x1d0/0x1d0 [ 1725.803531][ T7840] ? rcu_is_watching+0x12/0xb0 [ 1725.803543][ T7840] ? __kvmalloc_node_noprof+0x23f/0x570 [ 1725.803552][ T7840] snmp6_dev_seq_show+0xcf/0x180 [ 1725.803556][ T7840] seq_read_iter+0x3fa/0x1060 [ 1725.803568][ T7840] proc_reg_read_iter+0x19b/0x260 [ 1725.803581][ T7840] vfs_read+0x74d/0xda0 [ 1725.803588][ T7840] ? kernel_read+0x1f0/0x1f0 [ 1725.803591][ T7840] ? lock_vma_under_rcu+0x18a/0x3d0 [ 1725.803600][ T7840] ? find_held_lock+0x2b/0x80 [ 1725.803611][ T7840] ksys_read+0xf7/0x1d0 [ 1725.803614][ T7840] ? vfs_write+0x12c0/0x12c0 [ 1725.803616][ T7840] ? do_user_addr_fault+0x955/0xe00 [ 1725.803635][ T7840] do_syscall_64+0xc1/0x370 [ 1725.803643][ T7840] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 1725.803657][ T7840] RIP: 0033:0x7fc534b96292 [ 1725.803666][ T7840] 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 [ 1725.803672][ T7840] RSP: 002b:00007ffd092c6478 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 [ 1725.803683][ T7840] RAX: ffffffffffffffda RBX: 0000000000020000 RCX: 00007fc534b96292 [ 1725.803687][ T7840] RDX: 0000000000020000 RSI: 00007fc534a74000 RDI: 0000000000000005 [ 1725.803690][ T7840] RBP: 00007fc534a74000 R08: 00007fc534a73010 R09: 0000000000000000 [ 1725.803693][ T7840] R10: 0000000000000022 R11: 0000000000000246 R12: 0000000000022000 [ 1725.803695][ T7840] R13: 0000000000000005 R14: 0000000000020000 R15: 0000000000020000 [ 1725.803702][ T7840] [ 1725.803703][ T7840] [ 1725.813922][ T7840] The buggy address belongs to the variable: [ 1725.814237][ T7840] snmp6_ipstats_list+0x210/0x3e0 [ 1725.814518][ T7840] [ 1725.814646][ T7840] The buggy address belongs to the physical page: [ 1725.814962][ T7840] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x236db [ 1725.815413][ T7840] flags: 0x80000000002000(reserved|node=0|zone=1) [ 1725.815764][ T7840] raw: 0080000000002000 ffffea00008db6c8 ffffea00008db6c8 0000000000000000 [ 1725.816222][ T7840] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 1725.816662][ T7840] page dumped because: kasan: bad access detected [ 1725.816987][ T7840] [ 1725.817125][ T7840] Memory state around the buggy address: [ 1725.817373][ T7840] ffffffffb66db880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 1725.817737][ T7840] ffffffffb66db900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 1725.818100][ T7840] >ffffffffb66db980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f9 f9 [ 1725.818471][ T7840] ^ [ 1725.818830][ T7840] ffffffffb66dba00: f9 f9 f9 f9 00 00 00 00 00 01 f9 f9 f9 f9 f9 f9 [ 1725.819203][ T7840] ffffffffb66dba80: 00 00 04 f9 f9 f9 f9 f9 00 00 00 01 f9 f9 f9 f9 [ 1725.819561][ T7840] ================================================================== [ 1725.820201][ T7840] Disabling lock debugging due to kernel taint [ 1737.324655][ T7912] Initializing XFRM netlink socket