Skip to content

Commit

Permalink
test: hack: disable kernel_set_mempolicy
Browse files Browse the repository at this point in the history
For a test build
  • Loading branch information
popcornmix committed Feb 5, 2025
1 parent fab0093 commit 45e4e48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mm/mempolicy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1573,6 +1573,10 @@ static long kernel_set_mempolicy(int mode, const unsigned long __user *nmask,
int err;

err = sanitize_mpol_flags(&lmode, &mode_flags);

printk("%s: mode:%x lmode:%x flags:%x err:%d\n", __func__, mode, lmode, mode_flags, err);

Check failure on line 1577 in mm/mempolicy.c

View workflow job for this annotation

GitHub Actions / checkpatch review

WARNING: printk() should include KERN_<LEVEL> facility level
return 0;

if (err)
return err;

Expand Down

0 comments on commit 45e4e48

Please sign in to comment.