From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: [brauner-vfs:vfs.tmpfs 15/19] mm/shmem.c:3611 shmem_xattr_handler_set() warn: passing zero to 'PTR_ERR'
Date: Fri, 11 Aug 2023 10:49:17 +0800 [thread overview]
Message-ID: <202308111016.rximb8Ah-lkp@intel.com> (raw)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: Christian Brauner <christianvanbrauner@gmail.com>
TO: Hugh Dickins <hughd@google.com>
CC: Christian Brauner <brauner@kernel.org>
CC: Jan Kara <jack@suse.cz>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git vfs.tmpfs
head: 3a3c2ca1fb82b27073db2ae1f3eb06820e8d6143
commit: 46170cc50828c33897d192668884d570b2c4e79b [15/19] xattr: simple_xattr_set() return old_xattr to be freed
:::::: branch date: 17 hours ago
:::::: commit date: 2 days ago
config: mips-randconfig-m031-20230809 (https://download.01.org/0day-ci/archive/20230811/202308111016.rximb8Ah-lkp@intel.com/config)
compiler: mips-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230811/202308111016.rximb8Ah-lkp@intel.com/reproduce)
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 <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202308111016.rximb8Ah-lkp@intel.com/
smatch warnings:
mm/shmem.c:3611 shmem_xattr_handler_set() warn: passing zero to 'PTR_ERR'
vim +/PTR_ERR +3611 mm/shmem.c
b09e0fa4b4ea66 Eric Paris 2011-05-24 3593
aa7c5241c380ad Andreas Gruenbacher 2015-12-02 3594 static int shmem_xattr_handler_set(const struct xattr_handler *handler,
39f60c1ccee72c Christian Brauner 2023-01-13 3595 struct mnt_idmap *idmap,
5930122683dff5 Al Viro 2016-05-27 3596 struct dentry *unused, struct inode *inode,
5930122683dff5 Al Viro 2016-05-27 3597 const char *name, const void *value,
5930122683dff5 Al Viro 2016-05-27 3598 size_t size, int flags)
b09e0fa4b4ea66 Eric Paris 2011-05-24 3599 {
5930122683dff5 Al Viro 2016-05-27 3600 struct shmem_inode_info *info = SHMEM_I(inode);
46170cc50828c3 Hugh Dickins 2023-08-08 3601 struct simple_xattr *old_xattr;
b09e0fa4b4ea66 Eric Paris 2011-05-24 3602
aa7c5241c380ad Andreas Gruenbacher 2015-12-02 3603 name = xattr_full_name(handler, name);
46170cc50828c3 Hugh Dickins 2023-08-08 3604 old_xattr = simple_xattr_set(&info->xattrs, name, value, size, flags);
46170cc50828c3 Hugh Dickins 2023-08-08 3605 if (!IS_ERR(old_xattr)) {
46170cc50828c3 Hugh Dickins 2023-08-08 3606 simple_xattr_free(old_xattr);
46170cc50828c3 Hugh Dickins 2023-08-08 3607 old_xattr = NULL;
36f05cab0a2c97 Jeff Layton 2022-09-09 3608 inode->i_ctime = current_time(inode);
36f05cab0a2c97 Jeff Layton 2022-09-09 3609 inode_inc_iversion(inode);
36f05cab0a2c97 Jeff Layton 2022-09-09 3610 }
46170cc50828c3 Hugh Dickins 2023-08-08 @3611 return PTR_ERR(old_xattr);
b09e0fa4b4ea66 Eric Paris 2011-05-24 3612 }
b09e0fa4b4ea66 Eric Paris 2011-05-24 3613
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2023-08-11 2:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-11 2:49 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-08-11 5:26 [brauner-vfs:vfs.tmpfs 15/19] mm/shmem.c:3611 shmem_xattr_handler_set() warn: passing zero to 'PTR_ERR' Dan Carpenter
2023-08-11 6:43 ` Hugh Dickins
2023-08-11 21:15 kernel test robot
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=202308111016.rximb8Ah-lkp@intel.com \
--to=lkp@intel.com \
--cc=error27@gmail.com \
--cc=oe-kbuild@lists.linux.dev \
/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.