From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [dgc-xfs:xfs-5.19-compose 45/86] fs/xfs/xfs_attr_item.c:58:5-24: atomic_dec_and_test variation before object free at line 59.
Date: Mon, 11 Apr 2022 16:51:29 +0800 [thread overview]
Message-ID: <202204111602.dilcA9M2-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2657 bytes --]
CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
TO: Dave Chinner <david@fromorbit.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dgc/linux-xfs.git xfs-5.19-compose
head: 94f0889f7a0ffa0376c59381537cb14fdd0cc3c5
commit: 4ed55211bf917191d2aa857eef4f8b1062b15243 [45/86] xfs: Set up infrastructure for log attribute replay
:::::: branch date: 5 hours ago
:::::: commit date: 6 hours ago
config: i386-randconfig-c001 (https://download.01.org/0day-ci/archive/20220411/202204111602.dilcA9M2-lkp(a)intel.com/config)
compiler: gcc-11 (Debian 11.2.0-19) 11.2.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>
cocci warnings: (new ones prefixed by >>)
>> fs/xfs/xfs_attr_item.c:58:5-24: atomic_dec_and_test variation before object free at line 59.
vim +58 fs/xfs/xfs_attr_item.c
4ed55211bf9171 Allison Henderson 2022-04-11 45
4ed55211bf9171 Allison Henderson 2022-04-11 46 /*
4ed55211bf9171 Allison Henderson 2022-04-11 47 * Freeing the attrip requires that we remove it from the AIL if it has already
4ed55211bf9171 Allison Henderson 2022-04-11 48 * been placed there. However, the ATTRI may not yet have been placed in the
4ed55211bf9171 Allison Henderson 2022-04-11 49 * AIL when called by xfs_attri_release() from ATTRD processing due to the
4ed55211bf9171 Allison Henderson 2022-04-11 50 * ordering of committed vs unpin operations in bulk insert operations. Hence
4ed55211bf9171 Allison Henderson 2022-04-11 51 * the reference count to ensure only the last caller frees the ATTRI.
4ed55211bf9171 Allison Henderson 2022-04-11 52 */
4ed55211bf9171 Allison Henderson 2022-04-11 53 STATIC void
4ed55211bf9171 Allison Henderson 2022-04-11 54 xfs_attri_release(
4ed55211bf9171 Allison Henderson 2022-04-11 55 struct xfs_attri_log_item *attrip)
4ed55211bf9171 Allison Henderson 2022-04-11 56 {
4ed55211bf9171 Allison Henderson 2022-04-11 57 ASSERT(atomic_read(&attrip->attri_refcount) > 0);
4ed55211bf9171 Allison Henderson 2022-04-11 @58 if (atomic_dec_and_test(&attrip->attri_refcount)) {
4ed55211bf9171 Allison Henderson 2022-04-11 @59 xfs_trans_ail_delete(&attrip->attri_item,
4ed55211bf9171 Allison Henderson 2022-04-11 60 SHUTDOWN_LOG_IO_ERROR);
4ed55211bf9171 Allison Henderson 2022-04-11 61 xfs_attri_item_free(attrip);
4ed55211bf9171 Allison Henderson 2022-04-11 62 }
4ed55211bf9171 Allison Henderson 2022-04-11 63 }
4ed55211bf9171 Allison Henderson 2022-04-11 64
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-04-11 8:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202204111602.dilcA9M2-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.