Re: [PATCH] xfs: Fix UBSAN null-ptr-deref in xfs_sysfs_init

2020-08-06 Thread Eiichi Tsukata
Thanks, I sent it to linux-xfs ML. I had some trouble with gmail server. Eiichi On 2020/08/07 0:13, Darrick J. Wong wrote: > On Fri, Aug 07, 2020 at 12:05:27AM +0900, Eiichi Tsukata wrote: >> If xfs_sysfs_init is called with parent_kobj == NULL, UBSAN >> shows the following warning: > > This nee

[PATCH] xfs: Fix UBSAN null-ptr-deref in xfs_sysfs_init

2020-08-06 Thread Eiichi Tsukata
If xfs_sysfs_init is called with parent_kobj == NULL, UBSAN shows the following warning: UBSAN: null-ptr-deref in ./fs/xfs/xfs_sysfs.h:37:23 member access within null pointer of type 'struct xfs_kobj' Call Trace: dump_stack+0x10e/0x195 ubsan_type_mismatch_common+0x241/0x280 __ubsan_

Re: [PATCH] xfs: Fix UBSAN null-ptr-deref in xfs_sysfs_init

2020-08-06 Thread Darrick J. Wong
On Fri, Aug 07, 2020 at 12:05:27AM +0900, Eiichi Tsukata wrote: > If xfs_sysfs_init is called with parent_kobj == NULL, UBSAN > shows the following warning: This needs to be sent to the xfs mailing list, per get_maintainers.pl. --D > UBSAN: null-ptr-deref in ./fs/xfs/xfs_sysfs.h:37:23 > memb

[PATCH] xfs: Fix UBSAN null-ptr-deref in xfs_sysfs_init

2020-08-06 Thread Eiichi Tsukata
If xfs_sysfs_init is called with parent_kobj == NULL, UBSAN shows the following warning: UBSAN: null-ptr-deref in ./fs/xfs/xfs_sysfs.h:37:23 member access within null pointer of type 'struct xfs_kobj' Call Trace: dump_stack+0x10e/0x195 ubsan_type_mismatch_common+0x241/0x280 __ubsan_

[PATCH] xfs: Fix UBSAN null-ptr-deref in xfs_sysfs_init

2020-08-06 Thread Eiichi Tsukata
If xfs_sysfs_init is called with parent_kobj == NULL, UBSAN shows the following warning: UBSAN: null-ptr-deref in ./fs/xfs/xfs_sysfs.h:37:23 member access within null pointer of type 'struct xfs_kobj' Call Trace: dump_stack+0x10e/0x195 ubsan_type_mismatch_common+0x241/0x280 __ubsan_