Re: [PATCH] quota: clear padding in v2r1_mem2diskdqb()

2020-09-25 Thread Jan Kara
On Thu 24-09-20 11:36:19, Eric Dumazet wrote: > Freshly allocated memory contains garbage, better make sure > to init all struct v2r1_disk_dqblk fields to avoid KMSAN report: > > BUG: KMSAN: uninit-value in qtree_entry_unused+0x137/0x1b0 > fs/quota/quota_tree.c:218 > CPU: 0 PID: 23373 Comm: syz-e

[PATCH] quota: clear padding in v2r1_mem2diskdqb()

2020-09-24 Thread Eric Dumazet
Freshly allocated memory contains garbage, better make sure to init all struct v2r1_disk_dqblk fields to avoid KMSAN report: BUG: KMSAN: uninit-value in qtree_entry_unused+0x137/0x1b0 fs/quota/quota_tree.c:218 CPU: 0 PID: 23373 Comm: syz-executor.1 Not tainted 5.9.0-rc4-syzkaller #0 Hardware name