Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp985337rdb; Fri, 17 Nov 2023 21:11:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IHZgfosvZmUe7sZyqPk51JyEOjQEOMYrvYMY+vLvZ+B2xQKGDI7BL6xiFNLjvKiDu+2/jFi X-Received: by 2002:a17:902:7881:b0:1c3:6d97:e89e with SMTP id q1-20020a170902788100b001c36d97e89emr1936798pll.58.1700284282231; Fri, 17 Nov 2023 21:11:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700284282; cv=pass; d=google.com; s=arc-20160816; b=dKWpcdC7a2j/GCSX1LZXg/vQ//Y7/r91UOpVaOOQHDarhXMUeOJkg3zql15ewypNND UL8T6EVXlXTSKrlJ6gLE7R9a9AhH+nQlPXCdm4+tXOmmbTPUKvN0U9nsv08+YwIv/dmI R9oGz/AxqGRosRExI08D4An073Y3qcLe27laQ5iOaSfHVNSqAVOJjWxFZaYktrJ6Zp08 j6jWAfS3LcRSmRBtL0fjEv+9brpnlFBwQD94KkqfjtV7HFtXH8j3GotGzChAZaQYofeR liiYeTL1Dj67L0PZK3q9pCUQzeKshJFIS0mw1RSBsuF6rBb/08J+T4r8HReJz8RgBj9f zc/A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=inVhZeX/fAccosfVCJ2beEae0IVFxx54RqA8dyLxVMw=; fh=Spw98zt6fx6108TWxhEDGRBeOvcS+bmBGUP1NohDCBE=; b=MH1Ks4m19udQTeEMM2JhGytGUyqAnK0E0yJH997rC0nh0JzoI/Zq1cykXDHT3sq8Wc smbDN/V8X+8oKGQNf0Dkh2V5aj1phrMlr8cfpr1mwytnNfCpR1HaLBxzy+eR52mmsRDd 1LqZ9GbRf4v6pQnEx31wgHrWbLyOddhyn8DldFcM+GAU74puLXmMSS4/CQVMVjAEpnSA OjPNTC+vkIG+6SKvlwoKhtUu/yK5b1xPysHIHqdK2V/bDJc6XKODsF5CvmUjNcjBlAgk /5uCr3wpyJbi3PzHw/HBcbE3sPu3t/sLdXxAtU3P0paAi3vaCDOj1gRoLCi7chEZHInV 1qcg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@templeofstupid.com header.s=dreamhost header.b="jsT/88/j"; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=templeofstupid.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id t10-20020a1709028c8a00b001cc1ebddf2csi3399102plo.498.2023.11.17.21.11.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 21:11:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@templeofstupid.com header.s=dreamhost header.b="jsT/88/j"; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=templeofstupid.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id F3A8D807DED7; Fri, 17 Nov 2023 09:24:05 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346146AbjKQRXv (ORCPT + 99 others); Fri, 17 Nov 2023 12:23:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231828AbjKQRXu (ORCPT ); Fri, 17 Nov 2023 12:23:50 -0500 Received: from bird.elm.relay.mailchannels.net (bird.elm.relay.mailchannels.net [23.83.212.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EBA890 for ; Fri, 17 Nov 2023 09:23:40 -0800 (PST) X-Sender-Id: dreamhost|x-authsender|kjlx@templeofstupid.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 3697E8022F4 for ; Fri, 17 Nov 2023 17:15:47 +0000 (UTC) Received: from pdx1-sub0-mail-a263.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id D4C9F802434 for ; Fri, 17 Nov 2023 17:15:46 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1700241346; a=rsa-sha256; cv=none; b=4PzBXdNDj1E4///531dxF+DVnqE4aYC1IyxWF8qJfevNugs6DRnivUgzcMp6+GIMsdn4N+ otq3Crzbq5rgM9J1GO8M/iZ9zeI+JhCnrlaWkSAlsZz4SeszfqUNpI6gZV3ZjKb1/EXwPP hqLdBquHUH+zmfo87sNMu3m2t4hZwTw1+/BeJD/IKfNjW49GoAiarW6Binhzo/gJB4okR7 IRFNSX45VDSo+6i3mAiIrPRbt904IjuHtzwIwuy3geOVwOOduCGt1/KHnO+XKnJd85KEto QRFFwRoo8OgOdpuwtxvXS6BC9mS9krN3p1DOUvFKysQDSVUE0f8iRwSAFuruBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1700241346; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=inVhZeX/fAccosfVCJ2beEae0IVFxx54RqA8dyLxVMw=; b=KU5WMoP/Cb/QEAHTBq6vCCvizjyvN/0WyDlt68+T1X2fE3YhEbivXwyswZnPO/vmmj3R+F 4f9buUYm3mgMM/9g8JrWIAnxKOdu+n+dErZjeV+o8+x//kP44dYwnzXruSQpQ4hEhqB+Az O2t8BYS5dcHNw5968XCbIHmUNJ8ISSACrzE91hxvqWyd0FOt+zNlRoit9mQm8XZmdJjHgO 6dRCXvNXrfs/22gJLuJRm77KJzya4YfSDgF8lxGMDsQPD2d+7mpQjmP2kNOoOS221Ew52H 0HP7fQUiWYmke2C0dASo+vqFB+JAHwDxRQ1agT8UCXjtq+CbeFTyt1SM51srQg== ARC-Authentication-Results: i=1; rspamd-7f8878586f-dqspk; auth=pass smtp.auth=dreamhost smtp.mailfrom=kjlx@templeofstupid.com X-Sender-Id: dreamhost|x-authsender|kjlx@templeofstupid.com X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|kjlx@templeofstupid.com X-MailChannels-Auth-Id: dreamhost X-Bitter-Whimsical: 23f5fef63bc9fee1_1700241347067_1837848220 X-MC-Loop-Signature: 1700241347067:3179295977 X-MC-Ingress-Time: 1700241347067 Received: from pdx1-sub0-mail-a263.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.119.176.6 (trex/6.9.2); Fri, 17 Nov 2023 17:15:47 +0000 Received: from kmjvbox.templeofstupid.com (c-73-231-176-24.hsd1.ca.comcast.net [73.231.176.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kjlx@templeofstupid.com) by pdx1-sub0-mail-a263.dreamhost.com (Postfix) with ESMTPSA id 4SX3Sy4BlZzjd for ; Fri, 17 Nov 2023 09:15:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=templeofstupid.com; s=dreamhost; t=1700241346; bh=inVhZeX/fAccosfVCJ2beEae0IVFxx54RqA8dyLxVMw=; h=Date:From:To:Cc:Subject:Content-Type:Content-Transfer-Encoding; b=jsT/88/jwEQkkHbMM14g08oYTPVsPSLC5QXxNdLyyj/W/994T8FIe3INBpIV9XbDZ +tJyewo1QYMVH1P5EDRx2R+CmHUg2vTSybb64vEiz3UnHMxmcPu/zg4nl2pnwXX8eq 8Zl5ylRaBR0bz1kGSfILSjKQNCyZQUM2ixYmrffvzlHhDf8NRFpNxZCUPIq4SfJtM9 M/6X+lpsDS/xYMLJrvVDSl2rh7klYQQ5Gu7QWR+kMNFpO6YwaqJilnPG0ig0IMo+HP CYYd7AMtJcEUc7S/Xm4ntoNMB5D28K8nDZIHnH3/N8c4h9krpqXtyXKhVdfZzaNUNa CVOGxwsZxVLsw== Received: from johansen (uid 1000) (envelope-from kjlx@templeofstupid.com) id e00ba by kmjvbox.templeofstupid.com (DragonFly Mail Agent v0.12); Fri, 17 Nov 2023 09:15:43 -0800 Date: Fri, 17 Nov 2023 09:15:43 -0800 From: Krister Johansen To: =?utf-8?B?5ZGo57un5bOw?= Cc: kernel test robot , oe-lkp , lkp , linux-fsdevel , ltp , linux-kernel , miklos Subject: Re: [PATCH v2] fuse: Track process write operations in both direct and writethrough modes Message-ID: <20231117171543.GA2085@templeofstupid.com> References: <202311161627.5a936995-oliver.sang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 17 Nov 2023 09:24:06 -0800 (PST) On Fri, Nov 17, 2023 at 11:06:10AM +0800, 周继峰 wrote: > Hi Miklos, > > On Thu, Nov 16, 2023 at 4:43 PM kernel test robot wrote: > > > > > > > > Hello, > > > > kernel test robot noticed "BUG:KASAN:slab-out-of-bounds_in_fuse_evict_inode" on: > > > > commit: 6772e9ddfc996544d6a22e72eddf7510ac2999fc ("[PATCH v2] fuse: Track process write operations in both direct and writethrough modes") > > url: https://github.com/intel-lab-lkp/linux/commits/Zhou-Jifeng/fuse-Track-process-write-operations-in-both-direct-and-writethrough-modes/20231107-163300 > > base: https://git.kernel.org/cgit/linux/kernel/git/mszeredi/fuse.git for-next > > patch link: https://lore.kernel.org/all/20231107081350.14472-1-zhoujifeng@kylinos.com.cn/ > > patch subject: [PATCH v2] fuse: Track process write operations in both direct and writethrough modes > > > > in testcase: ltp > > version: ltp-x86_64-14c1f76-1_20230715 > > with following parameters: > > > > disk: 1HDD > > fs: xfs > > test: fs-03 > > > > > > > > compiler: gcc-12 > > test machine: 4 threads 1 sockets Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz (Ivy Bridge) with 8G memory > > > > (please refer to attached dmesg/kmsg for entire log/backtrace) > > > > > > > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > > the same patch/commit), kindly add following tags > > | Reported-by: kernel test robot > > | Closes: https://lore.kernel.org/oe-lkp/202311161627.5a936995-oliver.sang@intel.com > > > > > > > > The kernel config and materials to reproduce are available at: > > https://download.01.org/0day-ci/archive/20231116/202311161627.5a936995-oliver.sang@intel.com > > > > > > [ 608.279527][ T5411] ================================================================== > > [ 608.279697][ T5411] BUG: KASAN: slab-out-of-bounds in fuse_evict_inode+0x15c/0x4a0 [fuse] > > [ 608.279871][ T5411] Write of size 4 at addr ffff888092af0dc8 by task fs_fill/5411 > > [ 608.280019][ T5411] > > [ 608.280082][ T5411] CPU: 1 PID: 5411 Comm: fs_fill Not tainted 6.6.0-rc2-00004-g6772e9ddfc99 #1 > > [ 608.280252][ T5411] Hardware name: Hewlett-Packard p6-1451cx/2ADA, BIOS 8.15 02/05/2013 > > [ 608.280409][ T5411] Call Trace: > > [ 608.280494][ T5411] > > [ 608.280570][ T5411] dump_stack_lvl+0x36/0x50 > > [ 608.280674][ T5411] print_address_description+0x2c/0x3a0 > > [ 608.280808][ T5411] ? fuse_evict_inode+0x15c/0x4a0 [fuse] > > [ 608.280935][ T5411] print_report+0xba/0x2b0 > > [ 608.281034][ T5411] ? kasan_addr_to_slab+0xd/0x90 > > [ 608.281140][ T5411] ? fuse_evict_inode+0x15c/0x4a0 [fuse] > > [ 608.281266][ T5411] kasan_report+0xc7/0x100 > > [ 608.281604][ T5411] ? fuse_evict_inode+0x15c/0x4a0 [fuse] > > [ 608.281763][ T5411] kasan_check_range+0xfc/0x1a0 > > [ 608.281871][ T5411] fuse_evict_inode+0x15c/0x4a0 [fuse] > > [ 608.281994][ T5411] evict+0x29b/0x5e0 > > [ 608.282086][ T5411] ? lookup_one_qstr_excl+0x23/0x150 > > [ 608.282201][ T5411] do_unlinkat+0x34f/0x5a0 > > [ 608.282300][ T5411] ? __x64_sys_rmdir+0xf0/0xf0 > > [ 608.282404][ T5411] ? 0xffffffff81000000 > > [ 608.282498][ T5411] ? strncpy_from_user+0x6a/0x230 > > [ 608.282611][ T5411] ? getname_flags+0x8d/0x430 > > [ 608.282724][ T5411] __x64_sys_unlink+0xa9/0xf0 > > [ 608.282827][ T5411] do_syscall_64+0x38/0x80 > > [ 608.282928][ T5411] entry_SYSCALL_64_after_hwframe+0x5e/0xc8 > > [ 608.283052][ T5411] RIP: 0033:0x7f6ba18898a7 > > [ 608.283574][ T5411] Code: f0 ff ff 73 01 c3 48 8b 0d 56 85 0d 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 57 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 29 85 0d 00 f7 d8 64 89 01 48 > > [ 608.283947][ T5411] RSP: 002b:00007f6ba178ae48 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 > > [ 608.284142][ T5411] RAX: ffffffffffffffda RBX: 00007f6b94000b70 RCX: 00007f6ba18898a7 > > [ 608.284321][ T5411] RDX: 0000000000000000 RSI: 0000000000000039 RDI: 00007f6ba178ae90 > > [ 608.284503][ T5411] RBP: 00007f6ba178ae90 R08: 0000000000000000 R09: 0000000000000073 > > [ 608.284681][ T5411] R10: 0000000000000000 R11: 0000000000000246 R12: 0000562b20532004 > > [ 608.284862][ T5411] R13: 0000000000000039 R14: 0000000000000000 R15: 00007f6ba178ae90 > > [ 608.285050][ T5411] > > [ 608.285150][ T5411] > > [ 608.285237][ T5411] The buggy address belongs to the object at ffff888092af0b40 > > [ 608.285237][ T5411] which belongs to the cache fuse_inode of size 824 > > [ 608.285514][ T5411] The buggy address is located 648 bytes inside of > > [ 608.285514][ T5411] allocated 824-byte region [ffff888092af0b40, ffff888092af0e78) > > [ 608.285794][ T5411] > > [ 608.285883][ T5411] The buggy address belongs to the physical page: > > [ 608.286036][ T5411] page:00000000c8edd8aa refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x92af0 > > [ 608.286258][ T5411] head:00000000c8edd8aa order:2 entire_mapcount:0 nr_pages_mapped:0 pincount:0 > > [ 608.286455][ T5411] memcg:ffff8881f087ff01 > > [ 608.286572][ T5411] flags: 0xfffffc0000840(slab|head|node=0|zone=1|lastcpupid=0x1fffff) > > [ 608.286753][ T5411] page_type: 0xffffffff() > > [ 608.286867][ T5411] raw: 000fffffc0000840 ffff8881019c9e00 dead000000000122 0000000000000000 > > [ 608.287685][ T5411] raw: 0000000000000000 0000000080110011 00000001ffffffff ffff8881f087ff01 > > [ 608.287877][ T5411] page dumped because: kasan: bad access detected > > [ 608.288035][ T5411] > > [ 608.288121][ T5411] Memory state around the buggy address: > > [ 608.288261][ T5411] ffff888092af0c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc > > [ 608.288443][ T5411] ffff888092af0d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc > > [ 608.288624][ T5411] >ffff888092af0d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc > > [ 608.288803][ T5411] ^ > > [ 608.288932][ T291] tst_fill_fs.c:126: TINFO: writev("mntpoint/subdir/thread4/AOF", iov, 512): ENOSPC > > [ 608.288950][ T5411] ffff888092af0e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc > > [ 608.288953][ T5411] ffff888092af0e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc > > [ 608.288984][ T291] > > [ 608.289107][ T5411] ================================================================== > > [ 608.289285][ T5411] Disabling lock debugging due to kernel taint > > > > -- > > 0-DAY CI Kernel Test Service > > https://github.com/intel/lkp-tests/wiki > > > > > > I carefully analyzed the patch I submitted, and I feel that the error in the ltp test has nothing to do with the "[PATCH v2] fuse: Track process write operations in both direct and writethrough modes" patch. Can you give me some guidance on the cause of the error? This looks like another incidence of a bug in a patch I sent to Miklos. The fix for that was applied to fuse/for-next on 2023-11-10. Looking through the test logs attached to the report, it seems the robot used a build from 11-08 which predates the fix. If there's a way to instruct the robot to re-run the test against the latest head of fuse/for-next, I'd expect this to resolve. -K